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 node-canary to run interpreter-generated JS tests #1833

Open
wants to merge 1 commit into
base: wasm-3.0
Choose a base branch
from

Conversation

sbc100
Copy link
Member

@sbc100 sbc100 commented Oct 11, 2024

No description provided.

@sbc100 sbc100 marked this pull request as draft October 11, 2024 23:50
@sbc100 sbc100 marked this pull request as ready for review October 11, 2024 23:51
@sbc100 sbc100 force-pushed the ci_testing branch 7 times, most recently from f607d1f to 972e11f Compare October 12, 2024 00:39
@backes
Copy link
Member

backes commented Oct 14, 2024

Don't we need an opt-out mechanism to be able to land tests that node/V8 doesn't currently pass?

@sbc100
Copy link
Member Author

sbc100 commented Oct 14, 2024

Don't we need an opt-out mechanism to be able to land tests that node/V8 doesn't currently pass?

Yes, good point. The comment I'm replacing here seems to suggest that just commenting this line out with a TODO is one way to skip these days when working on such a proposal.

Perhaps we should separate the "run tests in interp" and "run tests under node/v8" so that its easy to comment out just the later?

Copy link
Member

@rossberg rossberg left a comment

Choose a reason for hiding this comment

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

A proper opt-out mechanism for in the test runner would be useful. We also talked about this in the context of individual (negative) tests that conflict with a yet unfinished proposal. But designing and implementing this properly seems like a lot of work.

As for separate targets, wouldn't that still involve commenting out a line?

Comment on lines 39 to 40
NODE=$HOME/node-v${NODE_VERSION}-linux-x64/bin/node
cd interpreter && opam exec make "JS=$NODE --wasm-staging" ci
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
NODE=$HOME/node-v${NODE_VERSION}-linux-x64/bin/node
cd interpreter && opam exec make "JS=$NODE --wasm-staging" ci
NODE="$HOME/node-v${NODE_VERSION}-linux-x64/bin/node --wasm-staging"
cd interpreter && opam exec make JS=$NODE ci

@backes
Copy link
Member

backes commented Oct 15, 2024

Yeah, I see that it's quite some work, but I think long-term we really need to be able to skip individual tests. Otherwise we always have the risk of introducing bigger problems like #1828.

Splitting is at least a step in the right direction, but would not have prevented #1828.

@rossberg
Copy link
Member

rossberg commented Oct 15, 2024

@backes:

Splitting is at least a step in the right direction

Not sure I see how. AFAICS, it does not bring us any closer. I mean, I'm not opposed, but I don't think it makes a difference one way or the other, other than complicating the test runner in different ways.

In any case, I think neither should block the current PR, which still is a net improvement.

@sbc100
Copy link
Member Author

sbc100 commented Oct 16, 2024

It seems like ref_null.wast is failing under node, @backes do you know if this is know failure of current v8 against the wasm-3.0 spec tests?

@sbc100
Copy link
Member Author

sbc100 commented Oct 16, 2024

Apparently there is a fix in v8 that landed just this morning that might be fix this, so I guess we are already running into the issue of needing to selectively disable tests. I'll give this PR another try once a new node-canary is published.

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.

3 participants