Skip to content

feat(gradle): global noise line filters + config#2

Merged
Nava2 merged 6 commits intomasterfrom
rtk-gradle/global-filters
Mar 16, 2026
Merged

feat(gradle): global noise line filters + config#2
Nava2 merged 6 commits intomasterfrom
rtk-gradle/global-filters

Conversation

@Nava2
Copy link
Collaborator

@Nava2 Nava2 commented Mar 16, 2026

Summary

  • ~15 lazy_static regex patterns for noise categories: daemon startup, task status, config cache, deprecation, downloads, build scan URLs (develocity + scans.gradle.com), VFS, ANSI codes, Kotlin daemon, reflection warnings, file system events, javac notes
  • ANSI stripping via strip_ansi() before pattern matching
  • Stateful * Try: block removal (blank lines inside Try blocks consumed)
  • Blank line trimming/collapsing
  • [gradle] config section: user_packages, extra_drop_patterns (invalid patterns logged and skipped)
  • Token savings >=90% on both fixtures

Note: org-specific patterns (AWS SSO, focus plugin) belong in extra_drop_patterns config, not built-in.

Stack

scaffold <- global-filters <- compile <- test-filter <- detekt <- batch
                           ├── deps
                           └── health-proto

Test plan

  • 11 tests: snapshot tests, token savings, Try block, note dedup, extra patterns
  • cargo fmt --all --check && cargo clippy --all-targets && cargo test --all

🤖 Generated with Claude Code

@Nava2 Nava2 force-pushed the rtk-gradle/global-filters branch from c5161e1 to 3f370dd Compare March 16, 2026 01:18
Copy link
Collaborator Author

Nava2 commented Mar 16, 2026

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

@Nava2 Nava2 force-pushed the rtk-gradle/global-filters branch 2 times, most recently from e8d04e8 to 1f35e55 Compare March 16, 2026 11:51
@Nava2 Nava2 force-pushed the rtk-gradle/global-filters branch 2 times, most recently from dc850e1 to 5da9ced Compare March 16, 2026 14:08
@Nava2 Nava2 changed the base branch from rtk-gradle/scaffold to graphite-base/2 March 16, 2026 14:17
Nava2 and others added 5 commits March 16, 2026 14:17
Add src/gradle/global.rs with ~18 lazy_static regex patterns for all noise
categories from the spec: daemon startup, task status, config cache, deprecation,
downloads, progress bars, build scan, VFS, reflection warnings, classpath, Kotlin
daemon, evaluation, etc. Stateful * Try: block removal. Note/warning deduplication.
Blank line trimming.

Add [gradle] config section to config.rs with user_packages (for stack trace
filtering in commit 4) and extra_drop_patterns (user-supplied regex, invalid
patterns logged to stderr and skipped).

Add insta dev dependency for snapshot testing. Fixtures use com.example.*
packages (obfuscated). Token savings >=90% on both fixtures.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Move AWS SSO noise patterns to extra_drop_patterns config space.
Remove AWS SSO lines from generic_noise fixture (Faire-specific).

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@Nava2 Nava2 force-pushed the graphite-base/2 branch from 126b3ce to af5205d Compare March 16, 2026 14:17
@Nava2 Nava2 force-pushed the rtk-gradle/global-filters branch from 5da9ced to 63283cc Compare March 16, 2026 14:17
@graphite-app graphite-app bot changed the base branch from graphite-base/2 to master March 16, 2026 14:18
Update build scan regex to match both private develocity.* and
public scans.gradle.com URLs. Update fixture accordingly.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@Nava2 Nava2 force-pushed the rtk-gradle/global-filters branch from 63283cc to aec0512 Compare March 16, 2026 14:18
@Nava2 Nava2 merged commit 74669d3 into master Mar 16, 2026
1 of 2 checks passed
Copy link
Collaborator Author

Nava2 commented Mar 16, 2026

Merge activity

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