Skip to content

Add timestamp suffix to UvBuildName for test isolation - #3559

Merged
ehl-jf merged 1 commit into
masterfrom
fix/uv-buildname-timestamp-suffix
Jun 19, 2026
Merged

ehl-jf merged 1 commit into
masterfrom
fix/uv-buildname-timestamp-suffix

Conversation

@agrasth

@agrasth agrasth commented Jun 19, 2026

Copy link
Copy Markdown
Contributor

Problem

UvBuildName is missing from AddTimestampToGlobalVars() in utils/tests/utils.go. Every other package manager's build name (NpmBuildName, ConanBuildName, PoetryBuildName, HuggingFaceBuildName, …) receives the unique -<runId>-<timestamp> suffix, but UvBuildName was left out, so it stays the literal cli-uv-build across all runs — even though the UV repositories (UvLocalRepo, UvRemoteRepo, UvVirtualRepo) are correctly suffixed.

This is invisible in CI here because each CI job runs against its own ephemeral local Artifactory. But when multiple UV test runs execute concurrently against a shared Artifactory instance, they all publish to and delete the same build cli-uv-build/1:

  1. Run A: jf rt bp publishes cli-uv-build/1 ✅
  2. Run B: cleanUvTest / initUvTest → DeleteBuild(cli-uv-build) deletes it
  3. Run A: tests.GetBuildInfo(...) returns found=false
  4. Run A fails: build info not found — was jf rt bp successful?

The failure is intermittent and depends purely on the interleaving of concurrent runs' cleanup vs. query.

Fix

Add UvBuildName += uniqueSuffix alongside the other build names, so each run's build name is unique and isolated — matching how every other PM is already handled.

Testing

  • go vet ./utils/tests/ passes.
  • One-line change, consistent with the 20+ sibling lines in the same function.

UvBuildName was missing from AddTimestampToGlobalVars, so every UV
integration test run used the literal build name "cli-uv-build" while
all repositories correctly received the unique "-<runId>-<timestamp>"
suffix.

When multiple UV test runs execute concurrently against a shared
Artifactory instance, they all publish and delete the same build
(cli-uv-build/1). One run's cleanUvTest/initUvTest DeleteBuild removes
the build info another run just published, so its GetBuildInfo returns
found=false and the test fails intermittently with
"build info not found — was jf rt bp successful?".

Adding the suffix makes each run's build name unique, matching how every
other package manager's build name is already handled.
@github-actions

Copy link
Copy Markdown
Contributor

👍 Frogbot scanned this pull request and did not find any new security issues.


@itsmeleela
itsmeleela enabled auto-merge (squash) June 19, 2026 08:58
@ehl-jf
ehl-jf disabled auto-merge June 19, 2026 09:09
@ehl-jf
ehl-jf merged commit 3351cdd into master Jun 19, 2026
91 of 94 checks passed
@ehl-jf
ehl-jf deleted the fix/uv-buildname-timestamp-suffix branch June 19, 2026 09:10
social4hyq pushed a commit to social4hyq/homebrew-core that referenced this pull request Sep 20, 2026
jfrog-cli 2.111.0

Created-by: HarmonybrewBot
Commit-by: HarmonybrewBot
Merged-by: HarmonybrewBot
Description: Created by `brew bump`

---

Created with `brew bump-formula-pr`.<details>
  <summary>release notes</summary>
  <pre>## What changed in 2.111.0

> Auto-generated from 5 repositories · 2026-06-26  
> Comparing `v2.109.0` → `2.111.0`

> ℹ️  No changes in: build-info-go, gofrog

### ✨ New Features

