Repository navigation
ci: allow same-PR unfreeze in the freeze check - #22015
Conversation
Removing a frozen entry required its own PR that left the file unchanged, with the authorized change (e.g. replacing the file with a bridge to the extracted package) landing in a later PR. That gap left the path unprotected on main between the two merges (#21979 then #21725), risking drift or lost work. An entry removed from the merge-result manifest now unfreezes its path in the same PR, so the manifest removal and the bridge can land together. Base rules still block updating a hash in the same PR to lift a freeze: only removal does. Manifest edits remain gated by the CODEOWNERS entry on /frozen-paths.txt (@DataDog/apm-core-python).
Codeowners resolved asResolved from the full PR diff against |
Dependency direction analysis
|
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
More details
Same-PR unfreezing requires removing the manifest entry. Retained entries still enforce their base hashes, and newly added freezes remain checked against the merge result.
🤖 Bits Code Review · Commit f57186c
🎉 All green!🧪 All tests passed 🔗 Commit SHA: f57186c | Docs | View more details | Give us feedback! |
Description
The freeze check enforced the
frozen-paths.txtmanifest at both the PR base and the merge result, so a PR could not lift its own freeze: unfreezing required one PR that removed the entry while leaving the file untouched, and a second, later PR with the authorized change (e.g. replacing the file with a bridge to the extracted package — #21979 then #21725). That gap left the path unprotected on main between the two merges, risking drift or lost work.An entry removed from the merge-result manifest now unfreezes its path in the same PR: the manifest removal and the change it authorizes (bridge code) can land together. What stays enforced:
/frozen-paths.txt(@DataDog/apm-core-python), which is the human authorization for a same-PR unfreeze.Unfrozen paths are reported as
::notice::annotations for an audit trail of what a PR unfreezes.Testing
freeze-check.yml) against synthetic base/merge git states — 12 scenarios, all passing:scripts/lint checks— all passing.Risks
The freeze check no longer structurally prevents a PR author from removing an entry and changing the file in the same PR. Authorization relies on the required CODEOWNERS review of
/frozen-paths.txtfrom @DataDog/apm-core-python (branch protection) — same trust model as manifest edits in general.Additional Notes
No release note: CI metadata only, no customer-visible behavior (
changelog/no-changelog).