Skip to content

investigate flaky test-fs-stat-bigint #31727

@Trott

Description

@Trott
  • Version: 14.0.0-pre
  • Platform: FreeBSD
  • Subsystem: fs, test

What steps will reproduce the bug?

Run test-fs-stat-bigint many times on FreeBSD.

How often does it reproduce? Is there a required condition?

It reproduces probably about 1% of the time.

What is the expected behavior?

The test should always pass.

What do you see instead?

The test sometimes fails with a block count of 1 vs 9:

AssertionError [ERR_ASSERTION]: 1n !== 9n
key=blocks, val=9
    at verifyStats (/usr/home/iojs/build/workspace/node-stress-single-test/nodes/freebsd11-x64/test/parallel/test-fs-stat-bigint.js:84:14)
    at /usr/home/iojs/build/workspace/node-stress-single-test/nodes/freebsd11-x64/test/parallel/test-fs-stat-bigint.js:127:7
    at FSReqCallback.oncomplete (fs.js:175:5) {
  generatedMessage: false,
  code: 'ERR_ASSERTION',
  actual: 1n,
  expected: 9n,
  operator: 'strictEqual'
}

Additional information

Seems to only reproduce on FreeBSD in CI, but I'm running a stress test to confirm.

https://ci.nodejs.org/job/node-stress-single-test/48/

Metadata

Metadata

Assignees

No one assigned

    Labels

    flaky-testIssues and PRs related to the tests with unstable failures on the CI.freebsdIssues and PRs related to the FreeBSD platform.fsIssues and PRs related to the fs subsystem / file system.testIssues and PRs related to the tests.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions