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

Adding a build-test-federation-e2e-gce job to pr builder job #335

Merged
1 commit merged into from
Aug 11, 2016
Merged

Adding a build-test-federation-e2e-gce job to pr builder job #335

1 commit merged into from
Aug 11, 2016

Conversation

nikhiljindal
Copy link
Contributor

@nikhiljindal nikhiljindal commented Aug 3, 2016

Ref #155 kubernetes/kubernetes#26723

Have set only-trigger-phrase to true, so that it should only be triggered if explicitly requested via @k8s-bot federation gce e2e test this

cc @kubernetes/sig-cluster-federation @colhom

The parameters for the job are copied from build-test-e2e-gce. Federation specific params are copied from

export PROJECT="k8s-jkns-e2e-gce-federation"

@nikhiljindal
Copy link
Contributor Author

cc @kubernetes/test-infra-maintainers @ixdy

if [[ ${{rc}} -ne 0 ]]; then
if [[ -x cluster/log-dump.sh && -d _artifacts ]]; then
echo "Dumping logs for any remaining nodes"
./cluster/log-dump.sh _artifacts
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This I think will dump the logs from nodes from only one cluster

@nikhiljindal
Copy link
Contributor Author

I am not sure how will users be able to access the logs, I assume a "Details" link will automatically appear in the list of checks, clicking on which will give the logs.

@@ -51,6 +51,7 @@
- github-pull-request:
# This is the Jenkins GHPRB plugin ID, not the actual github token.
auth-id: 'f8e31bc1-9abb-460a-a2ca-9c4aae3ca4e8'
only-trigger-phrase: {only-trigger-phrase}
Copy link
Member

Choose a reason for hiding this comment

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

you might need to put this in single quotes.

you definitely will need to set only-trigger-phrase explicitly to false for all of the other builds.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

single quotes should not be required (I see other fields here without quotes, status-context for ex).
But this did not work, it resulted in <onlyTriggerPhrase>ordereddict([('only-trigger-phrase', none)])</onlyTriggerPhrase>. Will try adding quotes.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Adding quotes fixed it.

@nikhiljindal
Copy link
Contributor Author

@ixdy Can I get LGTM please :)

status-context: Federation GCE e2e
max-total: 12
only-trigger-phrase: true # This test should run only if explicitly triggered.
trigger-phrase: 'federation+gce+e2e+test'
Copy link
Member

Choose a reason for hiding this comment

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

this phrase is a Java regex - you probably want \s+, not just +.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

fixed

@spxtr
Copy link
Contributor

spxtr commented Aug 4, 2016

When we add a new job the plugin goes and tries to run it for every open PR which is a bit of a hassle, so we need to merge with care.

@@ -51,6 +52,7 @@
- github-pull-request:
# This is the Jenkins GHPRB plugin ID, not the actual github token.
auth-id: 'f8e31bc1-9abb-460a-a2ca-9c4aae3ca4e8'
only-trigger-phrase: '{only-trigger-phrase}'
Copy link
Contributor

Choose a reason for hiding this comment

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

I think here you have to do the same trick we do for the disabled parameter, something like {obj:only-trigger-phrase}.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Why do you think so?

I checked the diff this PR produced on travis and that seemed correct to me.

Copy link
Contributor

Choose a reason for hiding this comment

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

If you ever set one to 'false' through a variable then it will actually be True because bool('false') is True.

Copy link
Contributor Author

@nikhiljindal nikhiljindal Aug 9, 2016

Choose a reason for hiding this comment

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

@spxtr That does not seem to be true. I tested it out in #359 by setting only-trigger-phrase to false explicitly for build-test-e2e-gke project. The value of onlyTriggerPhrase remained false in the generated XML.

@nikhiljindal
Copy link
Contributor Author

Created a new project which should have the correct service accounts and permissions.
PTAL

@wojtek-t
Copy link
Member

wojtek-t commented Aug 8, 2016

@gmarek - we should reuse this experience and do exactly the same for kubemark

@gmarek
Copy link

gmarek commented Aug 8, 2016

@wojtek-t - we can try:)

@ixdy
Copy link
Member

ixdy commented Aug 10, 2016

LGTM. I'm happy to merge this to see what's broken and iterate.

@ixdy ixdy added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Aug 10, 2016
@ixdy
Copy link
Member

ixdy commented Aug 10, 2016

Might want to email kubernetes-dev (or at least watch slack) to let folks know where the new commit status is coming from.

@nikhiljindal
Copy link
Contributor Author

The new commit status will only come if someone explicitly requests it by posting @k8s-bot federation gce e2e test this on the PR.
So people on whose PR this message will be posted will know why it is running.

@nikhiljindal
Copy link
Contributor Author

@kubernetes/test-infra-admins How do I get this PR merged?
Doesnt look like merge bot works here.

@ghost
Copy link

ghost commented Aug 11, 2016

Yup, manual merges are the way to go in this repo. Based on @ixdy's LGTM above, I'm going to merge this now.

This pull request was closed.
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.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants