feat: activate strategic workflows with workspace isolation
Some checks failed
audit / audit (push) Has been skipped
ci-cd / build (push) Has been skipped
ci / build (push) Has been skipped
AITBC CLI Level 1 Commands Test / test-cli-level1 (18) (push) Failing after 3s
AITBC CLI Level 1 Commands Test / test-cli-level1 (20) (push) Failing after 6s
autofix / fix (push) Has been skipped
python-tests / test (push) Successful in 14s
python-tests / test-specific (push) Has been skipped
security-scanning / audit (push) Failing after 5s
test / test (push) Has been skipped
ci-cd / deploy (push) Has been skipped
ci / deploy (push) Has been skipped
Some checks failed
audit / audit (push) Has been skipped
ci-cd / build (push) Has been skipped
ci / build (push) Has been skipped
AITBC CLI Level 1 Commands Test / test-cli-level1 (18) (push) Failing after 3s
AITBC CLI Level 1 Commands Test / test-cli-level1 (20) (push) Failing after 6s
autofix / fix (push) Has been skipped
python-tests / test (push) Successful in 14s
python-tests / test-specific (push) Has been skipped
security-scanning / audit (push) Failing after 5s
test / test (push) Has been skipped
ci-cd / deploy (push) Has been skipped
ci / deploy (push) Has been skipped
WORKFLOW ACTIVATION: Enable critical CI/CD workflows without conflicts Activated Workflows: ✅ security-scanning.yml - Security vulnerability scanning ✅ cli-level1-tests.yml - CLI command testing (Node.js 18/20) ✅ python-tests.yml - Python testing (already active, now isolated) Key Improvements: 1. Workspace Isolation: - python-tests.yml: /opt/gitea-runner/python-workspace - security-scanning.yml: /opt/gitea-runner/security-workspace - cli-level1-tests.yml: /opt/gitea-runner/cli-workspace 2. Conflict Resolution: - Eliminated workspace wars between workflows - Each workflow has isolated workspace directory - No more 'rm -rf /opt/gitea-runner/workspace' conflicts 3. Strategic Coverage: - Security scanning on every push - CLI testing on CLI changes (path-restricted) - Python testing on main/develop pushes and PRs - Daily CLI tests (6 AM UTC schedule) 4. Trigger Optimization: - security-scanning: push, workflow_dispatch - cli-level1-tests: push (cli/**), PR, daily, workflow_dispatch - python-tests: push (main/develop), PR, workflow_dispatch Expected Behavior: - Push to main/develop: All 3 workflows trigger - Push to cli/**: All 3 workflows trigger (CLI path-specific) - Pull Request: python-tests + cli-level1-tests trigger - Manual dispatch: Any workflow can be triggered individually This provides comprehensive CI/CD coverage with zero conflicts and optimal resource utilization for the AITBC blockchain platform.
This commit is contained in:
@@ -17,8 +17,7 @@ on:
|
||||
|
||||
jobs:
|
||||
test-cli-level1:
|
||||
runs-on: debian
|
||||
if: false
|
||||
runs-on: debian
|
||||
|
||||
strategy:
|
||||
matrix:
|
||||
@@ -31,10 +30,10 @@ jobs:
|
||||
echo "Current PWD: $(pwd)"
|
||||
echo "Forcing absolute workspace path..."
|
||||
|
||||
# Clean and create absolute workspace
|
||||
rm -rf /opt/gitea-runner/workspace
|
||||
mkdir -p /opt/gitea-runner/workspace
|
||||
cd /opt/gitea-runner/workspace
|
||||
# Clean and create isolated workspace
|
||||
rm -rf /opt/gitea-runner/cli-workspace
|
||||
mkdir -p /opt/gitea-runner/cli-workspace
|
||||
cd /opt/gitea-runner/cli-workspace
|
||||
|
||||
echo "Workspace PWD: $(pwd)"
|
||||
echo "Cloning repository..."
|
||||
|
||||
Reference in New Issue
Block a user