Skip to content

Fetch submodule tags in release workflow test job#75

Merged
chris-colinsky merged 1 commit into
mainfrom
fix/release-workflow-fetch-spec-tags
May 26, 2026
Merged

Fetch submodule tags in release workflow test job#75
chris-colinsky merged 1 commit into
mainfrom
fix/release-workflow-fetch-spec-tags

Conversation

@chris-colinsky
Copy link
Copy Markdown
Member

@chris-colinsky chris-colinsky commented May 26, 2026

Summary

  • Mirror the git -C openarmature-spec fetch --tags step from ci.yml into release.yml's test job. actions/checkout's submodule clone is shallow and doesn't carry tags; the bundled-AGENTS.md drift test calls into scripts/build_agents_md.py, which asserts the submodule HEAD is AT a v* tag.
  • Discovered when the v0.9.0-rc1 tag pushed to test the rc-first flow: the release workflow's test job failed with submodule HEAD ... is not at a v* tag even though the submodule was pinned at v0.22.1.
  • Build / publish / github-release jobs don't regenerate AGENTS.md (they package the committed file via hatchling), so the fix is scoped to the test job only.

Test plan

  • CI green on this PR
  • After merge: delete and re-push the v0.9.0-rc1 tag from main; release workflow's test job runs to completion and dispatches to TestPyPI

actions/checkout's submodule clone is shallow and doesn't carry
tags. scripts/build_agents_md.py asserts the spec submodule HEAD
is AT a v* tag (used by tests/test_agents_md_drift.py).
ci.yml has had this step since PR #72; release.yml was missed,
so the v0.9.0-rc1 tag's test job failed on the drift check.

Build / publish jobs don't regenerate AGENTS.md (they package
the committed file via hatchling), so the fix is only needed
in the test job.
Copilot AI review requested due to automatic review settings May 26, 2026 02:40
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Updates the release workflow’s test job to fetch tags for the openarmature-spec submodule so the AGENTS.md drift test can correctly verify the submodule HEAD is pinned to a v* tag (matching CI behavior).

Changes:

  • Add a “Fetch submodule tags” step to release.yml’s test job (git -C openarmature-spec fetch --tags).
  • Document why the step is needed and that it mirrors the existing ci.yml behavior.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@chris-colinsky chris-colinsky merged commit a53b401 into main May 26, 2026
6 checks passed
@chris-colinsky chris-colinsky deleted the fix/release-workflow-fetch-spec-tags branch May 26, 2026 02:41
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.

2 participants