Skip to content

feat(gradle): HEALTH, PROTO, DEPS filters + multi-task batch#6

Closed
Nava2 wants to merge 3 commits intographite-base/6from
rtk-gradle/health-proto-deps-batch
Closed

feat(gradle): HEALTH, PROTO, DEPS filters + multi-task batch#6
Nava2 wants to merge 3 commits intographite-base/6from
rtk-gradle/health-proto-deps-batch

Conversation

@Nava2
Copy link
Collaborator

@Nava2 Nava2 commented Mar 16, 2026

Summary

  • health.rs: Passthrough (health output is already concise)
  • proto.rs: Drop proto extraction noise, keep error lines
  • deps.rs: Truncate dependency tree to depth 0-1, show transitive count
  • batch.rs: Split multi-task output by > Task boundaries, apply per-section filters (compile, test, detekt), format with --- :task FAILED --- headers and for successes
  • Batch routing for any multi-task run (not just Generic type), Compile arm in batch filter
  • Uses raw input for task boundary detection (before global filter strips bare > Task lines)

Stack

scaffold → global-filters → compile → test-filter → detekt → 6/7 — this PR → hooks-docs

Test plan

  • 11 tests: snapshots (health/proto/deps/batch), token savings, failed section headers, success task markers
  • cargo fmt --all --check && cargo clippy --all-targets && cargo test --all

🤖 Generated with Claude Code

Copy link
Collaborator Author

Nava2 commented Mar 16, 2026

Warning

This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
Learn more

This stack of pull requests is managed by Graphite. Learn more about stacking.

Nava2 and others added 3 commits March 16, 2026 06:48
Add remaining task-type filters:
- health.rs: Passthrough (health output is already concise, just global filters)
- proto.rs: Drop proto extraction noise, keep error lines
- deps.rs: Truncate dependency tree to depth 0-1, show transitive count
- batch.rs: Split multi-task output by > Task boundaries, apply per-section
  filters, format with "--- :task FAILED ---" headers and "✓" for successes.
  Uses raw input for task boundary detection (before global filter strips
  bare > Task lines). Deduplicates tasks that appear as both success and failed.

Update mod.rs filter_gradle_output to detect batch runs and route to
batch::filter_batch_from_raw for multi-task handling.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this pr is too large, lets break it down into specific batch / deps / health / proto.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

verify this is the actual output we would expect to see -- I don't think it is. Gradle will combine the end failure outputs unless I'm mistaken.

@Nava2 Nava2 force-pushed the rtk-gradle/detekt branch from c732fab to b3253e5 Compare March 16, 2026 10:48
@Nava2 Nava2 force-pushed the rtk-gradle/health-proto-deps-batch branch from 1863e1f to aaabd64 Compare March 16, 2026 10:48
@Nava2 Nava2 changed the base branch from rtk-gradle/detekt to graphite-base/6 March 16, 2026 11:51
@Nava2
Copy link
Collaborator Author

Nava2 commented Mar 16, 2026

Superseded: split into #8 (deps), #9 (health-proto), #10 (batch) per review feedback.

@Nava2 Nava2 closed this Mar 16, 2026
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