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(ava-xs): handle most zoe tests #2573

Merged
merged 33 commits into from
Mar 9, 2021
Merged

feat(ava-xs): handle most zoe tests #2573

merged 33 commits into from
Mar 9, 2021

Conversation

dckc
Copy link
Member

@dckc dckc commented Mar 4, 2021

fixes #370
modulo a handful of explicitly exclude tests

fixes #2572
Each test runs its own crank.

This is a draft to see if it works reasonably well under ci.

@dckc dckc requested review from kriskowal and Chris-Hibbert March 4, 2021 01:04
@dckc dckc force-pushed the 370-xs-ava-zoe branch from cf412df to 32b3886 Compare March 4, 2021 01:20
Copy link
Contributor

@Chris-Hibbert Chris-Hibbert left a comment

Choose a reason for hiding this comment

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

The changes to Zoe tests look good to me. I didn't review the xsnap changes. Let me know if you want me to look at that.

@@ -168,17 +168,29 @@ function createHarness(send) {
/**
* @param {*} exc
* @param {Expectation} expectation
* @returns {boolean}
* @returns {null | { expected: unknown, actual: unknown }}
Copy link
Member

Choose a reason for hiding this comment

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

@erights has advised pretending null doesn’t exist and favoring | void generally.

Copy link
Member Author

Choose a reason for hiding this comment

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

pointer to said advice? I'd like to add it to /~https://github.com/Agoric/agoric-sdk/wiki/Code-Review-Checklist , along with rationale.

I find it odd that we'd prefer undefined over null, since JSON groks null.

packages/xsnap/src/avaXS.js Outdated Show resolved Hide resolved
packages/xsnap/src/avaXS.js Outdated Show resolved Hide resolved
@dckc dckc force-pushed the 370-xs-ava-zoe branch 2 times, most recently from 9852e8f to f727b83 Compare March 6, 2021 00:53
@dckc
Copy link
Member Author

dckc commented Mar 6, 2021

What the #$%!#@ does this mean? Why did it exit with code 1?

  312 tests passed
  3 known failures
  9 tests skipped
  15 tests todo
error Command failed with exit code 1.

-- /~https://github.com/Agoric/agoric-sdk/pull/2573/checks?check_run_id=2044135404

@kriskowal
Copy link
Member

kriskowal commented Mar 6, 2021 via email

@dckc dckc force-pushed the 370-xs-ava-zoe branch 2 times, most recently from 0a329e6 to f3f9aec Compare March 8, 2021 21:38
dckc added 19 commits March 8, 2021 19:53
 - support -v / --verbose
 - xsnap: add glob, @agoric/assert dependencies.
   hm... having ava-xs in the xsnap package is increasingly awkward
  - add a separate test:xs-unit-debug script,
    since `ava-xs --verbose --debug` isn't yet supported
 - elaborate diagnostics for checkExpectation
@dckc dckc force-pushed the 370-xs-ava-zoe branch from f3f9aec to b79ca91 Compare March 9, 2021 01:54
@dckc dckc force-pushed the 370-xs-ava-zoe branch from 83747ce to 98336dd Compare March 9, 2021 02:07
@dckc dckc marked this pull request as ready for review March 9, 2021 03:07
dckc and others added 2 commits March 8, 2021 21:08
Co-authored-by: Kris Kowal <kris@agoric.com>
Co-authored-by: Kris Kowal <kris@agoric.com>
@dckc dckc enabled auto-merge (squash) March 9, 2021 03:14
@dckc dckc merged commit 7789834 into master Mar 9, 2021
@dckc dckc deleted the 370-xs-ava-zoe branch March 9, 2021 06:08
@dckc
Copy link
Member Author

dckc commented Mar 9, 2021

Yay! all the robots are finally happy!

I suppose I should have double-checked with the people but I lost patience.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ava-xs: run each test in its own crank run ERTP, Zoe unit tests on XS
3 participants