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

Use a single canister for many tests #8

Draft
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

nomeata
Copy link
Contributor

@nomeata nomeata commented May 25, 2021

so that we save may canister installations. Oddly, does not speed things up; it
seems that the tests that cannot share the canister are the bottleneck.

@hansl reported issues with `ic-ref` when doing a heavy request (such as
installing a large canister via a wallet canister): The subsequent
`/api/v1/read` would not be handled, and eventually timed out.

The fact that installing a large caniter via the wallet caniter is very
slow is hard to fix while we use an interpreter (optimizing the candid
library might help, though – the universal canister handles this use
case fine, as the newly added test shows).

But with some changes to the code (in `read`, do not try to read from an
`MVar` that is blocked, and make sure that the processing after
returning HTTP 202 happens in the background), the request status read
would be handled, and `dfx` keeps polling as expected.

Also added a `--http-log` option that prints some (not very helpful)
HTTP logs.

Originally https://github.com/dfinity-lab/ic-ref/commit/b0942527bfded26eacf6a1fca8ca77e708ba68fe
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.

1 participant