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

fix(swingset): make test-controller less sensitive to source changes #3719

Merged
merged 1 commit into from
Aug 18, 2021

Conversation

warner
Copy link
Member

@warner warner commented Aug 18, 2021

The kernel "activity hash" is sensitive to everything written into the
kvstore, including the bundled sources of built-in vats (like comms and
vatAdmin), which include upstream libraries like marshal and assert. This
makes the hash sensitive to a significant amount of code, and test-controller
was asserting a specific value. This required updating the test's
expectations on every code changes.

Instead, we now merely check that controller.getActivityhash() returns a
correctly-shaped string, instead of examining the actual value.

closes #3718

@warner warner added the SwingSet package: SwingSet label Aug 18, 2021
@warner warner requested a review from kriskowal August 18, 2021 00:41
@warner warner self-assigned this Aug 18, 2021
The kernel "activity hash" is sensitive to everything written into the
kvstore, including the bundled sources of built-in vats (like comms and
vatAdmin), which include upstream libraries like marshal and assert. This
makes the hash sensitive to a significant amount of code, and test-controller
was asserting a specific value. This required updating the test's
expectations on every code changes.

Instead, we now merely check that `controller.getActivityhash()` returns a
correctly-shaped string, instead of examining the actual value.

closes #3718
@warner warner enabled auto-merge (rebase) August 18, 2021 00:49
@warner warner merged commit c07ad3a into master Aug 18, 2021
@warner warner deleted the 3718-downgrade-hash-test branch August 18, 2021 01:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
SwingSet package: SwingSet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

test-controller activity-hash check is too sensitive
2 participants