Skip to content

fix: polyfill Promise.withResolvers for jsdom 30 on Node 20 prow image - #7447

Merged
hivecommons-hive[bot] merged 1 commit into
mainfrom
scanner/fix-withresolvers-polyfill
Oct 18, 2026
Merged

hivecommons-hive[bot] merged 1 commit into
mainfrom
scanner/fix-withresolvers-polyfill

Conversation

@hivecommons-hive

Copy link
Copy Markdown
Contributor

Closes #7446

pull-kubestellar-docs-test fails on every PR: jsdom 30's Document-impl.js close() calls the ES2024 Promise.withResolvers (native only in Node >= 22), so on the Node 20 prow image every jsdom worker teardown crashes — 1298/1298 tests pass but 74 unhandled errors force exit 1 (prow run 2111781981573353472 on #7440). The Iterator crash fixed in #7445 happened earlier in window creation and masked this one.

Fix: scripts/node-iterator-polyfill.cjs now also installs Promise.withResolvers on the host realm and mirrors it into jsdom's per-window vm contexts (same approach as the Iterator mirroring).

— hive: agent=scanner backend=copilot model=claude-fable-5 copilot=1.0.88

jsdom 30's Document-impl.js close() calls the ES2024 Promise.withResolvers
(native only in Node >= 22). On the Node 20 prow presubmit image every
jsdom worker teardown crashed with 'TypeError: Promise.withResolvers is
not a function' — 74 unhandled errors, exit 1 — once the Iterator
polyfill (#7445) stopped masking it. Install the polyfill on the host
realm and mirror it into jsdom's per-window vm contexts.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Signed-off-by: scanner <280983584+hivecommons-hive[bot]@users.noreply.github.com>
@kubestellar-prow

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign clubanderson for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@netlify

netlify Bot commented Oct 18, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for kubestellar-docs ready!

Name Link
🔨 Latest commit 0db1ebf
🔍 Latest deploy log https://app.netlify.com/projects/kubestellar-docs/deploys/6ad4bd6d47f788918839af7c
😎 Deploy Preview https://deploy-preview-7447--kubestellar-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@kubestellar-prow kubestellar-prow Bot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Oct 18, 2026
@kubestellar-prow kubestellar-prow Bot added the needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. label Oct 18, 2026
@github-actions github-actions Bot added documentation Improvements or additions to documentation and removed size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Oct 18, 2026
@kubestellar-prow

Copy link
Copy Markdown

Hi @hivecommons-hive[bot]. Thanks for your PR.

I'm waiting for a kubestellar member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@hivecommons-hive hivecommons-hive Bot added author/hive This repository's own hive (the App or one of its agent lanes) authored this PR dco All commits are DCO signed-off role/trusted Author is trusted for unattended merge (trusted-author role or registry/claim tier in require_tiers) stage/050-review-pending Review swarm requested; awaiting a verdict for the current head and removed dco-signoff: yes Indicates the PR's author has signed the DCO. labels Oct 18, 2026
@hivecommons-hive

Copy link
Copy Markdown
Contributor Author

hive/awaiting-ci: CI pending — sweep will merge when green.


🐝 Hive Agent: scanner | Instance: hosted-kubestellar-console-4vkt | SHA: 09eb3c2

— hive: agent=scanner backend=copilot model=claude-fable-5 copilot=1.0.88

@hivecommons-hive
hivecommons-hive Bot merged commit 012229d into main Oct 18, 2026
14 of 15 checks passed
@kubestellar-prow
kubestellar-prow Bot deleted the scanner/fix-withresolvers-polyfill branch October 18, 2026 12:41
@hivecommons-hive

Copy link
Copy Markdown
Contributor Author
Evidence bundle `#74470db1ebf` sha256:88a3062e913ab9be1d3b1b4ff366cde6578e798de2e6abfb5a49aa7a05c2ab71 — download from the dashboard or `hivectl review evidence #7447`.

@github-actions

Copy link
Copy Markdown
Contributor

Thank you for your contribution! Your PR has been merged.

Check out what's new:

Stay connected: Slack #kubestellar-dev | Multi-Cluster Survey

@hivecommons-hive hivecommons-hive Bot removed role/trusted Author is trusted for unattended merge (trusted-author role or registry/claim tier in require_tiers) stage/050-review-pending Review swarm requested; awaiting a verdict for the current head labels Oct 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

author/hive This repository's own hive (the App or one of its agent lanes) authored this PR copilot dco All commits are DCO signed-off documentation Improvements or additions to documentation needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[scanner] [shared-ci] pull-kubestellar-docs-test failing across kubestellar/docs (Promise.withResolvers, Node 20)

0 participants