Skip to content

deps/ci: Add back release dates checker - #48705

Merged
phlax merged 3 commits into
envoyproxy:mainfrom
phlax:ci-release-dates
Nov 18, 2026
Merged

phlax merged 3 commits into
envoyproxy:mainfrom
phlax:ci-release-dates

Conversation

@phlax

@phlax phlax commented Oct 25, 2026

Copy link
Copy Markdown
Member

No description provided.

@github-actions
github-actions Bot requested a balanced review from Copilot October 25, 2026 18:28
@phlax phlax changed the title [WIP] deps/ci: Add back release dates checker deps/ci: Add back release dates checker Oct 25, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 Changes recommended

Deleted metadata entries omit still-resolved dependencies from reporting and release validation.

1 open issue
What changed in this PR

Restores dependency release-date and release validation in Envoy’s CI by adapting resolved Bazel module metadata for the existing checker.

Changes:

  • Fetch registry source metadata and normalize checker inputs, with a new regression test.
  • Restore release checks in the deps CI target and document the token requirement.
  • Refresh dependency metadata and module-extension lockfile digests.
File Description
tools/​dependency/​check_dependencies_test.py Tests metadata shaping and archive URL normalization.
tools/​dependency/​BUILD Adds checker-compatible metadata and wires the regression test.
MODULE.bazel.lock Refreshes root module-extension digests.
mobile/​MODULE.bazel.lock Refreshes mobile module-extension digests.
docs/​MODULE.bazel.lock Refreshes documentation module-extension digests.
ci/​README.md Documents restored checks and token requirement.
ci/​do_ci.sh Runs release validation during dependency checks.
bazel/​tests/​external/​MODULE.bazel.lock Refreshes external-workspace extension digests.
bazel/​tests/​codeql/​MODULE.bazel.lock Refreshes CodeQL-workspace extension digests.
bazel/​extensions.bzl Downloads and includes registry source metadata.
bazel/​deps.yaml Revises release dates and removes metadata entries.
api/​bazel/​deps.yaml Updates toolshed and xDS release dates.

Review effort: Balanced

Comment thread bazel/deps.yaml Resolved

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 Changes recommended

Dependency metadata ordering fails the existing CI check before the restored release checks can run.

1 open issue
1 resolved since last review

Review effort: Balanced

Comment thread bazel/deps.yaml
license: "zlib"
license_url: "https://github.com/zlib-ng/zlib-ng/blob/{version}/LICENSE.md"

yq_bzl:

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Already addressed: yq_bzl sits between yaml-cpp and zlib-ng in the current head. (bot assisted)

@phlax
phlax force-pushed the ci-release-dates branch 2 times, most recently from 61eed2c to cdf8dfb Compare October 25, 2026 19:00
@phlax phlax changed the title deps/ci: Add back release dates checker [WIP] deps/ci: Add back release dates checker Oct 25, 2026
@phlax
phlax marked this pull request as draft October 25, 2026 19:01
@phlax
phlax requested a balanced review from Copilot October 26, 2026 19:21

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🔵 Needs a closer look

The restored mandatory CI gate introduces registry downloads and GitHub checks whose successful execution remains unverified.

2 open issues

Review effort: Balanced

Comment thread ci/do_ci.sh
registry_check
echo "Check bazel lockfiles ..."
lockfiles_check
echo "Check dependency release dates/releases ..."

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Fixed: ci/do_ci.sh deps now runs //tools/dependency:check_dependencies_test before the checker. (bot assisted)

@phlax
phlax force-pushed the ci-release-dates branch 2 times, most recently from be6a302 to 5982658 Compare November 18, 2026 11:08
@phlax phlax changed the title [WIP] deps/ci: Add back release dates checker deps/ci: Add back release dates checker Nov 18, 2026
@phlax
phlax marked this pull request as ready for review November 18, 2026 11:10
Comment thread tools/dependency/BUILD Outdated

# Metadata-only repositories absent from the resolved module graph have no
# version to check.
# TODO: Skip nested archive tags until envoy.dependency.check can parse nested tag names.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

TODO needs an owner, ideally with a tracking issue, since this silently skips checks for nested tags (e.g. vectorscan).

Suggested change
# TODO: Skip nested archive tags until envoy.dependency.check can parse nested tag names.
# TODO(phlax): Skip nested archive tags until envoy.dependency.check can parse nested tag names.

jwendell
jwendell previously approved these changes Nov 18, 2026
@phlax
phlax enabled auto-merge (squash) November 18, 2026 14:27
@phlax
phlax merged commit 8babfab into envoyproxy:main Nov 18, 2026
27 checks passed
phlax added a commit to phlax/envoy that referenced this pull request Nov 18, 2026
Signed-off-by: Ryan Northey <[email protected]>
Backport note (release/v1.40): the lockfiles are regenerated for this branch
(`./ci/do_ci.sh lockfiles`) rather than picked.

(cherry picked from commit 8babfab)
phlax added a commit to phlax/envoy that referenced this pull request Nov 18, 2026
Signed-off-by: Ryan Northey <[email protected]>
Backport note (release/v1.40): the lockfiles are regenerated for this branch
(`./ci/do_ci.sh lockfiles`) rather than picked. The release dates are this
branch's where its versions differ from `main`'s: `benchmark` and `quiche` keep
the dates they had, and `rules_apple`, `rules_cc`, `rules_foreign_cc` and
`shellcheck`, which the check reports here, are corrected.

(cherry picked from commit 8babfab)
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]>
phlax added a commit to phlax/envoy that referenced this pull request Nov 19, 2026
Signed-off-by: Ryan Northey <[email protected]>
Backport note (release/v1.40): the lockfiles are regenerated for this branch
(`./ci/do_ci.sh lockfiles`) rather than picked. The release dates are this
branch's where its versions differ from `main`'s: `benchmark` and `quiche` keep
the dates they had, and `rules_apple`, `rules_cc`, `rules_foreign_cc` and
`shellcheck`, which the check reports here, are corrected.

(cherry picked from commit 8babfab)
phlax added a commit that referenced this pull request Nov 19, 2026
Signed-off-by: Ryan Northey <[email protected]>
Backport note (release/v1.40): the lockfiles are regenerated for this branch
(`./ci/do_ci.sh lockfiles`) rather than picked. The release dates are this
branch's where its versions differ from `main`'s: `benchmark` and `quiche` keep
the dates they had, and `rules_apple`, `rules_cc`, `rules_foreign_cc` and
`shellcheck`, which the check reports here, are corrected.

(cherry picked from commit 8babfab)
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.

3 participants