Skip to content

Combine PRs for ease of merging #423

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

Closed
wants to merge 11 commits into from

Conversation

tcharding
Copy link
Member

@tcharding tcharding commented Mar 19, 2022

This PR is #420, #421, and #422 applied in order.

Confused yet?

I've combined them because WASM is currently broken on master, the individual PRs are easier to review but this PR is better for merging because it shows that they all work when applied in order.

Fixes: #419

@tcharding tcharding changed the title Ci fixes combine DO NOT MERGE: Combine fixes Mar 19, 2022
@tcharding tcharding changed the title DO NOT MERGE: Combine fixes NO MERGE: Combine fixes Mar 19, 2022
@tcharding tcharding changed the title NO MERGE: Combine fixes no merge: Apply multiple PRs to run through CI Mar 19, 2022
Remove single character of trailing whitespace.
The test that checks for a panic uses `cargo test --exact`, it makes
sense to put it at the top of the script right after we run `cargo test`
so we can run the tests without triggering a re-build.
In line with the `Tests` job and for the facot that this job does stuff
with the nightly toolchain other than bench.

Re-name nightly CI job from `bench_nightly`to `Nightly`.
We use a matrix with a single element, this is unnecessary.
The address sanitizer job is silently failing at the moment because we
do not install clang.

Install clang so the address sanitizer job can run. Do not fix the
silent failure, that will be done later on.
We have a separate CI job for things that require a nightly toolchain.
Building the docs requires a nightly toolchain (because of `--cfg
docsrc` flag). It makes more sense to run the docs build in the
`Nightly` job instead of hidden in the `Tests` job.

Do the docs build in the `Nightly` job instead of in the `Tests` job.
WASM is supported by Rust 1.30. We can therefore run the WASM tests on
any all the toolchains except MSRV (1.29.0). This has benefit of
catching nightly/beta issues before they get to stable.

Done as a separate CI job since it is conceptually different to the
`Tests` job.

Run WASM for nightly, beta, and stable toolchains.
The const definitions in `stdio.h` are causing the `wasm-pack` build to
fail due to 'duplicate symbol' errors. This can be solved by just
removing the definitions.
As per UNIX convention a Bash script should exit with status code 0 if
it completes successfully.
Currently the `test.sh` script is silently failing because we do not
exit if a command fails. We can achieve this by using the Bash builtin
`set -e`.

For some reason I cannot explain a chain of commands that fails does not
fail the script. Instead of working out _why_ just remove the chain and
run each command on its own. This is functionally the same and, I hazard
a guess, is what the original author hoped to achieve with the chaining.
@tcharding tcharding changed the title no merge: Apply multiple PRs to run through CI Combine PRs for ease of merging Mar 25, 2022
@tcharding tcharding marked this pull request as ready for review March 25, 2022 02:39
@tcharding tcharding marked this pull request as draft March 25, 2022 02:41
A user reported that WASM only used to work with `clang-10`, I cannot
verify this but lets use v10 anyways.
@tcharding tcharding marked this pull request as ready for review March 25, 2022 03:45
@tcharding tcharding marked this pull request as draft March 29, 2022 00:46
@tcharding tcharding closed this Apr 4, 2022
@tcharding tcharding deleted the ci-fixes-combine branch April 4, 2022 02:38
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.

Latest release (0.5.0) does not work on WASM & test.shis broken
1 participant