Skip to content
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

[OPENJDK-2824] assemble: binary: Don't set times on directories (UBI8) #484

Merged
merged 2 commits into from
Apr 15, 2024

Conversation

jmtd
Copy link
Member

@jmtd jmtd commented Apr 15, 2024

If the S2I build runs as a user other than 185 (such as s2i's default
of 1001), attempting to set the timestamp of /deployments will fail,
causing the build to fail.

https://issues.redhat.com/browse/OPENJDK-2824

See also
https://issues.redhat.com/browse/OPENJDK-2408

Backport of #470

jmtd added 2 commits April 15, 2024 16:21
Add a test which ensures s2i binary-build works with a destination
directory not owned by UID 185 (/var/tmp), which means the running
process does not have permission to change its timestamps,
simulating a random UID and the permissions on /deployments.

Signed-off-by: Jonathan Dowland <[email protected]>
If the S2I build runs as a user other than 185 (such as s2i's default
of 1001), attempting to set the timestamp of /deployments will fail,
causing the build to fail.

https://issues.redhat.com/browse/OPENJDK-2824

See also
https://issues.redhat.com/browse/OPENJDK-2408

Signed-off-by: Jonathan Dowland <[email protected]>
@jmtd
Copy link
Member Author

jmtd commented Apr 15, 2024

Running tests locally...

@jmtd
Copy link
Member Author

jmtd commented Apr 15, 2024

New test passes. Running the whole suite now

@jmtd
Copy link
Member Author

jmtd commented Apr 15, 2024

whole suite passes

@jmtd jmtd merged commit 1d7f91b into rh-openjdk:ubi8 Apr 15, 2024
0 of 8 checks passed
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.

2 participants