Skip to content

Commit c974b65

Browse files
CopilotMossaka
andcommitted
fix: use postprocess script to install awf from source in smoke workflows
Co-authored-by: Mossaka <5447827+Mossaka@users.noreply.github.com>
1 parent e0bf44b commit c974b65

7 files changed

Lines changed: 79 additions & 63 deletions

File tree

.github/workflows/smoke-chroot.lock.yml

Lines changed: 26 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.github/workflows/smoke-chroot.md

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -43,21 +43,6 @@ safe-outputs:
4343
run-success: "**Chroot tests passed!** [{workflow_name}]({run_url}) - All security and functionality tests succeeded."
4444
run-failure: "**Chroot tests failed** [{workflow_name}]({run_url}) {status} - See logs for details."
4545
timeout-minutes: 20
46-
post-steps:
47-
- name: Install awf from source
48-
run: |
49-
echo "=== Installing awf from source code ==="
50-
cd ${{ github.workspace }}
51-
npm ci
52-
npm run build
53-
54-
# Create symlink to override installed binary
55-
sudo ln -sf ${{ github.workspace }}/dist/cli.js /usr/local/bin/awf
56-
sudo chmod +x ${{ github.workspace }}/dist/cli.js
57-
58-
# Verify installation
59-
echo "awf version after source install:"
60-
awf --version || node ${{ github.workspace }}/dist/cli.js --version
6146
steps:
6247
- name: Capture host versions for verification
6348
run: |

.github/workflows/smoke-claude.lock.yml

Lines changed: 26 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.github/workflows/smoke-claude.md

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -48,21 +48,6 @@ safe-outputs:
4848
run-success: "🎬 **THE END** — [{workflow_name}]({run_url}) **MISSION: ACCOMPLISHED!** The hero saves the day! ✨"
4949
run-failure: "💫 **TO BE CONTINUED...** [{workflow_name}]({run_url}) {status}! Our hero faces unexpected challenges..."
5050
timeout-minutes: 10
51-
post-steps:
52-
- name: Install awf from source
53-
run: |
54-
echo "=== Installing awf from source code ==="
55-
cd ${{ github.workspace }}
56-
npm ci
57-
npm run build
58-
59-
# Create symlink to override installed binary
60-
sudo ln -sf ${{ github.workspace }}/dist/cli.js /usr/local/bin/awf
61-
sudo chmod +x ${{ github.workspace }}/dist/cli.js
62-
63-
# Verify installation
64-
echo "awf version after source install:"
65-
awf --version || node ${{ github.workspace }}/dist/cli.js --version
6651
---
6752

6853
# Smoke Test: Claude Engine Validation

.github/workflows/smoke-copilot.lock.yml

Lines changed: 26 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.github/workflows/smoke-copilot.md

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -46,21 +46,6 @@ safe-outputs:
4646
run-failure: "📰 DEVELOPING STORY: [{workflow_name}]({run_url}) reports {status}. Our correspondents are investigating the incident..."
4747
timeout-minutes: 5
4848
strict: true
49-
post-steps:
50-
- name: Install awf from source
51-
run: |
52-
echo "=== Installing awf from source code ==="
53-
cd ${{ github.workspace }}
54-
npm ci
55-
npm run build
56-
57-
# Create symlink to override installed binary
58-
sudo ln -sf ${{ github.workspace }}/dist/cli.js /usr/local/bin/awf
59-
sudo chmod +x ${{ github.workspace }}/dist/cli.js
60-
61-
# Verify installation
62-
echo "awf version after source install:"
63-
awf --version || node ${{ github.workspace }}/dist/cli.js --version
6449
---
6550

6651
# Smoke Test: Copilot Engine Validation

scripts/ci/postprocess-smoke-workflows.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ const repoRoot = path.resolve(__dirname, '../..');
77
const workflowPaths = [
88
path.join(repoRoot, '.github/workflows/smoke-copilot.lock.yml'),
99
path.join(repoRoot, '.github/workflows/smoke-claude.lock.yml'),
10+
path.join(repoRoot, '.github/workflows/smoke-chroot.lock.yml'),
1011
];
1112

1213
// Matches the install step with captured indentation:

0 commit comments

Comments
 (0)