Skip to content

feat(ci): wire cross-repo smoke dispatch and release gate - #249

Merged
gerchowl merged 25 commits into
devfrom
feature/173-wire-cross-repo-dispatch-release-gate
Mar 11, 2026
Merged

gerchowl merged 25 commits into
devfrom
feature/173-wire-cross-repo-dispatch-release-gate

Conversation

@c-vigo

@c-vigo c-vigo commented Mar 9, 2026

Copy link
Copy Markdown
Contributor

Description

This PR submits the full feature/173-wire-cross-repo-dispatch-release-gate branch into dev.
It wires RC publish to trigger smoke tests in vig-os/devcontainer-smoke-test, documents the manual smoke gate before final release, and includes related CI/workspace hardening changes present on this branch.

Type of Change

  • feat -- New feature
  • fix -- Bug fix
  • docs -- Documentation only
  • chore -- Maintenance task (deps, config, etc.)
  • refactor -- Code restructuring (no behavior change)
  • test -- Adding or updating tests
  • ci -- CI/CD pipeline changes
  • build -- Build system or dependency changes
  • revert -- Reverts a previous commit
  • style -- Code style (formatting, whitespace)

Modifiers

  • Breaking change (!) -- This change breaks backward compatibility

Changes Made

  • release.yml: add candidate-only cross-repo repository_dispatch to smoke-test repo, including scoped GitHub App token generation and non-blocking behavior.
  • docs/RELEASE_CYCLE.md: add manual RC smoke gate phase, update release lifecycle flow, and document RELEASE_APP installation requirement on smoke-test repo.
  • CHANGELOG.md: add unreleased entries for RC smoke dispatch/release gate and related branch changes.
  • Workflow and template sync updates across root and workspace template:
    • codeql.yml, scorecard.yml, sync-issues.yml, ci.yml, ci-container.yml, release.yml
    • workspace devcontainer/justfile wiring and manifest/settings sync updates.
  • justfile.gh / assets/workspace/.devcontainer/justfile.gh: remove broken gh-issues --help availability guard (the CLI has no --help flag, so the check always failed).
  • tests/test_image.py: add gh-issues to the parametrized command -v callable check; simplify test to use name-only parametrization.
  • tests/test_integration.py: remove TestGhIssuesSmoke class (always skipped — no repo context in test workspace; binary availability now covered by image tests).

Changelog Entry

Added

  • VS Code settings synced via manifest
    • Added .vscode/settings.json to scripts/manifest.toml to keep editor settings consistent across root repo and workspace template
  • Cross-repo smoke-test dispatch on RC publish (#173)
    • RC candidate publishes now trigger repository_dispatch in vig-os/devcontainer-smoke-test with the RC tag payload
    • Release process now includes a documented manual smoke gate before running final publish

Fixed

  • Broken gh-issues --help guard in justfile recipe (#173)
    • gh-issues CLI has no --help flag, so the availability check always failed even when the binary was installed
    • Removed the broken guard; binary availability is now verified by the image test suite

Changed

  • Workspace helper CLI checks and sidecar runtime fallback (#173)
    • Sidecar recipes now support both podman and docker runtimes for listing, starting, and executing sidecar commands
    • Label taxonomy guidance clarifies that setup-labels is provided by devcontainer bootstrap tooling
  • CodeQL PR trigger no longer blocks merge protection on non-Python changes (#247)
    • Removed pull_request paths filter from codeql.yml in both root and workspace template so CodeQL always runs for PRs targeting protected branches and uploads SARIF results

Testing

  • Tests pass locally (just test)
  • Manual testing performed (describe below)

Manual Testing Details

  • Verified smoke-test listener behavior in vig-os/devcontainer-smoke-test via dispatch runs:
    • Success path (rc_tag=latest) completed successfully
    • Missing rc_tag failed validation as expected
    • Invalid image tag (does-not-exist-tag) failed container pull and summary as expected

Checklist

  • My code follows the project's style guidelines
  • I have performed a self-review of my code
  • I have commented my code, particularly in hard-to-understand areas
  • I have updated the documentation accordingly (edit docs/templates/, then run just docs)
  • I have updated CHANGELOG.md in the [Unreleased] section (and pasted the entry above)
  • My changes generate no new warnings or errors
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published

Additional Notes

N/A

Refs: #173, #247

c-vigo and others added 14 commits March 9, 2026 11:00
- Added .vscode/settings.json to scripts/manifest.toml for consistent editor settings

- Ensures both root repo and workspace template keep settings in sync
When synced to assets/workspace/, the Python interpreter path is
transformed from the host venv (${workspaceFolder}/.venv/bin/python3) to
the container venv (/opt/venv/bin/python3).

Refs: #173
## Description

Remove the `pull_request` `paths` filter from CodeQL workflows so PRs
with non-Python changes still run CodeQL and upload SARIF results,
preventing merge protection from getting stuck waiting for missing
results.

## Type of Change

- [ ] `feat` -- New feature
- [x] `fix` -- Bug fix
- [ ] `docs` -- Documentation only
- [ ] `chore` -- Maintenance task (deps, config, etc.)
- [ ] `refactor` -- Code restructuring (no behavior change)
- [ ] `test` -- Adding or updating tests
- [ ] `ci` -- CI/CD pipeline changes
- [ ] `build` -- Build system or dependency changes
- [ ] `revert` -- Reverts a previous commit
- [ ] `style` -- Code style (formatting, whitespace)

### Modifiers

- [ ] Breaking change (`!`) -- This change breaks backward compatibility

## Changes Made

- `.github/workflows/codeql.yml`
- Removed `pull_request.paths` (`'**.py'`) so CodeQL always runs for PRs
to `dev`, `release/**`, and `main`
- `assets/workspace/.github/workflows/codeql.yml`
  - Mirrored the same trigger change in the workspace template copy
- `CHANGELOG.md`
  - Added an Unreleased `### Fixed` entry for issue `#247`

## Changelog Entry

### Fixed

- **CodeQL PR trigger no longer blocks merge protection on non-Python
changes** ([#247](#247))
- Removed `pull_request` `paths` filter from `codeql.yml` in both root
and workspace template so CodeQL always runs for PRs targeting protected
branches and uploads SARIF results

## Testing

- [ ] Tests pass locally (`just test`)
- [ ] Manual testing performed (describe below)

### Manual Testing Details

N/A

## Checklist

- [x] My code follows the project's style guidelines
- [x] I have performed a self-review of my code
- [ ] I have commented my code, particularly in hard-to-understand areas
- [ ] I have updated the documentation accordingly (edit
`docs/templates/`, then run `just docs`)
- [x] I have updated `CHANGELOG.md` in the `[Unreleased]` section (and
pasted the entry above)
- [x] My changes generate no new warnings or errors
- [ ] I have added tests that prove my fix is effective or that my
feature works
- [ ] New and existing unit tests pass locally with my changes
- [ ] Any dependent changes have been merged and published

## Additional Notes

This branch is based on
`feature/173-wire-cross-repo-dispatch-release-gate`.

Refs: #247
## Description

Remove the `pull_request` `paths` filter from CodeQL workflows so PRs
with non-Python changes still run CodeQL and upload SARIF results,
preventing merge protection from getting stuck waiting for missing
results.

## Type of Change

- [ ] `feat` -- New feature
- [x] `fix` -- Bug fix
- [ ] `docs` -- Documentation only
- [ ] `chore` -- Maintenance task (deps, config, etc.)
- [ ] `refactor` -- Code restructuring (no behavior change)
- [ ] `test` -- Adding or updating tests
- [ ] `ci` -- CI/CD pipeline changes
- [ ] `build` -- Build system or dependency changes
- [ ] `revert` -- Reverts a previous commit
- [ ] `style` -- Code style (formatting, whitespace)

### Modifiers

- [ ] Breaking change (`!`) -- This change breaks backward compatibility

## Changes Made

- `.github/workflows/codeql.yml`
- Removed `pull_request.paths` (`'**.py'`) so CodeQL always runs for PRs
to `dev`, `release/**`, and `main`
- `assets/workspace/.github/workflows/codeql.yml`
  - Mirrored the same trigger change in the workspace template copy
- `CHANGELOG.md`
  - Added an Unreleased `### Fixed` entry for issue `#247`

## Changelog Entry

### Fixed

- **CodeQL PR trigger no longer blocks merge protection on non-Python
changes** ([#247](#247))
- Removed `pull_request` `paths` filter from `codeql.yml` in both root
and workspace template so CodeQL always runs for PRs targeting protected
branches and uploads SARIF results

## Testing

- [ ] Tests pass locally (`just test`)
- [ ] Manual testing performed (describe below)

### Manual Testing Details

N/A

## Checklist

- [x] My code follows the project's style guidelines
- [x] I have performed a self-review of my code
- [ ] I have commented my code, particularly in hard-to-understand areas
- [ ] I have updated the documentation accordingly (edit
`docs/templates/`, then run `just docs`)
- [x] I have updated `CHANGELOG.md` in the `[Unreleased]` section (and
pasted the entry above)
- [x] My changes generate no new warnings or errors
- [ ] I have added tests that prove my fix is effective or that my
feature works
- [ ] New and existing unit tests pass locally with my changes
- [ ] Any dependent changes have been merged and published

## Additional Notes

This branch is based on
`feature/173-wire-cross-repo-dispatch-release-gate`.

Refs: #247
@c-vigo
c-vigo requested a review from gerchowl as a code owner March 9, 2026 18:47
@c-vigo c-vigo self-assigned this Mar 9, 2026
@c-vigo
c-vigo requested a review from Copilot March 9, 2026 18:48

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

This PR wires RC (release candidate) publishing to trigger cross-repo smoke tests in vig-os/devcontainer-smoke-test, documents a manual “smoke gate” before final release, and syncs related CI/workspace template hardening changes.

Changes:

  • Add candidate-only cross-repo repository_dispatch from release.yml to the smoke-test repo (non-blocking, GitHub App token).
  • Document the manual RC smoke gate in docs/RELEASE_CYCLE.md and record the changes in CHANGELOG.md.
  • Harden/sync workspace templates: CI workflow pins/behavior, helper CLI checks, sidecar runtime fallback, and image tests covering gh-issues.

Reviewed changes

Copilot reviewed 26 out of 26 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
tests/test_integration.py Removes a gh-issues smoke test that was effectively non-actionable/always-skipped in the integration environment.
tests/test_image.py Adds gh-issues to image-level “command is callable” checks; simplifies parametrization.
scripts/manifest.toml Syncs .vscode/settings.json into workspace template with path transform; updates hook-removal list.
justfile.worktree Adds fast-fail checks for required helper CLIs used by worktree automation.
justfile.gh Adjusts gh-issues recipe execution style (script-style).
docs/RELEASE_CYCLE.md Adds the manual RC smoke gate phase and documents dispatch behavior + app install requirement.
assets/workspace/justfile.project Updates workspace uv sync behavior to include all groups.
assets/workspace/.vscode/settings.json Adds workspace VS Code settings (synced from root via manifest).
assets/workspace/.pre-commit-config.yaml Removes taplo hooks from workspace template config.
assets/workspace/.github/workflows/sync-issues.yml Updates pinned action SHAs in the workspace template workflow.
assets/workspace/.github/workflows/scorecard.yml Updates pinned actions/checkout SHA in workspace template.
assets/workspace/.github/workflows/release.yml Updates pinned actions/checkout SHA in workspace template.
assets/workspace/.github/workflows/codeql.yml Removes PR paths filter (avoid merge-protection deadlock); updates checkout pin in workspace template.
assets/workspace/.github/workflows/ci.yml Adds workflow_call support and updates action pins in workspace template CI.
assets/workspace/.github/workflows/ci-container.yml Adds workflow_call + image-tag input to run CI against an RC tag in a containerized workflow.
assets/workspace/.github/label-taxonomy.toml Clarifies provenance of setup-labels helper command.
assets/workspace/.devcontainer/justfile.worktree Adds helper CLI availability checks (devcontainer variant).
assets/workspace/.devcontainer/justfile.gh Adjusts gh-issues recipe execution style (devcontainer variant).
assets/workspace/.devcontainer/justfile.devc Adds docker fallback for sidecar management recipes (podman/docker).
assets/workspace/.devcontainer/README.md Documents required helper CLIs for certain just recipes.
CHANGELOG.md Adds unreleased entries describing RC smoke dispatch + manual gate and related hardening.
.github/workflows/sync-issues.yml Updates pinned action SHAs in root workflow.
.github/workflows/scorecard.yml Updates pinned actions/checkout SHA in root workflow.
.github/workflows/release.yml Adds cross-repo dispatch token generation + repository dispatch trigger for RC publishes (non-blocking).
.github/workflows/codeql.yml Removes PR paths filter (avoid merge-protection deadlock); updates checkout pin.
.github/label-taxonomy.toml Clarifies provenance of setup-labels helper command.

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

c-vigo and others added 11 commits March 9, 2026 20:54
## Description

Running `just` with no arguments no longer shows available recipes
because the `lint` recipe was placed before the `default` recipe in the
justfile. This PR moves `default` back to the first position and adds a
regression test.

## Type of Change

- [ ] `feat` -- New feature
- [x] `fix` -- Bug fix
- [ ] `docs` -- Documentation only
- [ ] `chore` -- Maintenance task (deps, config, etc.)
- [ ] `refactor` -- Code restructuring (no behavior change)
- [x] `test` -- Adding or updating tests
- [ ] `ci` -- CI/CD pipeline changes
- [ ] `build` -- Build system or dependency changes
- [ ] `revert` -- Reverts a previous commit
- [ ] `style` -- Code style (formatting, whitespace)

### Modifiers

- [ ] Breaking change (`!`) -- This change breaks backward compatibility

## Changes Made

- `justfile` — reordered recipes so `default` appears before `lint`,
restoring `just` with no arguments listing available recipes
- `tests/bats/just.bats` — new bats test asserting `just` output starts
with "Available recipes"
- `CHANGELOG.md` — added Fixed entry for #254

## Changelog Entry

### Fixed

- **`just` default recipe hidden by lint recipe**
([#254](#254))
- The `default` recipe must appear before any other recipe in the
justfile; `lint` was placed first, shadowing the recipe listing
- Moved `default` recipe above `lint` to restore `just` with no
arguments showing available recipes

## Testing

- [x] Tests pass locally (`just test`)
- [ ] Manual testing performed (describe below)

### Manual Testing Details

N/A

## Checklist

- [x] My code follows the project's style guidelines
- [x] I have performed a self-review of my code
- [ ] I have commented my code, particularly in hard-to-understand areas
- [ ] I have updated the documentation accordingly (edit
`docs/templates/`, then run `just docs`)
- [x] I have updated `CHANGELOG.md` in the `[Unreleased]` section (and
pasted the entry above)
- [x] My changes generate no new warnings or errors
- [x] I have added tests that prove my fix is effective or that my
feature works
- [x] New and existing unit tests pass locally with my changes
- [ ] Any dependent changes have been merged and published

## Additional Notes

N/A

Refs: #254
## Description

Introduce a committed root `.vig-os` config file as the single source of
truth for devcontainer versioning in workspace assets. This removes
version discovery via `docker-compose.yml` parsing and routes version
flow through `DEVCONTAINER_VERSION`.

## Type of Change

- [x] `feat` -- New feature
- [ ] `fix` -- Bug fix
- [ ] `docs` -- Documentation only
- [ ] `chore` -- Maintenance task (deps, config, etc.)
- [ ] `refactor` -- Code restructuring (no behavior change)
- [x] `test` -- Adding or updating tests
- [ ] `ci` -- CI/CD pipeline changes
- [ ] `build` -- Build system or dependency changes
- [ ] `revert` -- Reverts a previous commit
- [ ] `style` -- Code style (formatting, whitespace)

### Modifiers

- [ ] Breaking change (`!`) -- This change breaks backward compatibility

## Changes Made

- Add `assets/workspace/.vig-os` with
`DEVCONTAINER_VERSION={{IMAGE_TAG}}`
- Update `assets/workspace/.devcontainer/docker-compose.yml`
- switch image tag from `{{IMAGE_TAG}}` to
`${DEVCONTAINER_VERSION:-latest}`
- Update `assets/workspace/.devcontainer/scripts/initialize.sh`
  - source root `.vig-os`
  - write/update `DEVCONTAINER_VERSION` in `.devcontainer/.env`
- Update `assets/workspace/.devcontainer/scripts/version-check.sh`
  - replace `docker-compose.yml` grep parsing with `.vig-os` sourcing
- Update tests
- `tests/test_integration.py`: add `.vig-os` coverage, update image
assertion, add missing `.vig-os` graceful-failure test
  - `tests/test_image.py`: include `.vig-os` in expected workspace files
- Update `CHANGELOG.md` (`## Unreleased > Added`) with issue #257 entry

## Changelog Entry

### Added
- **Root `.vig-os` config file as devcontainer version SSoT**
([#257](#257))
- Add committed `assets/workspace/.vig-os` key/value config with
`DEVCONTAINER_VERSION` as the canonical version source
- Update `docker-compose.yml`, `initialize.sh`, and `version-check.sh`
to consume `.vig-os`-driven version flow
- Extend integration/image tests for `.vig-os` presence and graceful
handling when `.vig-os` is missing

## Testing

- [x] Tests pass locally (`just test`)

## Checklist

- [x] My code follows the project's style guidelines
- [x] I have performed a self-review of my code
- [ ] I have commented my code, particularly in hard-to-understand areas
- [ ] I have updated the documentation accordingly (edit
`docs/templates/`, then run `just docs`)
- [x] I have updated `CHANGELOG.md` in the `[Unreleased]` section (and
pasted the entry above)
- [x] My changes generate no new warnings or errors
- [x] I have added tests that prove my fix is effective or that my
feature works
- [ ] New and existing unit tests pass locally with my changes
- [ ] Any dependent changes have been merged and published

## Additional Notes

- This PR is intentionally based on
`feature/173-wire-cross-repo-dispatch-release-gate` (issue #173 branch),
not `dev`.

Refs: #257
@gerchowl
gerchowl merged commit 9fdf45d into dev Mar 11, 2026
12 checks passed
@gerchowl
gerchowl deleted the feature/173-wire-cross-repo-dispatch-release-gate branch March 11, 2026 13:17
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.

3 participants