Skip to content

ci: Skip dependencies-validation when go.mod is unchanged - #2178

Open
tolusha wants to merge 1 commit into
mainfrom
ci/skip-deps-validation-no-gomod-change
Open

ci: Skip dependencies-validation when go.mod is unchanged #2178
tolusha wants to merge 1 commit into
mainfrom
ci/skip-deps-validation-no-gomod-change

Conversation

@tolusha

@tolusha tolusha commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

What does this PR do?

Skips the dependencies-validation CI job when go.mod has not been modified in the PR. The ClearlyDefined license check is expensive and unnecessary when no dependencies changed.

  • Adds a step to diff go.mod against the base branch
  • Conditionally runs clear-defined-test.sh only when go.mod changed
  • Uses fetch-depth: 0 to ensure full history is available for the diff

Screenshot/screencast of this PR

N/A — CI-only change.

What issues does this PR fix or reference?

N/A

How to test this PR?

  1. Open a PR that does not modify go.mod — verify the dependencies-validation job shows the skip message and succeeds without running the license check.
  2. Open a PR that does modify go.mod — verify the dependencies-validation job runs clear-defined-test.sh as before.

Common Test Scenarios

  • Check operator logs for reconciliation errors or infinite reconciliation loops

PR Checklist

🤖 Generated with Claude Code

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>
@openshift-ci

openshift-ci Bot commented Aug 7, 2026

Copy link
Copy Markdown

[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.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@tolusha

tolusha commented Aug 7, 2026

Copy link
Copy Markdown
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:

  • /che-ai-assistant generate-che-doc — Generate a documentation PR based on this PR's changes
  • /che-ai-assistant ok-pr-review — Run a comprehensive PR review (summary, code review, deep review, impact analysis)
  • /che-ai-assistant ok-pr-readiness — Ensure PR has validation steps
  • /che-ai-assistant check-pr-test-failures — Analyze failing CI checks, identify root causes, and suggest fixes
  • /che-ai-assistant update-che-e2e-tests — Update Eclipse Che e2e tests
  • /che-ai-assistant claude — Run a free-form instruction on this PR
  • /che-ai-assistant help — Show this help message

@tolusha

tolusha commented Aug 7, 2026

Copy link
Copy Markdown
Contributor Author

/retest

@tolusha tolusha changed the title ci: Skip dependencies-validation when go.mod is unchanged ci: Skip dependencies-validation when go.mod is unchanged Aug 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant