You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
test: two allow patterns for the same long-journey lints across crates/e2e/tests #1576
kind:testTest coverage, flakes, fixtures or the e2e harnessprio:lowWhen convenientrustDependabot: a Cargo update; use area: labels for Rust code otherwise
clippy::too_many_lines / clippy::cognitive_complexity are suppressed two different ways in the same directory, for the identical reason ("one sequential on-chain journey reads more clearly unsplit"):
File-level #![allow(...)] — suppresses the lint for every function in the file, including short helpers that should still be covered:
Function-scoped #[allow(..., reason = ...)] — introduced by #1569 on slash_appeal.rs's run() and g_origin_01_publish.rs's run_transfer().
The function-scoped form is the better one: it keeps every other function in those files under the lint, and reason = puts the justification where it is enforced. cli_fetch_topup.rs now sits next to both patterns.
Proposal: narrow the file-level allows to the specific journey functions that need them, matching the #1569 form. Mechanical, no behavior change — but it will surface any other function in those files that has quietly grown past the threshold, which is the point.
The issue identifies an inconsistency in how clippy::too_many_lines and clippy::cognitive_complexity are suppressed across crates/e2e/tests and crates/node/tests: several files use file-level #![allow(...)] (suppressing all functions including short helpers), while #1569 introduced the stricter function-scoped #[allow(..., reason = ...)] form. The ask is to narrow all file-level suppresses to match the #1569 pattern, which is purely mechanical and carries no behavior change.
📊 Assessment
Dimension
Value
Reasoning
Type
Task
Mechanical code-quality cleanup with clear scope, no logic change
Labels
unchanged (technical, rust, testing, low)
Existing labels are accurate; no additions needed
Coding agent
Suitable
Requirements are unambiguous: convert file-level #![allow(...)] in the listed files to function-scoped #[allow(..., reason = ...)] on the specific journey functions. No design decisions required.
Validation: After the change, cargo clippy --features anvil-e2e (or whichever invocation covers e2e, see #1551) should pass. Any function in those files that silently exceeded the threshold will now surface as a new clippy warning — that's the intended side effect and should be fixed or suppressed with its own reason = annotation.
Generated by Agentic Triage for #1576 · sonnet46 · 15.5 AIC · ⌖ 5.69 AIC · ⊞ 6K · ◷
Add this agentic workflow to your repo
To install this agentic workflow, run
gh aw add githubnext/agentics/workflows/issue-triage.md@94ec5db57374c5b04a4b8eef8b4413f9af44d63f
kind:testTest coverage, flakes, fixtures or the e2e harnessprio:lowWhen convenientrustDependabot: a Cargo update; use area: labels for Rust code otherwise
Activity
github-actions commentedon Aug 1, 2026
🎯 Triage report
The issue identifies an inconsistency in how
clippy::too_many_linesandclippy::cognitive_complexityare suppressed acrosscrates/e2e/testsandcrates/node/tests: several files use file-level#, while #1569 introduced the stricter function-scoped#[allow(..., reason = ...)]form. The ask is to narrow all file-level suppresses to match the #1569 pattern, which is purely mechanical and carries no behavior change.📊 Assessment
technical,rust,testing,low)#![allow(...)]in the listed files to function-scoped#[allow(..., reason = ...)]on the specific journey functions. No design decisions required.🔗 Similar issues
run()innode, same theme of keeping complexity lints effective💡 Notes and suggestions
Files to update (replace file-level
#![allow(...)]with function-scoped#[allow(..., reason = "...")]on the journey function):crates/e2e/tests/g_gov_02_rate_bounds.rs— both lintscrates/e2e/tests/g_gov_03_real_evidence.rs— both lintscrates/e2e/tests/g_node_06_unbond.rs— both lintscrates/e2e/tests/cli_fetch_topup.rs—too_many_linescrates/e2e/tests/cli_fetch_resume.rs—too_many_linescrates/e2e/tests/cli_bundle_pull_channel_id.rs—too_many_linescrates/e2e/tests/coop_close_watermark_reconcile.rs—too_many_linescrates/node/tests/anvil_settlement_e2e.rs— both lintscrates/node/tests/anvil_bringup_shutdown_e2e.rs— both lintsReference form (from #1569):
Validation: After the change,
cargo clippy --features anvil-e2e(or whichever invocation covers e2e, see #1551) should pass. Any function in those files that silently exceeded the threshold will now surface as a new clippy warning — that's the intended side effect and should be fixed or suppressed with its ownreason =annotation.Add this agentic workflow to your repo
To install this agentic workflow, run
chore: knock off six low-LOC / doc-only issues (#1555, #1558, #1559, #…
alpergundogdu commentedon Aug 3, 2026
Resolved by #1581 (merged, commit 373401e). The multi-issue "Closes" line only auto-closed the first number; closing manually.