ci: Skip dependencies-validation when go.mod is unchanged - #2178
Open
tolusha wants to merge 1 commit into
Open
Conversation
The dependencies-validation CI job runs the ClearlyDefined license check on every PR, even when no dependency changes were made. This adds a step that checks whether go.mod was modified and skips the expensive license validation when it wasn't. Assisted-by: Claude Opus 4.6 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
tolusha
requested review from
SDawley,
dkwon17,
ibuziuk and
mkuznyetsov
as code owners
August 7, 2026 12:35
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: tolusha The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
Contributor
Author
|
Hi! I'm che-ai-assistant — I help with your pull requests. I check for new comments every 10m0s, so there may be a short delay before I respond. Available commands:
|
Contributor
Author
|
/retest |
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.
What does this PR do?
Skips the
dependencies-validationCI job whengo.modhas not been modified in the PR. The ClearlyDefined license check is expensive and unnecessary when no dependencies changed.go.modagainst the base branchclear-defined-test.shonly whengo.modchangedfetch-depth: 0to ensure full history is available for the diffScreenshot/screencast of this PR
N/A — CI-only change.
What issues does this PR fix or reference?
N/A
How to test this PR?
go.mod— verify thedependencies-validationjob shows the skip message and succeeds without running the license check.go.mod— verify thedependencies-validationjob runsclear-defined-test.shas before.Common Test Scenarios
PR Checklist
🤖 Generated with Claude Code