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

Upgrade to WildFly 32.0.1.Final, wildfly-cekit-modules 7.0.1, CI, behave tests in a loop #46

Merged
merged 3 commits into from
Jun 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
39 changes: 34 additions & 5 deletions .github/workflows/test-wildfly-s2i.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,15 +98,44 @@ jobs:
sed -i "s|$legacyPlaceHolder|$legacyReplacement|" "$feature"
done
. ~/cekit/bin/activate
pushd custom-cloud-image/wildfly-builder-image
cekit test --image=wildfly/wildfly-s2i:dev-${{ env.CLOUD_FP_VERSION }} behave > cekit-tests-logs.txt 2>&1
pushd custom-cloud-image/
mkdir -p all-tests
mv wildfly-builder-image/tests/features/*.feature all-tests
for feature in all-tests/*.feature; do
cp $feature wildfly-builder-image/tests/features/
pushd wildfly-builder-image
fileName=$(basename ${feature})
echo "Testing feature file $fileName"
cekit test --image=wildfly/wildfly-s2i:dev-${{ env.CLOUD_FP_VERSION }} behave > test-logs-$fileName.txt 2>&1
rm test-logs-$fileName.txt
docker system prune -f
popd
rm wildfly-builder-image/tests/features/*.feature
done
popd
working-directory: wildfly-cloud
- uses: actions/upload-artifact@v2
- name: Advertise Failing Behave Scenarios
if: failure()
run: |
cd custom-cloud-image/wildfly-builder-image
logFile=$(find . -type f -iname "test-logs-*.txt")
if [ -f "${logFile}" ]; then
# Remove tar noise
grep -v "tar.go:" ${logFile} > tmpFile && mv tmpFile ${logFile}
# Display failing scenario
grep -A10000 "Failing scenarios" ${logFile}
else
echo "No failure in behave tests"
fi
working-directory: wildfly-cloud
- name: Upload Test Reports on Failure
uses: actions/upload-artifact@v3
if: failure()
with:
name: cekit-logs
path: '**/cekit-tests-logs.txt'
name: wildfly-s2i-test-logs
path: |
wildfly-cloud/custom-cloud-image/wildfly-builder-image/test-logs-*.txt
/tmp/*.wfs2i.log
- name: List containers
if: failure()
run: |
Expand Down
8 changes: 4 additions & 4 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,10 @@
<version.javax.inject>1</version.javax.inject>
<version.junit>4.13.2</version.junit>
<wildfly.cekit.modules.fork>wildfly</wildfly.cekit.modules.fork>
<wildfly.cekit.modules.tag>main</wildfly.cekit.modules.tag>
<version.org.wildfly>32.0.0.Final</version.org.wildfly>
<version.org.wildfly.core>24.0.0.Final</version.org.wildfly.core>
<version.org.wildfly.galleon-plugins>7.0.0.Final</version.org.wildfly.galleon-plugins>
<wildfly.cekit.modules.tag>wildfly-cloud-7.0.1.Final</wildfly.cekit.modules.tag>
<version.org.wildfly>32.0.1.Final</version.org.wildfly>
<version.org.wildfly.core>24.0.1.Final</version.org.wildfly.core>
<version.org.wildfly.galleon-plugins>7.1.0.Final</version.org.wildfly.galleon-plugins>
<version.org.wildfly.maven.plugin>5.0.0.Final</version.org.wildfly.maven.plugin>
</properties>

Expand Down
Loading