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

Merged
merged 1 commit into from
Dec 23, 2024

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.53%. Comparing base (48c75bc) to head (ec65297).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #54657      +/-   ##
==========================================
- Coverage   88.54%   88.53%   -0.01%     
==========================================
  Files         657      657              
  Lines      190395   190395              
  Branches    36552    36549       -3     
==========================================
- Hits       168580   168567      -13     
- Misses      14993    14996       +3     
- Partials     6822     6832      +10     

see 33 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

@avivkeller
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

@avivkeller
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

@avivkeller
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).

@avivkeller
Copy link
Member

avivkeller 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.

@avivkeller
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

@marco-ippolito marco-ippolito added the request-ci Add this label to start a Jenkins CI on a PR. label Dec 23, 2024
@marco-ippolito
Copy link
Member Author

I got a Windows Arm64 VM on azure 💀 lets see if I can fix this bug

@github-actions github-actions bot removed the request-ci Add this label to start a Jenkins CI on a PR. label Dec 23, 2024
@nodejs-github-bot
Copy link
Collaborator

@marco-ippolito
Copy link
Member Author

wait what its green
image

@marco-ippolito marco-ippolito added the commit-queue Add this label to land a pull request using GitHub Actions. label Dec 23, 2024
@nodejs-github-bot nodejs-github-bot removed the commit-queue Add this label to land a pull request using GitHub Actions. label Dec 23, 2024
@nodejs-github-bot nodejs-github-bot merged commit 56d5865 into nodejs:main Dec 23, 2024
61 checks passed
@nodejs-github-bot
Copy link
Collaborator

Landed in 56d5865

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.

9 participants