Diagnostics #1498
This file contains 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
# Copyright 2022, 2024, Oracle Corporation and/or its affiliates. | |
# Licensed under the Universal Permissive License v 1.0 as shown at | |
# https://oss.oracle.com/licenses/upl. | |
name: CI Build | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: "0 5 * * *" | |
push: | |
branches: | |
- '*' | |
pull_request: | |
branches: [ main ] | |
jobs: | |
ci: | |
strategy: | |
fail-fast: false | |
matrix: | |
python-version: ["3.9.x", "3.10.x", "3.11.x", "3.12.x", "3.13.x"] | |
poetry-version: ["1.8.4"] | |
os: [ubuntu-latest] | |
coherenceVersion: | |
- 24.09 | |
- 22.06.10 | |
base-image: | |
- gcr.io/distroless/java17-debian11 | |
profile: | |
- ",-jakarta,javax" | |
- ",jakarta,-javax" | |
exclude: | |
- coherenceVersion: 24.09 | |
profile: ",-jakarta,javax" | |
- coherenceVersion: 22.06.10 | |
profile: ",jakarta,-javax" | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Get Docker Images | |
shell: bash | |
run: | | |
docker pull ${{ matrix.base-image }} | |
uname -a | |
- name: Set up JDK | |
uses: actions/setup-java@v4 | |
with: | |
java-version: '17' | |
distribution: 'zulu' | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Cache Maven packages | |
uses: actions/cache@v4 | |
with: | |
path: ~/.m2 | |
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }} | |
restore-keys: ${{ runner.os }}-m2 | |
- name: Install Poetry | |
shell: bash | |
run: | | |
pip install poetry==${{ matrix.poetry-version }} | |
- name: Install Dependencies | |
run: python -m poetry install | |
- name: Configure Validation | |
run: python -m poetry run make validate-setup | |
- name: Validate Sources | |
run: python -m poetry run make validate | |
- name: Run test | |
shell: bash | |
run: | | |
export GRPC_TRACE=all | |
export GRPC_VERBOSITY=DEBUG | |
export PYTHONASYNCIODEBUG=1 | |
sudo tcpdump --immediate-mode -w /tmp/coh.pcap -v -i lo port '(1408 or 30000)' & | |
TCPDUMP_PID=$! | |
python -m poetry run ./tests/scripts/run-tests.sh \ | |
${{ matrix.coherenceVersion }} \ | |
${{ matrix.base-image }} \ | |
${{ matrix.profile }} | |
kill $TCPDUMP_PID | |
- name: Archive server logs | |
if: always() | |
uses: actions/upload-artifact@v4 | |
with: | |
name: server-logs-${{matrix.python-version}}-${{ matrix.coherenceVersion }} | |
path: | | |
./tests/utils/*.txt | |
/tmp/coh.pcap | |
retention-days: 10 |