Use Bazelisk for testing a given list of incompatible flags (#1413)
* Incompatible flags testing doesn't require Bazel task configs since we use Bazelisk to fetch binaries directly
* Use Bazelisk for testing a given list of incompatible flags
Previously, we have customized logic for injecting incompatible flags
in bazelci.py script. This PR removes those logic.
Now we entirely rely on `bazelisk --migrate` on testing incompatible flags.
To enable this, just set USE_BAZELISK_MIGRATE=1 for the pipeline.
The pipeline will test incompatible flags with Bazelisk by
1. Parsing a list of incompatible flags from open github issues with
the "incompatible-change" and "migration-ready" labels.
2. Pass the flags to Bazelisk by BAZELISK_INCOMPATIBLE_FLAGS env var.
Depends on a Bazelisk feature introduced in
https://github.com/bazelbuild/bazelisk/pull/349
3. When USE_BAZELISK_MIGRATE=1, the pipeline uses Bazel@last_green to
test incompatible flags unless USE_BAZEL_VERSION is set.
* Allow testing flags that don't start with "--incompatible_"
* Respect INCOMPATIBLE_FLAGS
* Fix missing index
2 files changed