Repository navigation
Conversation
…overs check
- Add diff-only patterns in .github/scripts/check_agent_leftovers.py for JavaVersion > 17, JvmTarget > 17, jvmToolchain(...)/jvmToolchain {...}, foojay-resolver, org.gradle.java.home, and CI java-version > 21.
- Flag newly added gradle-daemon-jvm.properties files in FILE_PATTERNS.
- Add unit and end-to-end tests in .github/scripts/test_check_agent_leftovers.py and skip the test fixture file from self-scanning.
Coverage (unit tests)Compared against
Line and branch coverage from unit test reports. History is recorded on the |
This branch has not been deployed
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
Extends
.github/scripts/check_agent_leftovers.pyto fail pull requests that introduce unauthorized JDK or Gradle toolchain overrides in diff lines or newly added files.Changes
DIFF_ONLY_PATTERNS, scanned viascan_text(..., include_diff_only=True)so commit messages and PR metadata remain unaffected) for:JavaVersion.VERSION_*> 17JvmTarget.JVM_*> 17jvmToolchain(...)/jvmToolchain { ... }foojay-resolverorg.gradle.java.homejava-version:> 21gradle-daemon-jvm.propertiestoFILE_PATTERNS..github/scripts/test_check_agent_leftovers.py(and added it toSKIPPED_FILESso fixture strings do not self-trigger).Verification
python3 -B .github/scripts/test_check_agent_leftovers.py -v: 8/8 passed.cc @kikoso @LoyalAbbas