Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: check typescript loader #54657

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

marco-ippolito
Copy link
Member

@marco-ippolito marco-ippolito commented Aug 30, 2024

Refs: #54645

@nodejs-github-bot
Copy link
Collaborator

Review requested:

  • @nodejs/typescript

@nodejs-github-bot nodejs-github-bot added esm Issues and PRs related to the ECMAScript Modules implementation. needs-ci PRs that need a full CI run. strip-types Issues or PRs related to strip-types support test Issues and PRs related to the tests. labels Aug 30, 2024
@marco-ippolito marco-ippolito marked this pull request as ready for review August 30, 2024 17:08
@marco-ippolito marco-ippolito added the wip Issues and PRs that are still a work in progress. label Aug 30, 2024
@marco-ippolito marco-ippolito added the request-ci Add this label to start a Jenkins CI on a PR. label Aug 30, 2024
@github-actions github-actions bot removed the request-ci Add this label to start a Jenkins CI on a PR. label Aug 30, 2024
@nodejs-github-bot
Copy link
Collaborator

Copy link

codecov bot commented Aug 30, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 88.41%. Comparing base (10addb0) to head (e83b208).

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #54657      +/-   ##
==========================================
- Coverage   88.41%   88.41%   -0.01%     
==========================================
  Files         652      652              
  Lines      186864   186864              
  Branches    36064    36059       -5     
==========================================
- Hits       165217   165214       -3     
- Misses      14888    14900      +12     
+ Partials     6759     6750       -9     

see 18 files with indirect coverage changes

@nodejs-github-bot
Copy link
Collaborator

@marco-ippolito marco-ippolito force-pushed the fix/hook/windows branch 3 times, most recently from 6f8ba00 to e9789fe Compare August 31, 2024 06:40
@marco-ippolito marco-ippolito changed the title test: check typescript hook test: check typescript loader Aug 31, 2024
@marco-ippolito marco-ippolito added the request-ci Add this label to start a Jenkins CI on a PR. label Aug 31, 2024
@github-actions github-actions bot removed the request-ci Add this label to start a Jenkins CI on a PR. label Aug 31, 2024
@nodejs-github-bot
Copy link
Collaborator

@RedYetiDev
Copy link
Member

FWIW new information has come to light in that issue and I don't think this fixes it.

@nodejs-github-bot
Copy link
Collaborator

@marco-ippolito
Copy link
Member Author

FWIW new information has come to light in that issue and I don't think this fixes it.

Im checking if I can reproduce on the CI since I dont have a arm64 windows machine

@RedYetiDev
Copy link
Member

I didn't know the CI even had that machine, cool!

@marco-ippolito marco-ippolito added the request-ci Add this label to start a Jenkins CI on a PR. label Sep 1, 2024
@github-actions github-actions bot removed the request-ci Add this label to start a Jenkins CI on a PR. label Sep 1, 2024
@nodejs-github-bot
Copy link
Collaborator

@RedYetiDev
Copy link
Member

