-
Notifications
You must be signed in to change notification settings - Fork 61
sync ubi10 branch with ubi9 changes #605
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
Merged
Changes from 33 commits
Commits
Show all changes
34 commits
Select commit
Hold shift + click to select a range
0ba78bf
Bump cekit/actions-setup-cekit to v1.1.7
jmtd db72341
Merge pull request #567 from jmtd/gendocs-bump-cekit-action
jmtd e93fe56
Bump container version for next release
jmtd 0f73dfe
Merge pull request #573 from jmtd/b1.22
jmtd 4ef9f02
[OPENJDK-3696] Remove JDK11 modules/descriptors
jmtd d72c2cd
Merge pull request #576 from jmtd/OPENJDK-3696-rm-jdk11
jmtd 18ee5a6
[OPENJDK-3655] test for files with u+x and not o+x
jmtd 20a5342
[OPENJDK-3655] change script permissions to permit o+x
jmtd a8f82bf
Merge pull request #583 from jmtd/OPENJDK-3655-scriptperms-alt
jmtd 8492d7c
[OPENJDK-3142] Maven 3.9.9
jmtd fae7b37
Bump versions for next release
jmtd 73e8c60
Merge pull request #588 from jmtd/ubi9-v1.23
jmtd 64575a6
Merge pull request #557 from jmtd/3142-maven-3.9.9
jmtd 6bb2140
[OPENJDK-3935] Fix script permissions for artifacts
jmtd c7f38c1
[OPENJDK-3935] tests for specific script permissions
jmtd 6cc4abb
Merge pull request #592 from jmtd/OPENJDK-3935-artifact-permissions
jmtd ad2f2d6
[OPENJDK-4003] label images with opencontainers 'source' label
jmtd 2011eaa
Revert "[OPENJDK-3655] change script permissions to permit o+x"
jmtd 36cbe4a
[OPENJDK-3655] alternative fix for script permissions
jmtd 50cd494
Merge pull request #595 from jmtd/OPENJDK-4008-revert-artifacts
jmtd 10cd5e0
[OPENJDK-3975] tests for custom configuration and data
jmtd e2f1d59
[OPENJDK-3975] refactor rsync calls into common function
jmtd b27c895
Add org.opencontainers.image.revision
jmtd 9151fdf
Merge pull request #476 from jmtd/opencontainers-source
jmtd c664d52
Merge pull request #593 from jmtd/OPENJDK-3975-rsync-data-configuration
jmtd 9bfedfe
[OPENJDK-4024] adjust permissions on jboss-settings.xml
jmtd 88fe6a2
Add an action to label/unlabel PRs with JIRA URIs
jmtd 8c47580
Merge pull request #601 from jmtd/OPENJDK-4024-permsonly
jmtd 9303fe3
Merge pull request #599 from rh-openjdk/gha-label-issues-no-jira
jmtd 2b0f7c4
Merge remote-tracking branch 'origin/ubi9' into ubi10
jmtd e8f75ea
update "org.opencontainers.image.revision" label
jmtd 76fb69e
Adjust install line to reflect only one file
jmtd 3bddd69
re-do of OPENJDK-3661/PR 555
jmtd d590976
Adjust test-tagging for ubi10
jmtd 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,7 +29,7 @@ jobs: | |
fetch-depth: 0 # all branches and tags | ||
|
||
- name: Install CEKit | ||
uses: cekit/[email protected].5 | ||
uses: cekit/[email protected].7 | ||
|
||
- name: Setup required packages for docs | ||
run: | | ||
|
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,46 @@ | ||
name: Ensure GH PRs have a corresponding JIRA issue | ||
|
||
on: | ||
pull_request: | ||
types: [opened, edited] | ||
|
||
permissions: | ||
contents: read | ||
pull-requests: write | ||
|
||
env: | ||
GH_REPO: ${{ github.repository }} | ||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
NUM: ${{ github.event.pull_request.number }} | ||
|
||
jobs: | ||
check-jira-uri: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check for required URI pattern | ||
id: check_uri | ||
env: | ||
PR_BODY: ${{ github.event.pull_request.body }} | ||
URIPAT: "https://issues.redhat.com/browse/OPENJDK-" | ||
run: | | ||
if echo "$PR_BODY" | grep -q "$URIPAT"; then | ||
echo "missing=false" >> $GITHUB_OUTPUT | ||
else | ||
echo "missing=true" >> $GITHUB_OUTPUT | ||
fi | ||
|
||
- name: Apply label if URI missing | ||
if: steps.check_uri.outputs.missing == 'true' | ||
run: | | ||
gh pr edit "$NUM" --add-label "needs-jira-issue" | ||
exit 1 # fail workflow; must be resolved to green-light PR | ||
|
||
- name: Remove label if URI present | ||
if: steps.check_uri.outputs.missing == 'false' | ||
run: gh pr edit "$NUM" --remove-label "needs-jira-issue" | ||
|
||
label-branch: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Add branch label if missing | ||
run: gh pr edit "$NUM" --add-label "$GITHUB_BASE_REF" |
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 |
---|---|---|
@@ -1,16 +1,7 @@ | ||
#!/bin/sh | ||
# Configure module | ||
set -e | ||
#!/bin/bash | ||
set -euo pipefail | ||
|
||
SCRIPT_DIR=$(dirname $0) | ||
echo $SCRIPT_DIR | ||
ARTIFACTS_DIR=${SCRIPT_DIR}/artifacts | ||
echo $ARTIFACTS_DIR | ||
|
||
chown -R $USER:root $SCRIPT_DIR | ||
chmod -R ug+rwX $SCRIPT_DIR | ||
chmod ug+x ${ARTIFACTS_DIR}/opt/jboss/container/openjdk/jre/* | ||
|
||
pushd ${ARTIFACTS_DIR} | ||
cp -pr * / | ||
popd | ||
install -m 0644 -D {${ARTIFACTS_DIR},}/opt/jboss/container/openjdk/jre/jvm-options |
Empty file modified
0
modules/jvm/artifacts/opt/jboss/container/java/jvm/debug-options
100644 → 100755
Empty file.
Empty file modified
0
modules/jvm/artifacts/opt/jboss/container/java/jvm/java-default-options
100644 → 100755
Empty file.
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 |
---|---|---|
@@ -1,14 +1,8 @@ | ||
#!/bin/sh | ||
# Configure module | ||
set -e | ||
#!/bin/bash | ||
set -euo pipefail | ||
|
||
SCRIPT_DIR=$(dirname $0) | ||
ARTIFACTS_DIR=${SCRIPT_DIR}/artifacts | ||
|
||
chown -R $USER:root $SCRIPT_DIR | ||
chmod -R ug+rwX $SCRIPT_DIR | ||
chmod ug+x ${ARTIFACTS_DIR}/opt/jboss/container/java/jvm/* | ||
|
||
pushd ${ARTIFACTS_DIR} | ||
cp -pr * / | ||
popd | ||
install -D -t /opt/jboss/container/java/jvm \ | ||
${ARTIFACTS_DIR}/opt/jboss/container/java/jvm/* |
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,9 @@ | ||
Feature: test file properties for JVM module | ||
|
||
@ubi9 | ||
Scenario: Ensure image scripts are executable (OPENJDK-3935) | ||
When container is started with args | ||
| arg | value | | ||
| command | find /opt/jboss/container/java/ -type f -printf "%h/%f %M\n" | | ||
Then available container log should contain /opt/jboss/container/java/jvm/debug-options -rwxr-xr-x | ||
And available container log should contain /opt/jboss/container/java/jvm/java-default-options -rwxr-xr-x |
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
[maven] | ||
name=maven | ||
stream=3.8 | ||
stream=3.9 | ||
profiles= | ||
state=enabled |
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 |
---|---|---|
@@ -1,15 +1,9 @@ | ||
#!/bin/sh | ||
# Configure module | ||
set -e | ||
#!/bin/bash | ||
set -euo pipefail | ||
|
||
SCRIPT_DIR=$(dirname $0) | ||
ARTIFACTS_DIR=${SCRIPT_DIR}/artifacts | ||
|
||
chown -R $USER:root $SCRIPT_DIR | ||
chmod -R ug+rwX $SCRIPT_DIR | ||
chmod ug+x ${ARTIFACTS_DIR}/opt/jboss/container/maven/s2i/* | ||
chmod ug+x ${ARTIFACTS_DIR}/usr/libexec/s2i/* | ||
|
||
pushd ${ARTIFACTS_DIR} | ||
cp -pr * / | ||
popd | ||
install -D {${ARTIFACTS_DIR},}/usr/libexec/s2i/save-artifacts | ||
install -m 0644 -D -t /opt/jboss/container/maven/s2i \ | ||
${ARTIFACTS_DIR}/opt/jboss/container/maven/s2i/* |
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,10 @@ | ||
Feature: test file properties for Maven S2I module | ||
|
||
# builder-only test | ||
@ubi9/openjdk-17 | ||
@ubi9/openjdk-21 | ||
Scenario: Ensure save-artifacts script is executable (OPENJDK-3935) | ||
When container is started with args | ||
| arg | value | | ||
| command | find /usr/local/s2i -type f -printf "%f %M\n" | | ||
Then available container log should contain save-artifacts -rwxr-xr-x |
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 |
---|---|---|
@@ -1,14 +1,8 @@ | ||
#!/bin/sh | ||
# Configure module | ||
set -e | ||
#!/bin/bash | ||
set -euo pipefail | ||
|
||
SCRIPT_DIR=$(dirname $0) | ||
ARTIFACTS_DIR=${SCRIPT_DIR}/artifacts | ||
|
||
chown -R $USER:root $SCRIPT_DIR | ||
chmod -R ug+rwX $SCRIPT_DIR | ||
chmod ug+x ${ARTIFACTS_DIR}/opt/jboss/container/java/proxy* | ||
|
||
pushd ${ARTIFACTS_DIR} | ||
cp -pr * / | ||
popd | ||
install -m 0644 -D -t /opt/jboss/container/java/proxy \ | ||
${ARTIFACTS_DIR}/opt/jboss/container/java/proxy/* |
Empty file modified
0
modules/run/artifacts/opt/jboss/container/java/run/run-java.sh
100644 → 100755
Empty file.
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 |
---|---|---|
@@ -1,15 +1,9 @@ | ||
#!/bin/sh | ||
# Configure module | ||
set -e | ||
#!/bin/bash | ||
set -euo pipefail | ||
|
||
SCRIPT_DIR=$(dirname $0) | ||
ARTIFACTS_DIR=${SCRIPT_DIR}/artifacts | ||
|
||
chown -R $USER:root $SCRIPT_DIR | ||
chmod -R ug+rwX $SCRIPT_DIR | ||
chmod ug+x ${ARTIFACTS_DIR}/opt/jboss/container/java/s2i/* | ||
chmod ug+x ${ARTIFACTS_DIR}/usr/libexec/s2i/* | ||
|
||
pushd ${ARTIFACTS_DIR} | ||
cp -pr * / | ||
popd | ||
install -D ${ARTIFACTS_DIR}/usr/libexec/s2i/* /usr/libexec/s2i | ||
install -m 0644 -D -t /opt/jboss/container/java/s2i \ | ||
${ARTIFACTS_DIR}/opt/jboss/container/java/s2i/* |
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,12 @@ | ||
# builder-only test | ||
@ubi9/openjdk-17 | ||
@ubi9/openjdk-21 | ||
Feature: OpenJDK S2I bash module tests | ||
|
||
Scenario: Ensure image scripts are executable (OPENJDK-3935) | ||
When container is started with args | ||
| arg | value | | ||
| command | find /usr/local/s2i/ -type f -printf "%h/%f %M\n" | | ||
Then available container log should contain run -rwxr-xr-x | ||
And available container log should contain assemble -rwxr-xr-x | ||
And available container log should contain usage -rwxr-xr-x |
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
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do those tags need an update? for
@ubi10
?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes they do, thanks for catching!