Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions .github/workflows/ci-coach.lock.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions .github/workflows/copilot-token-audit.lock.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions .github/workflows/copilot-token-optimizer.lock.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions .github/workflows/daily-fact.lock.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions .github/workflows/daily-hippo-learn.lock.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions .github/workflows/daily-issues-report.lock.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions .github/workflows/daily-multi-device-docs-tester.lock.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions .github/workflows/daily-news.lock.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions .github/workflows/docs-noob-tester.lock.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions .github/workflows/go-logger.lock.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions .github/workflows/hourly-ci-cleaner.lock.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions .github/workflows/jsweep.lock.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions .github/workflows/mcp-inspector.lock.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions .github/workflows/smoke-test-tools.lock.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions .github/workflows/technical-doc-writer.lock.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions .github/workflows/unbloat-docs.lock.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 10 additions & 5 deletions pkg/workflow/runtime_setup_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -296,11 +296,12 @@ func TestGenerateRuntimeSetupSteps(t *testing.T) {
requirements: []RuntimeRequirement{
{Runtime: findRuntimeByID("node"), Version: "20"},
},
expectSteps: 1,
expectSteps: 2, // setup + copy to standard system path for AWF chroot mode
checkContent: []string{
"Setup Node.js",
"actions/setup-node@",
"node-version: '20'",
"Copy node to standard system path for AWF sandbox",
},
},
{
Expand Down Expand Up @@ -381,20 +382,22 @@ func TestGenerateRuntimeSetupSteps(t *testing.T) {
{Runtime: findRuntimeByID("node"), Version: "24"},
{Runtime: findRuntimeByID("python"), Version: "3.12"},
},
expectSteps: 2,
expectSteps: 3, // node setup + node system path + python setup
checkContent: []string{
"Setup Node.js",
"Setup Python",
"Copy node to standard system path for AWF sandbox",
},
},
{
name: "uses default versions",
requirements: []RuntimeRequirement{
{Runtime: findRuntimeByID("node"), Version: ""},
},
expectSteps: 1,
expectSteps: 2, // setup + copy to standard system path for AWF chroot mode
checkContent: []string{
"node-version: '24'",
"Copy node to standard system path for AWF sandbox",
},
},
{
Expand Down Expand Up @@ -818,12 +821,13 @@ func TestGenerateRuntimeSetupStepsWithIfCondition(t *testing.T) {
IfCondition: "hashFiles('package.json') != ''",
},
},
expectSteps: 1,
expectSteps: 2, // setup + copy to standard system path for AWF chroot mode
checkContent: []string{
"Setup Node.js",
"actions/setup-node@",
"node-version: '20'",
"if: hashFiles('package.json') != ''",
"Copy node to standard system path for AWF sandbox",
},
},
{
Expand All @@ -845,14 +849,15 @@ func TestGenerateRuntimeSetupStepsWithIfCondition(t *testing.T) {
IfCondition: "hashFiles('package.json') != ''",
},
},
expectSteps: 4, // go setup + GOROOT capture + python setup + node setup
expectSteps: 5, // go setup + GOROOT capture + python setup + node setup + node copy
checkContent: []string{
"Setup Go",
"if: hashFiles('go.mod') != ''",
"Setup Python",
"if: hashFiles('requirements.txt') != ''",
"Setup Node.js",
"if: hashFiles('package.json') != ''",
"Copy node to standard system path for AWF sandbox",
},
},
}
Expand Down
Loading