fix: correct SNAPSHOT dependency check logic in release workflow#25
Merged
aneojgurhem merged 1 commit intomainfrom Nov 24, 2025
Merged
fix: correct SNAPSHOT dependency check logic in release workflow#25aneojgurhem merged 1 commit intomainfrom
aneojgurhem merged 1 commit intomainfrom
Conversation
aneojgurhem
approved these changes
Nov 24, 2025
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.
Motivation
The release workflow is currently failing at the "Check for SNAPSHOT dependencies" validation step, preventing us from publishing new releases. Investigation revealed this is caused by a shell scripting bug in the SNAPSHOT detection logic, not actual SNAPSHOT dependencies in our POMs.
Description
Root Cause
The original SNAPSHOT check used the following logic:
This has a critical flaw:
find -execreturns exit code 0 (success) as long as it successfully executes the command on each file, regardless of whether grep finds any matches. This causes false positives where the check fails even when no SNAPSHOT dependencies exist.Investigation Results
Local testing with the diagnostic script revealed:
versions:setupdates project versiondependency:treeshows no SNAPSHOT dependenciesThis confirms the issue is purely a shell scripting logic error.
Solution
Changes Made
validate-modulesjobTesting
Local Testing
Ran the diagnostic script with version update to 0.1.0:
versions:setsuccessfully updates all POMsExpected CI Behavior
With this fix, the release workflow will:
Impact
Checklist