Stream: git-wasmtime

Topic: wasmtime / PR #7569 wasi: test for mtime accuracy to 100µ...


view this post on Zulip Wasmtime GitHub notifications bot (Nov 21 2023 at 18:08):

guybedford edited PR #7569.

view this post on Zulip Wasmtime GitHub notifications bot (Nov 21 2023 at 18:08):

guybedford edited PR #7569:

Node.js mtime setting only works up to 100µs accuracy.

This updates the test to work at this level at minimum.

We could make this a configurable test option, I just wasn't sure how to set up such a conditional build feature for the test program - suggestions welcome if not reducing overall accuracy is preferred.

view this post on Zulip Wasmtime GitHub notifications bot (Nov 21 2023 at 18:32):

alexcrichton submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (Nov 21 2023 at 18:32):

alexcrichton submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (Nov 21 2023 at 18:32):

alexcrichton created PR review comment:

With 100us accuracy in Node this gets rounded to no change, right? Could this -2000 be increased so the mtim is changed in node?

view this post on Zulip Wasmtime GitHub notifications bot (Nov 21 2023 at 18:32):

alexcrichton created PR review comment:

Could these assertions be left as-is with a larger adjustment above that isn't arounded?

view this post on Zulip Wasmtime GitHub notifications bot (Nov 21 2023 at 21:35):

guybedford submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (Nov 21 2023 at 21:35):

guybedford created PR review comment:

2000 for u64 is 2000 * 100 nanoseconds is 200 microseconds. So I think this is the right accuracy. Reducing the order by one leads to the times being equal in the check. So I think this is right.

view this post on Zulip Wasmtime GitHub notifications bot (Nov 21 2023 at 21:36):

guybedford submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (Nov 21 2023 at 21:36):

guybedford created PR review comment:

Do you mean does changing 2000 to say 7243 lead to the test still passing? If so, I've verified that is true, yes.

view this post on Zulip Wasmtime GitHub notifications bot (Nov 21 2023 at 21:42):

guybedford updated PR #7569.

view this post on Zulip Wasmtime GitHub notifications bot (Nov 21 2023 at 21:45):

guybedford updated PR #7569.


Last updated: Dec 23 2024 at 13:07 UTC