Skip to content

Release Candidate 0.2.1 - #26

Merged
c-vigo merged 31 commits into
mainfrom
dev
Jan 26, 2026
Merged

c-vigo merged 31 commits into
mainfrom
dev

Conversation

@c-vigo

@c-vigo c-vigo commented Jan 9, 2026 •

Copy link
Copy Markdown
Contributor

Description

This PR introduces Release 0.2.1 of the vigOS Development Environment, featuring major CI/CD automation improvements, enhanced testing infrastructure, and streamlined development workflows.

Key highlights:

  • GitHub Actions workflows for automated container image publishing and issue/PR syncing
  • Modular build process with separated preparation and build steps
  • Enhanced test suite with utility function tests and improved organization
  • Development workflow improvements including simplified contribution guidelines
  • Code cleanup removing deprecated registry testing infrastructure

Related Issue(s)

Type of Change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update
  • Refactoring (no functional changes)
  • Test updates

Changes Made

Added

  • cargo-binstall in Containerfile
    • Install via official install script; binaries in /root/.cargo/bin with ENV PATH set
    • Version check in tests/test_image.py
  • typstyle linting
    • Install via cargo-binstall in Containerfile
    • Version check in test suite
    • Pre-commit hook configuration for typstyle
  • Just command runner installation and version verification
    • Added installation of the latest version of just (1.46.0) in the Containerfile
    • Added tests to verify just installation and version in test_image.py
    • Added integration tests for just recipes (test_just_default, test_just_help, test_just_info, test_just_pytest)
  • GitHub Actions workflow for multi-architecture container image publishing (.github/workflows/publish-container-image.yml)
    • Automated build and publish workflow triggered on semantic version tags (vX.Y.Z)
    • Multi-architecture support (amd64, arm64) with parallel builds on native runners
    • Image testing before push: runs pytest tests/test_image.py against built images
    • Manual dispatch support for testing workflow changes without pushing images (default version: 99.0.1)
    • Comprehensive error handling and verification steps
    • OCI-standard labels via docker/metadata-action
    • Build log artifacts for debugging (always uploaded for manual dispatch and on failure)
    • Multi-architecture manifest creation for automatic platform selection
    • Centralized version extraction job for reuse across build and manifest jobs
    • Concurrency control to prevent duplicate builds
    • Timeout protection (60 minutes for builds, 10 minutes for manifest)
  • GitHub Actions workflow for syncing issues and PRs (.github/workflows/sync-issues.yml)
    • Automated sync of GitHub issues and PRs to markdown files in .github_data/
    • Runs on schedule (daily), manual trigger, issue events, and PR events
    • Smart branch selection: commits to main when PRs are merged into main, otherwise commits to dev
    • Cache-based state management to track last sync timestamp
    • Force update option for manual workflow dispatch
  • Enhanced test suite
    • Added utility function tests (tests/test_utils.py) for sed_inplace and update_version_line
    • Improved test organization in justfile with grouped test commands (just test-all, just test-image, just test-utils)
  • Documentation improvements
    • Added workflow status badge to README template showing publish workflow status
    • Simplified contribution guidelines by removing QEMU build instructions

Changed

  • Devcontainer test fixtures (tests/conftest.py)
    • Shared helpers for devcontainer_up and devcontainer_with_sidecar: path resolution, env/SSH, project yaml mount, run up, teardown
    • devcontainer_with_sidecar scope set to session (one bring-up per session for sidecar tests)
    • Cleanup uses same approach as just clean-test-containers (list containers by name, podman rm -f) so stacks are torn down reliably
    • Redundant imports removed; fixture logic simplified for maintainability
  • Build process refactoring
    • Separated build preparation into dedicated prepare-build.sh script
    • Handles template replacement, asset copying, and README version updates
    • Improved build script with --no-cache flag support and better error handling
  • Development workflow streamlining
    • Simplified contribution guidelines: removed QEMU build instructions and registry testing complexity
    • Consolidated test commands in justfile for better clarity
    • Updated development setup instructions to reflect simplified workflow
  • Package versions
    • Updated ruff from 0.14.10 to 0.14.11 in test expectations

