Skip to content

test-permission-deny-fs-wildcard always fails during coverage-windows GitHub action #47093

Description

@tniessen

While looking at the logs of #47091, I noticed that test-permission-deny-fs-wildcard appears to always fail during the coverage-windows GitHub action:

not ok 2199 parallel/test-permission-deny-fs-wildcard
  ---
  duration_ms: 0.180
  severity: fail
  exitcode: 1
  stack: |-
    node:assert:125
      throw new AssertionError(obj);
      ^
    
    AssertionError [ERR_ASSERTION]: Missing expected exception.
        at Object.<anonymous> (D:\a\node\node\test\parallel\test-permission-deny-fs-wildcard.js:49:10)
        at Module._compile (node:internal/modules/cjs/loader:1287:14)
        at Module._extensions..js (node:internal/modules/cjs/loader:1341:10)
        at Module.load (node:internal/modules/cjs/loader:1145:32)
        at Module._load (node:internal/modules/cjs/loader:984:12)
        at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:83:12)
        at node:internal/main/run_main_module:23:47 {
      generatedMessage: false,
      code: 'ERR_ASSERTION',
      actual: undefined,
      expected: [Function (anonymous)],
      operator: 'throws'
    }
    
    Node.js v20.0.0-pre
  ...

This happens on the main branch, too.

Activity

  1. added
    windowsIssues and PRs related to the Windows platform.
    testIssues and PRs related to Node.js core tests and test infrastructure.
    on Mar 14, 2023
  2. tniessen commented on Mar 14, 2023

    @tniessen
    MemberAuthor

    Oh, this seems surprisingly simple. The test incorrectly assumes that path.resolve('/') === 'C:\\', which is not true in general. GitHub actions seem to use D:\ as the working directory.

  3. added
    permissionIssues and PRs related to the Permission Model.
    on Aug 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    permissionIssues and PRs related to the Permission Model.testIssues and PRs related to Node.js core tests and test infrastructure.windowsIssues and PRs related to the Windows platform.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions