Skip to content

ci: fix js_test (tool installation and lint) - #313

Merged
c-bata merged 4 commits into
mainfrom
ci/cargo-install-locked
Nov 19, 2026
Merged

c-bata merged 4 commits into
mainfrom
ci/cargo-install-locked

Conversation

@Alnusjaponica

@Alnusjaponica Alnusjaponica commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

Summary

js_test has been failing on every PR since the cached wasm-bindgen binary stopped being reused (e.g. #260). This PR fixes the failures and makes the tool installation in js_test reproducible.

1. wasm-bindgen-cli fails to compile

error[E0658]: use of unstable library feature `fs_set_times`
  --> filetime-0.2.30/src/lib.rs:278:9
error: failed to compile `wasm-bindgen-cli v0.2.127`

Without --locked, cargo install resolves the dependencies of wasm-bindgen-cli to their latest versions. The recently released filetime 0.2.30 uses fs::set_times, which is unstable on the pinned toolchain (nightly-2026-08-07).

  • wasm-bindgen-cli: add --locked so that the lockfile shipped with wasm-bindgen-cli is used (filetime 0.2.29).
  • wasm-opt: pin the version to 0.116.1 (the current latest) and add --locked. It was installed with neither a version nor --locked, so it could break in the same way.

2. tsc: command not found

The workflow never installed TypeScript and relied on tsc being available on the runner. The last successful run used the ubuntu-24.04 image, where tsc was on PATH; ubuntu-latest now resolves to ubuntu-26.04, where it is not.

  • Install typescript@7.0.2 (the current latest) explicitly.

3. The Lint step was not running Biome

npm i -g biome installs biome 0.3.3, an unrelated environment variable manager, not @biomejs/biome. biome ci ... with that package prints nothing and exits with 0, so the Lint step has been passing without checking anything.

  • Install @biomejs/biome@2.6.8 (the current latest) instead.
  • Fix the 5 errors and 6 warnings that Biome reports in rustuna_js/test/*.mjs: import order, == → ===, an unused import, unused variables, and let → const. The suggest_categorical calls are kept because they register the parameter.

@Alnusjaponica
Alnusjaponica requested a review from a team as a code owner November 19, 2026 03:05
@github-actions github-actions Bot added the ci label Nov 19, 2026
@Alnusjaponica
Alnusjaponica force-pushed the ci/cargo-install-locked branch from 0057efd to e2566fb Compare November 19, 2026 03:08
@Alnusjaponica Alnusjaponica changed the title ci: install wasm-bindgen-cli with --locked ci: install wasm-bindgen-cli and wasm-opt with --locked Nov 19, 2026
@Alnusjaponica
Alnusjaponica marked this pull request as draft November 19, 2026 03:34
@Alnusjaponica Alnusjaponica changed the title ci: install wasm-bindgen-cli and wasm-opt with --locked ci: fix js_test (tool installation and lint) Nov 19, 2026
@Alnusjaponica
Alnusjaponica marked this pull request as ready for review November 19, 2026 06:36

@c-bata c-bata left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM!

@c-bata
c-bata merged commit c3326a5 into main Nov 19, 2026
10 checks passed
@c-bata
c-bata deleted the ci/cargo-install-locked branch November 19, 2026 07:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants