-
Notifications
You must be signed in to change notification settings - Fork 113
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
ncu-ci commit TypeError: Cannot read properties of null (reading '1') #639
Comments
The CI has been locked in preparation for the security release, I think the error is the expected behavior. |
This was occuring at the end of last week before the CI was locked down, see nodejs/reliability#316. |
After some debugging, I found the following additional info, but still don't figure out why the test console text is not behaving as expected. Problem Jenkins job URL: https://ci.nodejs.org/job/node-test-commit-osx-arm/6298/ Problem Console Text: Pr where the job trigger: The console text which cause parse error: outline = not ok 3 - sync fail todo # TODO
outline = ---
outline = duration_ms: 0.000040417
outline = failureType: 'testCodeFailure'
outline = error: 'thrown from sync fail todo'
outline = code: 'ERR_TEST_FAILURE'
outline = stack: |-
outline = Object.<anonymous> (/Users/iojs/build/workspace/node-test-commit-osx-arm/nodes/osx11/test/message/test_runner_desctibe_it.js:17:9)
outline = ItTest.runInAsyncScope (node:async_hooks:203:9)
outline = ItTest.run (node:internal/test_runner/test:338:15)
outline = Test.processPendingSubtests (node:internal/test_runner/test:158:27)
outline = ItTest.postRun (node:internal/test_runner/test:390:19)
outline = ItTest.run (node:internal/test_runner/test:352:10)
outline = async Test.processPendingSubtests (node:internal/test_runner/test:158:7)
outline = ... More context: length differs.
expect=512
actual=513
patterns:
pattern = ^TAP\ version\ 13$
pattern = ^\#\ Subtest:\ sync\ pass\ todo$
pattern = ^ok\ 1\ \-\ sync\ pass\ todo\ \#\ TODO$
<...omit rest pattern text>
outlines:
outline = TAP version 13
outline = # Subtest: sync pass todo
outline = ok 1 - sync pass todo # TODO
outline = ---
outline = duration_ms: 0.001743083
outline = ...
outline = # Subtest: sync pass todo with message
outline = ok 2 - sync pass todo with message # TODO this is a passing todo
outline = ---
outline = duration_ms: 0.000014917
outline = ...
outline = # Subtest: sync fail todo
outline = not ok 3 - sync fail todo # TODO
outline = ---
outline = duration_ms: 0.000040417
outline = failureType: 'testCodeFailure'
outline = error: 'thrown from sync fail todo'
outline = code: 'ERR_TEST_FAILURE'
outline = stack: |-
outline = Object.<anonymous> (/Users/iojs/build/workspace/node-test-commit-osx-arm/nodes/osx11/test/message/test_runner_desctibe_it.js:17:9)
outline = ItTest.runInAsyncScope (node:async_hooks:203:9)
outline = ItTest.run (node:internal/test_runner/test:338:15)
outline = Test.processPendingSubtests (node:internal/test_runner/test:158:27)
outline = ItTest.postRun (node:internal/test_runner/test:390:19)
outline = ItTest.run (node:internal/test_runner/test:352:10)
outline = async Test.processPendingSubtests (node:internal/test_runner/test:158:7)
outline = ...
<...omit rest outline text> |
@MoLow do you have any idea why? |
pattern length and outline length differs. the diff is from last part. pattern is: pattern = ^\#\ tests\ 54$
pattern = ^\#\ pass\ 23$
pattern = ^\#\ fail\ 17$
pattern = ^\#\ skipped\ 9$
pattern = ^\#\ todo\ 5$
pattern = ^\#\ duration_ms\ .*$ outline is: outline = # tests 54
outline = # pass 23
outline = # fail 17
outline = # cancelled 0
outline = # skipped 9
outline = # todo 5
outline = # duration_ms 4.798118667 the pattern has not |
I know what is the problem now:
|
@F3n67u anything I can do to help? |
Oh thanks for fixing it :) |
I figure out how to fix this problem. I made a pr to fix this. |
FWIW we may have a similar issue in https://github.com/nodejs/tap2junit when parsing failures from |
Seems like the issue can be closed: nodejs/reliability#321 |
Update CI reliability job stop working again, review wanted for #640. |
Reproduce
Expected behavior
No Error happened, could process
job/node-test-commit/54550/
normallyActual behavior
TypeError thrown
Additional Information
Refs: nodejs/reliability#316
Jenkins job URL:
https://ci.nodejs.org/job/node-test-commit-osx-arm/6298/
https://ci.nodejs.org/job/node-test-commit/54550/
https://ci.nodejs.org/job/node-test-pull-request/44957/
The text was updated successfully, but these errors were encountered: