Skip to content

Added logic for fat manifest file#452

Merged
naveenku-jfrog merged 3 commits into
mainfrom
RTECO-1054-Support-the-detailed-summary-flag-in-jf-docker-push-for-fat-manifest
May 27, 2026
Merged

Added logic for fat manifest file#452
naveenku-jfrog merged 3 commits into
mainfrom
RTECO-1054-Support-the-detailed-summary-flag-in-jf-docker-push-for-fat-manifest

Conversation

@naveenku-jfrog
Copy link
Copy Markdown
Collaborator

@naveenku-jfrog naveenku-jfrog commented May 14, 2026

  • All tests passed. If this feature is not already covered by the tests, I added new tests.
  • All static analysis checks passed.
  • Appropriate label is added to auto generate release notes.
  • I used gofmt for formatting the code before submitting the pull request.
  • PR description is clear and concise, and it includes the proposed solution/fix.

What: Added logic for fat manifest file

@naveenku-jfrog naveenku-jfrog added the bug Something isn't working label May 14, 2026
@naveenku-jfrog naveenku-jfrog added the safe to test Approve running integration tests on a pull request label May 14, 2026
@github-actions github-actions Bot removed the safe to test Approve running integration tests on a pull request label May 14, 2026
@naveenku-jfrog naveenku-jfrog added the safe to test Approve running integration tests on a pull request label May 18, 2026
@github-actions github-actions Bot removed the safe to test Approve running integration tests on a pull request label May 18, 2026
// part of a multi-platform image: the fat manifest result item itself, plus all
// layers belonging to each platform-specific manifest digest. Layers shared
// across platforms are returned once.
func aggregateFatManifestLayers(fatManifestResult *utils.ResultItem, fatManifest *FatManifest, multiPlatformImages map[string][]*utils.ResultItem) []utils.ResultItem {
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I think there's already a common method for this, can you make use of that? you might find it as part of the docker build workflow

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

I did look at createMultiPlatformBuildInfo in buildinfo.go — that's the closest existing logic for fat-manifest layer aggregation in the docker build workflow. However, it can't be reused as-is from the detailed-summary path because it does more than just aggregate layers:

  1. It mutates builder.imageLayers as a side-effect on the build-info builder.
  2. It constructs per-platform buildinfo.Module artifacts and a *buildinfo.BuildInfo return value.
  3. It calls setBuildProperties to write build properties back to Artifactory.

The detailed-summary flow only needs the layer list (no builder, no build-info, no prop writes), so calling it directly would pull in unwanted side-effects and the wrong return type.

Comment thread artifactory/commands/ocicontainer/layerextract.go
@naveenku-jfrog naveenku-jfrog requested a review from fluxxBot May 25, 2026 06:42
@naveenku-jfrog naveenku-jfrog added the safe to test Approve running integration tests on a pull request label May 25, 2026
@github-actions github-actions Bot removed the safe to test Approve running integration tests on a pull request label May 25, 2026
@naveenku-jfrog naveenku-jfrog force-pushed the RTECO-1054-Support-the-detailed-summary-flag-in-jf-docker-push-for-fat-manifest branch from 631d917 to 75279bd Compare May 26, 2026 15:29
Comment thread artifactory/commands/ocicontainer/layerextract.go
@naveenku-jfrog naveenku-jfrog added the safe to test Approve running integration tests on a pull request label May 27, 2026
@github-actions github-actions Bot removed the safe to test Approve running integration tests on a pull request label May 27, 2026
@naveenku-jfrog naveenku-jfrog merged commit 45c6417 into main May 27, 2026
88 of 90 checks passed
@naveenku-jfrog naveenku-jfrog deleted the RTECO-1054-Support-the-detailed-summary-flag-in-jf-docker-push-for-fat-manifest branch May 27, 2026 12:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants