Skip to content

Commit

Permalink
TO BE REMOVED< SPEEDUP CI to just run the failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
jfdenise committed Nov 21, 2024
1 parent 6d0abde commit 133f5f4
Show file tree
Hide file tree
Showing 2 changed files with 114 additions and 114 deletions.
226 changes: 113 additions & 113 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -120,126 +120,126 @@ jobs:
docker image ls
docker inspect ${{ env.WILDFLY_S2I_BUILDER_IMAGE }}:${{ env.WILDFLY_IMAGE_VERSION }}
docker run --rm ${{ env.WILDFLY_S2I_BUILDER_IMAGE }}:${{ env.WILDFLY_IMAGE_VERSION }} bash
- name: Behave Tests basic
run: |
. ~/cekit/bin/activate
pushd wildfly-builder-image
cekit test --image=${{ env.WILDFLY_S2I_BUILDER_IMAGE }}:${{ env.WILDFLY_IMAGE_VERSION }} behave --include-re basic > test-logs-basic-${{ matrix.os }}-${{ matrix.jdk }}.txt 2>&1
rm test-logs-basic-${{ matrix.os }}-${{ matrix.jdk }}.txt
popd
docker system prune -f
- name: Behave Tests datasources
run: |
. ~/cekit/bin/activate
pushd wildfly-builder-image
cekit test --image=${{ env.WILDFLY_S2I_BUILDER_IMAGE }}:${{ env.WILDFLY_IMAGE_VERSION }} behave --include-re datasources > test-logs-datasources-${{ matrix.os }}-${{ matrix.jdk }}.txt 2>&1
rm test-logs-datasources-${{ matrix.os }}-${{ matrix.jdk }}.txt
popd
docker system prune -f
- name: Behave Tests extensions
run: |
. ~/cekit/bin/activate
pushd wildfly-builder-image
cekit test --image=${{ env.WILDFLY_S2I_BUILDER_IMAGE }}:${{ env.WILDFLY_IMAGE_VERSION }} behave --include-re extensions > test-logs-extensions-${{ matrix.os }}-${{ matrix.jdk }}.txt 2>&1
rm test-logs-extensions-${{ matrix.os }}-${{ matrix.jdk }}.txt
popd
docker system prune -f
- name: Behave Tests jgroups
run: |
. ~/cekit/bin/activate
pushd wildfly-builder-image
cekit test --image=${{ env.WILDFLY_S2I_BUILDER_IMAGE }}:${{ env.WILDFLY_IMAGE_VERSION }} behave --include-re jgroups > test-logs-jgroups-${{ matrix.os }}-${{ matrix.jdk }}.txt 2>&1
rm test-logs-jgroups-${{ matrix.os }}-${{ matrix.jdk }}.txt
popd
docker system prune -f
- name: Behave Tests keycloak
run: |
. ~/cekit/bin/activate
pushd wildfly-builder-image
cekit test --image=${{ env.WILDFLY_S2I_BUILDER_IMAGE }}:${{ env.WILDFLY_IMAGE_VERSION }} behave --include-re keycloak > test-logs-keycloak-${{ matrix.os }}-${{ matrix.jdk }}.txt 2>&1
rm test-logs-keycloak-${{ matrix.os }}-${{ matrix.jdk }}.txt
popd
docker system prune -f
- name: Behave Tests legacy-elytron
run: |
. ~/cekit/bin/activate
pushd wildfly-builder-image
cekit test --image=${{ env.WILDFLY_S2I_BUILDER_IMAGE }}:${{ env.WILDFLY_IMAGE_VERSION }} behave --include-re legacy-elytron > test-logs-legacy-elytron-${{ matrix.os }}-${{ matrix.jdk }}.txt 2>&1
rm test-logs-legacy-elytron-${{ matrix.os }}-${{ matrix.jdk }}.txt
popd
docker system prune -f
# - name: Behave Tests basic
# run: |
# . ~/cekit/bin/activate
# pushd wildfly-builder-image
# cekit test --image=${{ env.WILDFLY_S2I_BUILDER_IMAGE }}:${{ env.WILDFLY_IMAGE_VERSION }} behave --include-re basic > test-logs-basic-${{ matrix.os }}-${{ matrix.jdk }}.txt 2>&1
# rm test-logs-basic-${{ matrix.os }}-${{ matrix.jdk }}.txt
# popd
# docker system prune -f
# - name: Behave Tests datasources
# run: |
# . ~/cekit/bin/activate
# pushd wildfly-builder-image
# cekit test --image=${{ env.WILDFLY_S2I_BUILDER_IMAGE }}:${{ env.WILDFLY_IMAGE_VERSION }} behave --include-re datasources > test-logs-datasources-${{ matrix.os }}-${{ matrix.jdk }}.txt 2>&1
# rm test-logs-datasources-${{ matrix.os }}-${{ matrix.jdk }}.txt
# popd
# docker system prune -f
# - name: Behave Tests extensions
# run: |
# . ~/cekit/bin/activate
# pushd wildfly-builder-image
# cekit test --image=${{ env.WILDFLY_S2I_BUILDER_IMAGE }}:${{ env.WILDFLY_IMAGE_VERSION }} behave --include-re extensions > test-logs-extensions-${{ matrix.os }}-${{ matrix.jdk }}.txt 2>&1
# rm test-logs-extensions-${{ matrix.os }}-${{ matrix.jdk }}.txt
# popd
# docker system prune -f
# - name: Behave Tests jgroups
# run: |
# . ~/cekit/bin/activate
# pushd wildfly-builder-image
# cekit test --image=${{ env.WILDFLY_S2I_BUILDER_IMAGE }}:${{ env.WILDFLY_IMAGE_VERSION }} behave --include-re jgroups > test-logs-jgroups-${{ matrix.os }}-${{ matrix.jdk }}.txt 2>&1
# rm test-logs-jgroups-${{ matrix.os }}-${{ matrix.jdk }}.txt
# popd
# docker system prune -f
# - name: Behave Tests keycloak
# run: |
# . ~/cekit/bin/activate
# pushd wildfly-builder-image
# cekit test --image=${{ env.WILDFLY_S2I_BUILDER_IMAGE }}:${{ env.WILDFLY_IMAGE_VERSION }} behave --include-re keycloak > test-logs-keycloak-${{ matrix.os }}-${{ matrix.jdk }}.txt 2>&1
# rm test-logs-keycloak-${{ matrix.os }}-${{ matrix.jdk }}.txt
# popd
# docker system prune -f
# - name: Behave Tests legacy-elytron
# run: |
# . ~/cekit/bin/activate
# pushd wildfly-builder-image
# cekit test --image=${{ env.WILDFLY_S2I_BUILDER_IMAGE }}:${{ env.WILDFLY_IMAGE_VERSION }} behave --include-re legacy-elytron > test-logs-legacy-elytron-${{ matrix.os }}-${{ matrix.jdk }}.txt 2>&1
# rm test-logs-legacy-elytron-${{ matrix.os }}-${{ matrix.jdk }}.txt
# popd
# docker system prune -f
- name: Behave Tests legacy-s2i
run: |
. ~/cekit/bin/activate
pushd wildfly-builder-image
cekit test --image=${{ env.WILDFLY_S2I_BUILDER_IMAGE }}:${{ env.WILDFLY_IMAGE_VERSION }} behave --include-re legacy-s2i > test-logs-legacy-s2i-${{ matrix.os }}-${{ matrix.jdk }}.txt 2>&1
cekit test --image=${{ env.WILDFLY_S2I_BUILDER_IMAGE }}:${{ env.WILDFLY_IMAGE_VERSION }} behave --wip --include-re legacy-s2i > test-logs-legacy-s2i-${{ matrix.os }}-${{ matrix.jdk }}.txt 2>&1
rm test-logs-legacy-s2i-${{ matrix.os }}-${{ matrix.jdk }}.txt
popd
docker system prune -f
- name: Behave Tests messaging
run: |
. ~/cekit/bin/activate
pushd wildfly-builder-image
cekit test --image=${{ env.WILDFLY_S2I_BUILDER_IMAGE }}:${{ env.WILDFLY_IMAGE_VERSION }} behave --include-re messaging > test-logs-messaging-${{ matrix.os }}-${{ matrix.jdk }}.txt 2>&1
rm test-logs-messaging-${{ matrix.os }}-${{ matrix.jdk }}.txt
popd
docker system prune -f
- name: Behave Tests for jdk17+
if: matrix.jdk != 'jdk11'
run: |
. ~/cekit/bin/activate
pushd wildfly-builder-image
cekit test --image=${{ env.WILDFLY_S2I_BUILDER_IMAGE }}:${{ env.WILDFLY_IMAGE_VERSION }} behave --include-re no-jdk11 > test-logs-no-jdk11-${{ matrix.os }}-${{ matrix.jdk }}.txt 2>&1
rm test-logs-no-jdk11-${{ matrix.os }}-${{ matrix.jdk }}.txt
popd
docker system prune -f
- name: Behave Tests oidc
run: |
. ~/cekit/bin/activate
pushd wildfly-builder-image
cekit test --image=${{ env.WILDFLY_S2I_BUILDER_IMAGE }}:${{ env.WILDFLY_IMAGE_VERSION }} behave --include-re oidc > test-logs-oidc-${{ matrix.os }}-${{ matrix.jdk }}.txt 2>&1
rm test-logs-oidc-${{ matrix.os }}-${{ matrix.jdk }}.txt
popd
docker system prune -f
- name: Behave Tests s2i
run: |
. ~/cekit/bin/activate
pushd wildfly-builder-image
cekit test --image=${{ env.WILDFLY_S2I_BUILDER_IMAGE }}:${{ env.WILDFLY_IMAGE_VERSION }} behave --include-re s2i-tests > test-logs-s2i-tests-${{ matrix.os }}-${{ matrix.jdk }}.txt 2>&1
rm test-logs-s2i-tests-${{ matrix.os }}-${{ matrix.jdk }}.txt
popd
docker system prune -f
- name: Behave Tests server_builder
run: |
. ~/cekit/bin/activate
pushd wildfly-builder-image
cekit test --image=${{ env.WILDFLY_S2I_BUILDER_IMAGE }}:${{ env.WILDFLY_IMAGE_VERSION }} behave --include-re server_builder > test-logs-server_builder-${{ matrix.os }}-${{ matrix.jdk }}.txt 2>&1
rm test-logs-server_builder-${{ matrix.os }}-${{ matrix.jdk }}.txt
popd
docker system prune -f
- name: Behave Tests stability
run: |
. ~/cekit/bin/activate
pushd wildfly-builder-image
cekit test --image=${{ env.WILDFLY_S2I_BUILDER_IMAGE }}:${{ env.WILDFLY_IMAGE_VERSION }} behave --include-re stability > test-logs-stability-${{ matrix.os }}-${{ matrix.jdk }}.txt 2>&1
rm test-logs-stability-${{ matrix.os }}-${{ matrix.jdk }}.txt
popd
docker system prune -f
- name: Behave Tests vanilla-basic
run: |
. ~/cekit/bin/activate
pushd wildfly-builder-image
cekit test --image=${{ env.WILDFLY_S2I_BUILDER_IMAGE }}:${{ env.WILDFLY_IMAGE_VERSION }} behave --include-re vanilla-basic > test-logs-vanilla-basic-${{ matrix.os }}-${{ matrix.jdk }}.txt 2>&1
rm test-logs-vanilla-basic-${{ matrix.os }}-${{ matrix.jdk }}.txt
popd
docker system prune -f
- name: Additional Tests
run: |
export IMAGE_VERSION=${{ env.WILDFLY_IMAGE_VERSION }}
export IMAGE_NAME=${{ env.WILDFLY_S2I_BUILDER_IMAGE }}
export RUNTIME_IMAGE_NAME=${{ env.WILDFLY_S2I_RUNTIME_IMAGE }}
. ~/cekit/bin/activate
./test/run
# - name: Behave Tests messaging
# run: |
# . ~/cekit/bin/activate
# pushd wildfly-builder-image
# cekit test --image=${{ env.WILDFLY_S2I_BUILDER_IMAGE }}:${{ env.WILDFLY_IMAGE_VERSION }} behave --include-re messaging > test-logs-messaging-${{ matrix.os }}-${{ matrix.jdk }}.txt 2>&1
# rm test-logs-messaging-${{ matrix.os }}-${{ matrix.jdk }}.txt
# popd
# docker system prune -f
# - name: Behave Tests for jdk17+
# if: matrix.jdk != 'jdk11'
# run: |
# . ~/cekit/bin/activate
# pushd wildfly-builder-image
# cekit test --image=${{ env.WILDFLY_S2I_BUILDER_IMAGE }}:${{ env.WILDFLY_IMAGE_VERSION }} behave --include-re no-jdk11 > test-logs-no-jdk11-${{ matrix.os }}-${{ matrix.jdk }}.txt 2>&1
# rm test-logs-no-jdk11-${{ matrix.os }}-${{ matrix.jdk }}.txt
# popd
# docker system prune -f
# - name: Behave Tests oidc
# run: |
# . ~/cekit/bin/activate
# pushd wildfly-builder-image
# cekit test --image=${{ env.WILDFLY_S2I_BUILDER_IMAGE }}:${{ env.WILDFLY_IMAGE_VERSION }} behave --include-re oidc > test-logs-oidc-${{ matrix.os }}-${{ matrix.jdk }}.txt 2>&1
# rm test-logs-oidc-${{ matrix.os }}-${{ matrix.jdk }}.txt
# popd
# docker system prune -f
# - name: Behave Tests s2i
# run: |
# . ~/cekit/bin/activate
# pushd wildfly-builder-image
# cekit test --image=${{ env.WILDFLY_S2I_BUILDER_IMAGE }}:${{ env.WILDFLY_IMAGE_VERSION }} behave --include-re s2i-tests > test-logs-s2i-tests-${{ matrix.os }}-${{ matrix.jdk }}.txt 2>&1
# rm test-logs-s2i-tests-${{ matrix.os }}-${{ matrix.jdk }}.txt
# popd
# docker system prune -f
# - name: Behave Tests server_builder
# run: |
# . ~/cekit/bin/activate
# pushd wildfly-builder-image
# cekit test --image=${{ env.WILDFLY_S2I_BUILDER_IMAGE }}:${{ env.WILDFLY_IMAGE_VERSION }} behave --include-re server_builder > test-logs-server_builder-${{ matrix.os }}-${{ matrix.jdk }}.txt 2>&1
# rm test-logs-server_builder-${{ matrix.os }}-${{ matrix.jdk }}.txt
# popd
# docker system prune -f
# - name: Behave Tests stability
# run: |
# . ~/cekit/bin/activate
# pushd wildfly-builder-image
# cekit test --image=${{ env.WILDFLY_S2I_BUILDER_IMAGE }}:${{ env.WILDFLY_IMAGE_VERSION }} behave --include-re stability > test-logs-stability-${{ matrix.os }}-${{ matrix.jdk }}.txt 2>&1
# rm test-logs-stability-${{ matrix.os }}-${{ matrix.jdk }}.txt
# popd
# docker system prune -f
# - name: Behave Tests vanilla-basic
# run: |
# . ~/cekit/bin/activate
# pushd wildfly-builder-image
# cekit test --image=${{ env.WILDFLY_S2I_BUILDER_IMAGE }}:${{ env.WILDFLY_IMAGE_VERSION }} behave --include-re vanilla-basic > test-logs-vanilla-basic-${{ matrix.os }}-${{ matrix.jdk }}.txt 2>&1
# rm test-logs-vanilla-basic-${{ matrix.os }}-${{ matrix.jdk }}.txt
# popd
# docker system prune -f
# - name: Additional Tests
# run: |
# export IMAGE_VERSION=${{ env.WILDFLY_IMAGE_VERSION }}
# export IMAGE_NAME=${{ env.WILDFLY_S2I_BUILDER_IMAGE }}
# export RUNTIME_IMAGE_NAME=${{ env.WILDFLY_S2I_RUNTIME_IMAGE }}
# . ~/cekit/bin/activate
# ./test/run
- name: Advertise Failing Behave Scenarios
if: failure()
run: |
Expand Down
2 changes: 1 addition & 1 deletion wildfly-builder-image/tests/features/legacy-s2i.feature
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ Scenario: Test external driver created during s2i.
Then container log should contain WFLYSRV0010: Deployed "App1.war"
Then container log should contain WFLYSRV0010: Deployed "App2.war"
Then container log should contain WFLYSRV0025

@wip
Scenario: Test WildFly Maven Plugin version automatic update
Given s2i build https://github.com/wildfly/wildfly-s2i from test/test-app-binary with env and True using legacy-s2i-images
| variable | value |
Expand Down

0 comments on commit 133f5f4

Please sign in to comment.