Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add GUBERNATOR flag which produces g8r link for node e2e tests #30414

Merged
merged 1 commit into from
Aug 18, 2016

Conversation

mnshaw
Copy link
Contributor

@mnshaw mnshaw commented Aug 11, 2016

When you run 'make tests-e2e-node REMOTE=true GUBERNATOR=true' outputs a URL to view the test results on Gubernator. Should work after my PR for Gubernator is merged.

@timstclair


This change is Reviewable

@k8s-github-robot k8s-github-robot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. release-note-label-needed labels Aug 11, 2016
@dchen1107 dchen1107 assigned timstclair and unassigned zmerlynn Aug 11, 2016
--hosts="$hosts" --images="$images" --cleanup="$cleanup" \
--results-dir="$artifacts" --ginkgo-flags="$ginkgoflags" \
--image-project="$image_project" --instance-name-prefix="$instance_prefix" --setup-node="true" \
--delete-instances="$delete_instances" --test_args="$test_args" --instance-metadata="$metadata"

Choose a reason for hiding this comment

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

Is there any difference between this command and the one below? If not, move it out of the conditional. If there is, can you extract the difference to a variable that gets added in?

Choose a reason for hiding this comment

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

Ah, I see the difference is the presence of | tee build-log.txt. As long as that goes to the artifacts directory, I think it's safe to always save it.

@timstclair
Copy link

Looks good, mostly code hygiene comments around the script.

bucket_name="${USER}-g8r-logs"
echo ""
echo "Using bucket ${bucket_name}"
gsutil mb gs://${bucket_name}/

Choose a reason for hiding this comment

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

I think it would be good to put some checks at the beginning of the script that:

  1. User has gsutil
  2. gcloud auth is set up correctly

Also, I think it would be good to warn the user that this script will upload the build logs (located at X) to a public bucket, and get their consent. You could add an environment variable to skip this step for experienced users.

@mnshaw
Copy link
Contributor Author

mnshaw commented Aug 12, 2016

Still need to:

  • get user approval for using buckets
  • make json files first in _artifacts folder before moving into GCS?

Known issue: The timestamps seem to be in a different timezone

@mnshaw mnshaw force-pushed the run-remote-tests branch 2 times, most recently from eaafdbe to dd00779 Compare August 13, 2016 01:08
@mnshaw mnshaw changed the title [WIP] Add GBR flag which produces g8r link for node e2e tests Add GBR flag which produces g8r link for node e2e tests Aug 15, 2016


if [[ $# -eq 0 || ! $1 =~ ^[Yy]$ ]]; then
read -p "Do you want to run gubernator.sh and upload logs to GCS? [y/n]" yn

Choose a reason for hiding this comment

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

nit: add publicly

@timstclair
Copy link

LGTM, after you fix this:

Verifying hack/make-rules/../../hack/verify-gofmt.sh
!!! 'gofmt -s -w' needs to be run on the following files: 
./test/e2e_node/runner/run_e2e.go
FAILED   hack/make-rules/../../hack/verify-gofmt.sh 12s

@timstclair timstclair added release-note-none Denotes a PR that doesn't merit a release note. and removed release-note-label-needed labels Aug 15, 2016
@mnshaw mnshaw changed the title Add GBR flag which produces g8r link for node e2e tests Add GUBERNATOR flag which produces g8r link for node e2e tests Aug 16, 2016
@mnshaw mnshaw force-pushed the run-remote-tests branch 2 times, most recently from 5126306 to a9cf727 Compare August 16, 2016 22:58
@timstclair
Copy link

LGTM. Please squash the commits. You can ignore the node failure.

@k8s-bot
Copy link

k8s-bot commented Aug 17, 2016

GCE e2e build/test passed for commit d69252c.

@timstclair timstclair added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Aug 17, 2016
@dchen1107 dchen1107 added the priority/critical-urgent Highest priority. Must be actively worked on as someone's top priority right now. label Aug 18, 2016
@k8s-github-robot
Copy link

@k8s-bot test this [submit-queue is verifying that this PR is safe to merge]

@k8s-bot
Copy link

k8s-bot commented Aug 18, 2016

GCE e2e build/test passed for commit d69252c.

@k8s-github-robot
Copy link

Automatic merge from submit-queue

@k8s-github-robot k8s-github-robot merged commit c8591c7 into kubernetes:master Aug 18, 2016
jwhonce pushed a commit to jwhonce/kubernetes that referenced this pull request Aug 19, 2016
Automatic merge from submit-queue

Gubernator bug fixes: mv and GCS bucket permissions

Fixed issue where results file was not moved correctly, and also the permissions issue with the GCS bucket.

Will rebase after kubernetes#30414 is merged

@timstclair
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lgtm "Looks good to me", indicates that a PR is ready to be merged. priority/critical-urgent Highest priority. Must be actively worked on as someone's top priority right now. release-note-none Denotes a PR that doesn't merit a release note. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants