Skip to content
Merged
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
12 changes: 12 additions & 0 deletions .github/workflows/validation-no-codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,16 @@ on:
required: false
type: string
default: task-result
e2e-shard-list:
description: Comma-separated E2E shard indices passed to the test lane's matrix, e.g. "1,2".
required: false
type: string
default: '1'
e2e-total-shards:
description: Total E2E shard count passed to the repository script as E2E_TOTAL_SHARDS.
required: false
type: string
default: '1'
secrets:
TURBO_TOKEN:
required: false
Expand Down Expand Up @@ -119,6 +129,8 @@ jobs:
# smoke, and performance lanes stay in the audit and scheduled lanes.
unit-only: ${{ inputs.mode == 'fast' || inputs.mode == 'release' }}
artifact-prefix: ${{ inputs.artifact-prefix }}
e2e-shard-list: ${{ inputs.e2e-shard-list }}
e2e-total-shards: ${{ inputs.e2e-total-shards }}
secrets:
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}

Expand Down
15 changes: 15 additions & 0 deletions test/task-receipt-artifacts.test.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -147,3 +147,18 @@ test('actual optional discovery writes an explicit skip receipt at the exact upl
assert.equal(report.task, 'e2e')
assert.deepEqual(report.commands, [])
})

test('validation orchestrators declare and forward the e2e shard inputs', () => {
for (const file of ['validation.yml', 'validation-no-codeql.yml']) {
const source = readFileSync(join(root, '.github/workflows', file), 'utf8')
for (const name of ['e2e-shard-list', 'e2e-total-shards']) {
assert.match(
source,
new RegExp(`^ ${name}:\\n(?:[^\\n]*\\n){3} default: '1'`, 'm'),
`${file} must declare ${name}: rendered callers always pass it, and an undeclared reusable input fails the call at startup`
)
const testBlock = source.split('\n test:\n')[1].split(/\n [a-z0-9-]+:\n/)[0]
assert.match(testBlock, new RegExp(`${name}: \\$\\{\\{ inputs\\.${name} \\}\\}`))
}
}
})
Loading