- **[jfrog-cli]** Added Post Failure Run support for poetry [#3548](jfrog/jfrog-cli#3548) (@Phavya-jfrog)
- **[jfrog-cli]** Add timestamp suffix to UvBuildName for test isolation [#3559](jfrog/jfrog-cli#3559) (@agrasth)
- **[jfrog-cli]** Add timestamp suffix to Nix repos and build name for test isolation [#3562](jfrog/jfrog-cli#3562) (@agrasth)
- **[jfrog-cli-artifactory]** Add AI help coverage check to static analysis [#490](jfrog/jfrog-cli-artifactory#490) (@ehl-jf)
- **[jfrog-cli-security]** XRAY-138689 - Add Poetry support for jf ca [#768](jfrog/jfrog-cli-security#768) (@Phavya-jfrog)

### 🐛 Bug Fixes

- **[jfrog-cli]** fix poetry publish command not respecting the repo flag [#3547](jfrog/jfrog-cli#3547) (@reshmifrog)
- **[jfrog-cli]** Fix/latest release for hf breaks cli [#3560](jfrog/jfrog-cli#3560) (@reshmifrog)
- **[jfrog-cli-artifactory]** fix poetry publish command not respecting the repo flag [#489](jfrog/jfrog-cli-artifactory#489) (@reshmifrog)
- **[jfrog-cli-core]** Fix uncaught error in DownloadDependency [#1576](jfrog/jfrog-cli-core#1576) (@eranturgeman)
- **[jfrog-cli-security]** Fix - Close log for Xray plugin [#780](jfrog/jfrog-cli-security#780) (@attiasas)
- **[jfrog-cli-security]** Fix cocoapods OOM [#781](jfrog/jfrog-cli-security#781) (@eranturgeman)
- **[jfrog-cli-security]** XRAY-145623 - pip jf ca failure due to CVS [#777](jfrog/jfrog-cli-security#777) (@Phavya-jfrog)

### 🔧 Internal Changes

- **[jfrog-cli-security]** Update dependencies [#782](jfrog/jfrog-cli-security#782) (@attiasas)

### 📦 Other Changes

- **[jfrog-cli]** common as default deployment size for artifactory [#3557](jfrog/jfrog-cli#3557) (@reshmifrog)
- **[jfrog-cli]** RTECO-1411 Add agentplugins tests [#3551](jfrog/jfrog-cli#3551) (@udaykb2)
- **[jfrog-cli]** RTECO-1074 - Remove redundant functions in agent namespace-1 [#3566](jfrog/jfrog-cli#3566) (@udaykb2)
- **[jfrog-cli]** RTECO-1074 - Remove redundant functions in agent namespace-2 [#3567](jfrog/jfrog-cli#3567) (@udaykb2)
- **[jfrog-cli-artifactory]** RTECO-1074 - Remove redundant functions in agent namespace(1/2) [#495](jfrog/jfrog-cli-artifactory#495) (@udaykb2)
- **[jfrog-cli-artifactory]** RTECO-1074 - Remove redundant functions in agent namespace-2 [#498](jfrog/jfrog-cli-artifactory#498) (@udaykb2)

---

### 📊 Summary

| Repository | Changes |
|---|---|
| [jfrog-cli](https://github.com/jfrog/jfrog-cli) | 9 |
| [jfrog-cli-security](https://github.com/jfrog/jfrog-cli-security) | 5 |
| [jfrog-cli-artifactory](https://github.com/jfrog/jfrog-cli-artifactory) | 4 |
| [jfrog-cli-core](https://github.com/jfrog/jfrog-cli-core) | 1 |
| **Total** | **19** |

### 🔗 Module Version Changes

| Module | From | To |
|---|---|---|
| [jfrog-cli-artifactory](https://github.com/jfrog/jfrog-cli-artifactory) | `v0.8.1-0.20260617065038-e7be947840da` | `v0.8.1-0.20260623062654-89dd771ef4de` |
| [jfrog-cli-core](https://github.com/jfrog/jfrog-cli-core) | `v2.60.1-0.20260615072209-8ccac4f0072e` | `v2.60.1-0.20260624085155-5ba797de2616` |
| [jfrog-cli-security](https://github.com/jfrog/jfrog-cli-security) | `v1.30.0` | `v1.31.0` |
| [jfrog-client-go](https://github.com/jfrog/jfrog-client-go) | `v1.55.1-0.20260603130552-af1dd449b994` | `v1.55.1-0.20260624085832-de0c68a23c43` |

<!-- Release notes generated using configuration in .github/release.yml at v2.111.0 -->


## New Contributors
* @IL-Automation made their first contribution in jfrog/jfrog-cli#3573

**Full Changelog**: https://github.com/jfrog/jfrog-cli/compare/v2.110.0...v2.111.0</pre>
  <p>View the full release notes at <a href="https://github.com/jfrog/jfrog-cli/releases/tag/v2.111.0">https://github.com/jfrog/jfrog-cli/releases/tag/v2.111.0</a>.</p>
</details>
<hr>

See merge request: Harmonybrew/homebrew-core!12757

This branch was previously deployed

1 inactive deployment
build-gate — 427bd7b3 Deployed Jun 19, 2026 by agrasth via Approval gate #70
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.

4 participants