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

Improve incompatible flag testing #238

Merged
merged 3 commits into from
Jun 24, 2024

Conversation

tetromino
Copy link
Collaborator

We always want to use some flags in development; e.g. an empty glob is a sign of a mistake, so we always want --incompatible_disallow_empty_glob

We will unconditionally set such flags in .bazelrc (not just in CI config).

For other incompatible flags (--incompatible_enable_proto_toolchain_resolution), we want to test builds both with and without them - and with bzlmod both enabled and disabled (see discussion in #236 for a case where this matters).

Such flags we will group under --config=incompatible, and test all 4 combinations (+- incompatible +- bzlmod) in CI.

We always want to use some flags in development; e.g. an empty glob is a
sign of a mistake, so we always want --incompatible_disallow_empty_glob

We will unconditionally set such flags in .bazelrc (not just in CI config).

For other incompatible flags (--incompatible_enable_proto_toolchain_resolution),
we want to test builds both with and without them - and with bzlmod both
enabled and disabled (see discussion in bazelbuild#236 for a case where this
matters).

Such flags we will group under --config=incompatible, and test all 4
compbinations (+- incompatible +- bzlmod) in CI.
@tetromino tetromino requested a review from brandjon as a code owner June 21, 2024 17:12
@tetromino tetromino merged commit c026dae into bazelbuild:master Jun 24, 2024
22 checks passed
@tetromino tetromino deleted the incompatible-flags branch June 24, 2024 14:12
tetromino added a commit to tetromino/stardoc that referenced this pull request Jul 9, 2024
…atible_enable_proto_toolchain_resolution
tetromino added a commit to tetromino/stardoc that referenced this pull request Jul 9, 2024
…atible_enable_proto_toolchain_resolution
tetromino added a commit that referenced this pull request Jul 17, 2024
As the review of #241 showed, `--incompatible_enable_proto_toolchain_resolution` is not ready yet; we will re-add support for it in Stardoc when we no longer need to register our own protoc toolchain in Stardoc's MODULE.bazel file.

The only parts of #237 we keep are the rules_jvm_external and rules_proto dep bumps; note that the rules_proto dep bump in turn requires a new dependency on bazel_features when using a Stardoc distro release with `--noenable_blzmod.`

Also revert most of #238 - we're no longer testing `--incompatible_enable_proto_toolchain_resolution`
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