Skip recording DNS noise for private IP literals with no pending port #1164
This file contains hidden or 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
| name: 🕵️ End to end tests | |
| on: | |
| pull_request: | |
| permissions: | |
| contents: read | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out code | |
| uses: actions/checkout@v2 | |
| - name: Set up JDK | |
| uses: actions/setup-java@v2 | |
| with: | |
| java-version: '21' | |
| distribution: 'adopt' | |
| - name: Build with Gradle | |
| working-directory: ./ | |
| run: | | |
| chmod +x gradlew | |
| make binaries | |
| make build | |
| - name: Upload build artifacts | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: pkg-build | |
| path: ./ | |
| e2e_test: | |
| runs-on: ubuntu-latest | |
| needs: build | |
| continue-on-error: true | |
| strategy: | |
| matrix: | |
| app: | |
| - { name: SpringBootPostgres, test_file: end2end/spring_boot_postgres.py, db: postgres_database } | |
| - { name: SpringBootMySQL, test_file: end2end/spring_boot_mysql.py, db: mysql_database } | |
| - { name: SpringBootMSSQL, test_file: end2end/spring_boot_mssql.py, db: mssql_database } | |
| - { name: SpringWebfluxSampleApp, test_file: end2end/spring_webflux_postgres.py, db: postgres_database } | |
| - { name: SpringMVCPostgresKotlin, test_file: end2end/spring_mvc_postgres_kotlin.py, db: postgres_database } | |
| - { name: SpringMVCPostgresGroovy, test_file: end2end/spring_mvc_postgres_groovy.py, db: postgres_database } | |
| - { name: JavalinPostgres, test_file: end2end/javalin_postgres.py, db: postgres_database } | |
| - { name: JavalinMySQLKotlin, test_file: end2end/javalin_mysql_kotlin.py, db: mysql_database } | |
| - { name: SpringBoot2.7Postgres, test_file: end2end/spring_boot_2.7_postgres.py, db: postgres_database } | |
| - { name: SpringBootHyperSQL, test_file: end2end/spring_boot_hypersql.py, db: "" } | |
| java-version: [17, 18, 19, 20, 21, 24, 25] | |
| distribution: ['adopt', 'corretto', 'oracle'] | |
| exclude: | |
| # Spring Boot 2.7 uses the legacy javax stack and does not support JDK 25; | |
| # keep this app on Java 17-24 only (its javax coverage stays exercised there). | |
| - app: { name: SpringBoot2.7Postgres, test_file: end2end/spring_boot_2.7_postgres.py, db: postgres_database } | |
| java-version: 25 | |
| steps: | |
| - name: Download build artifacts | |
| uses: actions/download-artifact@v4 | |
| with: | |
| name: pkg-build | |
| - name: Set up JDK | |
| uses: actions/setup-java@v4 | |
| with: | |
| java-version: ${{ matrix.java-version }} | |
| distribution: ${{ matrix.distribution }} | |
| - name: Start mock server | |
| working-directory: ./end2end/server | |
| run: | | |
| docker build -t mock_core . | |
| docker run --name mock_core -d -p 5000:5000 mock_core | |
| - name: Start databases | |
| if: matrix.app.db != '' | |
| working-directory: ./sample-apps/databases | |
| run: | | |
| docker compose down --volumes | |
| docker compose up --build -d ${{ matrix.app.db }} | |
| - name: Install Python dependencies | |
| run: python -m pip install -r end2end/requirements.txt | |
| - name: Build Application (ensures cache) | |
| working-directory: ./sample-apps/${{ matrix.app.name }} | |
| run: | | |
| make build | |
| - name: Start Application (with and without Zen) | |
| working-directory: ./sample-apps/${{ matrix.app.name }} | |
| run: | | |
| nohup make runWithoutZen > output_without_zen.log & sleep 5 | |
| nohup make run > output.log & sleep 5 | |
| - name: Run End-to-End tests | |
| working-directory: ./ | |
| run: | | |
| tail -f ./sample-apps/${{ matrix.app.name }}/output.log & | |
| python ${{ matrix.app.test_file }} |