Skip to content

Feature/use mise tool instead of script calls#85

Draft
nhs-oliverslater wants to merge 3 commits into
mainfrom
feature/use-mise-tool-instead-of-script-calls
Draft

Feature/use mise tool instead of script calls#85
nhs-oliverslater wants to merge 3 commits into
mainfrom
feature/use-mise-tool-instead-of-script-calls

Conversation

@nhs-oliverslater

Copy link
Copy Markdown
Contributor

Description

Context

Type of changes

  • Refactoring (non-breaking change)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would change existing functionality)
  • Bug fix (non-breaking change which fixes an issue)

Checklist

  • I am familiar with the contributing guidelines
  • I have followed the code style of the project
  • I have added tests to cover my changes
  • I have updated the documentation accordingly
  • This PR is a result of pair or mob programming

Sensitive Information Declaration

To ensure the utmost confidentiality and protect your and others privacy, we kindly ask you to NOT including PII (Personal Identifiable Information) / PID (Personal Identifiable Data) or any other sensitive data in this PR (Pull Request) and the codebase changes. We will remove any PR that do contain any sensitive information. We really appreciate your cooperation in this matter.

  • I confirm that neither PII/PID nor sensitive data are included in this PR and the codebase changes.

Implement a hard separation between active referenced tasks and unreferenced starter scripts in mise.toml.

- Split mise tasks into maintained (referenced by automation/docs) and unreferenced (starter/manual)
- Comment out 9 unreferenced tasks: docker-*, tests-* (unit, style, release-config, release-updater)
- Keep terraform-derive-module-constraints and terraform-wrapper active as maintained manual utilities
- Add test-mise-task-surface.sh to enforce that all referenced tasks are active and no commented tasks are referenced
- Update pre-commit hooks to use mise task invocations instead of raw script paths
- Update GitHub Actions composite actions to use mise tasks for consistency
- Update all documentation (README, instruction files, skills, prompts) to reference mise tasks
- Add comprehensive README note on terraform-derive-module-constraints with prerequisites and interpretation guidance
- Fix test expectations: terraform module upgrade (darwin_arm64 platform) and workflow security (mise task references)
- All 6 test suites now pass (161 total test cases)

This ensures the mise task surface remains maintainable and consistent between configuration, automation, and documentation.
- Replaced test-conventional-commit.sh with test-conventional-commit.bats.
- Replaced test-generate-dependabot-config.sh with test-generate-dependabot-config.bats.
- Replaced test-mise-task-surface.sh with test-mise-task-surface.bats.
- Replaced test-module-upgrade.sh with test-module-upgrade.bats.
- Replaced test-tool-version-upgrade.sh with test-tool-version-upgrade.bats.
- Replaced test-workflow-security.sh with test-workflow-security.bats.
- Added shared assertion helpers in tests/test_helper/assertions.bash.
- Updated tests to use new assertion methods and improved structure.
Replace static prerequisite metadata with @name/@url/@purpose/@Prefix annotations in mise.toml and parse them in update-tool-versions.sh.

Also remove mapfile usage for Bash 3.2 compatibility in scripts/tests and regenerate lock/version artefacts and related tests.
@nhs-oliverslater

Copy link
Copy Markdown
Contributor Author

Will need updating AFTER #89 is merged.

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.

1 participant