docs: note Gradle test task caching in AGENTS.md - #892
Closed
rrama wants to merge 1 commit into
Closed
Conversation
Gradle can report UP-TO-DATE and exit 0 for a cached test task without running anything, which looks identical to a genuine pass. This tip was previously only on a shared cross-repo Confluence setup page, but it's specific to this repo's own Gradle/IntelliJ build, so it belongs in AGENTS.md instead. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
✅ Snyk checks have passed. No issues have been found so far.
💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse. |
PR Reviewer Guide 🔍
|
Contributor
Code Coverage
|
Contributor
Author
|
Superseded — this note already exists on #882 (the branch this belongs on), which I missed when opening this PR. Closing as redundant. |
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.
Description
Adds a note to AGENTS.md's Development Workflow section:
./gradlew testcan reportUP-TO-DATEand exit 0 without running anything when the test task is cached, which looks identical to a genuine pass. Use./gradlew test --rerun-tasksto confirm a real, non-cached green.This consolidates guidance that was previously documented only on a shared cross-repo Confluence setup-instructions page. It's specific to this repo's own Gradle/IntelliJ build, so it belongs here instead.
Checklist
N/A: docs-only change (one line in AGENTS.md), no code/tests affected.
Screenshots / GIFs
N/A
Note
Low Risk
Documentation-only change to AGENTS.md; no code, build, or runtime behavior affected.
Overview
Adds one workflow bullet to
AGENTS.mdso agents and contributors know that./gradlew testcan finish withUP-TO-DATEand exit 0 when Gradle’s test task is cached—same as a real green run.The new guidance says to use
./gradlew test --rerun-taskswhen you need to force tests to run and confirm a non-cached pass. This moves repo-specific Gradle/IntelliJ advice from shared Confluence setup docs into the in-repo agent workflow section, next to the existing “run tests before commit” step.Reviewed by Cursor Bugbot for commit cee9f82. Bugbot is set up for automated code reviews on this repo. Configure here.