Repository navigation
Closed
Labels
flaky-testIssues and PRs involving tests that fail intermittently in CI.freebsdIssues and PRs related to the FreeBSD platform.
Description
Test
test-fs-readfile-tostring-fail
Platform
FreeBSD
Console output
13:11:17 not ok 3306 pummel/test-fs-readfile-tostring-fail
13:11:17 ---
13:11:17 duration_ms: 34.407
13:11:17 severity: fail
13:11:17 exitcode: 7
13:11:17 stack: |-
13:11:17 /usr/home/iojs/build/workspace/node-test-commit-freebsd/nodes/freebsd12-x64/test/pummel/test-fs-readfile-tostring-fail.js:69
13:11:17 throw err;
13:11:17 ^
13:11:17
13:11:17 AssertionError [ERR_ASSERTION]: The expression evaluated to a falsy value:
13:11:17
13:11:17 assert.ok(err instanceof Error)
13:11:17
13:11:17 at /usr/home/iojs/build/workspace/node-test-commit-freebsd/nodes/freebsd12-x64/test/pummel/test-fs-readfile-tostring-fail.js:36:12
13:11:17 at /usr/home/iojs/build/workspace/node-test-commit-freebsd/nodes/freebsd12-x64/test/common/index.js:438:15
13:11:17 at FSReqCallback.readFileAfterClose [as oncomplete] (node:internal/fs/read_file_context:68:3) {
13:11:17 generatedMessage: true,
13:11:17 code: 'ERR_ASSERTION',
13:11:17 actual: false,
13:11:17 expected: true,
13:11:17 operator: '=='
13:11:17 }
13:11:17
13:11:17 Node.js v19.0.0-pre
13:11:17 ...Build links
- https://ci.nodejs.org/job/node-test-commit-freebsd/nodes=freebsd12-x64/44929/
- https://ci.nodejs.org/job/node-test-commit-freebsd/nodes=freebsd12-x64/44926/
- https://ci.nodejs.org/job/node-test-commit-freebsd/nodes=freebsd12-x64/44924/
Additional information
This appears to be happening consistently on test-digitalocean-freebsd12-x64-2. I haven't seen it happen yet on test-digitalocean-freebsd12-x64-1 -- according to https://ci.nodejs.org/job/node-test-commit-freebsd/nodes=freebsd12-x64/buildTimeTrend recent runs on test-digitalocean-freebsd12-x64-1 are green/yellow:

FWIW I rebooted test-digitalocean-freebsd12-x64-2 about an hour ago but that hasn't fixed the problem.
Metadata
Metadata
Assignees
Labels
flaky-testIssues and PRs involving tests that fail intermittently in CI.freebsdIssues and PRs related to the FreeBSD platform.
Activity
richardlau commentedon Jul 14, 2022
FWIW It looks like this first appeared in https://ci.nodejs.org/job/node-test-commit-freebsd/nodes=freebsd12-x64/44906/ which was 21 hours ago. The next job, https://ci.nodejs.org/job/node-test-commit-freebsd/nodes=freebsd12-x64/44907/ ran and passed on test-digitalocean-freebsd12-x64-2 but then all subsequent runs on test-digitalocean-freebsd12-x64-2 have failed this test. So this could be a very recent regression (but then I can't explain why it's not showing up on test-digitalocean-freebsd12-x64-1).
bnoordhuis commentedon Jul 15, 2022
Just hit this. On the face of it, the failure looks impossible (reading a string bigger than V8 allows) so there's probably something else going on.
I don't know how easy it is to run a single pummel test but it'd be interesting to see what this prints:
richardlau commentedon Jul 15, 2022
@bnoordhuis I left out printing
bufas it's a lot ofa's.I think we're running out of disk space and the file written is smaller than expected? Shouldn't we expect the writable to emit an error in that case?
richardlau commentedon Jul 15, 2022
I've opened #43850 -- the test is failing because there is not enough disk space on the machine to write the temporary file but for whatever reason we don't get any errors about that emitted on the WriteStream which means we end up with a more cryptic, unexpected test failure. The actual fix for this issue is sorting out the free disk space but the test can be improved in indicating what went wrong.
richardlau commentedon Jul 15, 2022
Well here's where all the space has gone -- the
.ccachedirectory (note it's far larger than the "max cache size"):richardlau commentedon Jul 15, 2022
Running a cleanup (
ccache -c).richardlau commentedon Jul 15, 2022
richardlau commentedon Jul 16, 2022
Two most recent builds (after the ccache clean up) on test-digitalocean-freebsd12-x64-2 have passed 🎉 :

test: add check to test-fs-readfile-tostring-fail
test: add check to test-fs-readfile-tostring-fail
test: add check to test-fs-readfile-tostring-fail