-
Notifications
You must be signed in to change notification settings - Fork 214
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
chore(SwingSet): Improve anachrophobia messages #10469
Conversation
Deploying agoric-sdk with Cloudflare Pages
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. The weakly-held suggestions are optional.
@@ -107,7 +108,9 @@ export function makeSyscallSimulator( | |||
let replayError; // sticky | |||
|
|||
const explain = () => { | |||
console.log(`anachrophobia strikes ${vatID} on delivery ${deliveryNum}`); | |||
console.log( | |||
`anachrophobia strikes ${vatID} syscalls for delivery ${deliveryNum}`, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Grammar nit, maybe "anachrophobia strikes vatID for syscalls on delivery deliveryNum"? It's the vat that's at fault, and it faulted during a delivery.
if (!expected) { | ||
syscallStatus.push('extra'); | ||
const error = Error(`anachrophobia in ${vatID}: extra syscall`); | ||
const error = Error(`${context}: extra syscall at index ${idx}`); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've been using sc123
locally when marking syscall numbers (like b123 for block heights, c123 for cranks, d123 for deliveryNums), maybe this could say at index sc${idx}
to reinforce the fact that we're talking about a syscallNum
which could be correlated with one in a slogfile.
… in anachrophobia messages delivery d$N, syscall sc$N #10469 (comment)
… in anachrophobia messages delivery d$N, syscall sc$N #10469 (comment)
cd33813
to
1b6eb14
Compare
Description
Extracted from an error investigation in #10165.
Also capitalizes
WRONG
/MISSING
/EXTRA
aftersc[${idx}]:
, for increased visual distinction.Security Considerations
None known; any consumer aware of vatIDs should also be allowed to know delivery numbers and constituent syscalls.
Scaling Considerations
n/a
Documentation Considerations
n/a
Testing Considerations
n/a
Upgrade Considerations
None known; this kernel output should be independent of consensus (and will be consistent across nodes using the same kernel code anyway).