feat(gradle): TEST filter + stack trace truncation#4
Merged
Conversation
21cf992 to
28f927f
Compare
cfb622c to
477acc3
Compare
28f927f to
a5b95bb
Compare
477acc3 to
3b7bd16
Compare
This was referenced Mar 16, 2026
Collaborator
Author
This stack of pull requests is managed by Graphite. Learn more about stacking. |
This was referenced Mar 16, 2026
Nava2
commented
Mar 16, 2026
a5b95bb to
49e20a9
Compare
72a9fe9 to
f6341e7
Compare
49e20a9 to
dfb3da9
Compare
This was referenced Mar 16, 2026
Nava2
commented
Mar 16, 2026
dfb3da9 to
b7fcccc
Compare
f6341e7 to
64d745f
Compare
b7fcccc to
9fbe61d
Compare
64d745f to
11e7cae
Compare
9fbe61d to
5de49f4
Compare
11e7cae to
acfa5c4
Compare
5386a79 to
6dad4f6
Compare
acfa5c4 to
f4c2e05
Compare
Add src/gradle/test_filter.rs with: - Passing test line removal (PASSED lines dropped) - JUnit discovery/execution noise removal - STANDARD_OUT/STANDARD_ERR block removal - Integration test extra noise: Hibernate, HikariPool, Docker/Testcontainers, Spring - Stack trace truncation: keep exception message + first assertion frame + up to 3 user-code frames, drop framework frames with "... N more" summary - Caused by: chain handling with separate frame limits - Configurable user_packages from config.toml (default: empty, uses com.example.* fallback) Token savings >=60% on test failure fixture. All failures preserved. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…ON_NOISE - Remove INTEGRATION_NOISE patterns from built-in (verified: not present in Gradle --console plain output, only in JUnit reports) - Make framework frame drop list configurable via drop_frame_packages config - Built-in hardcoded: java.*, kotlin.*, sun.*, javax.*, jdk.*, jakarta.*, android.*, *.internal.* - Configurable defaults: org.gradle, org.junit.platform, org.junit.jupiter.engine, org.springframework, com.google.inject, io.grpc, org.mockito, io.mockk, org.eclipse.jetty - Unknown frames (not framework, not user) are now kept instead of dropped Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
f4c2e05 to
f0f8b76
Compare
- ASSERTION_FRAME: narrowed org.assertj to org.assertj.core.api (keep API entry points as assertion frames, drop internals) - Added org.assertj.core.internal to default drop_frame_packages - Fixture: replaced synthetic Spring/Hibernate STANDARD_OUT content with realistic test logger output (these don't appear in --console plain) Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
f0f8b76 to
1a4e2d9
Compare
Collaborator
Author
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
... N moresummarydrop_frame_packagesconfig:java.*,kotlin.*,sun.*,javax.*,jdk.*,jakarta.*,android.*,*.internal.*user_packagesfrom config.toml (default: empty, uses com.example.* fallback)Caused by:chain handling with separate frame limitsINTEGRATION_NOISE— verified against real--console plainoutput (Hibernate/HikariPool/etc. don't appear in Gradle's console stream, only in JUnit reports)Stack
Test plan
cargo fmt --all --check && cargo clippy --all-targets && cargo test --all🤖 Generated with Claude Code