Repository: node
Issue: investigate flaky test-diagnostic-dir-cpu-prof
Labels: flaky-test

<!--
Thank you for reporting a flaky test.

Flaky tests are tests that fail occasionally in the Node.js CI, but not
consistently enough to block PRs from landing, or that are failing in CI jobs or
test modes that are not run for every PR.

Please fill in as much of the template below as you're able.

Test: The test that is flaky - e.g. `test-fs-stat-bigint`
Platform: The platform the test is flaky on - e.g. `macos` or `linux`
Console Output: A pasted console output from a failed CI job showing the whole
failure of the test
Build Links: Links to builds affected by the flaky test

If any investigation has been done, please include any information found, such
as how consistently the test fails, whether the failure could be reproduced
locally, when the test started failing, or anything else you think is relevant.
-->

* **Test**: test-diagnostic-dir-cpu-prof
* **Platform**: LinuxONE rhel7-s390x
* **Console Output:**
```
06:55:29 not ok 3115 sequential/test-diagnostic-dir-cpu-prof
06:55:29   ---
06:55:29   duration_ms: 0.160
06:55:29   severity: fail
06:55:29   exitcode: 1
06:55:29   stack: |-
06:55:29     Dispatching message { "id": 1, "method": "Profiler.enable" }
06:55:29     Receive CPU profile message
06:55:29     {"id":1,"result":{}}
06:55:29     Dispatching message { "id": 2, "method": "Profiler.start" }
06:55:29     Receive CPU profile message
06:55:29     {"id":2,"result":{}}
06:55:29     Dispatching message { "id": 3, "method": "Profiler.setSamplingInterval", "params": { "interval": 50 } }
06:55:29     Receive CPU profile message
06:55:29     {"id":3,"error":{"code":-32000,"message":"Cannot change sampling interval when profiling."}}
06:55:29     EndStartedProfilers
06:55:29     V8CpuProfilerConnection::End(), ending = false
06:55:29     Dispatching message { "id": 4, "method": "Profiler.stop" }
06:55:29     Receive CPU profile message
06:55:29     Writing profile response (id = 4)
06:55:29     Written result to /home/iojs/node-tmp/.tmp.3114/prof/CPU.20210306.095529.4311.0.001.cpuprofile
06:55:29     
06:55:29     [
06:55:29       {
06:55:29         id: 1,
06:55:29         callFrame: {
06:55:29           functionName: '(root)',
06:55:29           scriptId: '0',
06:55:29           url: '',
06:55:29           lineNumber: -1,
06:55:29           columnNumber: -1
06:55:29         },
06:55:29         hitCount: 0,
06:55:29         children: [ 2, 3, 6 ]
06:55:29       },
06:55:29       {
06:55:29         id: 2,
06:55:29         callFrame: {
06:55:29           functionName: '(program)',
06:55:29           scriptId: '0',
06:55:29           url: '',
06:55:29           lineNumber: -1,
06:55:29           columnNumber: -1
06:55:29         },
06:55:29         hitCount: 0
06:55:29       },
06:55:29       {
06:55:29         id: 3,
06:55:29         callFrame: {
06:55:29           functionName: '',
06:55:29           scriptId: '70',
06:55:29           url: 'node:internal/main/run_main_module',
06:55:29           lineNumber: 0,
06:55:29           columnNumber: 0
06:55:29         },
06:55:29         hitCount: 0,
06:55:29         children: [ 4 ]
06:55:29       },
06:55:29       {
06:55:29         id: 4,
06:55:29         callFrame: {
06:55:29           functionName: 'executeUserEntryPoint',
06:55:29           scriptId: '97',
06:55:29           url: 'node:internal/modules/run_main',
06:55:29           lineNumber: 68,
06:55:29           columnNumber: 30
06:55:29         },
06:55:29         hitCount: 0,
06:55:29         children: [ 5 ]
06:55:29       },
06:55:29       {
06:55:29         id: 5,
06:55:29         callFrame: {
06:55:29           functionName: 'Module._load',
06:55:29           scriptId: '75',
06:55:29           url: 'node:internal/modules/cjs/loader',
06:55:29           lineNumber: 750,
06:55:29           columnNumber: 23
06:55:29         },
06:55:29         hitCount: 1,
06:55:29         positionTicks: [ [Object] ]
06:55:29       },
06:55:29       {
06:55:29         id: 6,
06:55:29         callFrame: {
06:55:29           functionName: '(garbage collector)',
06:55:29           scriptId: '0',
06:55:29           url: '',
06:55:29           lineNumber: -1,
06:55:29           columnNumber: -1
06:55:29         },
06:55:29         hitCount: 1
06:55:29       }
06:55:29     ]
06:55:29     node:assert:122
06:55:29       throw new AssertionError(obj);
06:55:29       ^
06:55:29     
06:55:29     AssertionError [ERR_ASSERTION]: Expected "actual" not to be strictly deep-equal to: []
06:55:29         at verifyFrames (/home/iojs/build/workspace/node-test-commit-linuxone/nodes/rhel7-s390x/test/common/cpu-prof.js:34:10)
06:55:29         at Object.<anonymous> (/home/iojs/build/workspace/node-test-commit-linuxone/nodes/rhel7-s390x/test/sequential/test-diagnostic-dir-cpu-prof.js:46:3)
06:55:29         at Module._compile (node:internal/modules/cjs/loader:1095:14)
06:55:29         at Object.Module._extensions..js (node:internal/modules/cjs/loader:1124:10)
06:55:29         at Module.load (node:internal/modules/cjs/loader:975:32)
06:55:29         at Function.Module._load (node:internal/modules/cjs/loader:816:14)
06:55:29         at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:76:12)
06:55:29         at node:internal/main/run_main_module:17:47 {
06:55:29       generatedMessage: true,
06:55:29       code: 'ERR_ASSERTION',
06:55:29       actual: [],
06:55:29       expected: [],
06:55:29       operator: 'notDeepStrictEqual'
06:55:29     }
06:55:29   ...
```
* **Build Links**: https://ci.nodejs.org/job/node-test-commit-linuxone/26005/nodes=rhel7-s390x/console