Repository navigation
Let a promotion into main pass the DCO check - #776
Merged
Merged
Conversation
main requires the dco check. It skips integration and main as heads, because their commits already landed and cannot be rewritten. Since PR #464, promotions come from promote/* branches instead, so the 0.1.6 promotion failed on a Dependabot squash commit from before the release. dco.yml now skips same-repository promote/* heads too, which base-branch-guard holds to integration's content. adapter_tests.yml ran a second job named dco with no skips at all, which also failed every Dependabot pull request. It is removed, so dco.yml is the only job that reports the check. Tests pin both. Signed-off-by: Rock Lambros <rock@rockcyber.com>
base-branch-guard holds a promote/* head to integration's content only when it targets main. A branch named promote/x opened into integration must still pass the DCO check. Signed-off-by: Rock Lambros <rock@rockcyber.com>
rocklambros
requested review from
GangGreenTemperTatum,
Lrd0036,
afogel,
almogbhl,
artmaro,
bar-capsule,
e2hln,
fewdisc,
mamicidal and
sclintonowasp
as code owners
December 3, 2026 14:00
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.
What changed
The
dcocheck is required onmain. It skipsintegrationandmainas head branches, because their commits already landed and can't be rewritten. Since PR #464 (only promotions reachmain), a full promotion comes from apromote/full-*branch instead. So PR #775, the 0.1.6 promotion, faileddcoon an old Dependabot squash commit, ee93575 ("deps: bump pytest from 9.1.1 to 9.2.0").dco.ymlnow also skips a same-repositorypromote/*head, but only when the pull request targetsmain. There,base-branch-guardis required, and it holds apromote/*head tointegration's content. A branch namedpromote/xopened intointegrationis checked like any other.adapter_tests.ymlran a second job nameddco, with no skips at all.mainrequires the check by that name, so the second job would block every promotion on its own, and it also failed every Dependabot pull request, since a bot can't sign off. Nothing depended on it, anddco.ymlalready checks every pull request, so it is removed.tests/test_dco_workflow.pypins the skip rule and checks that onlydco.ymlreports the check.Which issue does this implement
None. This unblocks PR #775 (promote
integrationtomainfor release 0.1.6).meaning, so it needs no issue
Base branch
integration. Every pull request targetsintegration, documentation included.Only a promotion targets
main(see CONTRIBUTING.md)release/0.2, because this changes normative specification text, a schema, or aconformance requirement for 0.2, or carries out such a change in code
Type of change
I tested this
uv run pytest -vpasses on my machineuv run mkdocs build --strictpasses on my machineI ran the workflow, governance and base-branch guard tests (277 pass) and the new DCO tests. zizmor reports no findings in either workflow. No docs changed.
Checklist
git commit -s(required by the DCO)Security
The DCO check now skips one more kind of pull request: a
promote/*branch intomain, wherebase-branch-guardlimits the content to whatintegrationalready holds.