Skip to content

ci: deny compiler and rustdoc warnings in scripts and docs - #131

Merged
byteland-app merged 5 commits into
mainfrom
stitch/enforce-warning-flags-jm1-4a209fa3-ad47-404b-8180-656116ec4d96
Nov 26, 2026
Merged

byteland-app merged 5 commits into
mainfrom
stitch/enforce-warning-flags-jm1-4a209fa3-ad47-404b-8180-656116ec4d96

Conversation

@google-labs-stitch

@google-labs-stitch google-labs-stitch Bot commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

Summary

This change enforces -D warnings across CI, npm run check:wasm, and the documented Cargo commands without changes to src/lib.rs, Cargo.toml, or .github/workflows/release.yml.

Changes

  • Pass -- -D warnings to cargo rustdoc --locked --release --lib in check:wasm in package.json so standalone runs deny rustdoc warnings in release mode on Linux, macOS, and Windows.
  • Set RUSTFLAGS: "-D warnings" on cargo build --locked --release and remove the redundant RUSTDOCFLAGS: "-D warnings" on npm run check:wasm in .github/workflows/ci.yml.
  • Replace cargo build --locked --release in AGENTS.md and README.md with cargo rustc --locked --lib --release -- -D warnings.
  • Replace the build-from-source cargo doc commands in README.md with cargo rustdoc --locked --lib (and --release for Wasm) plus -- -D warnings, while keeping cargo doc --locked --no-deps --open for local documentation viewing.
  • Remove the redundant RUSTDOCFLAGS="-D warnings" prefix on npm run check:wasm in AGENTS.md.

Verification

  • Confirmed exit code 0 on clean HEAD for all .github/workflows/ci.yml, AGENTS.md, and README.md commands (cargo fmt --check, cargo clippy, RUSTFLAGS="-D warnings" cargo build --locked --release, cargo rustc --locked --lib --release -- -D warnings, RUSTDOCFLAGS="-D warnings" cargo doc --locked --no-deps, cargo rustdoc --locked --lib -- -D warnings, cargo rustdoc --locked --release --lib --target wasm32-unknown-unknown --features wasm -- -D warnings, cargo doc --locked --no-deps --open, cargo package --locked, npm run check:wasm, and npm run verify:pack).
  • Validated .github/workflows/ci.yml and .github/workflows/release.yml with check-jsonschema and actionlint.
  • Confirmed exit code 101 in an isolated copy for synthetic unreachable_pub, rustdoc::bare_urls, and rustdoc::invalid_html_tags warnings (including standalone npm run check:wasm with RUSTDOCFLAGS unset).

Automated PR initiated by user @byteland-app via Stitch Loop.

- Pass -D warnings to cargo rustdoc in check:wasm in package.json
- Set RUSTFLAGS to -D warnings on cargo build in ci.yml
- Use cargo rustc with -D warnings in AGENTS.md and README.md
- Use cargo rustdoc with -D warnings in README.md
- Remove the redundant RUSTDOCFLAGS prefix in AGENTS.md
@byteland-app

Copy link
Copy Markdown
Contributor

Review: Preferred over #6, #10, and #132 for warning denial without polluting .cargo/config.toml or src/lib.rs. Please make two small tweaks:

  1. Keep the user-facing local doc command in README.md as 'cargo doc --locked --no-deps --open' (no need to fail local doc viewing on warnings).
  2. Remove the now-redundant RUSTDOCFLAGS: '-D warnings' env var on the npm run check:wasm step in .github/workflows/ci.yml.

…g-flags-jm1-4a209fa3-ad47-404b-8180-656116ec4d96

# Conflicts:
#	README.md
- Keep cargo doc --locked --no-deps --open in README.md
- Remove the redundant RUSTDOCFLAGS on check:wasm in ci.yml
@google-labs-stitch

Copy link
Copy Markdown
Contributor Author

Addressed both tweaks in 7f339d4:

  1. Kept the user-facing local doc viewing command in README.md as cargo doc --locked --no-deps --open.
  2. Removed the redundant RUSTDOCFLAGS: "-D warnings" environment variable on the npm run check:wasm step in .github/workflows/ci.yml.

@byteland-app

Copy link
Copy Markdown
Contributor

Round 2 review: Approved — keeping cargo doc --open in README.md and removing redundant RUSTDOCFLAGS in ci.yml looks clean. Please rebase onto updated main after #90, combining #90's --release flag with cargo rustdoc -- -D warnings in package.json check:wasm.

- Combine --release with cargo rustdoc -- -D warnings in package.json
- Combine --release with cargo rustdoc -- -D warnings in README.md
@google-labs-stitch

Copy link
Copy Markdown
Contributor Author

Updated the branch with latest main in bd2624c (via fast-forward merge, as force-push is disabled in this environment):

  • Combined #90's --release flag with cargo rustdoc -- -D warnings in package.json (check:wasm: cargo clippy --locked --release --lib --target wasm32-unknown-unknown --features wasm -- -D warnings && cargo rustdoc --locked --release --lib --target wasm32-unknown-unknown --features wasm -- -D warnings).
  • Combined --release with cargo rustdoc --locked --release --lib --target wasm32-unknown-unknown --features wasm -- -D warnings in README.md as well to resolve the corresponding README.md conflict with #90.

@byteland-app

Copy link
Copy Markdown
Contributor

Round 3 review: Approved — combining --release with cargo rustdoc -- -D warnings and keeping cargo doc --open looks clean. Please rebase onto updated main after #121.

- Keep cargo build --locked --release in check-os in ci.yml
- Set RUSTFLAGS to -D warnings on cargo build in check-os
- Remove extra RUSTDOCFLAGS from check:wasm in build-wasm
- Remove check:wasm from the PowerShell RUSTDOCFLAGS block
@google-labs-stitch

Copy link
Copy Markdown
Contributor Author

Updated the branch with latest main (0850e25, including #121) in 5f3e7de (via merge commit, as force-push is disabled in this environment):

  • Resolved .github/workflows/ci.yml with #121's build-wasm / check-os split: kept cargo build --locked --release in check-os with env: RUSTFLAGS: "-D warnings", and removed the redundant RUSTDOCFLAGS: "-D warnings" env var on npm run check:wasm in build-wasm.
  • Removed npm run check:wasm from #121's PowerShell RUSTDOCFLAGS block in AGENTS.md since check:wasm passes -- -D warnings directly to cargo rustdoc --locked --release --lib.

google-labs-stitch Bot added a commit that referenced this pull request Nov 26, 2026
- Merge upstream main with #139, #131, #104 and #61.
- Guard vibrato_preserve updates in Resynthesis::apply_config.
- Drop the duplicate PeriodFilter::configure call after new.
- Taper the vibrato modulation ratio with the flex_tune pull.
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.

1 participant