Skip to content

Remove tools/bazel.rc on CI as it's incompatible. #495

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

Merged
merged 1 commit into from
May 7, 2018
Merged

Conversation

philwo
Copy link
Contributor

@philwo philwo commented May 7, 2018

Local disk caching does not work on Bazel's CI and actually causes the project to fail in our downstream tests at the moment:
https://buildkite.com/bazel/bazel-with-downstream-projects-bazel/builds/224#e8eab4eb-9baf-4503-8328-62d1ca2f454d

Local disk caching does not work on Bazel's CI and actually causes the project to fail in our downstream tests at the moment:
https://buildkite.com/bazel/bazel-with-downstream-projects-bazel/builds/224#e8eab4eb-9baf-4503-8328-62d1ca2f454d
@philwo philwo requested a review from ittaiz May 7, 2018 12:45
Copy link
Contributor

@ittaiz ittaiz left a comment

Choose a reason for hiding this comment

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

LGTM

@philwo
Copy link
Contributor Author

philwo commented May 7, 2018

Thank you! :)

@philwo philwo merged commit 5f47e54 into master May 7, 2018
@philwo philwo deleted the philwo-patch-2 branch May 7, 2018 14:16
@johnynek
Copy link
Contributor

johnynek commented May 7, 2018

I think this also has the effect of not testing using workers now since I think workers must be configured in the bazelrc.

Maybe we should have a separate bazelrc for buildkite?

@ittaiz
Copy link
Contributor

ittaiz commented May 7, 2018 via email

@philwo
Copy link
Contributor Author

philwo commented May 8, 2018

The currently checked in bazel.rc doesn't enable workers, right?

It should be possible to have a bazelrc just for buildkite. This should work:

  • Create a tools/bazel.rc.buildkite (or similar)
  • Modify .bazelci/presubmit.yml and replace rm -f tools/bazel.rc with mv tools/bazel.rc.buildkite tools/bazel.rc.

@ittaiz
Copy link
Contributor

ittaiz commented May 8, 2018 via email

@ittaiz ittaiz mentioned this pull request May 17, 2018
@ittaiz
Copy link
Contributor

ittaiz commented May 19, 2018

ok. I dug some more into it and apparently I was wrong since tools/bazelrc is a global rc and that doesn't contradict with the workspace bazelrc.
Additionally it sounds like @johnynek you were wrong since we were only running with workers on travis (it's defined in .bazelrc.travis) so this change didn't hurt us.
Bottom line:
buildkite- runs with workers thanks to #504 (which implicitly also means no local caching since the workers were the only instruction)
travis- runs with workers (thanks to .bazelrc.travis) and with disk caching (thanks to #478 https://github.com/bazelbuild/rules_scala/blob/606ccaeb3de6ac88c73dba69f87767ab43e7707b/tools/bazel.rc)

ianoc-stripe pushed a commit to ianoc-stripe/rules_scala that referenced this pull request Jun 12, 2018
Local disk caching does not work on Bazel's CI and actually causes the project to fail in our downstream tests at the moment:
https://buildkite.com/bazel/bazel-with-downstream-projects-bazel/builds/224#e8eab4eb-9baf-4503-8328-62d1ca2f454d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants