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

Allow disabling automatic --repo flag in bazel runner. #2415

Closed
wants to merge 1 commit into from

Conversation

pipejakob
Copy link
Contributor

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 (naming suggestions welcome).

I also considered and prototyped forking the bazelbuild image into another "periodic" variant to fix the issue, but since the delta turned out to be a single line deleted in the runner, the long-term cost of maintaining two forks of the image seemed to heavily outweigh the alternative of this new environment variable. I'm still open to suggestions, though.

This also reverts the attempted (failed) workaround from #2393.

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.
@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Apr 5, 2017
@spxtr
Copy link
Contributor

spxtr commented Apr 5, 2017

I'm not a fan of yet another magic environment variable. Why not just set --repo in all of the args sections of the job configs?

@pipejakob
Copy link
Contributor Author

Sounds good to me, I just generally try to avoid breaking backwards-compatibility. I'll take another swing at this.

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