Repository navigation
ci: add smoke dispatch source metadata contract - #324
Merged
Merged
Conversation
Include source repository, workflow, run, sha, and correlation metadata in candidate repository_dispatch payloads and surface normalized source context in the smoke-test receiver summary. Refs: #289
Add BATS assertions that release dispatch payloads keep source metadata fields and that the smoke-test dispatch workflow keeps source summary/fallback logic. Refs: #289
Describe required and optional repository_dispatch payload keys, backward compatibility behavior, and the future correlation-id callback path while recording the change under Unreleased. Refs: #289
There was a problem hiding this comment.
Pull request overview
Adds a sender/receiver metadata contract for candidate smoke-test repository_dispatch events to improve traceability across repos, while keeping backward compatibility with the existing client_payload.tag requirement.
Changes:
- Extend
release.ymlcandidate dispatch payload with source run metadata and acorrelation_id. - Update the smoke-test receiver workflow template to parse/normalize optional metadata (including deriving
source_run_url) and write it to the workflow summary. - Add BATS regression checks and document the dispatch payload schema + future callback direction.
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
.github/workflows/release.yml |
Adds source context fields + correlation_id to the cross-repo repository_dispatch payload for candidate releases. |
assets/smoke-test/.github/workflows/repository-dispatch.yml |
Extracts optional source metadata into outputs, derives run URL when missing, and emits normalized context to $GITHUB_STEP_SUMMARY. |
docs/RELEASE_CYCLE.md |
Documents required vs optional dispatch payload keys, compatibility behavior, and a future callback path. |
tests/bats/just.bats |
Adds static regression checks ensuring sender/receiver include the new metadata and summary hooks. |
CHANGELOG.md |
Adds an Unreleased entry for issue #289 describing the new traceability metadata. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Use the same n/a fallback format for Tag in the source context summary so failed or missing validate outputs produce consistent diagnostics. Refs: #289
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
Add traceability metadata to candidate
repository_dispatchevents sent tovig-os/devcontainer-smoke-test, and make the smoke-test receiver summarize source context with backward-compatible parsing. This also documents the dispatch payload contract and future callback direction forpublish-candidate.Type of Change
feat-- New featurefix-- Bug fixdocs-- Documentation onlychore-- Maintenance task (deps, config, etc.)refactor-- Code restructuring (no behavior change)test-- Adding or updating testsci-- CI/CD pipeline changesbuild-- Build system or dependency changesrevert-- Reverts a previous commitstyle-- Code style (formatting, whitespace)Modifiers
!) -- This change breaks backward compatibilityChanges Made
.github/workflows/release.ymlevent_type,source_repo,source_workflow,source_run_id,source_run_url,source_sha, and deterministiccorrelation_idclient_payload[tag]as required contract keyassets/smoke-test/.github/workflows/repository-dispatch.ymlsource_run_urlwhen absent butsource_repoandsource_run_idare present$GITHUB_STEP_SUMMARYtests/bats/just.batsdocs/RELEASE_CYCLE.mdCHANGELOG.mdChangelog Entry
Changed
correlation_idpublish-candidateTesting
just test)Manual Testing Details
npx bats tests/bats/just.batsChecklist
docs/templates/, then runjust docs)CHANGELOG.mdin the[Unreleased]section (and pasted the entry above)Additional Notes
No gating callback is implemented in this PR; callback wiring is intentionally documented-only for a follow-up that can report smoke-test completion back to
publish-candidate.Refs: #289