bazelbuild / bazelbuild/bazel

Migration needed for Automatic Exec Groups

Open
#24,373 2 comments 0 reactions 0 assignees View on GitHub
breakage incompatible-change not stale team-Configurability type: feature request
Dominant language
Java
Stars
25.8k
Forks
4.6k
Avg merge
2d 20h
Merged PRs (30d)
72

Description

Migration to [Automatic Exec Groups](https://bazel.build/extending/auto-exec-groups) (AEGs) is needed since its incompatible flag (`--incompatible_auto_exec_groups`) will be enabled for Bazel@Head by default shortly, thus it will be breaking multiple projects.

Please migrate and fix potential errors, in order to unblock your project and users who depend on your project. Potential errors can be triggered by building your project with this incompatible flag. Note that AEGs will not be flipped by default for Bazel 8, but for Bazel at head after Bazel 8 cut.

For more details, please check:
* [The reference issue](https://github.com/bazelbuild/bazel/issues/19981)
* [General Bazel documentation for AEGs](https://bazel.build/extending/auto-exec-groups)
* Particularly interesting parts could be
* [Most common errors](https://bazel.build/extending/auto-exec-groups#potential-problems) you could see during this migration
* [How to disable AEGs](https://bazel.build/extending/auto-exec-groups#how-disable) until fully migrated

**Notes**
* Issues related to this matter were already open for multiple modules, but github suspended the account of the colleague who opened them (the issue was probably related to using a similar template for multiple projects which was observed as spam). Hence, I’m opening this single issue and I’m pinging maintainers of relevant failing projects which require this migration.
* In case the migration is not straightforward, please open an additional github issue in your repository in order to closely follow the progress. In this way we’re being respectful towards other maintainers of different projects, who share this issue along with us.
* In case there are some obstacles, please let me know.
* Let me know if I made some mistake or some changes need to be done regarding maintainers - Most of the information I used from [Bazel Central ](https://registry.bazel.build/)[Registry.](http://registry.in/)

## The following modules are broken with Bazel 7:

BCR Bazel Compatibility Test: https://buildkite.com/bazel/bcr-bazel-compatibility-test/builds/45

### aspect_rules_js
Maintainers: @alexeagle, @gregmagolan, @jbedard

### aspect_rules_lint:
Maintainers: @alexeagle

### rules_nodejs
Maintainers: @alexeagle

### toolchains_protoc
Maintainers: @alexeagle

### apple_support@1.17.1
Maintainers: @keith, @BalestraPatrick

### rules_swift
Maintainers: @keith, @BalestraPatrick, @brentleyjones

### rules_apple
Maintainers: @keith, @BalestraPatrick, @brentleyjones

### swift_argument_parser
Maintainers: @keith, @jpsim

### bazel_skylib_gazelle_plugin
Maintainers: @comius

### cgrindel_bazel_starlib
Maintainers: @cgrindel

### gazelle
Maintainers: @fmeum, @linzhp, @tyler-french

### rules_go
Maintainers: @fmeum, @linzhp, @tyler-french

### grpc
Maintainers: @apolcyn, @arjunroy, @ctiller

### protobuf
Maintainers: @haberman, @deannagarcia

### rules_android
Maintainers: @ted-xie, @ahumesky

### rules_buf
Maintainers: @srikrsna-buf

### rules_coreutils
Maintainers: @mattyclarkson

### rules_diff
Maintainers: @mattyclarkson

### rules_foreign_cc
Maintainers: @jsharpe

### rules_python
Maintainers: @rickeylev, @aignas

### rules_python_gazelle_plugin
Maintainers: @rickeylev, @aignas

### libpfm
Maintainers: TBD

### libzmq
Maintainers: TBD

### rules_erlang
Maintainers: TBD

Contributor guide

Open the contributing guide

Research direction

Start with the Bazel Automatic Exec Groups documentation, especially the potential-problems section, then run the BCR Bazel Compatibility Test with --incompatible_auto_exec_groups enabled. Review the reported failures across the listed modules and migrate the affected configurations until the compatibility test passes.

Written by the indexing model from the issue text.

Assessment

Domain
build-system
Issue type
Refactor
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.