You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We want to make it as easy as possible for people developing WebAssembly implementations to run the official testsuite, because that's one of our main mechanisms for ensuring portable behavior. @Teemperor suggested on irc that we split the tests out of the spec repo into their own repo, so that they can be included as submodules in other projects.
I think this sounds like a good idea. Any objections?
On Mon, Oct 12, 2015 at 10:01 AM, Dan Gohman [email protected]
wrote:
We want to make it as easy as possible for people developing WebAssembly
implementations to run the official testsuite, because that's one of our
main mechanisms for ensuring portable behavior. @Teemperor https://github.com/Teemperor suggested on irc that we split the tests
out of the spec repo into their own repo, so that they can be included as
submodules in other projects.
I think this sounds like a good idea. Any objections?
—
Reply to this email directly or view it on GitHub #129.
I'm not familiar with how submodules work. Would it still be possible to have a single PR with both the ml-proto and test changes? Would it still easy to get a coherent view of ml-proto and tests at a single point in time? Instead, would it be sufficient if we moved test/ up to the top-level so that the tests felt like one symmetric part of the spec (sibling to ml-proto)?
PRs with dependencies across submodules are a nightmare, so I want to make it clear that we shouldn't do that unless we can't avoid it. Contributors to my personal projects have had a lot of trouble there.
Moving to the top-level sounds good for now, but it's still going to be awkward having a lot of traffic in that folder mixed with spec changes... hrm.
Yes moving it to the top-level is really a good idea but will, as kg says, have problems for spec as it changes the definition of the tests. There is no great way of doing those kind of changes:
Spec changes that breaks the tests
Need to update both at the same time
However, not having this forces all projects to have local copies or reference the test suite via the spec repository. And I think that pro outweighs the cons even though as spec still changes things, the developers of spec will see more complications in updating their code. Now two pushes when they break a test.
Finally, it makes adding a feature without tests easier to miss because the feature and the tests are now separated.
Implementation developers could always pull in the entire spec repo as a submodule -- it's not all that big, and with #130 the tests will be in a toplevel directory making it a little prettier. But I'd also agree with @binji above that a standalone repo mirroring the tests would be feasible too.
Activity
titzer commentedon Oct 12, 2015
sgtm
On Mon, Oct 12, 2015 at 10:01 AM, Dan Gohman [email protected]
wrote:
lukewagner commentedon Oct 12, 2015
I'm not familiar with how submodules work. Would it still be possible to have a single PR with both the ml-proto and test changes? Would it still easy to get a coherent view of ml-proto and tests at a single point in time? Instead, would it be sufficient if we moved
test/up to the top-level so that the tests felt like one symmetric part of the spec (sibling toml-proto)?binji commentedon Oct 12, 2015
You could have a single PR that updates the spec repo and bumps the test repo SHA, but that would require landing the change to the test repo prior.
I think it's better to hold off on this, or do something simpler, like mirror the test directory to a separate repo.
Teemperor commentedon Oct 12, 2015
I think just moving /test to the top level directory of the repo is fine for now (as @lukewagner and @binji said).
Move the test suite into a top-level directory.
sunfishcode commentedon Oct 12, 2015
I opened #130 to move the test directory to the top level. I also renamed in
testsuiteto be slightly more descriptive.kg commentedon Oct 12, 2015
PRs with dependencies across submodules are a nightmare, so I want to make it clear that we shouldn't do that unless we can't avoid it. Contributors to my personal projects have had a lot of trouble there.
Moving to the top-level sounds good for now, but it's still going to be awkward having a lot of traffic in that folder mixed with spec changes... hrm.
jcbeyler commentedon Oct 12, 2015
Yes moving it to the top-level is really a good idea but will, as kg says, have problems for spec as it changes the definition of the tests. There is no great way of doing those kind of changes:
However, not having this forces all projects to have local copies or reference the test suite via the spec repository. And I think that pro outweighs the cons even though as spec still changes things, the developers of spec will see more complications in updating their code. Now two pushes when they break a test.
Finally, it makes adding a feature without tests easier to miss because the feature and the tests are now separated.
sunfishcode commentedon Oct 12, 2015
Implementation developers could always pull in the entire spec repo as a submodule -- it's not all that big, and with #130 the tests will be in a toplevel directory making it a little prettier. But I'd also agree with @binji above that a standalone repo mirroring the tests would be feasible too.
titzer commentedon Oct 12, 2015
Sounds like a mirror solves both problems, so let's do that.
On Mon, Oct 12, 2015 at 12:05 PM, Dan Gohman [email protected]
wrote:
sunfishcode commentedon Oct 13, 2015
I created testsuite repository here with a snapshot of the current spec tests. I have not yet set up any automatic mirroring.
jfbastien commentedon Oct 13, 2015
Is that a hand-maintained mirror? Similar to what Chrome has with DEPS files? Or am I missing a subtlety of git submodules or something arcane?
sunfishcode commentedon Oct 13, 2015
At the moment, it's completely manual. I just copied the files over to get things started.
rossberg commentedon Oct 13, 2015
LGTM. I added another test recently, you probably have to include it as well after rebase.
sunfishcode commentedon Oct 13, 2015
This is now lower-priority now that we have a mirror repository. If people think it's still useful though, I'm happy to rebase and finish it.
Teemperor commentedon Oct 13, 2015
I made an quck&dirty automatic mirror here: https://github.com/Teemperor/wasm-testsuitesunfishcode commentedon Oct 13, 2015
@Teemperor We now have an official mirror; see above :-).
drom commentedon Oct 22, 2015
@sunfishcode separate
testsuiterepo is good idea. I am using it for my parser https://github.com/drom/wast-parserjcbeyler commentedon Oct 22, 2015
I will be using it too for my project, I am working on something else and will move to using it in a bit
jcbeyler commentedon Oct 22, 2015
Done as well now: https://github.com/WebAssembly/wasm-to-llvm-prototype
I added a file to reduce the tests I support internally to my project. However, when are we pulling:
#141
Because of this, I now regress (on wasm-to-llvm-prototype) on that test since my project sees the duplications.
jcbeyler commentedon Nov 5, 2015
Did a PR for this:
#162
sunfishcode commentedon Nov 10, 2015
With an official mirror now, this isn't currently a high priority for me.
[spec] Adapt OOB behaviour in spec; store typing (WebAssembly#129)
[interpreter] Rename atomic opcodes (WebAssembly#129)
[js-api] Explicitly disallow creating Tables with non-reftypes. (#129)
Remove some archived proposals from this repository (WebAssembly#129)
[interpreter] Rename atomic opcodes (WebAssembly#129)