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

lib: propagate aborted state to dependent signals before firing events #54826

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

jazelly
Copy link
Contributor

@jazelly jazelly commented Sep 7, 2024

Fixes: #54466
Fixes: #54601

@nodejs-github-bot nodejs-github-bot added the needs-ci PRs that need a full CI run. label Sep 7, 2024
@jazelly
Copy link
Contributor Author

jazelly commented Sep 7, 2024

I am not sure if I should update WPT together with this PR, considering @RedYetiDev has drafted a PR to cover this.

@jazelly jazelly changed the title lib: propogate aborted state to dependent signals before firing events lib: propagate aborted state to dependent signals before firing events Sep 7, 2024
@jazelly jazelly force-pushed the fix-54466 branch 4 times, most recently from a40318c to 21864d2 Compare September 7, 2024 09:58
@RedYetiDev
Copy link
Member

RedYetiDev commented Sep 7, 2024

I am not sure if I should update WPT together with this PR, considering @RedYetiDev has drafted a PR to cover this.

I don't think the WPT files need to be updated in this PR, IMO one thing at a time.

But, if you could add a test, that'd be helpful IMO.

@RedYetiDev RedYetiDev added abortcontroller Issues and PRs related to the AbortController API web-standards Issues and PRs related to Web APIs labels Sep 7, 2024
@jazelly
Copy link
Contributor Author

jazelly commented Sep 7, 2024

sure, I'll add a test

@jazelly jazelly marked this pull request as draft September 7, 2024 10:46
Copy link

codecov bot commented Sep 7, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 88.04%. Comparing base (59c7c55) to head (39b8e88).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main   #54826   +/-   ##
=======================================
  Coverage   88.03%   88.04%           
=======================================
  Files         652      652           
  Lines      183763   183793   +30     
  Branches    35860    35861    +1     
=======================================
+ Hits       161774   161813   +39     
+ Misses      15237    15232    -5     
+ Partials     6752     6748    -4     
Files with missing lines Coverage Δ
lib/internal/abort_controller.js 98.03% <100.00%> (+0.12%) ⬆️

... and 26 files with indirect coverage changes

@RedYetiDev
Copy link
Member

RedYetiDev commented Sep 8, 2024

Nice!

CC @shaseley (from the spec proposal, authored the original issue)

@jasnell jasnell added the notable-change PRs with changes that should be highlighted in changelogs. label Sep 9, 2024
Copy link
Contributor

github-actions bot commented Sep 9, 2024

The notable-change PRs with changes that should be highlighted in changelogs. label has been added by @jasnell.

Please suggest a text for the release notes if you'd like to include a more detailed summary, then proceed to update the PR description with the text or a link to the notable change suggested text comment. Otherwise, the commit will be placed in the Other Notable Changes section.

@RedYetiDev RedYetiDev added the request-ci Add this label to start a Jenkins CI on a PR. label Sep 13, 2024
@github-actions github-actions bot added request-ci-failed An error occurred while starting CI via request-ci label, and manual interventon is needed. and removed request-ci Add this label to start a Jenkins CI on a PR. labels Sep 13, 2024
Copy link
Contributor

Failed to start CI
   ⚠  Something was pushed to the Pull Request branch since the last approving review.
   ✘  Refusing to run CI on potentially unsafe PR
https://github.com/nodejs/node/actions/runs/10855585828

@jasnell
Copy link
Member

jasnell commented Sep 13, 2024

Probably safest to mark it as such

@RedYetiDev RedYetiDev added the semver-minor PRs that contain new features and should be released in the next minor version. label Sep 13, 2024
@jazelly
Copy link
Contributor Author

jazelly commented Sep 15, 2024

looks like I need another approval after addressing the PR comments.

Copy link
Contributor

@jakecastelli jakecastelli left a comment

Choose a reason for hiding this comment

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

Looks like this PR has merge conflicts now

@jakecastelli jakecastelli added request-ci Add this label to start a Jenkins CI on a PR. and removed request-ci-failed An error occurred while starting CI via request-ci label, and manual interventon is needed. labels Sep 16, 2024
@github-actions github-actions bot removed the request-ci Add this label to start a Jenkins CI on a PR. label Sep 16, 2024
@nodejs-github-bot

This comment was marked as outdated.

@RedYetiDev RedYetiDev added the author ready PRs that have at least one approval, no pending requests for changes, and a CI started. label Sep 18, 2024
@RedYetiDev
Copy link
Member

  • CI Passing
  • Collaborator Approvals

I've applied the "author ready" label, as this should be ready for an author to 🚀 land it.

@RedYetiDev RedYetiDev mentioned this pull request Sep 18, 2024
@aduh95
Copy link
Contributor

aduh95 commented Sep 19, 2024

this should be ready for an author to 🚀 land it.

The only author in the PR is jazelly. author ready PRs that have at least one approval, no pending requests for changes, and a CI started. does not mean the PR should be merged by its author, rather than the author has nothing more to do.

@jakecastelli
Copy link
Contributor

Hi folks, I was wondering if it makes sense to let the PR author also update the WPT related tests in the same PR (in separate commits), I do appreciate the effort of doing so in 54468 @RedYetiDev, on the other hand I feel like it may be more consistent to have them in one PR (easy to know if any relate test would fail or not) plus for future debugging / tracing purpose.
cc. @jazelly @aduh95 @jasnell

@RedYetiDev
Copy link
Member

SGTM, I'm happy to have my PR just take care of the leftovers (that haven't been updated from PRs like this)

@jakecastelli jakecastelli added the commit-queue-rebase Add this label to allow the Commit Queue to land a PR in several commits. label Sep 19, 2024
@jazelly
Copy link
Contributor Author

jazelly commented Sep 19, 2024

Awesome. I have updated the PR with latest wpt for abort with a separate commit. Also addressed PR comments and redundant test cases in the original commit. PTAL

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

@nodejs-github-bot
Copy link
Collaborator

nodejs-github-bot commented Sep 19, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
abortcontroller Issues and PRs related to the AbortController API author ready PRs that have at least one approval, no pending requests for changes, and a CI started. commit-queue-rebase Add this label to allow the Commit Queue to land a PR in several commits. needs-ci PRs that need a full CI run. notable-change PRs with changes that should be highlighted in changelogs. semver-minor PRs that contain new features and should be released in the next minor version. web-standards Issues and PRs related to Web APIs
Projects
None yet
6 participants