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

newSwap doubleSwap intermittent test failure on XS #3079

Closed
dckc opened this issue May 11, 2021 · 3 comments
Closed

newSwap doubleSwap intermittent test failure on XS #3079

dckc opened this issue May 11, 2021 · 3 comments
Assignees
Labels
bug Something isn't working xsnap the XS execution tool Zoe package: Zoe

Comments

@dckc
Copy link
Member

dckc commented May 11, 2021

While working on #3078 I saw a test failure in ci run 2558992363 for b646e7d (based on master= 25d5d43 ) that I don't think is closely related:

  message: 'newSwap doubleSwap threw: cannot coerce object to string',
  filename: 'test/unitTests/contracts/newSwap/test-newSwap-swap.js',

1 tests failed
F test/unitTests/contracts/newSwap/test-newSwap-swap.js newSwap doubleSwap

reproduced with

  • yarn test:xs-unit test/unitTests/contracts/newSwap/test-newSwap-swap.js

but failed to reproduce with

  • yarn test:xs-unit test/unitTests/contracts/newSwap/test-newSwap-swap.js -m 'newSwap doubleSwap'
  • yarn test:xs-unit --debug test/unitTests/contracts/newSwap/test-newSwap-swap.js

That it doesn't reproduce with -m is only a mild inconvenience. But that it goes away with XS --debug makes it look pretty expensive to diagnose.

@dckc dckc added bug Something isn't working Zoe package: Zoe xsnap the XS execution tool labels May 11, 2021
@dckc dckc changed the title newSwap doubleSwap intermittent failure on XS newSwap doubleSwap intermittent test failure on XS May 11, 2021
@dckc
Copy link
Member Author

dckc commented May 11, 2021

I'm inclined to postpone this until some xsnap debug instrumentation (#2578) is in place.

@dckc dckc self-assigned this May 11, 2021
@dckc dckc added this to the Testnet: Stress Test Phase milestone May 11, 2021
Chris-Hibbert added a commit that referenced this issue May 12, 2021
 A bug was reported in #3032, #3034 worked around it, and #3033 fixed it.

This removes the test and workaround.

Removing the test seems to suppress the failure reported in #3079.
That's good in reducing (possibly) spurious failures in CI, but may
make it harder and less urgent to track down #3079.
@dckc
Copy link
Member Author

dckc commented May 13, 2021

@phoddie points out that cannot coerce object to string happens whenever we do:

const o = { __proto__: null };
const s = `${o}`;

p.s. I checked... node throws in this case too; so how is it in our code?

p.p.s escalated as endojs/endo#729 .

Chris-Hibbert added a commit that referenced this issue May 20, 2021
 A bug was reported in #3032, #3034 worked around it, and #3033 fixed it.

This removes the test and workaround.

Removing the test seems to suppress the failure reported in #3079.
That's good in reducing (possibly) spurious failures in CI, but may
make it harder and less urgent to track down #3079.
Chris-Hibbert added a commit that referenced this issue May 21, 2021
* chore: clean-up a work-around for a bug that's been fixed

 A bug was reported in #3032, #3034 worked around it, and #3033 fixed it.

This removes the test and workaround.

Removing the test seems to suppress the failure reported in #3079.
That's good in reducing (possibly) spurious failures in CI, but may
make it harder and less urgent to track down #3079.

* test: reinstate the test, and update the comment

The test demonstrates that the underlying bug stays fixed.

* test: update test for to comport with the fix
@dckc
Copy link
Member Author

dckc commented Jun 17, 2021

I think this was fixed in endojs/endo#772 , which was merged Jun 9. Agoric SDK uses 0.13.2 (2021-06-14) according to 1876df0

@dckc dckc closed this as completed Jun 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working xsnap the XS execution tool Zoe package: Zoe
Projects
None yet
Development

No branches or pull requests

2 participants