Skip to content

Enable presubmit on Prow#464

Merged
sebastienvas merged 12 commits intoistio:masterfrom
sebastienvas:prow
Jul 14, 2017
Merged

Enable presubmit on Prow#464
sebastienvas merged 12 commits intoistio:masterfrom
sebastienvas:prow

Conversation

@sebastienvas
Copy link
Copy Markdown
Contributor

  • Fix Build Issues
  • Create presubmit script
  • Update e2e framework to save logs to _artifacts folder instead of uplading them to gcloud storage since Prow already does this.

@istio-testing
Copy link
Copy Markdown
Collaborator

Hi @sebastienvas. Thanks for your PR.

I'm waiting for a member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

I understand the commands that are listed here.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@sebastienvas
Copy link
Copy Markdown
Contributor Author

/ok-to-test

@istio-testing
Copy link
Copy Markdown
Collaborator

@sebastienvas: you can't request testing unless you are a member.

Details

In response to this:

/ok-to-test

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@istio-testing
Copy link
Copy Markdown
Collaborator

Jenkins job istio/presubmit passed

1 similar comment
@istio-testing
Copy link
Copy Markdown
Collaborator

Jenkins job istio/presubmit passed

@istio-testing
Copy link
Copy Markdown
Collaborator

@sebastienvas: The following test failed, say /retest to rerun them all:

Test name Commit Details Rerun command
prow/istio-presubmit.sh b8163fe1693ce0cda035a10161e89750afb3c385 link @istio-testing bazel test this
Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe this should be --test_log_path, note no plural. based on the build log here

@istio-testing
Copy link
Copy Markdown
Collaborator

Jenkins job istio/presubmit passed

3 similar comments
@istio-testing
Copy link
Copy Markdown
Collaborator

Jenkins job istio/presubmit passed

@istio-testing
Copy link
Copy Markdown
Collaborator

Jenkins job istio/presubmit passed

@istio-testing
Copy link
Copy Markdown
Collaborator

Jenkins job istio/presubmit passed

@sebastienvas
Copy link
Copy Markdown
Contributor Author

Prow results are available here

@istio-testing
Copy link
Copy Markdown
Collaborator

Jenkins job istio/presubmit passed

1 similar comment
@istio-testing
Copy link
Copy Markdown
Collaborator

Jenkins job istio/presubmit passed

@sebastienvas
Copy link
Copy Markdown
Contributor Author

Prow results are here. Note that artifacts were also uploaded as well.

@istio-testing
Copy link
Copy Markdown
Collaborator

Jenkins job istio/presubmit passed

Copy link
Copy Markdown
Contributor

@nlandolfi nlandolfi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not as familiar with this syntax but basically this allows running the script locally? like you define the e2e args before the if for that purpose?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes. Precisely.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh I missed E2E_ARGS here (search fail!)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ahh i see the original typo came from that the var is testLogsPath whereas flag is test_log_path

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I renamed it for consistency.

@istio-testing
Copy link
Copy Markdown
Collaborator

Jenkins job istio/presubmit passed

1 similar comment
@istio-testing
Copy link
Copy Markdown
Collaborator

Jenkins job istio/presubmit passed

@sebastienvas sebastienvas requested a review from ldemailly July 13, 2017 18:29
Copy link
Copy Markdown
Member

@ldemailly ldemailly left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

couple of issues/comments/questions:

@@ -0,0 +1,28 @@
#!/bin/bash

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

a short description of what this does and how maybe would be a useful comment/header ?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done


if [ "${CI}" == "bootstrap" ]; then
# ensure correct path
mkdir -p ${GOPATH}/src/istio.io
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

test if GOPATH is set first ?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added set -u.

ln -s ${GOPATH}/src/github.com/istio/istio ${GOPATH}/src/istio.io
cd ${GOPATH}/src/istio.io/istio/
ARTIFACTS_DIR="${GOPATH}/src/istio.io/istio/_artifacts"
E2E_ARGS+=(--test_logs_path="${ARTIFACTS_DIR}")
Copy link
Copy Markdown
Member

@ldemailly ldemailly Jul 14, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't see an export or those 2 variables being used anywhere ? (only 'bug' if I read this correctly/am not missing something)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

E2E_ARGS is used down in the script.

if err != nil {
tmpDir := ""
// testLogsPath will be used when called by Prow.
// Bootstrap already gather stdout and stdin so we don't need to keep the logs from glog.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

are we using -logtostderr for glog then ?

Copy link
Copy Markdown
Contributor Author

@sebastienvas sebastienvas Jul 14, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Copy Markdown
Contributor Author

@sebastienvas sebastienvas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PTAL

@istio-testing
Copy link
Copy Markdown
Collaborator

Jenkins job istio/presubmit passed

Copy link
Copy Markdown
Member

@ldemailly ldemailly left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thx!

@nlandolfi
Copy link
Copy Markdown
Contributor

nlandolfi commented Jul 15, 2017 via email

rshriram pushed a commit that referenced this pull request Oct 30, 2017
* Enable Prow

* Fix BUILD format

* Add execution perm to the script

* Fix shell script

* Fix flag name

* Use the right k8s cluster

* Create the ~.kube dir

* Linking instead of moving

* Explicitly specify dir

* Remove debug statements

* Rename test_log_path to test_logs_path for consistency

* Adds desc + failure conditions


Former-commit-id: 148a5a3
mandarjog pushed a commit that referenced this pull request Nov 2, 2017
* Enable Prow

* Fix BUILD format

* Add execution perm to the script

* Fix shell script

* Fix flag name

* Use the right k8s cluster

* Create the ~.kube dir

* Linking instead of moving

* Explicitly specify dir

* Remove debug statements

* Rename test_log_path to test_logs_path for consistency

* Adds desc + failure conditions


Former-commit-id: 148a5a3
kyessenov pushed a commit to kyessenov/istio that referenced this pull request Aug 13, 2018
antonioberben pushed a commit to antonioberben/istio that referenced this pull request Jan 29, 2024
jaeger-operator update image to latest 1.43.0 and bump chart version
fjglira pushed a commit to fjglira/istio that referenced this pull request Sep 26, 2025
Added mechanism to skip test suites
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants