Got CI working again (Correctly identifies everything that is failing) #14
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR finalizes getting all of the CI to work (in terms of catching failing tests).
These fixes come from mostly checking the build logs in: https://github.com/DuncanUszkay1/assemblyscript/runs/846787874
This will be organized by the things that are fixed
Features testing
See: https://github.com/DuncanUszkay1/assemblyscript/runs/846789583
This is fixed by recreating
tests/compiler/features/reference-types.untouched.wat
. Which is now updated to use closures.Loader Testing
See: https://github.com/DuncanUszkay1/assemblyscript/runs/846789746
This is actually working correctly, with an actionable error. It has to do with exporting a closure: https://github.com/DuncanUszkay1/assemblyscript/blob/master/lib/loader/tests/assembly/index.ts#L62
Bootstrap Testing
See: https://github.com/DuncanUszkay1/assemblyscript/runs/846789713
This is also working correctly, but finds a bug that I started fixing, that I think may be worth including in this PR.
This attempts to do a self-compilation of AssemblyScript, and works for most of the program, but breaks on a recursive closure you can find here: https://github.com/DuncanUszkay1/assemblyscript/blob/master/src/flow.ts#L1398
And some screenshots to prove it:
Before fix:

After fixing the name conflict:

Still broken:

Hanging tests on validation:
This is apparent as of: https://github.com/DuncanUszkay1/assemblyscript/runs/846789647 Which hung for 5 hours 😂
The fix is in this PR at:
cli/asc.js
where a return is incorectly placed in a callback. This fix should be reflected in AS main as well, and I'll do that tomorrow 😄EDIT: Opened here: AssemblyScript#1383 (comment)
In conclusion
And this leaves us with this remaining CI result:
So now we have a much more clear guide on what/how things need to be fixed in closures to get tests passing again 😄 👍