Title: `
Open Graph Title: `
X Title: `
Description: Version 21.6.1 Platform linux-x64 (github actions runner), ubuntu 22.04.3 Subsystem junit test reporter What steps will reproduce the bug? I was not able to reproduce, unfortunately. But here's the command that ran in CI: xvfb-run node -...
Open Graph Description: Version 21.6.1 Platform linux-x64 (github actions runner), ubuntu 22.04.3 Subsystem junit test reporter What steps will reproduce the bug? I was not able to reproduce, unfortunately. But here's the...
X Description: Version 21.6.1 Platform linux-x64 (github actions runner), ubuntu 22.04.3 Subsystem junit test reporter What steps will reproduce the bug? I was not able to reproduce, unfortunately. But here's...
Opengraph URL: https://github.com/nodejs/node/issues/51707
X: @github
Domain: github.com
IPv4 address: 140.82.114.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"`\u003cundefined>` node and incorrect nesting of testsuites in `junit` test report","articleBody":"### Version\r\n\r\n21.6.1\r\n\r\n### Platform\r\n\r\nlinux-x64 (github actions runner), ubuntu 22.04.3\r\n\r\n### Subsystem\r\n\r\njunit test reporter\r\n\r\n### What steps will reproduce the bug?\r\n\r\nI was not able to reproduce, unfortunately.\r\n\r\nBut here's the command that ran in CI:\r\n\r\n```sh\r\nxvfb-run node --test \\\r\n --test-timeout 240000 \\\r\n --test-shard=[3](__CI_JOB_URL__)/8 \\\r\n --test-reporter=junit --test-reporter-destination=3.junit.xml \\\r\n --test-reporter=spec --test-reporter-destination=stdout \\\r\n 'packages/A/test/**/*.test*.js' \\\r\n 'packages/B/test/**/*.test*.js'\r\n```\r\n\r\nAnd, in practice:\r\n- 4 different test files were listed in `spec`'s report summary\r\n- these 4 test files ended up timing out\r\n- and some of their test failed\r\n\r\n\r\n### How often does it reproduce? Is there a required condition?\r\n\r\nIt happened once.\r\n\r\n### What is the expected behavior? Why is that the expected behavior?\r\n\r\n- see 4 instead of 2, in the \"suites\" part of the summary\r\n- see each test file listed directly under the root `\u003ctestsuites>` node of the `junit` report\r\n- no see any `\u003cundefined>` node in the `junit` report\r\n\r\n### What do you see instead?\r\n\r\nThis `junit` report:\r\n\r\n```\r\n\u003c?xml version=\"1.0\" encoding=\"utf-8\"?>\r\n\u003ctestsuites>\r\n \u003cundefined name=\"Test suite from package A\">\r\n \u003ctestcase\r\n name=\"xxx\"\r\n time=\"192.141114\" classname=\"test\" />\r\n \u003ctestcase name=\"packages/a/test/xxx.js\"\r\n time=\"240.004743\" classname=\"test\" failure=\"test timed out after 240000ms\">\r\n \u003cfailure type=\"testTimeoutFailure\" message=\"test timed out after 240000ms\">\r\n [Error [ERR_TEST_FAILURE]: test timed out after 240000ms] { code:\r\n 'ERR_TEST_FAILURE', failureType: 'testTimeoutFailure', cause: 'test timed out after\r\n 240000ms' }\r\n \u003c/failure>\r\n \u003c/testcase>\r\n \u003cundefined name=\"Test suite from package B\">\r\n \u003ctestsuite name=\"yyy\" time=\"20.474488\" disabled=\"0\" errors=\"0\"\r\n tests=\"2\" failures=\"0\" skipped=\"0\" hostname=\"fv-az351-556\">\r\n \u003ctestcase\r\n name=\"zzz\"\r\n time=\"14.748208\" classname=\"test\" />\r\n \u003c/testsuite>\r\n \u003c!-- 'only' and 'runOnly' require the --test-only command-line option. -->\r\n \u003cundefined name=\"Nested describe block from that test suite\">\r\n \u003ctestcase\r\n[...]\r\n```\r\n\r\nThese `spec` logs:\r\n\r\n```\r\nℹ tests 20\r\nℹ suites 2\r\nℹ pass 10\r\nℹ fail 4\r\nℹ cancelled 4\r\nℹ skipped 2\r\nℹ todo 0\r\nℹ duration_ms 960072.029887\r\n\r\n✖ failing tests:\r\n\r\ntest at packages/a/test/a.test.js:1:1\r\n✖ packages/functional-tester/test/a.test.js (240004.742945ms)\r\n 'test timed out after 240000ms'\r\n\r\ntest at packages/b/test/executeAction/b1.test.js:1:1\r\n✖ packages/b/test/executeAction/b1.test.js (240002.364515ms)\r\n 'test timed out after 240000ms'\r\n\r\ntest at file:packages/b/test/b2.test.js:19:9\r\n✖ xxx (31485.676502ms)\r\n\r\ntest at packages/b/test/b2.test.js:1:1\r\n✖ packages/b/test/b2.test.js (240001.953746ms)\r\n 'test timed out after 240000ms'\r\n\r\ntest at file:packages/b/test/b3.test.js:43:9\r\n✖ xxx (207955.076ms)\r\n\r\ntest at file:packages/b/test/b3.test.js:55:9\r\n✖ yyy (71185.942777ms)\r\n\r\ntest at file:packages/b/test/b3.test.js:63:9\r\n✖ zzz (38479.[536](__CI_JOB_URL__#step:9:537)748ms)\r\n\r\ntest at packages/b/test/b3.test.js:1:1\r\n✖ packages/b/test/b3.test.js (240002.103949ms)\r\n 'test timed out after 240000ms'\r\n```\r\n\r\n\r\n\r\n### Additional information\r\n\r\n_No response_","author":{"url":"https://github.com/adrienjoly","@type":"Person","name":"adrienjoly"},"datePublished":"2024-02-09T09:17:23Z","url":"https://github.com/nodejs/node/issues/51707"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:c884fd6a-fe67-ab0c-ff3b-d595acac5491 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D076:2EAB91:A7A737:D9F40F:6B0638CC |
| html-safe-nonce | 509abc40abc72fbd010c1d06d14c789f4fabf395e1e32850c97a27474837c3a8 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMDc2OjJFQUI5MTpBN0E3Mzc6RDlGNDBGOjZCMDYzOENDIiwidmlzaXRvcl9pZCI6IjM4ODM4MjY1MDY3OTkzOTcwNjgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | a398a0c1e1582f5d9aabd9998c3979ce8143c91ebdb2cbaf48c47cc6f68b5135 |
| hovercard-subject-tag | issue:2126747766 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/nodejs/node/51707/issue_layout |
| twitter:image | https://opengraph.githubassets.com/e6ebb38799e098f7b2aebf05665b5a81bc2bcb4b6f83bc4c02d767e73648d497/nodejs/node/issues/51707 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/e6ebb38799e098f7b2aebf05665b5a81bc2bcb4b6f83bc4c02d767e73648d497/nodejs/node/issues/51707 |
| og:image:alt | Version 21.6.1 Platform linux-x64 (github actions runner), ubuntu 22.04.3 Subsystem junit test reporter What steps will reproduce the bug? I was not able to reproduce, unfortunately. But here's the... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | adrienjoly |
| hostname | github.com |
| expected-hostname | github.com |
| None | dcf72c457c022486d23c3cbb0dd21aba537a87611ca9ddabd1799cf2eaa9b297 |
| turbo-cache-control | no-preview |
| go-import | github.com/nodejs/node git https://github.com/nodejs/node.git |
| octolytics-dimension-user_id | 9950313 |
| octolytics-dimension-user_login | nodejs |
| octolytics-dimension-repository_id | 27193779 |
| octolytics-dimension-repository_nwo | nodejs/node |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 27193779 |
| octolytics-dimension-repository_network_root_nwo | nodejs/node |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 0f38f5735226749ec5e08a8649dce4cb2613d9ad |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width