Repository navigation
Open
Labels
area:configbugSomething isn't workingeffort-smallQuelques heures, 1 fichierfilter-qualityFilter produces incorrect/truncated signalgood first issueGood for newcomershelp wantedExtra attention is neededpriority:low
Description
The current TOML Gradle filter keeps generic Gradle runtime chatter that is not usually useful build signal.
MWE
tmp=$(mktemp -d)
mkdir -p "$tmp/home/Library/Application Support/rtk" "$tmp/proj"
cat > "$tmp/home/Library/Application Support/rtk/filters.toml" <<'EOF'
schema_version = 1
[filters.gradle]
description = "Compact Gradle build output — strip progress, keep tasks and errors"
match_command = "^(?:\\./)?gradlew?\\b"
strip_ansi = true
strip_lines_matching = [
"^\\s*$",
"^> Configuring project",
"^> Resolving dependencies",
"^> Transform ",
"^Download(ing)?\\s+http",
"^\\s*<-+>\\s*$",
"^> Task :.*UP-TO-DATE$",
"^> Task :.*NO-SOURCE$",
"^> Task :.*FROM-CACHE$",
"^Starting a Gradle Daemon",
"^Daemon will be stopped",
]
truncate_lines_at = 150
max_lines = 50
on_empty = "gradle: ok"
EOF
HOME="$tmp/home" gradle -p "$tmp/proj" init --type basic --dsl kotlin --project-name mwe --use-defaults
cd "$tmp/proj"
HOME="$tmp/home" RTK_TOML_DEBUG=1 rtk ./gradlew help
# actual includes:
# Calculating task graph as no cached configuration is available for tasks: help
# Reusing configuration cache.
# Configuration cache entry stored/reused.Expected
Keep the task result and help text, but drop generic runtime lines such as:
Calculating task graph ...Reusing configuration cache.Configuration cache entry stored/reused.
Debug
RTK_TOML_DEBUG=1 rtk ./gradlew help
RTK_TOML_DEBUG=1 rtk ./gradlew tasksLocal workaround
Extend strip_lines_matching with patterns for generic cache/task-graph chatter.
Proposed fix in rtk
- Add inline tests for
help/tasksoutput with configuration-cache lines. - Strip generic non-build-signal runtime lines while preserving task output, warnings, and real errors.
- Use earlier Gradle filter intent as guidance: older Gradle work explicitly treated generic task-progress noise as removable, e.g. PR feat: add Gradle/Gradlew support with compact output (80-90% token reduction) #374, PR feat(gradle): add Gradle/Gradlew support with compact output (80-90% token reduction) #381, PR feat(gradle): Start implementing Gradle filter module with task-type detection #709.
Context
- Current TOML filter came from PR feat: add 5 new TOML filters (ollama, nx, gradle, spring-boot, jira) #635.
- Related: gradle.toml matcher does not match real
rtk ./gradlew/rtk gradleinvocations #1177.
Metadata
Metadata
Assignees
Labels
area:configbugSomething isn't workingeffort-smallQuelques heures, 1 fichierfilter-qualityFilter produces incorrect/truncated signalgood first issueGood for newcomershelp wantedExtra attention is neededpriority:low
Activity
pszymkowiak commentedon Apr 12, 2026
🔍 Automated Triage
buglowSummary
Gradle TOML filter misses configuration-cache and task-graph chatter lines; fix by adding patterns to strip_lines_matching in the existing filter definition
📁 Relevant files
filters/gradle.tomlTriaged automatically by wshm · This is an automated analysis, not a human review.
JanecekPetr commentedon Apr 13, 2026
In JVM projects with Gradle it is fairly common to also have test logging enabled, this spits out a line for each test - the test name plus "PASSED" / "SKIPPED" / "FAILED". Would be nicve if those would be filtered, too. Probably a separate ticket, right?
erikhuizinga commentedon Apr 13, 2026
Yes, I'd treat that as a separate ticket. Logging in Gradle in general could be interfaced with. E.g. Gradle itself uses various log levels that rtk could filter on. And for specific use cases you can probably allowlist/blocklist specific regexes, like the use case you mention.
The current issue is about filtering out even more by default.
fix(gradle): fix match_command regex and strip config-cache chatter
fix(gradle): fix match_command regex and strip config-cache chatter
fix(gradle): fix match_command regex and strip config-cache chatter
fix(gradle): fix match_command regex and strip config-cache chatter
fix(gradle): fix match_command regex and strip config-cache chatter
fix(gradle): keep configuration-cache problem lines out of the strip …