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

cleanup proposal output from extractor #9058

Merged
merged 2 commits into from
Mar 11, 2024
Merged

cleanup proposal output from extractor #9058

merged 2 commits into from
Mar 11, 2024

Conversation

turadg
Copy link
Member

@turadg turadg commented Mar 11, 2024

Description

Running #8624 tests locally I noticed some stray proposal- dirs under packages/builders,

proposal-15nVol:

proposal-3L8KIa:

proposal-6MvISf:

proposal-ASFNbi:

proposal-DAEasg:

proposal-IF2R6f:

proposal-PFlNAb:

proposal-VDCA6y:

proposal-VehBb9:

proposal-cKx6Pc:

proposal-j8af9z:
test-vtransfer-plan.json

proposal-kOH4ns:

proposal-lD2hPT:

proposal-nhN3VY:

proposal-onM0Zt:

proposal-peuCWj:

proposal-sGyA41:

proposal-tam6Es:

proposal-yNSjJ7:

proposal-yflqi7:

This makes the extractor delete the whole tmp dir when it's done.

Also refactors for fewer bindings to make the logic more clear.

Security Considerations

n/a, test

Scaling Considerations

n/a, test

Documentation Considerations

No need, reduces surprises

Testing Considerations

CI

Upgrade Considerations

n/a, test

@turadg turadg requested review from michaelfig and iomekam March 11, 2024 15:40
Copy link
Member

@michaelfig michaelfig left a comment

Choose a reason for hiding this comment

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

LGTM! Just one question that, if the void is the right thing, would be great to justify with a comment in the code.

]);
void fsAmbientPromises.rm(tmpDir, { recursive: true, force: true });
Copy link
Member

Choose a reason for hiding this comment

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

This is the only line I find a little suspect. Does voiding instead of awaiting this promise mean the script might exit before tmpDir is fully removed?

Copy link
Member Author

Choose a reason for hiding this comment

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

Because it's not awaited, if the Node process reaches termination before it's done I suppose it would be aborted. That seems very unlikely but on the outside chance it's not worth slowing down the test on that file IO.

Is a comment to that effect sufficient or do you think it's worth awaiting?

Copy link
Member Author

Choose a reason for hiding this comment

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

I'll go with the comment since that was the request

@turadg turadg force-pushed the ta/builders-cleanup branch from f0d8ff7 to 66eb91f Compare March 11, 2024 21:45
@turadg turadg added the automerge:rebase Automatically rebase updates, then merge label Mar 11, 2024
@turadg turadg force-pushed the ta/builders-cleanup branch from 66eb91f to 5520375 Compare March 11, 2024 22:15
@mergify mergify bot merged commit 21c29e2 into master Mar 11, 2024
66 checks passed
@mergify mergify bot deleted the ta/builders-cleanup branch March 11, 2024 22:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
automerge:rebase Automatically rebase updates, then merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants