Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error encountered when merged blob reports to generate allure-playwright report #2336

Open
1 task done
ck-singh opened this issue Feb 1, 2024 · 3 comments
Open
1 task done
Labels
type:bug Something isn't working

Comments

@ck-singh
Copy link

ck-singh commented Feb 1, 2024

Describe the Bug

Encountered below error when tried using merge-reports feature of playwright to merge blob reports, from an execution that used 2 shards, and generate an allure report.
Please note that the same blob reports can be merged to generate an HTML report without any issue.

TypeError: Cannot read properties of undefined (reading 'repeatEach')

Steps to Reproduce

  1. Download attached blob reports (report-1.zip and report-2.zip) generated using sharding.
    report-1.zip
    report-2.zip
  2. copy the downloaded blob reports (report-1.zip and report-2.zip) to all-blob-reports folder
  3. RUN: npx playwright merge-reports --reporter allure-playwright ./all-blob-reports

Expected Behaviour

  • No error is observed
  • Result files are populated in ### allure-results directory

Screenshots or Additional Context

Actual

  • Below error is encountered
  • No result files are populated in allure-results directory

merging reports from /builds/XXXX/playwright/all-blob-reports extracting: all-blob-reports/report-1.zip extracting: all-blob-reports/report-2.zip merging events processing test events **Error in reporter TypeError: Cannot read properties of undefined (reading 'repeatEach')** at AllureReporter.onTestBegin (/builds/XXXX/playwright/node_modules/allure-playwright/src/index.ts:107:17) at ReporterV2Wrapper.onTestBegin (/builds/XXXX/playwright/node_modules/playwright/lib/reporters/reporterV2.js:55:157) at /builds/XXXX/playwright/node_modules/playwright/lib/reporters/multiplexer.js:38:65 at wrap (/builds/XXXX/playwright/node_modules/playwright/lib/reporters/multiplexer.js:86:5) at Multiplexer.onTestBegin (/builds/XXXX/playwright/node_modules/playwright/lib/reporters/multiplexer.js:38:45) at TeleReporterReceiver._onTestBegin (/builds/XXXX/playwright/node_modules/playwright/lib/isomorphic/teleReceiver.js:140:157) at TeleReporterReceiver.dispatch (/builds/XXXX/playwright/node_modules/playwright/lib/isomorphic/teleReceiver.js:63:12) at dispatchEvents (/builds/XXXX/playwright/node_modules/playwright/lib/reporters/merge.js:53:22) at createMergedReport (/builds/XXXX/playwright/node_modules/playwright/lib/reporters/merge.js:67:11) at mergeReports (/builds/XXXX/playwright/node_modules/playwright/lib/cli.js:181:3) at t.<anonymous> (/builds/XXXX/playwright/node_modules/playwright/lib/cli.js:95:7) Error in reporter TypeError: Cannot read properties of undefined (reading 'repeatEach') at AllureReporter.onTestBegin (/builds/XXXX/playwright/node_modules/allure-playwright/src/index.ts:107:17) at ReporterV2Wrapper.onTestBegin (/builds/XXXX/playwright/node_modules/playwright/lib/reporters/reporterV2.js:55:157) at /builds/XXXX/playwright/node_modules/playwright/lib/reporters/multiplexer.js:38:65 at wrap (/builds/XXXX/playwright/node_modules/playwright/lib/reporters/multiplexer.js:86:5) at Multiplexer.onTestBegin (/builds/XXXX/playwright/node_modules/playwright/lib/reporters/multiplexer.js:38:45) at TeleReporterReceiver._onTestBegin (/builds/XXXX/playwright/node_modules/playwright/lib/isomorphic/teleReceiver.js:140:157) at TeleReporterReceiver.dispatch (/builds/XXXX/playwright/node_modules/playwright/lib/isomorphic/teleReceiver.js:63:12) at dispatchEvents (/builds/XXXX/playwright/node_modules/playwright/lib/reporters/merge.js:53:22) at createMergedReport (/builds/XXXX/playwright/node_modules/playwright/lib/reporters/merge.js:67:11) at mergeReports (/builds/XXXX/playwright/node_modules/playwright/lib/cli.js:181:3) at t.<anonymous> (/builds/XXXX/playwright/node_modules/playwright/lib/cli.js:95:7) building final report Error in reporter TypeError: Cannot read properties of undefined (reading 'repeatEach') at AllureReporter.onTestBegin (/builds/XXXX/playwright/node_modules/allure-playwright/src/index.ts:107:17) at /builds/XXXX/playwright/node_modules/allure-playwright/src/index.ts:221:12 at Array.forEach (<anonymous>) at AllureReporter.addSkippedResults (/builds/XXXX/playwright/node_modules/allure-playwright/src/index.ts:220:22) at AllureReporter.onEnd (/builds/XXXX/playwright/node_modules/allure-playwright/src/index.ts:246:10) at ReporterV2Wrapper.onEnd (/builds/XXXX/playwright/node_modules/playwright/lib/reporters/reporterV2.js:91:165) at /builds/XXXX/playwright/node_modules/playwright/lib/reporters/multiplexer.js:51:56 at wrapAsync (/builds/XXXX/playwright/node_modules/playwright/lib/reporters/multiplexer.js:79:18) at Multiplexer.onEnd (/builds/XXXX/playwright/node_modules/playwright/lib/reporters/multiplexer.js:51:31) at TeleReporterReceiver._onEnd (/builds/XXXX/playwright/node_modules/playwright/lib/isomorphic/teleReceiver.js:199:159) at TeleReporterReceiver.dispatch (/builds/XXXX/playwright/node_modules/playwright/lib/isomorphic/teleReceiver.js:86:41) at dispatchEvents (/builds/XXXX/playwright/node_modules/playwright/lib/reporters/merge.js:53:22) at createMergedReport (/builds/XXXX/playwright/node_modules/playwright/lib/reporters/merge.js:69:9) at mergeReports (/builds/XXXX/playwright/node_modules/playwright/lib/cli.js:181:3) at t.<anonymous> (/builds/XXXX/playwright/node_modules/playwright/lib/cli.js:95:7) finished building report

What Language are you using?

TypeScript

What Framework/Allure Integration you are using?

allure-playwright

What version of Allure Integration you are using?

2.26.0

What version of Allure Report you are using?

2.11.1

Code of Conduct

  • I agree to follow this project's Code of Conduct
@ck-singh ck-singh added triage type:bug Something isn't working labels Feb 1, 2024
@ck-singh
Copy link
Author

ck-singh commented Feb 1, 2024

I had opened this bug in playwright repo and was advised to raise it in allure report.

@baev
Copy link
Member

baev commented Feb 5, 2024

BTW, you don't need to use the merge-reports feature for Allure Report since Allure supports multiple results directories anyway:

$ allure generate path/to/first/allure-results path/to/second/allure-results --output aggregated-report

The second option would be to merge the contents of the allure-results folders. All the result files have UUIDv4 in their names, so there should be no conflicts.

@baev
Copy link
Member

baev commented Feb 5, 2024

But anyway, supporting the merge-reports feature would be nice, so we'll look at it.

@baev baev removed the triage label Feb 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants