Skip to content

Comments

CI: let check and doc fail on warnings#382

Merged
fewerner merged 6 commits intomainfrom
felix/ci/fix-warnings
Aug 18, 2025
Merged

CI: let check and doc fail on warnings#382
fewerner merged 6 commits intomainfrom
felix/ci/fix-warnings

Conversation

@fewerner
Copy link
Contributor

What's new in this PR

This PR fixes warnings that occured during cargo doc and cargo check. It also lets both tools fail on warnings during CI.

PR Submission Checklist for internal contributors
  • The PR Title
    • conforms to the style of semantic commits messages¹ supported in Wire's Github Workflow²
    • contains a reference JIRA issue number like SQPIT-764
    • answers the question: If merged, this PR will: ... ³
  1. https://sparkbox.com/foundry/semantic_commit_messages
  2. https://github.com/wireapp/.github#usage
  3. E.g. feat(conversation-list): Sort conversations by most emojis in the title #SQPIT-764.

@fewerner fewerner requested a review from a team as a code owner August 18, 2025 11:55
@fewerner fewerner force-pushed the felix/ci/fix-warnings branch 2 times, most recently from c9085b5 to 107fab3 Compare August 18, 2025 12:29
Most of these warnings were broken intra-doc links, e.g. function
arguments can't be linked and refences have to match correct import.
wasm-bindgen-test defines wasm_bindgen_unstable_test_coverage
internally. However, cargo check does not recognize this definition and
reports a warning. We configure cargo to allow this specific definition
to be missing to fix the warning.
The only reference to this function is under the added config. Which
results in dead code for compilations with wasm target. We add the
compilation config to fix this.
enrollments() returns a vector of four values where only two are used
for wasm builds. To not overcomplicate the conditional compilation or
refactor the entire module, we allow unused variables at this point.
The rustflags will only affect build process which means that it only
affects cargo check.
@fewerner fewerner force-pushed the felix/ci/fix-warnings branch from 107fab3 to b5d71d9 Compare August 18, 2025 12:42
@fewerner fewerner merged commit b5d71d9 into main Aug 18, 2025
15 checks passed
@fewerner fewerner deleted the felix/ci/fix-warnings branch August 18, 2025 12:42
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.

3 participants