Skip to content

Add Just Command Runner and Fix Default Recipe Conflicts - #25

Merged
c-vigo merged 4 commits into
devfrom
c-vigo/issue1
Jan 9, 2026
Merged

c-vigo merged 4 commits into
devfrom
c-vigo/issue1

Conversation

@c-vigo

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

Copy link
Copy Markdown
Contributor

Pull Request

Description

This PR adds the just command runner (v1.46.0) to the container image and fixes multiple default recipe conflicts in the justfile architecture. It includes comprehensive test coverage for just installation and recipe execution.

Related Issue(s)

Closes #1

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

  • Just command runner installation (v1.46.0)

    • Added just installation to Containerfile using official install script
    • Installed to /usr/local/bin/just for system-wide access
    • Updated EXPECTED_VERSIONS in test_image.py to verify version 1.46.0
  • Test coverage for just

    • Added test_just_installed() and test_just_version() in test_image.py to verify installation
    • Added integration tests in test_integration.py:
      • test_just_default() - Tests default recipe execution
      • test_just_help() - Tests help command
      • test_just_info() - Tests info command
      • test_just_pytest() - Tests test-pytest recipe
    • Tests handle variable whitespace in just output formatting using regex patterns

Fixed

  • Multiple default recipe conflicts
    • Moved help command to main justfile to serve as the default recipe
    • Removed default commands from justfile.project and justfile.base to prevent conflicts
    • Ensures consistent behavior across the layered justfile architecture

Documentation

  • Updated CHANGELOG.md with all changes in the [Unreleased] section
  • Documented just installation and test additions
  • Documented justfile default recipe fix

Testing

  • Tests pass locally (just test)
  • Image tests pass (just test-image)
  • Integration tests pass (just test-integration)
  • Registry tests pass (just test-registry) (if applicable)
  • Manual testing performed (describe below)

Manual Testing Details

  • Verified just is installed and accessible in container
  • Verified just --version returns 1.46.0
  • Verified default recipe (just without arguments) shows help
  • Verified just help, just info, and just test-pytest commands work correctly
  • Verified tests handle variable whitespace in just output formatting

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

Files Changed:

  • Containerfile - Added just installation
  • assets/workspace/justfile - Added help as default recipe
  • assets/workspace/.devcontainer/justfile.base - Removed default recipe
  • assets/workspace/justfile.project - Removed default recipe
  • tests/test_image.py - Added just installation and version tests
  • tests/test_integration.py - Added just recipe integration tests (172 lines added)
  • CHANGELOG.md - Documented all changes

Impact:

  • Positive: Users now have just available in the container for build automation
  • Positive: Consistent default recipe behavior across all justfiles
  • Positive: Comprehensive test coverage ensures just works correctly
  • Breaking: None - this is an additive change

c-vigo added 4 commits January 8, 2026 13:05
- 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.
@c-vigo c-vigo added this to the 0.3 milestone Jan 9, 2026
@c-vigo
c-vigo requested a review from gerchowl January 9, 2026 09:45
@c-vigo c-vigo self-assigned this Jan 9, 2026
@c-vigo c-vigo added the bug Something isn't working label Jan 9, 2026
@c-vigo
c-vigo removed the request for review from gerchowl January 9, 2026 13:18
@c-vigo
c-vigo merged commit 0cf36bf into dev Jan 9, 2026
@c-vigo
c-vigo deleted the c-vigo/issue1 branch January 9, 2026 13:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant