-
-
Notifications
You must be signed in to change notification settings - Fork 0
fix(image): make OCI version and revision labels state the truth #199
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
cuioss-oliver
merged 7 commits into
main
from
feature/plan-v02-16-image-metadata-fidelity
Aug 9, 2026
Merged
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
67e6b17
fix(image): retire the hard-coded version literal on the JFR Dockerfile
cuioss-oliver fdd9667
feat(image): label the published image with its release-tag commit
cuioss-oliver 47fde03
test(image): assert both OCI provenance labels on the built image
cuioss-oliver 0f7732b
style(image): apply the gate's OpenRewrite normalization to the new t…
cuioss-oliver 63ac3b0
chore(simplify): collapse accidental complexity in the image-metadata…
cuioss-oliver 4e89a06
style(image): apply the gate's OpenRewrite normalization to the wirin…
cuioss-oliver f312bf4
fix(image): address PR review and make the JFR lane able to run at all
cuioss-oliver File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,26 @@ | ||
| #!/usr/bin/env bash | ||
| # Prepare the host directory that docker-compose.jfr.yml bind-mounts at /tmp/jfr-output. | ||
| # | ||
| # The JFR image runs as uid 1001, and the Dockerfile's own `chmod 777 /tmp/jfr-output` does NOT | ||
| # survive the mount — a bind mount shadows the image's directory with the host's, ownership | ||
| # included. Whichever `docker compose` command touches the service first creates the missing host | ||
| # directory as root:root 0755, after which uid 1001 cannot write and the gateway dies at startup | ||
| # with "Could not start recording, not able to write to file /tmp/jfr-output/api-sheriff-profile.jfr". | ||
| # That is a startup failure, not a degraded profile: the JFR lane never comes up at all. | ||
| # | ||
| # So this must run before ANY compose command that resolves the jfr overlay. There are two such | ||
| # entry points and each is genuinely the first toucher on its own path, which is why both call | ||
| # this one script rather than open-coding it: | ||
| # - the `jfr` Maven profile, whose `docker-build-jfr` execution composes the overlay to build; | ||
| # - start-integration-container.sh, for a lane that composes the overlay without that execution | ||
| # having run (the benchmark lane reuses an already-present api-sheriff:jfr image). | ||
| # | ||
| # Mode 1777, not 0777, for the same reason the /logs mount uses it: the sticky bit keeps the world | ||
| # write from also being a world DELETE of the recording this lane exists to produce. | ||
| set -euo pipefail | ||
|
|
||
| JFR_TARGET_DIR="${1:?usage: prepare-jfr-output-dir.sh <integration-tests-dir>}/target/jfr-recordings" | ||
|
|
||
| mkdir -p "${JFR_TARGET_DIR}" | ||
| chmod 1777 "${JFR_TARGET_DIR}" | ||
| echo "📁 JFR recordings will be written to: ${JFR_TARGET_DIR}/api-sheriff-profile.jfr" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.