[go: up one dir, main page]

Page MenuHomePhabricator

Bug 2042996 - Add tests for disposal vs iterator.return() errors during generator close.
ClosedPublic

Authored by debadree333 on Aug 1 2026, 5:56 PM.
Referenced Files
F84385056: D315810.1792239913.diff
Fri, Oct 16, 12:25 PM
Unknown Object (File)
Tue, Oct 13, 11:57 AM
Unknown Object (File)
Sun, Oct 11, 2:13 PM
Unknown Object (File)
Sun, Oct 4, 10:28 AM
Unknown Object (File)
Sun, Oct 4, 5:44 AM
Unknown Object (File)
Sun, Oct 4, 4:13 AM
Unknown Object (File)
Sun, Oct 4, 4:13 AM
Unknown Object (File)
Sat, Oct 3, 9:44 PM
Subscribers
None

Details

Summary

This a follow up to Bug 2063576 adding tests for 2042996 since the previous bug already solved this issue internally itself

Diff Detail

Event Timeline

debadree333 created this revision.
phab-bot changed the visibility from "Custom Policy" to "Public (No Login Required)".Aug 1 2026, 5:56 PM
phab-bot changed the edit policy from "Custom Policy" to "Restricted Project (Project)".
phab-bot removed a project: secure-revision.
debadree333 updated this revision to Diff 1337460.
debadree333 updated this revision to Diff 1337464.
debadree333 updated this revision to Diff 1337470.

Reorder: move for-of correctness fixes below the 1899502 stack

Shorten summary and simplify tests

debadree333 updated this revision to Diff 1356606.
debadree333 retitled this revision from WIP: Bug 2042996 - Prefer disposal errors during generator close. to Bug 2042996 - Add tests for disposal vs iterator.return() errors during generator close. r?arai.
debadree333 edited the summary of this revision. (Show Details)
debadree333 added a reviewer: arai.

Rebase onto latest main; drop landed 2040286; 2042996 is tests-only after 2063576; fix async IteratorClose throw-completion

Move tests-only 2042996 to the bottom of the stack so it can land independently

debadree333 updated this revision to Diff 1356652.
debadree333 removed a reviewer: arai.
debadree333 retitled this revision from Bug 2042996 - Add tests for disposal vs iterator.return() errors during generator close. r?arai to WIP: Bug 2042996 - Add tests for disposal vs iterator.return() errors during generator close..
This comment was removed by debadree333.
debadree333 updated this revision to Diff 1356659.
debadree333 retitled this revision from WIP: Bug 2042996 - Add tests for disposal vs iterator.return() errors during generator close. to Bug 2042996 - Add tests for disposal vs iterator.return() errors during generator close..

Drop reviewer; keep revisions open for review

debadree333 updated this revision to Diff 1356668.
debadree333 retitled this revision from Bug 2042996 - Add tests for disposal vs iterator.return() errors during generator close. to WIP: Bug 2042996 - Add tests for disposal vs iterator.return() errors during generator close..

Mark stack as WIP

Simplify tests: drop comments, share sync/async helpers, remove redundant break case.

debadree333 edited the summary of this revision. (Show Details)

Use named object-destructuring params in testSync/testAsync.

Restore nested lexical block around yield so generator close must UnwindEnvironment.

debadree333 added a reviewer: arai.

Hello arai this patch simply adds tests for the bug, the bug was autofixed by the other bug bugzilla.mozilla.org/show_bug.cgi?id=2063576

The remaining patch stack i am slowly working through to resolve the remaining issues and transform to the static disposal idea

I tried submitting to try but there seems to be some issue:

➜  mozilla-unified git:(explicit-resource-management-enhancements-and-fixes) ✗ ./mach try --preset sm-shell
Pushing to try...
Using 9e4ba5f8a056a91000b369dd508c1e438e3a2192 as the git base commit.
Submitting stack of 7 nodes and the try commit.
abort: error submitting patches to Lando.
Missing permissions: main.scm_level_1
arai added a project: testing-approved.

Please remove "WIP:" prefix from the commit message.
it's automatically added when you submit with wip status, and it's not automatically removed if you convert it to "needs review" from the web interface.
You can remove it from "Edit Revision" link in the side bar.

For the try submission issue, it might be caused by the account you're using. There was recent change and I think now it requires LDAP account, not Firefox Account.
~/.mozbuild/lando_auth0_user_token.json file contains the current auth information (WARNING: do not disclose the content of the file),
you can check which account is used there.
If it looks using different account, or you're not sure, you can remove the file to reset it, so that you can perform the auth in the browser again.

Also, you can check if your account still has the access, by SSH-ing to hgmo (after setting up the SSH key):

ssh hg.mozilla.org

if it shows you have scm_level_1, then it could be the Lando's side issue, or maybe a temporary issue. You can ask in the Conduit room in Matrix.
If it shows you don't have scm_level_1, then it might have been expired for some reason. You could file a bug to re-activate it.

This revision is now accepted and ready to land.Sep 15 2026, 2:01 AM
debadree333 retitled this revision from WIP: Bug 2042996 - Add tests for disposal vs iterator.return() errors during generator close. to Bug 2042996 - Add tests for disposal vs iterator.return() errors during generator close..Sep 15 2026, 6:36 PM

Hello arai! Have removed the wip, I checked on ssh hg.mozilla.org and seems like i have the permission it says:

You are a member of the following LDAP groups that govern source control
access:

   scm_level_1

I have asked in the conduit channel, in the meantime would you be able to push to try? or if it looks ok maybe we can land!

Thank you!!