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

feat: add config flag to control fakeDurable #5526

Merged
merged 1 commit into from
Jun 7, 2022

Conversation

FUDCo
Copy link
Contributor

@FUDCo FUDCo commented Jun 7, 2022

Swingset now forbids the use of the fakeDurable feature unless a global config flag enableFakeDurable is set to true in the kernel's config options.

fakeDurable is enabled without configuration in the mock virtual stuff.

Closes #5489

@FUDCo FUDCo added bug Something isn't working SwingSet package: SwingSet labels Jun 7, 2022
@FUDCo FUDCo requested a review from warner June 7, 2022 00:41
@FUDCo FUDCo self-assigned this Jun 7, 2022
Copy link
Member

@warner warner 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 I'd prefer we remove the extra call through manager-helper.js, but the others suggestions are less important to me. Feel free to land without them if you feel strongly.

packages/SwingSet/src/kernel/vat-loader/manager-helper.js Outdated Show resolved Hide resolved
packages/SwingSet/src/liveslots/collectionManager.js Outdated Show resolved Hide resolved
@@ -1005,6 +1005,7 @@ test('dropImports', async t => {
() => {
return { buildRootObject: build };
},
false,
Copy link
Member

Choose a reason for hiding this comment

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

part of me wants to suggest that the makeLiveSlots() argument should declare a default allowFakeDurable = false, and then this line goes away, but part of me thinks explicit is better

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Suspenders AND belt: I'll default the argument in makeLiveSlots but pass it explicitly here anyway.

@FUDCo FUDCo force-pushed the 5489-control-fake-durable branch from 3487d6f to 4ac9764 Compare June 7, 2022 21:21
@FUDCo FUDCo added the automerge:rebase Automatically rebase updates, then merge label Jun 7, 2022
@mergify mergify bot merged commit d2ed659 into master Jun 7, 2022
@mergify mergify bot deleted the 5489-control-fake-durable branch June 7, 2022 22:02
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 bug Something isn't working SwingSet package: SwingSet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

fakeDurable feature should be guarded by a kernel config option
2 participants