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

support for watchedPromises in fakeVirtualSupport #8661

Merged

Conversation

Chris-Hibbert
Copy link
Contributor

Needed by #8488

refs: #8488
refs: #8618

Description

Move the support for watchedPromises in #8618 from master to release

Security Considerations

N/A

Scaling Considerations

N/A

Documentation Considerations

None

Testing Considerations

Includes updates to tests.

Upgrade Considerations

yes.

@Chris-Hibbert Chris-Hibbert added test liveslots requires vat-upgrade to deploy changes labels Dec 14, 2023
@Chris-Hibbert Chris-Hibbert self-assigned this Dec 14, 2023
@Chris-Hibbert Chris-Hibbert removed the request for review from mhofman December 14, 2023 21:35
@Chris-Hibbert Chris-Hibbert changed the base branch from release-mainnet1B to dev-upgrade-wallet-factory-2 December 14, 2023 23:45
Copy link
Member

@mhofman mhofman left a comment

Choose a reason for hiding this comment

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

I think having an independent ID for promises in the tests would match the behavior of the master PR closer, but I'm ok if this lands as is

Comment on lines 162 to 168
function allocatePromiseID() {
const exportID = nextExportID;
nextExportID += 1;
return exportID;
}
Copy link
Member

Choose a reason for hiding this comment

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

It would feel more consistent to use a separate ID

Suggested change
function allocatePromiseID() {
const exportID = nextExportID;
nextExportID += 1;
return exportID;
}
let nextPromiseID = 1;
function allocatePromiseID() {
const promiseID = nextPromiseID;
nextPromiseID += 1;
return promiseID;
}

@Chris-Hibbert Chris-Hibbert added the force:integration Force integration tests to run on PR label Dec 15, 2023
@Chris-Hibbert Chris-Hibbert merged commit 7f58a76 into dev-upgrade-wallet-factory-2 Dec 15, 2023
60 checks passed
@Chris-Hibbert Chris-Hibbert deleted the 8618-fakeVirtual-watchedPromises branch December 15, 2023 23:04
Chris-Hibbert added a commit that referenced this pull request Jan 16, 2024
* test: support for watchedPromises in fakeVirtualSupport

Needed by #8488

* chore: update allocatePromiseID to use nextExportID

* chore: distinct ID range for proises
mhofman pushed a commit that referenced this pull request Jan 19, 2024
* test: support for watchedPromises in fakeVirtualSupport

Needed by #8488

* chore: update allocatePromiseID to use nextExportID

* chore: distinct ID range for proises
mhofman pushed a commit that referenced this pull request Jan 19, 2024
* test: support for watchedPromises in fakeVirtualSupport

Needed by #8488

* chore: update allocatePromiseID to use nextExportID

* chore: distinct ID range for proises
anilhelvaci pushed a commit to Jorge-Lopes/agoric-sdk that referenced this pull request Mar 4, 2024
…ic#8772)

* test: support for watchedPromises in fakeVirtualSupport

Needed by Agoric#8488

* chore: update allocatePromiseID to use nextExportID

* chore: distinct ID range for proises
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
force:integration Force integration tests to run on PR liveslots requires vat-upgrade to deploy changes test
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants