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

Port to glow test pr #843

Closed
wants to merge 22 commits into from
Closed
Changes from 2 commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
6c03343
Port enhanced quickstarts to Glow
kabir Oct 24, 2023
3fd1164
Disable the 'BUILD WITH DEPS' jobs since Glow doesn't know about serv…
kabir Jan 4, 2024
d419cd9
Port ejb-txn-remote-call to use Glow
jfdenise Jan 5, 2024
e551e36
Fix test server URL
jfdenise Jan 5, 2024
36be222
Upgrade to WildFly Maven Plugin 5.0.0.Beta2, wildfly:start-jar in ci,…
jfdenise Jan 9, 2024
281ba2f
Align ejb-txn-remote-call default server host with the others
kabir Jan 9, 2024
5433774
Add database env vars
kabir Jan 9, 2024
77804f8
Fix quickstart_ejb-txn-remote-call_ci.yml
jfdenise Jan 9, 2024
66ddadb
Temp commit to trigger CI
kabir Jan 9, 2024
7b425ab
Add group to both servers
kabir Jan 9, 2024
82895b6
WildFly SNAPSHOT for ejb-txn-remote-call CI
jfdenise Jan 11, 2024
48fe17f
Fix URL for SNAPSHOT execution of ejb-txn-remote-call
jfdenise Jan 11, 2024
247a5c2
Merge pull request #10 from jfdenise/port-to-glow-test-pr
kabir Jan 11, 2024
8c14605
Fix typo
jfdenise Jan 11, 2024
bc16eaf
Merge pull request #11 from jfdenise/port-to-glow-test-pr
kabir Jan 11, 2024
92de937
Fix again url
jfdenise Jan 11, 2024
eaa3493
Redo cleanup that got lost at some point
jfdenise Jan 11, 2024
f5c06cf
Merge pull request #12 from jfdenise/port-to-glow-test-pr-jf
kabir Jan 11, 2024
90d2f5e
Resurect WildFLy SNAPSHOT build
jfdenise Jan 11, 2024
d60bcd0
Merge pull request #13 from jfdenise/port-to-glow-test-pr-jf
kabir Jan 11, 2024
212326f
Fix openshift profile
jfdenise Jan 11, 2024
52b765d
Merge pull request #14 from jfdenise/port-to-glow-test-pr-jf
kabir Jan 12, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
86 changes: 43 additions & 43 deletions .github/workflows/project_ci.yml
Original file line number Diff line number Diff line change
@@ -41,46 +41,46 @@ jobs:

# Use the shared-wildfly-build workflow to have a consistent WildFly build. Note the branch names MUST match what
# is used in WildFly.
# WildFly-build:
# uses: wildfly/wildfly/.github/workflows/shared-wildfly-build.yml@main
# with:
# wildfly-branch: ${{ github.base_ref }}
# wildfly-repo: "wildfly/wildfly"
#
# Test-build-with-deps-matrix:
# name: BUILD WITH DEPS - JDK${{ matrix.jdk }} - ${{ matrix.os }}
# runs-on: ${{ matrix.os }}
# needs: WildFly-build
# if:
# strategy:
# fail-fast: false
# matrix:
# jdk: [11, 17]
# os: [ubuntu-20.04, windows-latest]
# steps:
# - uses: actions/checkout@v4
# with:
# path: quickstarts
# - uses: actions/download-artifact@v4
# with:
# name: wildfly-maven-repository
# path: .
# - name: Extract Maven Repo
# shell: bash
# run: tar -xzf wildfly-maven-repository.tar.gz -C ~
# - name: Set up JDK ${{ matrix.jdk }}
# uses: actions/setup-java@v4
# with:
# java-version: ${{ matrix.jdk }}
# distribution: 'temurin'
# cache: 'maven'
# - name: Build Quickstarts Release with Server and BOMs Versions
# run: |
# cd quickstarts
# mvn -U -B -fae clean install -Drelease -Dversion.server.bom=${{ needs.wildfly-build.outputs.wildfly-version }} -Dversion.microprofile.bom=${{ needs.wildfly-build.outputs.wildfly-version }} -Dversion.server.bootable-jar=${{ needs.wildfly-build.outputs.wildfly-version }} -Dversion.server=${{ needs.wildfly-build.outputs.wildfly-version }}
# shell: bash
# - uses: actions/upload-artifact@v4
# if: failure()
# with:
# name: surefire-reports-JDK${{ matrix.jdk }}-${{ matrix.os }}
# path: 'quickstarts/**/surefire-reports/*.txt'
WildFly-build:
uses: wildfly/wildfly/.github/workflows/shared-wildfly-build.yml@main
with:
wildfly-branch: ${{ github.base_ref }}
wildfly-repo: "wildfly/wildfly"

Test-build-with-deps-matrix:
name: BUILD WITH DEPS - JDK${{ matrix.jdk }} - ${{ matrix.os }}
runs-on: ${{ matrix.os }}
needs: WildFly-build
if:
strategy:
fail-fast: false
matrix:
jdk: [11, 17]
os: [ubuntu-20.04, windows-latest]
steps:
- uses: actions/checkout@v4
with:
path: quickstarts
- uses: actions/download-artifact@v4
with:
name: wildfly-maven-repository
path: .
- name: Extract Maven Repo
shell: bash
run: tar -xzf wildfly-maven-repository.tar.gz -C ~
- name: Set up JDK ${{ matrix.jdk }}
uses: actions/setup-java@v4
with:
java-version: ${{ matrix.jdk }}
distribution: 'temurin'
cache: 'maven'
- name: Build Quickstarts Release with Server and BOMs Versions
run: |
cd quickstarts
mvn -U -B -fae clean install -Drelease -Dversion.server.bom=${{ needs.wildfly-build.outputs.wildfly-version }} -Dversion.microprofile.bom=${{ needs.wildfly-build.outputs.wildfly-version }} -Dversion.server=${{ needs.wildfly-build.outputs.wildfly-version }}
shell: bash
- uses: actions/upload-artifact@v4
if: failure()
with:
name: surefire-reports-JDK${{ matrix.jdk }}-${{ matrix.os }}
path: 'quickstarts/**/surefire-reports/*.txt'
213 changes: 108 additions & 105 deletions .github/workflows/quickstart_ci.yml
Original file line number Diff line number Diff line change
@@ -53,6 +53,9 @@ concurrency:
group: '${{ github.workflow }} @ ${{ github.ref || github.run_id }}'
cancel-in-progress: true

env:
WILDFLY_SNAPSHOT_EXTRA_PACKAGE_ARGUMENTS: '-Dwildfly-glow-galleon-feature-packs-url=https://raw.githubusercontent.com/wildfly/wildfly-galleon-feature-packs/main/'

jobs:
Matrix-Setup:
runs-on: ubuntu-latest
@@ -128,7 +131,7 @@ jobs:
echo "Building bootable jar..."
mvn -fae clean package -Pbootable-jar
echo "Starting bootable jar..."
mvn -f ${{ inputs.DEPLOYMENT_DIR }}/pom.xml wildfly:start-jar -Dbootable-jar-name=${{ inputs.QUICKSTART_PATH }}-bootable.jar -Dstartup-timeout=120 ${{ inputs.EXTRA_RUN_ARGS }}
mvn -f ${{ inputs.DEPLOYMENT_DIR }}/pom.xml wildfly:start-jar -Dstartup-timeout=120 ${{ inputs.EXTRA_RUN_ARGS }}
echo "Testing bootable jar..."
mvn -fae verify -Dserver.host=${{ inputs.SERVER_PROVISIONING_SERVER_HOST }} -Pintegration-testing
echo "Shutting down bootable jar..."
@@ -159,108 +162,108 @@ jobs:

# Use the shared-wildfly-build workflow to have a consistent WildFly build. Note the branch names MUST match what
# is used in WildFly.
# WildFly-build:
# uses: wildfly/wildfly/.github/workflows/shared-wildfly-build.yml@main
# with:
# wildfly-branch: ${{ github.base_ref }}
# wildfly-repo: "wildfly/wildfly"
#
# Test-build-with-deps-matrix:
# name: BUILD WITH DEPS - JDK${{ matrix.jdk }} - ${{ matrix.os }}
# runs-on: ${{ matrix.os }}
# needs: [Matrix-Setup, WildFly-build]
# strategy:
# fail-fast: false
# matrix:
# jdk: ${{ fromJSON(needs.Matrix-Setup.outputs.jdk) }}
# os: ${{ fromJSON(needs.Matrix-Setup.outputs.os) }}
# steps:
# - uses: actions/checkout@v4
# with:
# path: quickstarts
# - uses: actions/download-artifact@v4
# with:
# name: wildfly-maven-repository
# path: .
# - name: Extract Maven Repo
# shell: bash
# run: tar -xzf wildfly-maven-repository.tar.gz -C ~
# - name: Set up JDK ${{ matrix.jdk }}
# uses: actions/setup-java@v4
# with:
# java-version: ${{ matrix.jdk }}
# distribution: 'temurin'
# cache: 'maven'
# - name: Run before script
# env:
# FILE: "./quickstarts/.github/workflows/quickstart_${{ inputs.QUICKSTART_PATH }}_ci_before.sh"
# run: |
# if test -f $FILE;
# then
# chmod +x $FILE
# bash $FILE
# fi
# shell: bash
# - name: Build Quickstart for Release with built Server version
# run: |
# cd quickstarts
# cd ${{ inputs.QUICKSTART_PATH }}
# mvn -fae clean package -Drelease -Dversion.server=${{ needs.wildfly-build.outputs.wildfly-version }}
# shell: bash
# - name: Build, run & test ${{ inputs.QUICKSTART_PATH }} Quickstart with provisioned-server profile, and built Server version
# if: ${{ inputs.TEST_PROVISIONED_SERVER }}
# run: |
# cd quickstarts
# cd ${{ inputs.QUICKSTART_PATH }}
# echo "Building provisioned server..."
# mvn -fae clean package -Pprovisioned-server -Dversion.server=${{ needs.wildfly-build.outputs.wildfly-version }}
# if [ -f ${{ inputs.DEPLOYMENT_DIR }}/target/server/bin/add-user.sh ]; then
# echo "Add quickstartUser..."
# ${{ inputs.DEPLOYMENT_DIR }}/target/server/bin/add-user.sh -a -u 'quickstartUser' -p 'quickstartPwd1!' -g 'guest,user,JBossAdmin,Users'
# echo "Add quickstartAdmin..."
# ${{ inputs.DEPLOYMENT_DIR }}/target/server/bin/add-user.sh -a -u 'quickstartAdmin' -p 'adminPwd1!' -g 'guest,user,admin'
# fi
# echo "Starting provisioned server..."
# mvn -f ${{ inputs.DEPLOYMENT_DIR }}/pom.xml wildfly:start -DjbossHome=${{ inputs.DEPLOYMENT_DIR }}/target/server -Dstartup-timeout=120 ${{ inputs.EXTRA_RUN_ARGS }}
# echo "Testing provisioned server..."
# mvn -fae verify -Dserver.host=${{ inputs.SERVER_PROVISIONING_SERVER_HOST }} -Pintegration-testing
# echo "Shutting down provisioned server..."
# mvn -f ${{ inputs.DEPLOYMENT_DIR }}/pom.xml wildfly:shutdown
# shell: bash
# - name: Build, run & test ${{ inputs.QUICKSTART_PATH }} Quickstart with bootable-jar profile, and built Server version
# if: ${{ inputs.TEST_BOOTABLE_JAR }}
# run: |
# cd quickstarts
# cd ${{ inputs.QUICKSTART_PATH }}
# echo "Building bootable jar..."
# mvn -fae clean package -Pbootable-jar -Dversion.server=${{ needs.wildfly-build.outputs.wildfly-version }}
# echo "Starting bootable jar..."
# mvn -f ${{ inputs.DEPLOYMENT_DIR }}/pom.xml wildfly:start-jar -Dbootable-jar-name=${{ inputs.QUICKSTART_PATH }}-bootable.jar -Dstartup-timeout=120 ${{ inputs.EXTRA_RUN_ARGS }}
# echo "Testing bootable jar..."
# mvn -fae verify -Dserver.host=${{ inputs.SERVER_PROVISIONING_SERVER_HOST }} -Pintegration-testing
# echo "Shutting down bootable jar..."
# mvn -f ${{ inputs.DEPLOYMENT_DIR }}/pom.xml wildfly:shutdown
# shell: bash
# - name: Build ${{ inputs.QUICKSTART_PATH }} Quickstart with openshift profile, and built Server version
# if: ${{ inputs.TEST_OPENSHIFT }}
# run: |
# cd quickstarts
# cd ${{ inputs.QUICKSTART_PATH }}
# mvn -fae clean package -Popenshift -Dversion.server=${{ needs.wildfly-build.outputs.wildfly-version }}
# shell: bash
# - name: Run after script
# env:
# FILE: "./quickstarts/.github/workflows/quickstart_${{ inputs.QUICKSTART_PATH }}_ci_after.sh"
# run: |
# if test -f $FILE;
# then
# chmod +x $FILE
# bash $FILE
# fi
# shell: bash
# - uses: actions/upload-artifact@v4
# if: failure()
# with:
# name: surefire-reports-JDK${{ matrix.jdk }}-${{ matrix.os }}
# path: 'quickstarts/**/surefire-reports/*.txt'
WildFly-build:
uses: wildfly/wildfly/.github/workflows/shared-wildfly-build.yml@main
with:
wildfly-branch: ${{ github.base_ref }}
wildfly-repo: "wildfly/wildfly"

Test-build-with-deps-matrix:
name: BUILD WITH DEPS - JDK${{ matrix.jdk }} - ${{ matrix.os }}
runs-on: ${{ matrix.os }}
needs: [Matrix-Setup, WildFly-build]
strategy:
fail-fast: false
matrix:
jdk: ${{ fromJSON(needs.Matrix-Setup.outputs.jdk) }}
os: ${{ fromJSON(needs.Matrix-Setup.outputs.os) }}
steps:
- uses: actions/checkout@v4
with:
path: quickstarts
- uses: actions/download-artifact@v4
with:
name: wildfly-maven-repository
path: .
- name: Extract Maven Repo
shell: bash
run: tar -xzf wildfly-maven-repository.tar.gz -C ~
- name: Set up JDK ${{ matrix.jdk }}
uses: actions/setup-java@v4
with:
java-version: ${{ matrix.jdk }}
distribution: 'temurin'
cache: 'maven'
- name: Run before script
env:
FILE: "./quickstarts/.github/workflows/quickstart_${{ inputs.QUICKSTART_PATH }}_ci_before.sh"
run: |
if test -f $FILE;
then
chmod +x $FILE
bash $FILE
fi
shell: bash
- name: Build Quickstart for Release with built Server version
run: |
cd quickstarts
cd ${{ inputs.QUICKSTART_PATH }}
mvn -fae clean package -Drelease -Dversion.server=${{ needs.wildfly-build.outputs.wildfly-version }} ${{ env.WILDFLY_SNAPSHOT_EXTRA_PACKAGE_ARGUMENTS }}
shell: bash
- name: Build, run & test ${{ inputs.QUICKSTART_PATH }} Quickstart with provisioned-server profile, and built Server version
if: ${{ inputs.TEST_PROVISIONED_SERVER }}
run: |
cd quickstarts
cd ${{ inputs.QUICKSTART_PATH }}
echo "Building provisioned server..."
mvn -fae clean package -Pprovisioned-server -Dversion.server=${{ needs.wildfly-build.outputs.wildfly-version }} ${{ env.WILDFLY_SNAPSHOT_EXTRA_PACKAGE_ARGUMENTS }}
if [ -f ${{ inputs.DEPLOYMENT_DIR }}/target/server/bin/add-user.sh ]; then
echo "Add quickstartUser..."
${{ inputs.DEPLOYMENT_DIR }}/target/server/bin/add-user.sh -a -u 'quickstartUser' -p 'quickstartPwd1!' -g 'guest,user,JBossAdmin,Users'
echo "Add quickstartAdmin..."
${{ inputs.DEPLOYMENT_DIR }}/target/server/bin/add-user.sh -a -u 'quickstartAdmin' -p 'adminPwd1!' -g 'guest,user,admin'
fi
echo "Starting provisioned server..."
mvn -f ${{ inputs.DEPLOYMENT_DIR }}/pom.xml wildfly:start -DjbossHome=${{ inputs.DEPLOYMENT_DIR }}/target/server -Dstartup-timeout=120 ${{ inputs.EXTRA_RUN_ARGS }}
echo "Testing provisioned server..."
mvn -fae verify -Dserver.host=${{ inputs.SERVER_PROVISIONING_SERVER_HOST }} -Pintegration-testing
echo "Shutting down provisioned server..."
mvn -f ${{ inputs.DEPLOYMENT_DIR }}/pom.xml wildfly:shutdown
shell: bash
- name: Build, run & test ${{ inputs.QUICKSTART_PATH }} Quickstart with bootable-jar profile, and built Server version
if: ${{ inputs.TEST_BOOTABLE_JAR }}
run: |
cd quickstarts
cd ${{ inputs.QUICKSTART_PATH }}
echo "Building bootable jar..."
mvn -fae clean package -Pbootable-jar -Dversion.server=${{ needs.wildfly-build.outputs.wildfly-version }} ${{ env.WILDFLY_SNAPSHOT_EXTRA_PACKAGE_ARGUMENTS }}
echo "Starting bootable jar..."
mvn -f ${{ inputs.DEPLOYMENT_DIR }}/pom.xml wildfly:start-jar -Dstartup-timeout=120 ${{ inputs.EXTRA_RUN_ARGS }}
echo "Testing bootable jar..."
mvn -fae verify -Dserver.host=${{ inputs.SERVER_PROVISIONING_SERVER_HOST }} -Pintegration-testing
echo "Shutting down bootable jar..."
mvn -f ${{ inputs.DEPLOYMENT_DIR }}/pom.xml wildfly:shutdown
shell: bash
- name: Build ${{ inputs.QUICKSTART_PATH }} Quickstart with openshift profile, and built Server version
if: ${{ inputs.TEST_OPENSHIFT }}
run: |
cd quickstarts
cd ${{ inputs.QUICKSTART_PATH }}
mvn -fae clean package -Popenshift -Dversion.server=${{ needs.wildfly-build.outputs.wildfly-version }}
shell: bash
- name: Run after script
env:
FILE: "./quickstarts/.github/workflows/quickstart_${{ inputs.QUICKSTART_PATH }}_ci_after.sh"
run: |
if test -f $FILE;
then
chmod +x $FILE
bash $FILE
fi
shell: bash
- uses: actions/upload-artifact@v4
if: failure()
with:
name: surefire-reports-JDK${{ matrix.jdk }}-${{ matrix.os }}
path: 'quickstarts/**/surefire-reports/*.txt'

Loading