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

Bazel ci fixes #1916

Merged
merged 3 commits into from
Jun 30, 2023
Merged

Bazel ci fixes #1916

merged 3 commits into from
Jun 30, 2023

Conversation

ylecornec
Copy link
Member

Depends on #1912

This PR contains two changes to bazel's CI:

  • It updates .bazelrc.common to only use BuildBuddy for the build event service in our CI, but not in bazel's one.
    This fixes this error from the Try update last green commit job, which also contains the following warning at the top:

     '--config=ci-common' (source command line options) was expanded and now overrides the explicit option --bes_backend=buildeventservice.googleapis.com with --bes_backend=grpcs://remote.buildbuddy.io
    
  • It adds the tests from the rules_haskell_tests module to bazel's CI.
    I needed to specify the platform explicitly when using a matrix because of this error which looks a bit like an issue in bazel's ci. It looks like the default platform gets expanded to ubuntu1804_config_01 here, which does not exist in the PLATFORM dictionary.

The CI was run manually against this commit here.

Note: updating the latest green commit should make bazel's CI run against master in order to be sure that #1846 is fixed.

@ylecornec ylecornec requested a review from avdv as a code owner June 29, 2023 09:16
Base automatically changed from ylecornec/activate_bzlmod to master June 29, 2023 09:51
@dpulls
Copy link

dpulls bot commented Jun 29, 2023

🎉 All dependencies have been resolved !

@@ -58,8 +60,6 @@ build:ci-common --repository_cache=~/repo-cache/
build:ci-common --experimental_repository_cache_hardlinks

# Use a remote cache during CI
build:ci-common --bes_results_url=https://app.buildbuddy.io/invocation/
build:ci-common --bes_backend=grpcs://remote.buildbuddy.io
Copy link
Member

Choose a reason for hiding this comment

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

Maybe it would make sense to still leverage the cache in general, but disable remote uploads with --noremote_upload_local_results, and re-enable remote uploads for the "ci" config with --remote_upload_local_results. Not sure this is possible.

Copy link
Member

@avdv avdv left a comment

Choose a reason for hiding this comment

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

Thanks, LGTM, but I left a comment.

@ylecornec ylecornec added the merge-queue merge on green CI label Jun 30, 2023
@mergify mergify bot merged commit 8140a70 into master Jun 30, 2023
@mergify mergify bot deleted the ylecornec/bazel_ci branch June 30, 2023 19:22
@mergify mergify bot removed the merge-queue merge on green CI label Jun 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants