Repository navigation
fix(release): carry plan-limited promotion approval rules into hotfix - #2009
Merged
Merged
Conversation
Omit test_shipped_workflows[False-fork], [False-same-repo], [False-push], [True-fork], [True-same-repo], and [True-push], plus test_workflow_mutations[fork]. These seven cases require dev-only runner-class outputs and fork routing absent from release/1.18.2; they return with the next regular release from dev. Retain the workflow traversal as a helper for the existing reusable mutation case. Keep every helper-behaviour test and both helper implementations unchanged; add no conditional skips or synthetic dev fixtures. Refs: #1851
Keep hotfix release history only in the root changelog and its generated devcontainer mirror. Restore the consumer template to its empty skeleton, as the existing smoke-deploy BATS and integration tests require. Refs: #1851
Omit test_workflow_mutations[reusable] as the eighth dev-only case: the release branch raises the same ValueError before applying its mutation, so its pytest.raises assertion cannot verify the mutation. Remove the now-unused workflow traversal helper without changing helper behavior tests. The complete omitted set is test_shipped_workflows[False-fork], test_shipped_workflows[False-same-repo], test_shipped_workflows[False-push], test_shipped_workflows[True-fork], test_shipped_workflows[True-same-repo], test_shipped_workflows[True-push], test_workflow_mutations[fork], and test_workflow_mutations[reusable]. These require dev-only runner-class outputs and fork routing absent from release/1.18.2. They return with the next regular release from dev. Keep both helper implementations unchanged. Refs: #1851
gerchowl
force-pushed
the
bugfix/1851-hotfix-promote-rules
branch
from
November 3, 2026 11:41
3c4ca2f to
ce50566
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Carry the six reviewed #2002 commits into
release/1.18.2to fix promotion on plan-limited repositories. Ruleset requirements remain authoritative; only a recognized plan-limit 403 uses the configurable approval fallback. Count distinct, current-head approvals and keep retry diagnostics out of API responses.Type of Change
fix-- Bug fixtest-- Adding or updating testsci-- CI/CD pipeline changesModifiers
!)Changes Made
f64c773136,6456ab9844,80dc0ab1bf,2e9f2fff65,048f98e005,f27d031bdb. Verified againstgh pr view 2002 --json commits; no merge or sync commits carried.48ea8d5e:tests/github_expression.py,tests/workflow_replay.py,tests/test_github_expression.py, andtests/test_workflow_replay.py. Both implementations and the replay unit tests remain byte-identical to dev. Also carry the unchanged test-only CI prerequisite fromd14b03fe: fetch tag1.18.0before replay tests in.github/actions/test-project/action.yml. No infrastructure changelog entries carried.test_shipped_workflows[False-fork],[False-same-repo],[False-push],[True-fork],[True-same-repo],[True-push],test_workflow_mutations[fork], andtest_workflow_mutations[reusable]. They require dev-only runner-class outputs and fork routing absent from this release branch. They return when the next regular release from dev lands. The reusable mutation also raises the same ValueError without mutation on this branch, so it was vacuous; remove it and the now-unused traversal helper. Every helper-behavior test is retained; no conditional skips or synthetic dev fixtures.DEVKIT_CI_LANE_SIZESwhen resolving the toolchain key-list conflict. Put the changelog under[1.18.2] - TBDand regenerate the.devcontainermirror. Keep the consumer root changelog template as the blank skeleton required by its existing smoke-deploy tests.Changelog Entry
The hotfix-specific brief requires
[1.18.2] - TBDinstead of Unreleased:DEVKIT_RELEASE_REQUIRED_APPROVALSfor the 403 fallback; solo consumers can set 0, while real ruleset requirements retain precedence.Testing
Latest combined check: 434 passed, exit 0:
Rebased onto
d1888f82(origin/release/1.18.2, including #2008). Preserve both carry entries under one### Fixedlist and regenerate the changelog mirror. All 16 checks are green once50566e792c05113421c052c635ba5ab67a6820, including Test Summary (CI run).gh pr checks 2009 --watchexited 0.nix develop -c uv run --with pytest-xdist pytest tests/test_scaffold_drift.py tests/test_workflow_replay.py -n 2 --basetemp=$HOME/.cache/devkit-pytest/1851-carry-r3-final).nix develop -c bats --filter 'smoke deploy (preserves|bootstraps)' tests/bats/init-workspace.bats).1.18.0tag prerequisite (project tests). Restore the blank skeleton and carry dev's tag-fetch step; both root causes are addressed without changing helper behavior.git diff --checkand byte comparison of both helper implementations againstorigin/dev: exit 0.nix developwith hooks enabled. Cherry-pick attribution retained above the finalRefs:line as required by commit validation.Manual Testing Details
Reviewed all carried runtime files against
origin/dev; differences are release-baseline features intentionally outside this carry:release-required-approvals.shpromote-release.yml.devkit-resolvepath/working-directory or runner-class inputs/outputs; existing hosted downstream job runners. Approval behavior matches dev. These belong to #1860, #1863 and the runner-class changes.setup-devkit-toolchain/action.ymlresolve-toolchain/action.yml.vig-ostemplateinit-workspace.shChecklist
Additional Notes
Target is
release/1.18.2. No merge or release dispatch is part of this carry. Container and nix-eval suites are left to CI, as required by the carry brief. Isolated local pytest directories are removed after use.Refs: #1851