mirror of
https://github.com/microsoft/playwright.git
synced 2024-12-11 12:33:45 +03:00
fix: use blob fileName as is without adding shard suffix (#28634)
Fixes https://github.com/microsoft/playwright/issues/27284
This commit is contained in:
parent
9b2585cd4e
commit
e31e5b1b7c
4
.github/workflows/tests_primary.yml
vendored
4
.github/workflows/tests_primary.yml
vendored
@ -131,11 +131,11 @@ jobs:
|
||||
- run: npx playwright install --with-deps
|
||||
- run: npm run ttest -- --shard ${{ matrix.shard }}
|
||||
env:
|
||||
PWTEST_BOT_NAME: "${{ matrix.os }}-node${{ matrix.node-version }}"
|
||||
PWTEST_BOT_NAME: "${{ matrix.os }}-node${{ matrix.node-version }}-${{ matrix.shard }}"
|
||||
if: matrix.os != 'ubuntu-latest'
|
||||
- run: xvfb-run npm run ttest -- --shard ${{ matrix.shard }}
|
||||
env:
|
||||
PWTEST_BOT_NAME: "${{ matrix.os }}-node${{ matrix.node-version }}"
|
||||
PWTEST_BOT_NAME: "${{ matrix.os }}-node${{ matrix.node-version }}-${{ matrix.shard }}"
|
||||
if: matrix.os == 'ubuntu-latest'
|
||||
- run: ./utils/upload_flakiness_dashboard.sh ./test-results/report.json
|
||||
if: always()
|
||||
|
@ -109,12 +109,14 @@ export class BlobReporter extends TeleReporterEmitter {
|
||||
}
|
||||
|
||||
private _computeReportName(config: FullConfig) {
|
||||
let reportName = this._options.fileName ?? 'report.zip';
|
||||
if (this._options.fileName)
|
||||
return this._options.fileName;
|
||||
let reportName = 'report';
|
||||
if (config.shard) {
|
||||
const paddedNumber = `${config.shard.current}`.padStart(`${config.shard.total}`.length, '0');
|
||||
reportName = `${reportName.slice(0, -4)}-${paddedNumber}.zip`;
|
||||
reportName = `${reportName}-${paddedNumber}`;
|
||||
}
|
||||
return reportName;
|
||||
return `${reportName}.zip`;
|
||||
}
|
||||
|
||||
override _serializeAttachments(attachments: TestResult['attachments']): JsonAttachment[] {
|
||||
|
Loading…
Reference in New Issue
Block a user