Skip to content

[v20.x backport] test_runner: support source mapped test locations - #52872

Closed
MoLow wants to merge 2 commits into
nodejs:v20.x-stagingfrom
MoLow:test-runner-v20-backports
Closed

[v20.x backport] test_runner: support source mapped test locations#52872
MoLow wants to merge 2 commits into
nodejs:v20.x-stagingfrom
MoLow:test-runner-v20-backports

Conversation

@MoLow

@MoLowMoLow commented May 7, 2024

Copy link
Copy Markdown
Member

Backport for #52010

cjihrig added 2 commits May 7, 2024 11:27
This commit adds support for source mapping test locations
when the --enable-source-maps flag is present.
Fixes: nodejs#51392
PR-URL: nodejs#52010Fixes: nodejs#51610
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com>
Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
Reviewed-By: Chemi Atlow <chemi@atlow.co.il>
Reviewed-By: Moshe Atlow <moshe@atlow.co.il>
This commit transforms test locations to paths when V8 provides
file URLs (which seems to be for ESM files).
Fixes: nodejs#51610
PR-URL: nodejs#52010Fixes: nodejs#51392
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com>
Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
Reviewed-By: Chemi Atlow <chemi@atlow.co.il>
Reviewed-By: Moshe Atlow <moshe@atlow.co.il>
@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

Review requested:

  • @nodejs/test_runner

@nodejs-github-botnodejs-github-bot added needs-ci PRs that need a full CI run. test_runner Issues and PRs related to the test runner subsystem. v20.x labels May 7, 2024
@MoLow

MoLow commented May 7, 2024

Copy link
Copy Markdown
MemberAuthor

CC @marco-ippolito @nodejs/releasers

@rozzillarozzilla left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! 🔝 🎩

@marco-ippolitomarco-ippolito added the request-ci Add this label to start a Jenkins CI on a PR. label May 16, 2024
@github-actionsgithub-actionsBot removed the request-ci Add this label to start a Jenkins CI on a PR. label May 16, 2024
@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

marco-ippolito pushed a commit that referenced this pull request May 17, 2024
This commit adds support for source mapping test locations
when the --enable-source-maps flag is present.
Fixes: #51392
PR-URL: #52010
Backport-PR-URL: #52872Fixes: #51610
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com>
Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
Reviewed-By: Chemi Atlow <chemi@atlow.co.il>
Reviewed-By: Moshe Atlow <moshe@atlow.co.il>
marco-ippolito pushed a commit that referenced this pull request May 17, 2024
This commit transforms test locations to paths when V8 provides
file URLs (which seems to be for ESM files).
Fixes: #51610
PR-URL: #52010
Backport-PR-URL: #52872Fixes: #51392
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com>
Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
Reviewed-By: Chemi Atlow <chemi@atlow.co.il>
Reviewed-By: Moshe Atlow <moshe@atlow.co.il>
@marco-ippolito

Copy link
Copy Markdown
Member

Landed in 8e7e778...be587e3

@MoLow
MoLow deleted the test-runner-v20-backports branch May 19, 2024 07:13
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs-ciPRs that need a full CI run.test_runnerIssues and PRs related to the test runner subsystem.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants

@MoLow@nodejs-github-bot@marco-ippolito@rozzilla@RafaelGSS@cjihrig