Skip to content

investigate flaky test-policy-integrity #38088

Closed
@Trott

Description

  • Test: test/pummel/test-policy-integrity.js
  • Platform: centos7-arm64-gcc8
  • Console Output:
07:01:10 not ok 2971 pummel/test-policy-integrity
07:01:15   ---
07:01:15   duration_ms: 5.728
07:01:15   severity: fail
07:01:15   exitcode: 1
07:01:15   stack: |-
07:01:15     permutation 118 failed
07:01:15     {
07:01:15       config: {
07:01:15         onError: 'exit',
07:01:15         shouldSucceed: true,
07:01:15         entryPath: './worker-spawner.cjs',
07:01:15         willDeletePolicy: true,
07:01:15         preloads: [],
07:01:15         parentPath: './parent.js',
07:01:15         depPath: './dep.js',
07:01:15         resources: {
07:01:15           './dep.js': {
07:01:15             body: '',
07:01:15             integrities: [
07:01:15               'sha256-47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU=',
07:01:15               'sha256-47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU='
07:01:15             ]
07:01:15           },
07:01:15           './parent.js': {
07:01:15             body: '\n' +
07:01:15               '    if (!process.env.DEP_FILE) {\n' +
07:01:15               '      console.error(\n' +
07:01:15               "        'missing required DEP_FILE env to determine dependency'\n" +
07:01:15               '      );\n' +
07:01:15               '      process.exit(33);\n' +
07:01:15               '    }\n' +
07:01:15               '    require(process.env.DEP_FILE)\n' +
07:01:15               '  ',
07:01:15             integrities: [
07:01:15               'sha256-AzbH3oEA96J/+tLSqOJ+LaIt9vdOY+ikShkvKm0VutU=',
07:01:15               'sha256-R0QVSw9BUI7znwKNvt6BuzkLozhYKTtFNRSENIL5H7k='
07:01:15             ]
07:01:15           },
07:01:15           './worker-spawner.cjs': {
07:01:15             body: '\n' +
07:01:15               "  const path = require('path');\n" +
07:01:15               "  const { Worker } = require('worker_threads');\n" +
07:01:15               '  if (!process.env.PARENT_FILE) {\n' +
07:01:15               '    console.error(\n' +
07:01:15               "      'missing required PARENT_FILE env to determine worker entry point'\n" +
07:01:15               '    );\n' +
07:01:15               '    process.exit(33);\n' +
07:01:15               '  }\n' +
07:01:15               '  if (!process.env.DELETABLE_POLICY_FILE) {\n' +
07:01:15               '    console.error(\n' +
07:01:15               "      'missing required DELETABLE_POLICY_FILE env to check reloading'\n" +
07:01:15               '    );\n' +
07:01:15               '    process.exit(33);\n' +
07:01:15               '  }\n' +
07:01:15               '  const w = new Worker(path.resolve(process.env.PARENT_FILE));\n' +
07:01:15               "  w.on('exit', (status) => process.exit(status === 0 ? 0 : 1));\n",
07:01:15             integrities: [
07:01:15               'sha256-23P4m8edtJAPTH24RJHIHMEuMVgP7QKcgWBSyj6FxPc=',
07:01:15               'sha256-XTRkNC3vxo+zvjv7CD8iapeqc7npNN7TwqRR0TOv5lg='
07:01:15             ]
07:01:15           }
07:01:15         }
07:01:15       },
07:01:15       manifest: {
07:01:15         onerror: 'exit',
07:01:15         resources: {
07:01:15           'file:///home/iojs/node-tmp/.tmp.2970/test-policy-integrity-permutation-118/dep.js': {
07:01:15             integrity: 'sha256-47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU= sha256-47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU=',
07:01:15             dependencies: true
07:01:15           },
07:01:15           'file:///home/iojs/node-tmp/.tmp.2970/test-policy-integrity-permutation-118/parent.js': {
07:01:15             integrity: 'sha256-AzbH3oEA96J/+tLSqOJ+LaIt9vdOY+ikShkvKm0VutU= sha256-R0QVSw9BUI7znwKNvt6BuzkLozhYKTtFNRSENIL5H7k=',
07:01:15             dependencies: true
07:01:15           },
07:01:15           'file:///home/iojs/node-tmp/.tmp.2970/test-policy-integrity-permutation-118/worker-spawner.cjs': {
07:01:15             integrity: 'sha256-23P4m8edtJAPTH24RJHIHMEuMVgP7QKcgWBSyj6FxPc= sha256-XTRkNC3vxo+zvjv7CD8iapeqc7npNN7TwqRR0TOv5lg=',
07:01:15             dependencies: true
07:01:15           }
07:01:15         }
07:01:15       }
07:01:15     }
07:01:15     exit code: 1 signal: null
07:01:15     stdout: 
07:01:15     stderr: 
07:01:15     /home/iojs/build/workspace/node-test-commit-arm/nodes/centos7-arm64-gcc8/test/pummel/test-policy-integrity.js:187
07:01:15             throw e;
07:01:15             ^
07:01:15     
07:01:15     AssertionError [ERR_ASSERTION]: Expected values to be strictly equal:
07:01:15     
07:01:15     1 !== 0
07:01:15     
07:01:15         at ChildProcess.<anonymous> (/home/iojs/build/workspace/node-test-commit-arm/nodes/centos7-arm64-gcc8/test/pummel/test-policy-integrity.js:170:18)
07:01:15         at ChildProcess.emit (node:events:369:20)
07:01:15         at Process.ChildProcess._handle.onexit (node:internal/child_process:290:12) {
07:01:15       generatedMessage: true,
07:01:15       code: 'ERR_ASSERTION',
07:01:15       actual: 1,
07:01:15       expected: 0,
07:01:15       operator: 'strictEqual'
07:01:15     }
07:01:15   ...

Metadata

Assignees

No one assigned

    Labels

    flaky-testIssues and PRs related to the tests with unstable failures on the CI.policyIssues and PRs related to the policy subsystem.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions