citgm icon indicating copy to clipboard operation
citgm copied to clipboard

Undici failures

Open targos opened this issue 1 year ago • 20 comments

With https://github.com/nodejs/node/pull/52002:

https://ci.nodejs.org/view/Node.js-citgm/job/citgm-smoker/3398/nodes=alpine-latest-x64/testReport/junit/(root)/citgm/undici_v6_7_0/ https://ci.nodejs.org/view/Node.js-citgm/job/citgm-smoker/3398/nodes=rhel8-x64/testReport/junit/(root)/citgm/undici_v6_7_0/

@nodejs/undici

targos avatar Mar 07 '24 12:03 targos

Connected with https://github.com/nodejs/node/issues/51997

Uzlopak avatar Mar 07 '24 13:03 Uzlopak

Is it? The run was done after the revert.

targos avatar Mar 07 '24 13:03 targos

Does the citgm connect via debug port?

Uzlopak avatar Mar 07 '24 13:03 Uzlopak

Not sure I understand the question but probably not. I basically does npm install followed by npm test

targos avatar Mar 07 '24 14:03 targos

 test at test/node-test/debug.js:54:1
  debug#fetch (346.571414ms)
   AssertionError [ERR_ASSERTION]: Expected values to be strictly equal:
   
   4 !== 6
   
       at res.<computed> [as strictEqual] (/home/iojs/tmp/citgm_tmp/19886eeb-1a0b-44d6-951c-284ce1a45418/undici/node_modules/@matteo.collina/tspl/tspl.js:52:35)
       at Socket.<anonymous> (/home/iojs/tmp/citgm_tmp/19886eeb-1a0b-44d6-951c-284ce1a45418/undici/test/node-test/debug.js:79:12)
       at Socket.emit (node:events:531:35)
       at endReadableNT (node:internal/streams/readable:1696:12)
       at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {
     generatedMessage: true,
     code: 'ERR_ASSERTION',
     actual: 4,
     expected: 6,
     operator: 'strictEqual'
   }
 test at test/node-test/debug.js:89:1
  debug#undici (186.572836ms)
   AssertionError [ERR_ASSERTION]: Expected values to be strictly equal:
   
   21 !== 6
   
       at res.<computed> [as strictEqual] (/home/iojs/tmp/citgm_tmp/19886eeb-1a0b-44d6-951c-284ce1a45418/undici/node_modules/@matteo.collina/tspl/tspl.js:52:35)
       at Socket.<anonymous> (/home/iojs/tmp/citgm_tmp/19886eeb-1a0b-44d6-951c-284ce1a45418/undici/test/node-test/debug.js:117:12)
       at Socket.emit (node:events:531:35)
       at endReadableNT (node:internal/streams/readable:1696:12)
       at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {
     generatedMessage: true,
     code: 'ERR_ASSERTION',
     actual: 21,
     expected: 6,
     operator: 'strictEqual'
   }
 test at test/node-test/autoselectfamily.js:1:1
  test/node-test/autoselectfamily.js (30000.124732ms)
   'test timed out after 30000ms'

related to https://github.com/nodejs/undici/issues/2600

KhafraDev avatar Mar 07 '24 14:03 KhafraDev

Ok, so we have to wait for the next libuv update.

targos avatar Mar 07 '24 15:03 targos

it looked like a different error to me, this test has had quite a few failures cc @metcoder95

KhafraDev avatar Mar 07 '24 15:03 KhafraDev

yeah, it is an annoying file

Uzlopak avatar Mar 07 '24 15:03 Uzlopak

Ok... that's new, the mismatch on the assertions is weird; I'll try to revisit this and possibly rewrite the testing scenarios, haven't had the time yet.

If this is a blocker of some sort, feel free to skip them for now

metcoder95 avatar Mar 08 '24 08:03 metcoder95

Should now work as we patched the failing test.

Uzlopak avatar Mar 10 '24 17:03 Uzlopak

https://ci.nodejs.org/view/Node.js-citgm/job/citgm-smoker-pipeline/240/

targos avatar Mar 13 '24 08:03 targos

On OSX:

09:22:16 error:                     | ✖ failing tests:                                                                          
09:22:16 error:                     |                                                                                           
09:22:16 error:                     | test at test/issue-803.js:1:1                                                             
09:22:16 error:                     | ✖ test/issue-803.js (30147.778213ms)                                                      
09:22:16 error:                     | 'test timed out after 30000ms'                                                            
09:22:16 error:                     |                               

targos avatar Mar 13 '24 08:03 targos

create a PR to add macos-latest to our ci

https://github.com/nodejs/undici/pull/2952

Uzlopak avatar Mar 13 '24 08:03 Uzlopak

https://ci.nodejs.org/view/Node.js-citgm/job/citgm-smoker-pipeline/241/

mcollina avatar Mar 21 '24 15:03 mcollina

 test at test/issue-803.js:1:1
  test/issue-803.js (30101.051783ms)
   'test timed out after 30000ms'

@Uzlopak

KhafraDev avatar Mar 21 '24 21:03 KhafraDev

What should I do? The test has afaik already a timeout of 60000ms. So failing after 30000 ms, makes no sense.

Uzlopak avatar Mar 21 '24 22:03 Uzlopak

Maybe refactor to AsyncIterable to see if it’s more deterministic? Just throwing ideas

metcoder95 avatar Mar 22 '24 09:03 metcoder95

Just skip the test if citgm.

mcollina avatar Mar 22 '24 11:03 mcollina

Is there a env variable set in case of citgm?

Uzlopak avatar Mar 22 '24 12:03 Uzlopak

I don't think you can specifically detect citgm by default, but you can add custom env variables using the envVar key in the lookup.

Example: https://github.com/nodejs/citgm/blob/12e6902b7a90c42edf60a1f4aa0ef9c19efdfddc/lib/lookup.json#L245-L252

targos avatar Mar 22 '24 12:03 targos

I've released v6.19.3 that should address some of this

mcollina avatar Jul 22 '24 08:07 mcollina