Skip to content

ci: consolidate workspace CI and reuse image resolver - #328

Merged
c-vigo merged 3 commits into
devfrom
feature/327-consolidate-workspace-ci
Mar 16, 2026
Merged

c-vigo merged 3 commits into
devfrom
feature/327-consolidate-workspace-ci

Conversation

@c-vigo

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

Copy link
Copy Markdown
Contributor

Description

Consolidates workspace CI templates to a single container-based ci.yml workflow, removes obsolete workspace CI assets, and aligns downstream smoke-test/release-cycle documentation with the new single-workflow contract.

Follow-up review fixes are included to keep workflow behavior consistent: a reusable resolve-image composite action is introduced and reused by both workspace ci.yml and release.yml, and workspace release tests now run in the containerized model.

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

  • assets/workspace/.github/workflows/ci.yml
    • Replaced legacy/bare-runner flow with the canonical container-based CI flow
    • Switched inline image-tag resolution to ./.github/actions/resolve-image
    • Kept lint/test container execution and summary aggregation; adjusted header comment to match actual test behavior
  • assets/workspace/.github/actions/resolve-image/action.yml
    • Added reusable composite action to resolve image tag from image-tag input, .vig-os DEVCONTAINER_VERSION, or latest
    • Added image accessibility validation via docker manifest inspect
  • assets/workspace/.github/workflows/release.yml
    • Added image resolution in validate job and exposed it through outputs
    • Converted finalized test job to run inside ghcr.io/vig-os/devcontainer:${{ needs.validate.outputs.image_tag }}
    • Removed bare-runner setup-python/setup-uv bootstrap and added safe.directory fix for container checkout
  • Removed obsolete workspace CI assets:
    • assets/workspace/.github/workflows/ci-container.yml
    • assets/workspace/.github/actions/setup-env/action.yml
  • Updated downstream docs/templates to reference single CI workflow:
    • assets/smoke-test/.github/workflows/repository-dispatch.yml
    • assets/smoke-test/README.md
    • assets/workspace/docs/container-ci-quirks.md
    • docs/RELEASE_CYCLE.md
  • Updated CHANGELOG.md Unreleased entry for [CHORE] Consolidate workspace CI to ci workflow and remove obsolete setup-env action #327 to match final implementation details

Changelog Entry

Changed

  • Workspace CI templates now use a single container-based workflow (#327)
    • Consolidate assets/workspace/.github/workflows/ci.yml as the canonical CI workflow and remove the obsolete ci-container.yml template
    • Extract reusable assets/workspace/.github/actions/resolve-image and run workspace release tests in the same containerized workflow model
    • Update smoke-test and release-cycle documentation to reference the single CI workflow contract

Testing

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

Manual Testing Details

N/A

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: #327

@c-vigo c-vigo self-assigned this Mar 16, 2026
@c-vigo
c-vigo requested a review from Copilot March 16, 2026 12:34

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

Consolidates the workspace CI templates around a single container-based workflow and introduces a reusable image-tag resolver so both workspace CI and release tests consistently run inside the devcontainer image.

Changes:

  • Replaced the workspace ci.yml with the canonical container-based workflow and removed the obsolete container/bare-runner variants.
  • Added a composite resolve-image action and reused it from both workspace ci.yml and release.yml.
  • Updated smoke-test templates/docs and release-cycle docs to reflect the single-workflow CI contract.

Reviewed changes

Copilot reviewed 10 out of 10 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
docs/RELEASE_CYCLE.md Updates RC smoke-gate instructions to reference the single downstream CI workflow.
assets/workspace/docs/container-ci-quirks.md Refreshes container CI notes to match the consolidated workflow model.
assets/workspace/.github/workflows/release.yml Runs finalized release tests inside the resolved devcontainer image and removes bare-runner bootstrapping.
assets/workspace/.github/workflows/ci.yml Becomes the canonical container-based CI workflow; adds image resolution and runs lint/test in container.
assets/workspace/.github/workflows/ci-container.yml Removes the now-obsolete container CI workflow template.
assets/workspace/.github/actions/setup-env/action.yml Removes the obsolete bare-runner bootstrap composite action from workspace templates.
assets/workspace/.github/actions/resolve-image/action.yml Adds reusable image-tag resolution + GHCR manifest accessibility validation.
assets/smoke-test/README.md Aligns smoke-test repo docs with the single ci.yml workflow expectation.
assets/smoke-test/.github/workflows/repository-dispatch.yml Updates comments to reflect the single CI workflow on the deploy PR.
CHANGELOG.md Records the consolidation and new resolver action under Unreleased.

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

@c-vigo
c-vigo enabled auto-merge March 16, 2026 13:02
@c-vigo
c-vigo merged commit 9bb4d64 into dev Mar 16, 2026
12 checks passed
@c-vigo
c-vigo deleted the feature/327-consolidate-workspace-ci branch March 16, 2026 13:09
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