Skip to content

bazel: Remove WORKSPACE - #47217

Merged
phlax merged 2 commits into
envoyproxy:mainfrom
phlax:bzlmod-ws-rm
Sep 4, 2026
Merged

phlax merged 2 commits into
envoyproxy:mainfrom
phlax:bzlmod-ws-rm

Conversation

@phlax

@phlax phlax commented Sep 4, 2026

Copy link
Copy Markdown
Member

No description provided.

@phlax
phlax marked this pull request as draft September 4, 2026 20:19
@repokitteh-read-only repokitteh-read-only Bot added the deps Approval required for changes to Envoy's external dependencies label Sep 4, 2026
@repokitteh-read-only

Copy link
Copy Markdown

CC @envoyproxy/dependency-shepherds: Your approval is needed for changes made to (bazel/.*repos.*\.bzl)|(bazel/dependency_imports\.bzl)|(api/bazel/.*\.bzl)|(.*/requirements\.txt)|(.*\.patch).
envoyproxy/dependency-shepherds assignee is @jwendell

🐱

Caused by: #47217 was opened by phlax.

see: more, trace.

@phlax phlax changed the title bazel: Remove WORKSPACE [WIP] bazel: Remove WORKSPACE Sep 4, 2026
@phlax
phlax force-pushed the bzlmod-ws-rm branch 4 times, most recently from f44c10f to e7485a0 Compare September 4, 2026 21:19
Signed-off-by: Ryan Northey <[email protected]>
@phlax phlax changed the title [WIP] bazel: Remove WORKSPACE bazel: Remove WORKSPACE Sep 4, 2026
@phlax
phlax marked this pull request as ready for review September 4, 2026 21:46
Signed-off-by: Ryan Northey <[email protected]>
@repokitteh-read-only repokitteh-read-only Bot removed the deps Approval required for changes to Envoy's external dependencies label Sep 4, 2026
@phlax
phlax enabled auto-merge (squash) September 4, 2026 21:53
@phlax
phlax merged commit b6e7e12 into envoyproxy:main Sep 4, 2026
33 checks passed
jwendell added a commit to jwendell/envoy that referenced this pull request Sep 8, 2026
The presubmit selects affected tests with bazel query/rdeps. Since the
WORKSPACE removal (envoyproxy#47217) that query aborted with exit 7, failing the job
for reasons unrelated to the PR under test.

- Use cquery rather than query. It resolves against the configured graph,
  so unresolvable untaken select() branches (e.g. @@perfetto+//:perfetto)
  are never visited. Pass --config=openssl so selection matches the tests
  actually run.
- Import rules_fuzzing_oss_fuzz, referenced by //bazel:fuzzing_engine.
- Fail loudly when the merge-base diff fails, rather than selecting no
  tests and reporting a green job that tested nothing.

Co-authored-by: Copilot <[email protected]>
Signed-off-by: Jonh Wendell <[email protected]>
jwendell added a commit that referenced this pull request Sep 8, 2026
The presubmit selects affected tests with bazel query/rdeps. Since the
WORKSPACE removal (#47217) that query aborted with exit 7, failing the
job
for reasons unrelated to the PR under test.

- Use cquery rather than query. It resolves against the configured
graph,
so unresolvable untaken select() branches (e.g. @@perfetto+//:perfetto)
are never visited. Pass --config=openssl so selection matches the tests
  actually run.
- Import rules_fuzzing_oss_fuzz, referenced by //bazel:fuzzing_engine.
- Fail loudly when the merge-base diff fails, rather than selecting no
  tests and reporting a green job that tested nothing.

Signed-off-by: Jonh Wendell <[email protected]>
Co-authored-by: Copilot <[email protected]>
phlax added a commit to phlax/envoy that referenced this pull request Nov 18, 2026
The dependency bot (`ci/dependency/update.sh`) bumped a `bazel_dep`
and left the `release_date` of the dependency in `deps.yaml` as it
was: the hook that updated it went with WORKSPACE (envoyproxy#47217). Since the
release dates check came back (envoyproxy#48705) that fails the `deps` precheck
of the bump.

`//tools/dependency:release_dates` (envoyproxy/toolshed#5626) fixes
the dates in `bazel/deps.yaml` and `api/bazel/deps.yaml` with the ones
that the checker looks up. `deps.update` and `registry` now run it for
the modules that they update. Only those are looked up, as each is a
request to GitHub, and a module with no metadata is skipped.

Signed-off-by: Ryan Northey <[email protected]>
phlax added a commit to phlax/envoy that referenced this pull request Nov 18, 2026
The dependency bot (`ci/dependency/update.sh`) bumped a `bazel_dep`
and left the `release_date` of the dependency in `deps.yaml` as it
was: the hook that updated it went with WORKSPACE (envoyproxy#47217). Since the
release dates check came back (envoyproxy#48705) that fails the `deps` precheck
of the bump.

`//tools/dependency:release_dates` (envoyproxy/toolshed#5626) fixes
the dates in `bazel/deps.yaml` and `api/bazel/deps.yaml` with the ones
that the checker looks up. `deps.update` and `registry` now run it for
the modules that they update. Only those are looked up, as each is a
request to GitHub, and a module with no metadata is skipped.

Signed-off-by: Ryan Northey <[email protected]>
phlax added a commit that referenced this pull request Nov 18, 2026
The dependency bot (`ci/dependency/update.sh`) bumps a `bazel_dep` and
leaves the `release_date` of the dependency in `deps.yaml` as it was.
The hook that updated it for the WORKSPACE updater went with WORKSPACE
(#47217), so every bump since has had a stale date (#49388 needed six
fixed by hand), and now that the release dates check is back (#48705)
the `deps` precheck of a bump fails on it.

This adds `//tools/dependency:release_dates` (`release_date_updater`,
envoyproxy/toolshed#5626 and envoyproxy/toolshed#5630), which fixes the
dates in `bazel/deps.yaml` and `api/bazel/deps.yaml` with the ones that
the checker (`//tools/dependency:check`) looks up:

```console
$ bazel run //tools/dependency:release_dates -- gperftools
Checking the release dates of: gperftools
bazel/deps.yaml: gperftools 2026-03-06 -> 2026-10-21
```

`deps.update` (the bot's `bazel` task) and `registry` with named modules
(its `registry` task) now run it for the modules they update. Only those
are looked up, as each is a request to GitHub, a module can be named as
the module (`msgpack-c`) where its metadata key differs (`msgpack-cxx`),
and a module with no metadata is skipped. It needs the `GITHUB_TOKEN`
that the workflow already gives the update.

Not covered: `registry` with `all`, where the updated modules are not
known at that point; their dates are left to the `deps` check.

A dependency with metadata in both files (`envoy_toolshed`) is fixed in
both: the check reads the API file's date.

Risk Level: Low (dependency tooling only)
Testing: The `bazel` task was run from a branch with these changes
against a pre-release of the toolshed module ([run
44363626118](https://github.com/envoyproxy/envoy/actions/runs/44363626118),
`gperftools msgpack-c`, no PR): the diff it produced has the
`gperftools` date fixed alongside the `MODULE.bazel` and lockfile
changes. There the step was in `do_ci.sh`; it is now in `deps_update`.
The `registry` path, and the fix of a dependency in both files (toolshed
0.5.26.envoy, #49411), have not been run.
Docs Changes: `ci/README.md`
Release Notes: N/A

Signed-off-by: Ryan Northey <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants