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

Fix periodic bazel jobs. #2393

Merged
merged 1 commit into from
Apr 3, 2017
Merged

Conversation

pipejakob
Copy link
Contributor

@pipejakob pipejakob commented Apr 3, 2017

The bazel runner already specifies a --repo argument based off of $REPO_NAME, so adding a second --repo option was checking out the kubernetes repo, but making the test-infra repo primary, so it failed the job because there was no bazel-build target in test-infra.

I'm looking for feedback to see whether this approach is better than forking the bazelbuild image to create a runner more suitable for periodic jobs.

CC @spxtr @mikedanese

The bazel runner already specifies a --repo argument based off of
$REPO_NAME, so adding a second --repo option was checking out the
kubernetes repo, but making the test-infra repo primary, so it failed
the job because there was no "bazel-build" target in test-infra.
@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Apr 3, 2017
@pipejakob pipejakob mentioned this pull request Apr 3, 2017
13 tasks
@mikedanese mikedanese merged commit 21d13e2 into kubernetes:master Apr 3, 2017
pipejakob added a commit to pipejakob/test-infra that referenced this pull request Apr 5, 2017
If a periodic job uses the bazelbuild image and passes an argument of
"--repo=...", it ends up getting appended to the list of repos instead
of overwriting it. This change is to make the runner detect if it's
being run in a periodic context, and if so, not add its own --repo flag.

This also reverts the attempted (failed) workaround from
kubernetes#2393.
pipejakob added a commit to pipejakob/test-infra that referenced this pull request Apr 5, 2017
If a periodic job uses the bazelbuild image and passes an argument of
"--repo=...", it ends up getting appended to the list of repos instead
of overwriting it. This change lets jobs set an environment variable to
opt out of this automatic --repo flag added by the bazel runner.

This also reverts the attempted (failed) workaround from
kubernetes#2393.
pipejakob added a commit to pipejakob/test-infra that referenced this pull request Apr 5, 2017
If a periodic job uses the bazelbuild image and passes an argument of
"--repo=...", it ends up getting appended to the list of repos instead
of overwriting it. Since not all jobs want this behavior, move the
--repo flag to config.yaml per job instead.

This also reverts the attempted (failed) workaround from
kubernetes#2393.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cncf-cla: yes Indicates the PR's author has signed the CNCF CLA.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants