Skip to content

Add support for JFrog artifactory.#1553

Open
lesaux wants to merge 17 commits intoaptly-dev:masterfrom
linuxdataflow:feat/pls/jfrog-support
Open

Add support for JFrog artifactory.#1553
lesaux wants to merge 17 commits intoaptly-dev:masterfrom
linuxdataflow:feat/pls/jfrog-support

Conversation

@lesaux
Copy link
Copy Markdown
Contributor

@lesaux lesaux commented Apr 7, 2026

Description of the Change

Add support for JFrog artifactory.
One could use a "generic" JFrog repository (not debian/apt compatible repo: we wouldn't want it to recalculate Release files)

Checklist

  • allow Maintainers to edit PR (rebase, run coverage, help with tests, ...)
  • unit-test added (if change is algorithm)
  • functional test added/updated (if change is functional)
  • man page updated (if applicable)
  • bash completion updated (if applicable)
  • documentation updated
  • author name in AUTHORS

@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 7, 2026

Codecov Report

❌ Patch coverage is 92.21557% with 13 lines in your changes missing coverage. Please review.
✅ Project coverage is 77.08%. Comparing base (809ab47) to head (eb48de2).
⚠️ Report is 1 commits behind head on master.

Files with missing lines Patch % Lines
jfrog/public.go 91.44% 8 Missing and 5 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1553      +/-   ##
==========================================
- Coverage   77.22%   77.08%   -0.15%     
==========================================
  Files         161      163       +2     
  Lines       15080    15247     +167     
==========================================
+ Hits        11646    11753     +107     
- Misses       2291     2350      +59     
- Partials     1143     1144       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@neolynx neolynx self-assigned this Apr 12, 2026
@neolynx neolynx requested a review from a team April 12, 2026 19:34
@neolynx neolynx added needs rebase The PR needs to be rebased on master needs maintainer access and removed needs maintainer access labels Apr 12, 2026
Comment thread .github/workflows/ci.yml
@lesaux
Copy link
Copy Markdown
Contributor Author

lesaux commented Apr 13, 2026 via email

Comment thread debian/aptly.conf
Comment thread utils/config_test.go
"}")
}

func (s *ConfigSuite) TestLoadYAMLConfig(c *C) {
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.

Looks like a few tests were removed here, was that intentional?

Comment thread go.mod
github.com/aws/aws-sdk-go-v2/service/s3 v1.67.1
github.com/aws/smithy-go v1.22.1
github.com/google/uuid v1.6.0
github.com/jfrog/jfrog-client-go v1.55.0
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.

I believe if we add a new dependency, it should also be added to debian/control to facilitate debian source builds. However I'm not super familiar with this process and will defer to @neolynx on if this is necessary now and if so, what the process is (since it doesn't look like jfrog-client-go is currently packaged for Debian)

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.

I guess what I can do is gate JFrog support out of Debian builds for now (build tags / packaging split), so Debian source builds remain reproducible. Let me know how to proceed.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I am updating the build/debian branch, jfrog support and others will be merged in once debian provides the dependencies. I am in contact with the debian maintainer, we try to get dependencies packaged...

on master we aim to have latest features in and available in the next prod release.

@lesaux
Copy link
Copy Markdown
Contributor Author

lesaux commented Apr 16, 2026

I was "playing" with this in my customer's environment today. I had a small bug but now it's working beautifully. I was able to publish, update, and delete from JFrog.

I will update the PR and address your comments shortly.

@neolynx neolynx force-pushed the feat/pls/jfrog-support branch 2 times, most recently from 9b64a58 to eb48de2 Compare April 26, 2026 17:08
@neolynx neolynx added needs review Ready for review & merge and removed needs rebase The PR needs to be rebased on master labels Apr 26, 2026
@neolynx
Copy link
Copy Markdown
Member

neolynx commented Apr 26, 2026

rebased, remove binary from git history

@iofq
Copy link
Copy Markdown
Contributor

iofq commented Apr 30, 2026

Made two commits to update docs and allow credentials to be pulled from env var, please cherry-pick them if they look OK:

iofq@7b19bc4

iofq@eeea702

@neolynx neolynx added this to the 1.6.3 milestone May 2, 2026
lesaux added 13 commits May 2, 2026 16:35
- Remove unused pathCache field from PublishedStorage struct
- Remove unused md5s accumulation in Filelist()
- Fix unchecked error return on expectedOut.Write in config_test.go
- Suppress unused linter on configFileYAML/configFileYAMLError constants
  (retained to avoid merge conflicts with feat/pls/gcs-support)
- Add --timeout=10m to golangci-lint workflow
v0.5.14 introduced a `1 << 31` constant assigned to an `int` variable
in lzma/reader.go, which overflows on 32-bit architectures (i386, armhf).
v0.5.15 fixes this by using int64.
@neolynx neolynx force-pushed the feat/pls/jfrog-support branch from eb48de2 to 27bd0f8 Compare May 2, 2026 14:37
@neolynx
Copy link
Copy Markdown
Member

neolynx commented May 2, 2026

@iofq thanks ;-) PR updated

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs review Ready for review & merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants