Repository navigation
feat(ci): add local macOS install matrix harness - #2622
Open
codeforester wants to merge 1 commit into
Open
codeforester wants to merge 1 commit into
codeforester wants to merge 1 commit into
Conversation
Open
4 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds the local macOS install-matrix harness for the four fixed validation cells: source/Homebrew routes crossed with Bash/Zsh shells.
The change includes:
--dry-runand--remove, idempotent state capture, scoped sudoers, and shell restoration;bin/base-matrix, a schema-backed scenario runner that uses non-interactivesudo -n -u <matrix-account> -i, refuses non-matrix users, records the Base commit and host/cell metadata, and redacts persisted output;.ai-contextcommand, workflow, and status updates.Issue
Refs #2559
Validation
env -u BASE_HOME BASE_TEST_PYTHON=/Users/rameshhp/.base.d/base/.venv/bin/python BASE_BASH_LIBS_DIR=/Users/rameshhp/work/base-bash-libs/lib/bash BASE_CLI_SOURCE_DIR=/Users/rameshhp/work/base-cli/lib/python ./bin/base-test --python-only— 1,835 Python tests and 1,061 BATS tests passed./Users/rameshhp/.base.d/base/.venv/bin/python -m pytest -q cli/python/base_matrix/tests/test_runner.py— 6 passed./Users/rameshhp/.base.d/base/.venv/bin/python -m pylint --rcfile=.pylintrc cli/python/base_matrix— clean.shellcheck tools/macos_matrix_admin.sh bin/base-matrix— clean.bash -n tools/macos_matrix_admin.sh bin/base-matrixandgit diff --check— passed.Demo Impact
None. This is local validation tooling and documentation; no product demo behavior changes.
Notes
./tools/macos_matrix_admin.sh --dry-run, then apply it withsudoand run./bin/base-matrix run --scenario tests/fixtures/macos_matrix/trivial.json --cells allon the prepared macOS host. That machine mutation was not performed in this worktree.