ci(bench): publish the scaled benchmark report as an artifact
The node-24-bench job uploads benchmarks/.dsh-report after the benchmark step, including when a budget assertion fails, so the report the Vitest globalSetup renders survives the runner. #5838 deferred this step because the authoring token had no workflow scope. Refs #5838
This commit is contained in:
1 parent
4c93974d9b
commit
a646dabbe9
2 files changed
+29
No files matched your search
@@ -646,6 +646,23 @@ describe('CI workflow', () => {
|
||||
})
|
||||
})
|
||||
|
||||
it('publishes the scaled benchmark report even when a budget fails', () => {
|
||||
const benchmark = workflowJob(loadWorkflow('.github/workflows/ci.yml'), 'node-24-bench')
|
||||
|
||||
expect(benchmark.steps).toContainEqual({
|
||||
name: 'Upload scaled benchmark report',
|
||||
if: '${{ !cancelled() }}',
|
||||
uses: 'actions/[email protected]',
|
||||
with: {
|
||||
name: 'benchmark-report',
|
||||
path: 'benchmarks/.dsh-report/',
|
||||
'include-hidden-files': true,
|
||||
'if-no-files-found': 'ignore',
|
||||
'retention-days': 7,
|
||||
},
|
||||
})
|
||||
})
|
||||
|
||||
it('gives the Wine Host TypeScript compile the repository heap budget', () => {
|
||||
const wineGates = readFileSync(resolve(root, 'scripts/wine-windows-gates.sh'), 'utf8')
|
||||
|
||||
|
||||
Reference in new issue
Block a user