Deprecated

Removed

  • Deprecated justfile test recipe and test
    • Removed deprecated test command from justfile
    • Removed deprecated test for default recipe in justfile (TestJustIntegration.test_default_recipe_includes_check)
  • Registry testing infrastructure (moved to GitHub Actions workflow)
    • Removed scripts/push.sh (455 lines) - functionality now in GitHub Actions workflow
    • Removed tests/test_registry.py (788 lines) - registry tests now in CI/CD pipeline
    • Removed scripts/update_readme.py (80 lines) - README updates handled by workflow
    • Removed scripts/utils.sh (75 lines) - utilities consolidated into other scripts
    • Removed just test-registry command - no longer needed with automated workflow

Fixed

  • Justfile default recipe conflict
    • Fixed multiple default recipes issue by moving help command to the main justfile
    • Removed default command from justfile.project and justfile.base to prevent conflicts
    • Updated just recipe tests to handle variable whitespace in command output formatting
  • Invalid docker-compose.project.yaml
    • Added empty services section to docker-compose.project.yaml to fix YAML validation
  • Python import resolution in tests
    • Fixed import errors in tests/test_utils.py by using importlib.util for explicit module loading
    • Improved compatibility with static analysis tools and linters
  • Build script improvements
    • Fixed shellcheck warnings by properly quoting script paths
    • Improved debug output and error messages

Testing

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

Manual Testing Details

  • GitHub Actions workflows: Tested manual dispatch of publish workflow on dev branch

    • Verified workflow runs tests without pushing images
    • Confirmed build logs are uploaded for manual triggers
    • Tested version extraction logic for both tag pushes and manual dispatch
  • Build process: Verified modular build process works correctly

    • Tested prepare-build.sh script independently
    • Confirmed build.sh with --no-cache flag works as expected
  • Test suite: All new utility tests pass

    • tests/test_utils.py covers sed_inplace and update_version_line functions
    • Just recipe tests updated to handle variable whitespace
  • Markdown linting: Verified CHANGELOG.md no longer triggers MD024 warnings

    • Confirmed siblings_only: true configuration works correctly
    • Tested pre-commit hooks run successfully

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 (README.md, CONTRIBUTE.md, etc.)
  • I have updated the CHANGELOG.md in the [Unreleased] section
  • 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

Migration Notes

  • Registry testing: The just test-registry command has been removed. Registry testing is now handled automatically by the GitHub Actions workflow when images are pushed.

  • Build scripts: The build process has been modularized. The prepare-build.sh script now handles all build preparation, while build.sh focuses on the actual image building.

  • GitHub Actions: The new workflows require:

    • GITHUB_TOKEN (automatically provided)
    • Access to GitHub Container Registry (ghcr.io)
    • Native runners for multi-architecture builds (automatically handled by GitHub)

Statistics

  • Files changed: 66 files
  • Additions: +4,204 lines
  • Deletions: -2,660 lines
  • Net change: +1,544 lines

Next Steps

After merging this PR:

  1. Tag the release: git tag v0.2.1
  2. Push the tag: git push origin v0.2.1
  3. The GitHub Actions workflow will automatically build and publish the container image

c-vigo and others added 19 commits January 7, 2026 09:37
…l script

- Changed install script command from `sh` to `bash` for better compatibility.
- Updated URLs in the README and template to point to the correct raw GitHub content.
- Adjusted project path in examples for consistency.
- Added installation of the latest version of just in the Containerfile.
- Updated expected version of just in test_image.py to 1.46.0.
- Added tests to verify the installation and version of just.
- Move help command to the main justfile to behave as default.
- Removed the default command from justfile.project and justfile.base.
- Introduced tests for the just recipes.
Add Just Command Runner and Fix Default Recipe Conflicts
 -Closes #20:  removed the setup.sh script and integrated its functionality into init.sh for a more cohesive setup experience.