Windows ARM64 failure:

    ✖ execute a TypeScript loader and a .ts file (470.5079ms)
      AssertionError [ERR_ASSERTION]: The input did not match the regular expression /Hello, TypeScript!/. Input:
      
      ''
      
          at TestContext.<anonymous> (file:///d:/workspace/node-test-binary-windows-js-suites/node/test/es-module/test-typescript.mjs:337:3)
          at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
          at async Test.run (node:internal/test_runner/test:888:9)
          at async Test.processPendingSubtests (node:internal/test_runner/test:584:7) {
        generatedMessage: true,
        code: 'ERR_ASSERTION',
        actual: '',
        expected: /Hello, TypeScript!/,
        operator: 'match'
      }
    
    ✖ execute a TypeScript loader and a .js file (444.2561ms)
      AssertionError [ERR_ASSERTION]: The input did not match the regular expression /Hello, TypeScript!/. Input:
      
      ''
      
          at TestContext.<anonymous> (file:///d:/workspace/node-test-binary-windows-js-suites/node/test/es-module/test-typescript.mjs:350:3)
          at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
          at async Test.run (node:internal/test_runner/test:888:9)
          at async Test.processPendingSubtests (node:internal/test_runner/test:584:7) {
        generatedMessage: true,
        code: 'ERR_ASSERTION',
        actual: '',
        expected: /Hello, TypeScript!/,
        operator: 'match'
      }
    
    ℹ tests 29
    ℹ suites 0
    ℹ pass 27
    ℹ fail 2
    ℹ cancelled 0
    ℹ skipped 0
    ℹ todo 0
    ℹ duration_ms 10360.1598
    
    ✖ failing tests:
    
    test at test\es-module\test-typescript.mjs:328:1
    ✖ execute a TypeScript loader and a .ts file (470.5079ms)
      AssertionError [ERR_ASSERTION]: The input did not match the regular expression /Hello, TypeScript!/. Input:
      
      ''
      
          at TestContext.<anonymous> (file:///d:/workspace/node-test-binary-windows-js-suites/node/test/es-module/test-typescript.mjs:337:3)
          at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
          at async Test.run (node:internal/test_runner/test:888:9)
          at async Test.processPendingSubtests (node:internal/test_runner/test:584:7) {
        generatedMessage: true,
        code: 'ERR_ASSERTION',
        actual: '',
        expected: /Hello, TypeScript!/,
        operator: 'match'
      }
    
    test at test\es-module\test-typescript.mjs:341:1
    ✖ execute a TypeScript loader and a .js file (444.2561ms)
      AssertionError [ERR_ASSERTION]: The input did not match the regular expression /Hello, TypeScript!/. Input:
      
      ''
      
          at TestContext.<anonymous> (file:///d:/workspace/node-test-binary-windows-js-suites/node/test/es-module/test-typescript.mjs:350:3)
          at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
          at async Test.run (node:internal/test_runner/test:888:9)
          at async Test.processPendingSubtests (node:internal/test_runner/test:584:7) {
        generatedMessage: true,
        code: 'ERR_ASSERTION',
        actual: '',
        expected: /Hello, TypeScript!/,
        operator: 'match'
      }

(Yay, because we can repro the issue)

@marco-ippolito
Copy link
Member Author

Yay so yes we got the repro now we have to wait for swc + amaro update

@legendecas
Copy link
Member

It seems GitHub Action doesn't provide an arm64 windows environment and we have to rely on the jenkins job to cover this environment (and thus not being able to test this in nodejs/amaro unless setting up a jenkins job on that repo).

@RedYetiDev
Copy link
Member

RedYetiDev commented Sep 2, 2024

It seems GitHub Action doesn't provide an arm64 windows environment

According to https://docs.github.com/en/enterprise-cloud@latest/actions/using-github-hosted-runners/using-larger-runners/about-larger-runners#specifications-for-general-larger-runners, Github does have (in beta) these runners. But it appears to be a whole long process to set one up.

@targos
Copy link
Member

targos commented Sep 2, 2024

Unfortunately, GitHub was not able to give us free access to large runners.

@RedYetiDev
Copy link
Member

@marco-ippolito
Copy link
Member Author

Rebased, lets see if newer swc version have the same problem

@marco-ippolito marco-ippolito added the request-ci Add this label to start a Jenkins CI on a PR. label Oct 14, 2024
@github-actions github-actions bot removed the request-ci Add this label to start a Jenkins CI on a PR. label Oct 14, 2024
@nodejs-github-bot
Copy link
Collaborator

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
esm Issues and PRs related to the ECMAScript Modules implementation. needs-ci PRs that need a full CI run. strip-types Issues or PRs related to strip-types support test Issues and PRs related to the tests. wip Issues and PRs that are still a work in progress.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants