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_runner: print formatted errors on summary #56911

Merged
merged 2 commits into from
Feb 9, 2025

Conversation

pmarchini
Copy link
Member

Following this discussion: #56662 (comment)

This PR should address #56902

@pmarchini pmarchini requested a review from cjihrig February 4, 2025 09:37
@nodejs-github-bot
Copy link
Collaborator

Review requested:

  • @nodejs/test_runner

@nodejs-github-bot nodejs-github-bot added needs-ci PRs that need a full CI run. test_runner Issues and PRs related to the test runner subsystem. labels Feb 4, 2025
Copy link

codecov bot commented Feb 4, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 89.18%. Comparing base (2bd5694) to head (666cb91).
Report is 65 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #56911      +/-   ##
==========================================
+ Coverage   89.16%   89.18%   +0.02%     
==========================================
  Files         665      665              
  Lines      192602   192555      -47     
  Branches    37050    37050              
==========================================
  Hits       171732   171732              
+ Misses      13678    13632      -46     
+ Partials     7192     7191       -1     
Files with missing lines Coverage Δ
lib/internal/test_runner/reporter/spec.js 96.58% <100.00%> (+0.39%) ⬆️

... and 53 files with indirect coverage changes

@cjihrig cjihrig added dont-land-on-v18.x PRs that should not land on the v18.x-staging branch and should not be released in v18.x. dont-land-on-v20.x PRs that should not land on the v20.x-staging branch and should not be released in v20.x. labels Feb 5, 2025
@pmarchini pmarchini added the request-ci Add this label to start a Jenkins CI on a PR. label Feb 5, 2025
@github-actions github-actions bot removed the request-ci Add this label to start a Jenkins CI on a PR. label Feb 5, 2025
@nodejs-github-bot

This comment was marked as outdated.

@nodejs-github-bot

This comment was marked as outdated.

@nodejs-github-bot
Copy link
Collaborator

nodejs-github-bot commented Feb 6, 2025

@pmarchini pmarchini added the author ready PRs that have at least one approval, no pending requests for changes, and a CI started. label Feb 6, 2025
@jasnell jasnell added the commit-queue Add this label to land a pull request using GitHub Actions. label Feb 9, 2025
@nodejs-github-bot nodejs-github-bot added commit-queue-failed An error occurred while landing this pull request using GitHub Actions. and removed commit-queue Add this label to land a pull request using GitHub Actions. labels Feb 9, 2025
@nodejs-github-bot
Copy link
Collaborator

Commit Queue failed
- Loading data for nodejs/node/pull/56911
✔  Done loading data for nodejs/node/pull/56911
----------------------------------- PR info ------------------------------------
Title      test_runner: print formatted errors on summary (#56911)
Author     Pietro Marchini <[email protected]> (@pmarchini)
Branch     pmarchini:issue/56902 -> nodejs:main
Labels     author ready, needs-ci, dont-land-on-v18.x, test_runner, dont-land-on-v20.x
Commits    2
 - test_runner: print formatted errors on summary
 - test_runner: avoid unnecessary variable declaration
Committers 1
 - Pietro Marchini <[email protected]>
PR-URL: https://github.com/nodejs/node/pull/56911
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Chemi Atlow <[email protected]>
Reviewed-By: James M Snell <[email protected]>
------------------------------ Generated metadata ------------------------------
PR-URL: https://github.com/nodejs/node/pull/56911
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Chemi Atlow <[email protected]>
Reviewed-By: James M Snell <[email protected]>
--------------------------------------------------------------------------------
   ℹ  This PR was created on Tue, 04 Feb 2025 09:37:33 GMT
   ✔  Approvals: 3
   ✔  - Colin Ihrig (@cjihrig): https://github.com/nodejs/node/pull/56911#pullrequestreview-2596108820
   ✔  - Chemi Atlow (@atlowChemi): https://github.com/nodejs/node/pull/56911#pullrequestreview-2604322740
   ✔  - James M Snell (@jasnell) (TSC): https://github.com/nodejs/node/pull/56911#pullrequestreview-2604324168
   ✔  Last GitHub CI successful
   ℹ  Last Full PR CI on 2025-02-06T11:18:17Z: https://ci.nodejs.org/job/node-test-pull-request/65029/
- Querying data for job/node-test-pull-request/65029/
   ✔  Last Jenkins CI successful
--------------------------------------------------------------------------------
   ✔  No git cherry-pick in progress
   ✔  No git am in progress
   ✔  No git rebase in progress
--------------------------------------------------------------------------------
- Bringing origin/main up to date...
From https://github.com/nodejs/node
 * branch                  main       -> FETCH_HEAD
✔  origin/main is now up-to-date
- Downloading patch for 56911
From https://github.com/nodejs/node
 * branch                  refs/pull/56911/merge -> FETCH_HEAD
✔  Fetched commits as d1f8ccb10dab..666cb91c6964
--------------------------------------------------------------------------------
[main f0416a0650] test_runner: print formatted errors on summary
 Author: Pietro Marchini <[email protected]>
 Date: Tue Feb 4 13:50:52 2025 +0100
 4 files changed, 112 insertions(+), 19 deletions(-)
 create mode 100644 test/fixtures/test-runner/output/test-runner-watch-spec.mjs
 create mode 100644 test/fixtures/test-runner/output/test-runner-watch-spec.snapshot
[main 3557f27e18] test_runner: avoid unnecessary variable declaration
 Author: Pietro Marchini <[email protected]>
 Date: Tue Feb 4 21:51:50 2025 +0100
 1 file changed, 1 insertion(+), 2 deletions(-)
   ✔  Patches applied
There are 2 commits in the PR. Attempting autorebase.
Rebasing (2/4)
Executing: git node land --amend --yes
--------------------------------- New Message ----------------------------------
test_runner: print formatted errors on summary

PR-URL: #56911
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Chemi Atlow <[email protected]>
Reviewed-By: James M Snell <[email protected]>

[detached HEAD ca1afd2758] test_runner: print formatted errors on summary
Author: Pietro Marchini <[email protected]>
Date: Tue Feb 4 13:50:52 2025 +0100
4 files changed, 112 insertions(+), 19 deletions(-)
create mode 100644 test/fixtures/test-runner/output/test-runner-watch-spec.mjs
create mode 100644 test/fixtures/test-runner/output/test-runner-watch-spec.snapshot
Rebasing (3/4)
Rebasing (4/4)
Executing: git node land --amend --yes
--------------------------------- New Message ----------------------------------
test_runner: avoid unnecessary variable declaration

PR-URL: #56911
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Chemi Atlow <[email protected]>
Reviewed-By: James M Snell <[email protected]>

[detached HEAD e71dd77b5e] test_runner: avoid unnecessary variable declaration
Author: Pietro Marchini <[email protected]>
Date: Tue Feb 4 21:51:50 2025 +0100
1 file changed, 1 insertion(+), 2 deletions(-)
Successfully rebased and updated refs/heads/main.

ℹ Add commit-queue-squash label to land the PR as one commit, or commit-queue-rebase to land as separate commits.

https://github.com/nodejs/node/actions/runs/13228205767

@cjihrig cjihrig removed the commit-queue-failed An error occurred while landing this pull request using GitHub Actions. label Feb 9, 2025
@cjihrig cjihrig added commit-queue Add this label to land a pull request using GitHub Actions. commit-queue-squash Add this label to instruct the Commit Queue to squash all the PR commits into the first one. labels Feb 9, 2025
@nodejs-github-bot nodejs-github-bot removed the commit-queue Add this label to land a pull request using GitHub Actions. label Feb 9, 2025
@nodejs-github-bot nodejs-github-bot merged commit a2aa6ca into nodejs:main Feb 9, 2025
81 checks passed
@nodejs-github-bot
Copy link
Collaborator

Landed in a2aa6ca

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
author ready PRs that have at least one approval, no pending requests for changes, and a CI started. commit-queue-squash Add this label to instruct the Commit Queue to squash all the PR commits into the first one. dont-land-on-v18.x PRs that should not land on the v18.x-staging branch and should not be released in v18.x. dont-land-on-v20.x PRs that should not land on the v20.x-staging branch and should not be released in v20.x. needs-ci PRs that need a full CI run. test_runner Issues and PRs related to the test runner subsystem.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants