Skip to content

GEOS-11850 Pretty-print text/mapml responses based on GeoServer global verbose setting #2

GEOS-11850 Pretty-print text/mapml responses based on GeoServer global verbose setting

GEOS-11850 Pretty-print text/mapml responses based on GeoServer global verbose setting #2

Workflow file for this run

name: Run CITE Tests
on:
pull_request:
paths-ignore:
- '**/src/main/resources/GeoServerApplication_*.properties'
- '!**/src/main/resources/GeoServerApplication_fr.properties'
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
build-war:
runs-on: ubuntu-latest
name: Build GeoServer WAR
steps:
- name: Checkout repository (shallow clone)
uses: actions/checkout@v4
with:
fetch-depth: 1
- name: Setup Java
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '11'
- name: Set up Maven
uses: stCarolas/setup-maven@v5
with:
maven-version: 3.9.8
- name: Maven repository caching
uses: actions/cache@v4
with:
path: ~/.m2/repository
key: gs-${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
gs-${{ runner.os }}-maven-
- name: Build geoserver.war
working-directory: build/cite
run: make war
- name: Upload geoserver.war as artifact
uses: actions/upload-artifact@v4
with:
name: geoserver-war
path: build/cite/geoserver/geoserver.war
run-cite-tests:
needs: build-war
runs-on: ubuntu-latest
name: CITE
strategy:
fail-fast: false # Prevents other matrix jobs from being canceled if one fails
matrix:
suite: [ogcapi-features10, wms11, wms13, wmts10, wfs10, wfs11, wfs20, wcs11, geotiff11, gpkg12]
include: # Variation for wcs20, which requires Java 17 due to Teamengine 6
- suite: wcs20
java-version: 17
steps:
- name: Checkout repository (shallow clone)
uses: actions/checkout@v4
with:
fetch-depth: 1
- name: Setup Java
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: ${{ matrix.java-version || '11' }}
- name: Set up Maven
uses: stCarolas/setup-maven@v5
with:
maven-version: 3.9.8
- name: Download geoserver.war artifact
uses: actions/download-artifact@v4
with:
name: geoserver-war
path: build/cite/geoserver/
- name: Print services and images used for the ${{ matrix.suite }} test run
# in case there's a jq syntax error
continue-on-error: true
working-directory: build/cite
run: make print-services suite=${{ matrix.suite }}
- name: Pull teamengine and other required images
working-directory: build/cite
continue-on-error: true
run: make pull suite=${{ matrix.suite }}
- name: Build ogccite/geoserver:${{ matrix.suite }} docker image
working-directory: build/cite
run: make build-geoserver-image suite=${{ matrix.suite }}
- name: Build the ETS docker image
working-directory: build/cite
run: make build-ets-image suite=${{ matrix.suite }}
# optional, used to print out a human readable summary of test failures from the testng results xml
- name: Install the optional xmlstarlet utility
run: |
sudo apt-get update && sudo apt-get install -y xmlstarlet
- name: Run the ${{ matrix.suite }} CITE test suite
working-directory: build/cite
run: |
chmod o+w logs
# WFS 2.0 lock tests can randomly fail due to timing issues, retry them
if [ "${{ matrix.suite }}" = "wfs20" ]; then
MAX_RETRIES=5
COUNT=0
until make test suite=${{ matrix.suite }}; do
COUNT=$((COUNT+1))
if [ "$COUNT" -ge "$MAX_RETRIES" ]; then
echo "WFS 2.0 tests failed after $COUNT attempts."
exit 1
fi
echo "Retrying WFS 2.0... attempt $((COUNT+1)) of $MAX_RETRIES"
done
else
make test suite=${{ matrix.suite }}
fi
- name: Print full failures report
if: always()
working-directory: build/cite
run: make print-full-failures
- name: Print GeoServer full version
if: always()
working-directory: build/cite
run: make geoserver-version
- name: Print GeoServer logs
if: always()
working-directory: build/cite
run: make print-logs suite=${{ matrix.suite }} service=geoserver
- name: Print TeamEngine logs
if: always()
working-directory: build/cite
run: make print-logs suite=${{ matrix.suite }} service=teamengine
- name: Shutdown containers
if: always()
working-directory: build/cite
run: make stop
- name: Upload logs folder
if: always()
uses: actions/upload-artifact@v4
with:
name: cite-${{ matrix.suite }}-logs
path: build/cite/logs/