Skip to content

Let a promotion into main pass the DCO check - #776

Merged
rocklambros merged 2 commits into
integrationfrom
fix/dco-promotion-heads
Dec 3, 2026
Merged

rocklambros merged 2 commits into
integrationfrom
fix/dco-promotion-heads

Conversation

@rocklambros

Copy link
Copy Markdown
Collaborator

What changed

The dco check is required on main. It skips integration and main as head branches, because their commits already landed and can't be rewritten. Since PR #464 (only promotions reach main), a full promotion comes from a promote/full-* branch instead. So PR #775, the 0.1.6 promotion, failed dco on an old Dependabot squash commit, ee93575 ("deps: bump pytest from 9.1.1 to 9.2.0").

dco.yml now also skips a same-repository promote/* head, but only when the pull request targets main. There, base-branch-guard is required, and it holds a promote/* head to integration's content. A branch named promote/x opened into integration is checked like any other.

adapter_tests.yml ran a second job named dco, with no skips at all. main requires 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, and dco.yml already checks every pull request, so it is removed.

tests/test_dco_workflow.py pins the skip rule and checks that only dco.yml reports the check.

Which issue does this implement

None. This unblocks PR #775 (promote integration to main for release 0.1.6).

  • This is an editorial correction (typo, grammar, link, formatting) with no change in
    meaning, so it needs no issue

Base branch

  • integration. Every pull request targets integration, documentation included.
    Only a promotion targets main (see CONTRIBUTING.md)
  • release/0.2, because this changes normative specification text, a schema, or a
    conformance requirement for 0.2, or carries out such a change in code

Type of change

  • Specification change (schema, hooks, events, AgBOM)
  • Reference implementation or adapter
  • Documentation
  • Tooling or CI
  • Governance (licensing, security policy, contributor docs)

I tested this

  • I synced my branch with the base branch before opening this
  • uv run pytest -v passes on my machine
  • uv run mkdocs build --strict passes on my machine

I 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

  • Commits are signed off with git commit -s (required by the DCO)
  • Prose follows STYLE.md
  • No secrets, tokens, or internal URLs in the diff

Security

  • This change has no security impact

The DCO check now skips one more kind of pull request: a promote/* branch into main, where base-branch-guard limits the content to what integration already holds.

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
rocklambros merged commit 7d7c7f2 into integration Dec 3, 2026
5 checks passed
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.

1 participant