- Updated documentation in CONTRIBUTING.md and README.md to reflect changes in setup instructions and command descriptions.
- Updated the justfile for better usability.
- Moved build preparation logic from build.sh to a new prepare-build.sh script for better organization and maintainability.
- Updated build.sh to call the new script, simplifying its structure.
- Added utility functions in utils.py for cross-platform sed operations and README version updates.
- Replaced version, build date, and image size fields in README with a latest version link and release date.
- Added a new function to extract the release date from CHANGELOG.md in generate.py.
- Updated documentation template to use the new release date and URL format.
- Introduced new tests for utility functions in `tests/test_utils.py`, covering functionality from utils.py and generate.py
- Added specific commands in the `justfile` to run utility and version check tests separately, improving test organization.
- Deleted deprecated run_tests.sh
…age publishing

- Closes #10
- Introduced a new workflow to build and publish multi-architecture container images to GitHub Container Registry.
- Implemented jobs for version extraction, architecture-specific image builds, and multi-architecture manifest creation.
- Added concurrency control to prevent race conditions during image pushes.
- Included steps for testing images before pushing and verifying successful image uploads.
- Removed instructions for building images with QEMU from CONTRIBUTING.md and its template, streamlining the setup process.
- Updated the justfile to remove the deprecated test-registry command and consolidated test commands for better clarity.
- Revised README.md to reflect the removal of the test-registry command and updated the development setup instructions for consistency.
…files

- Introduced a new workflow that automatically syncs issues and pull requests to markdown files.
- Runs  on a daily schedule, upon issue or PR events, or upon manual trigger.
- Deleted old .github_data files
- Added exclusion for .github_data directory in pre-commit config.
- Enabled md024 rule in pymarkdown configuration for sibling-only checks (necessary for CHANGELOG.md)
@c-vigo
c-vigo requested a review from gerchowl January 9, 2026 16:40
@c-vigo c-vigo self-assigned this Jan 9, 2026

@gerchowl gerchowl left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

running just test

ends like this

tests/test_version_check.py::TestGracefulFailure::test_missing_docker_compose_silent_failure PASSED
[DEBUG] Cleaning up devcontainer...
[WARNING] devcontainer down failed (non-fatal):
stdout: 
stderr: devcontainer <command>

Commands:
  devcontainer up                   Create and run dev container
  devcontainer set-up               Set up an existing container as a dev container
  devcontainer build [path]         Build a dev container image
  devcontainer run-user-commands    Run user commands
  devcontainer read-configuration   Read configuration
  devcontainer outdated             Show current and available versions
  devcontainer upgrade              Upgrade lockfile
  devcontainer features             Features commands
  devcontainer templates            Templates commands
  devcontainer exec <cmd> [args..]  Execute a command on a running dev container

Options:
  --help     Show help  [boolean]
  --version  Show version number  [boolean]

[email protected] /opt/homebrew/lib/node_modules/@devcontainers/cli

Unknown arguments: workspace-folder, workspaceFolder, config, docker-path, dockerPath, down


[DEBUG] Restored original devcontainer.json


========================================= 146 passed, 2 skipped in 287.93s (0:04:47) ==========================================

so all tests passed, but the clean up seems weird
i.e.
devconainter-cli does not have down?! and the devc is left stale?

gerchowl and others added 7 commits January 23, 2026 16:44
- Move shared functionality of `devcontainer_up` and `devcontainer_with_sidecar` into helper functions.
- Improve performance by setting devcontainer with sidecars once per test session.
- Fix clean-up fixtures
- Removed redundant imports and cleaned up existing fixture logic for better maintainability.
@c-vigo
c-vigo merged commit fae909e into main Jan 26, 2026
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.

deprecate scripts/setup.sh [FEATURE] ci/publish-container-image Implement "just"

2 participants