Skip to content

fix: build+pattern downloads against virtual repos - #3449

Merged
bhanurp merged 6 commits into
jfrog:masterfrom
bhanurp:fix/build-with-pattern-virtual-repo
Apr 24, 2026
Merged

bhanurp merged 6 commits into
jfrog:masterfrom
bhanurp:fix/build-with-pattern-virtual-repo

Conversation

@bhanurp

@bhanurp bhanurp commented Apr 21, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Adds a replace directive in go.mod pointing github.com/jfrog/jfrog-client-go at the fix/build-with-pattern-virtual-repo branch so CI exercises the virtual-repo pattern-download fix.
  • Depends on fix: build+pattern downloads against virtual repos jfrog-client-go#1338 — the replace should be removed once that PR merges and a client-go release is bumped here.

Test plan

  • CI green on this branch
  • Manual: jf rt download --build=<build>/<number> "<virtual-repo>/**" returns the expected artifacts

Add replace directive pointing at jfrog-client-go branch
fix/build-with-pattern-virtual-repo so CI picks up the virtual-repo
pattern-download fix (client-go PR).
Guards the jfrog-client-go fix that moves the pattern filter from
client-side post-filter (which compared against the backing local repo
returned by AQL) to AQL server-side (which resolves virtual repos).
@bhanurp bhanurp added bug Something isn't working safe to test Approve running integration tests on a pull request labels Apr 21, 2026
Both funnel into SearchBySpecWithBuild and both returned empty results
pre-fix when combining --build with a virtual-repo pattern. Guards the
spec parser path and the sibling search command alongside the existing
CLI-args download test.
@bhanurp bhanurp 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 21, 2026
@bhanurp
bhanurp requested review from a team, agrasth, fluxxBot, itsmeleela, naveenku-jfrog and reshmifrog and removed request for a team April 22, 2026 04:26
Comment thread artifactory_test.go Resolved
Comment thread artifactory_test.go Resolved
Hardcoded build numbers risk colliding with state left by a previously
crashed run. Swap to a timestamped uniqueBuildNumberPair helper and
generate the spec-file variant inline so the build number propagates
cleanly without a fixture. Drops the now-unused fixture/constant.

Addresses PR review feedback on jfrog#3449.
@bhanurp bhanurp 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 24, 2026
@bhanurp bhanurp 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 24, 2026
@bhanurp
bhanurp merged commit 9133283 into jfrog:master Apr 24, 2026
79 of 80 checks passed
naveenku-jfrog added a commit that referenced this pull request May 4, 2026
Commit 447a825 (RTECO-1003) accidentally deleted three test functions
and two helpers that were introduced by commit 9133283
(fix: build+pattern downloads against virtual repos, PR #3449):

  - TestArtifactoryDownloadByPatternAndBuildFromVirtualRepo
  - TestArtifactoryDownloadByPatternAndBuildFromVirtualRepoUsingSpec
  - TestArtifactorySearchByPatternAndBuildFromVirtualRepo
  - uniqueBuildNumberPair (helper)
  - writeBuildPatternVirtualSpec (helper)

These tests guard the jfrog-client-go fix for virtual-repo AQL pattern
resolution and are executed by the jfrog-cli workflows. Restore them
verbatim from commit 9133283.

Co-authored-by: Cursor <cursoragent@cursor.com>

This branch had an error being deployed

1 failed deployment
frogbot — 47ed6eba Deployed Apr 24, 2026 by bhanurp via scan-pull-request #4062
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working 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