Overview
Update the pre-commit verification script (scripts/pre-commit.sh) to run GitHub runner-compatible E2E tests instead of the full E2E test suite. This enables GitHub Copilot agents to successfully execute pre-commit checks in GitHub Actions environments where LXD VM network connectivity is limited.
Specification
See detailed specification: docs/issues/update-precommit-script-for-github-runner-compatible-e2e-tests.md
Problem Statement
The pre-commit script currently runs e2e-tests-full which:
- Requires LXD VMs with full network connectivity
- Cannot run on GitHub Actions runners due to known networking limitations with nested virtualization
- Prevents GitHub Copilot agents from executing pre-commit checks
Solution
Replace the single e2e-tests-full step with two GitHub runner-compatible tests:
e2e-provision-and-destroy-tests - Infrastructure lifecycle testing
e2e-config-tests - Software installation and configuration testing
Implementation Plan
Phase 1: Update Pre-Commit Script (30 minutes)
Phase 2: Documentation Updates (15 minutes)
Phase 3: Validation (15 minutes)
Acceptance Criteria
Quality Checks:
Task-Specific Criteria:
Testing Criteria:
Related
Time Estimate
Total: 1-1.5 hours
- Script modification: 30 minutes
- Documentation updates: 15 minutes
- Testing and validation: 15 minutes
- Buffer for edge cases: 15 minutes
Overview
Update the pre-commit verification script (
scripts/pre-commit.sh) to run GitHub runner-compatible E2E tests instead of the full E2E test suite. This enables GitHub Copilot agents to successfully execute pre-commit checks in GitHub Actions environments where LXD VM network connectivity is limited.Specification
See detailed specification: docs/issues/update-precommit-script-for-github-runner-compatible-e2e-tests.md
Problem Statement
The pre-commit script currently runs
e2e-tests-fullwhich:Solution
Replace the single
e2e-tests-fullstep with two GitHub runner-compatible tests:e2e-provision-and-destroy-tests- Infrastructure lifecycle testinge2e-config-tests- Software installation and configuration testingImplementation Plan
Phase 1: Update Pre-Commit Script (30 minutes)
Phase 2: Documentation Updates (15 minutes)
docs/contributing/commit-process.mdto document the split E2E test execution.github/copilot-instructions.mdif neededPhase 3: Validation (15 minutes)
./scripts/pre-commit.shlocally to verify both E2E tests executeAcceptance Criteria
Quality Checks:
./scripts/pre-commit.shscripts/pre-commit.shTask-Specific Criteria:
Testing Criteria:
./scripts/pre-commit.shcompletes successfullyRelated
Time Estimate
Total: 1-1.5 hours