Skip to content

Fix UV and Maven test failures - #3462

Merged
agrasth merged 6 commits into
jfrog:masterfrom
agrasth:fix/uv-test-failures
Apr 30, 2026
Merged

agrasth merged 6 commits into
jfrog:masterfrom
agrasth:fix/uv-test-failures

Conversation

@agrasth

@agrasth agrasth commented Apr 29, 2026 •

Copy link
Copy Markdown
Contributor
  • All tests have passed. If this feature is not already covered by the tests, new tests have been added.
  • The pull request is targeting the master branch.
  • The code has been validated to compile successfully by running go vet ./....
  • The code has been formatted properly using go fmt ./....

@agrasth agrasth added the safe to test Approve running integration tests on a pull request label Apr 29, 2026
@agrasth agrasth added safe to test Approve running integration tests on a pull request and removed safe to test Approve running integration tests on a pull request labels Apr 29, 2026
@agrasth agrasth changed the title Fix UV and Maven test failures from master regression Fix UV and Maven test failures Apr 29, 2026
@agrasth
agrasth marked this pull request as ready for review April 29, 2026 12:32
@agrasth agrasth added safe to test Approve running integration tests on a pull request and removed safe to test Approve running integration tests on a pull request labels Apr 29, 2026
@agrasth
agrasth force-pushed the fix/uv-test-failures branch from 9fb92ff to 5cf0159 Compare April 29, 2026 13:14
@agrasth agrasth added safe to test Approve running integration tests on a pull request ignore for release Automatically generated release notes and removed safe to test Approve running integration tests on a pull request labels Apr 29, 2026
@agrasth agrasth added safe to test Approve running integration tests on a pull request and removed safe to test Approve running integration tests on a pull request labels Apr 29, 2026
Comment thread buildtools/cli.go Outdated
if err != nil {
return err
}
// urfave/cli v1 reorders defined flags to the front and parses them before UvCmd

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why is this change needed

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You are right, it's not needed. When TestUvModuleOverrideOnPublish and TestUvServerIDFlag were failing, I assumed urfave/cli v1 was consuming --module and --server-id before UvCmd saw them — based on the reorderArgs behavior. So I added c.String("module") and c.String("server-id") as fallbacks.

But SkipFlagParsing: true was already on the UV command from the original PR. With that set, urfave/cli skips ALL flag parsing, which dumps everything straight into c.Args(). So c.String() always returns "", and the fallbacks never executed.
They were dead code. I have removed it

Comment thread utils/tests/proxy/server/server.go Resolved
Comment thread buildtools/cli.go Outdated
if err != nil {
return fmt.Errorf("failed to extract server ID: %w", err)
}
if serverID == "" {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

isnt serverID read in previous step why is extra check required and why is it set again by reading from flagvalue?

@agrasth agrasth added safe to test Approve running integration tests on a pull request and removed ignore for release Automatically generated release notes safe to test Approve running integration tests on a pull request labels Apr 29, 2026
@agrasth agrasth added ignore for release Automatically generated release notes safe to test Approve running integration tests on a pull request and removed safe to test Approve running integration tests on a pull request labels Apr 29, 2026
@agrasth
agrasth merged commit 093c637 into jfrog:master Apr 30, 2026
177 of 258 checks passed

This branch had an error being deployed

1 failed deployment
frogbot — 967c72ae Deployed Apr 29, 2026 by agrasth via scan-pull-request #4143
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ignore for release Automatically generated release notes safe to test Approve running integration tests on a pull request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants