Repository navigation
cmux-tui-core: snapshot_written takes the written snapshot as one value (clippy base red from #31931) - #32093
Closed
lawrencecchen wants to merge 1 commit into
Closed
lawrencecchen wants to merge 1 commit into
lawrencecchen wants to merge 1 commit into
Conversation
…ue (clippy base red from #31931) e3c495d (#31931) gave snapshot_written an eighth argument (the capture's stream-gap count), and clippy -D warnings refused it (too_many_arguments, 8/7). "clippy (changed cmux-tui packages)" was red on every PR that builds cmux-tui-core (acpmux, cmux-tui). The five values that describe the written snapshot (digest, size, generation, stream end, gap count) are now one Written value; the directory, the log and the mode stay arguments. The body is unchanged: it destructures Written into the same names. No allow.
Contributor
|
cmux status (one comment, edited in place; each line is updated by the job that owns it) Review App of this head (app.zip, kept 1 day)
|
Contributor
Author
|
Review (subagent, correctness first): SHIP at 776e037 Read-only review of Checked:
Findings (do not block):
|
This was referenced Nov 2, 2026
lawrencecchen
temporarily deployed
to
sentry-dsyms
November 2, 2026 10:03 — with
GitHub Actions
Inactive
lawrencecchen
temporarily deployed
to
artifacts
November 2, 2026 10:03 — with
GitHub Actions
Inactive
lawrencecchen
temporarily deployed
to
artifacts
November 2, 2026 10:05 — with
GitHub Actions
Inactive
Contributor
Author
|
Superseded by #32092 (same base red, merged first). |
This branch was previously deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Base red (priority zero). On
feat-cmux-next,clippy (changed cmux-tui packages)fails on every PR that buildscmux-tui-core(any acpmux or cmux-tui change, for example #32064 and #32065). The error isclippy::too_many_arguments(8/7) onsnapshot_writtenincmux-tui-core/src/output_store/snapshot.rs:537.Culprit: e3c495d (#31931) added the eighth argument,
gaps, the capture's stream-gap count. Before it, the function took 7 (4430595).Fix, with no behavior change and no
allow: the five values that describe the written snapshot (digest, size, generation, stream end and gap count) are now oneWrittenvalue. The directory, the log and the tail mode stay as arguments. The body first destructuresWritteninto the same names, so every line after it is unchanged. The one product caller and the three unit tests insnapshot_tests.rsbuild aWritten.FYI owner PL-daemon (output store) and @teamleaderleo (#31931).
Testing
cmux-ci run --class isolated --os linux --script scripts/ci/cmux-tui-rust-check.sh --ref SHA --arg MODE [--arg FILTER]:4f5bcd158c2a, modeclippy:error: this function has too many arguments (8/7)atcrates/cmux-tui-core/src/output_store/snapshot.rs:537, socmux-tui-coredoes not compile under-D warnings. Step3f2f3550fc478e1a670756d3.776e0370874, modeclippy:clippy pass. Step1d877be709b7f2a879358d6e.output_store::snapshot: 16 of 16 passed, including the three tests that callsnapshot_written. Step087cdda2ea6c3d11c772abbf.--arg panic) at the head: pass, step572d6037b86502fbe4cd1c31.This is a refactor with no behavior change, so the regression evidence is the clippy red at the base and the clippy green at the head. The existing tests show that the behavior is the same.
Observed / Not run
python3 scripts/cmux-next/prepush-gate.pypasses at the head; the repo's format hook (scripts/ci/format-post-edit.sh, pinned rustfmt) formatted both files.Changelog
none