Skip to content

DO NOT MERGE: throwaway defects to show the #40 gates fail (expected red) - #88

Closed
aRustyDev wants to merge 1 commit into
chore/ci-lint-denyfrom
chore/ci-lint-deny-controls
Closed

aRustyDev wants to merge 1 commit into
chore/ci-lint-denyfrom
chore/ci-lint-deny-controls

Conversation

@aRustyDev

Copy link
Copy Markdown
Owner

Throwaway. Do not merge. It is meant to be red, and I will close it and delete the branch once it has shown that.

It is the #40 branch (#87) plus three deliberate defects, to show in real CI that each new gate fails, and that a failing lint or deny turns gate red through its needs:

  1. a .unwrap() in non-test thrust-core code: lint / clippy (native, and the wasm32 Worker, which links core) must fail on unwrap_used;
  2. a mis-formatted line: lint / rustfmt must fail;
  3. the RUSTSEC-2023-0071 ignore deleted from deny.toml: deny must fail and name that advisory.

Expected: lint red, deny red, gate red.

🤖 Generated with Claude Code

…s fail (issue #40)

Throwaway. Three defects on top of the #40 branch, each of which a gate must catch, and all of which must turn `gate` red:
- a `.unwrap()` in non-test thrust-core code (clippy `unwrap_used`);
- a mis-formatted line (`cargo fmt --all --check`);
- the RUSTSEC-2023-0071 ignore deleted from deny.toml (`cargo deny` advisories).

Refs: #40

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@aRustyDev

Copy link
Copy Markdown
Owner Author

Closing: it did its job. Run 42164639829 shows each new gate failing for the reason planted, and gate going red through needs:

Defect Job / step What CI said
mis-formatted line lint / rustfmt Diff in .../crates/thrust-core/src/auth.rs:86
.unwrap() in non-test thrust-core lint / clippy (native) and clippy (wasm32 Worker) error: used unwrap() on an Option value, -D clippy::unwrap-used, could not compile thrust-core (lib)
RUSTSEC-2023-0071 ignore deleted deny error[vulnerability]: Marvin Attack, ID: RUSTSEC-2023-0071, rsa v0.9.10; advisories FAILED, bans ok, licenses ok, sources ok
(all of the above) gate GATE FAIL: rust changed but these jobs are not 'success': lint failure / deny failure / ...

hermetic and pg-adapter stayed success with the planted unwrap in place.

Two other jobs failed in that run and are not these defects: contract (worker-cf, main) (Address already in use (127.0.0.1:43896), "target process exited early", exit 4) and mutants (the ignore-revoked mutant, exit=4; the other ten were killed). Both are the intermittent exit-4 startup failure noted in #87.

#87 itself ran green on all 30 checks, lint and deny included.

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