next.js: cap test range to 14.2.6 for now #13969
Workflow file for this run
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
name: System Tests | |
on: | |
pull_request: | |
branches: | |
- "**" | |
push: | |
branches: [master] | |
workflow_dispatch: {} | |
schedule: | |
- cron: '00 04 * * 2-6' | |
jobs: | |
build-artifacts: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout dd-trace-js | |
uses: actions/checkout@v4 | |
with: | |
path: dd-trace-js | |
- name: Pack dd-trace-js | |
run: mkdir -p ./binaries && echo /binaries/$(npm pack --pack-destination ./binaries ./dd-trace-js) > ./binaries/nodejs-load-from-npm | |
- name: Upload artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: system_tests_binaries | |
path: ./binaries/**/* | |
get-essential-scenarios: | |
runs-on: ubuntu-latest | |
outputs: | |
scenario: ${{ steps.parse-yml.outputs.scenario }} | |
steps: | |
- name: Checkout system tests | |
uses: actions/checkout@v4 | |
with: | |
repository: 'DataDog/system-tests' | |
- name: Get Essential Scenarios | |
id: parse-yml | |
run: yq -o tsv .TRACER_ESSENTIAL_SCENARIOS ./scenario_groups.yml | xargs node -p "x=process.argv;x.shift();x.push('CROSSED_TRACING_LIBRARIES');'scenario='+JSON.stringify(x)" >> $GITHUB_OUTPUT | |
system-tests: | |
runs-on: ${{ contains(fromJSON('["CROSSED_TRACING_LIBRARIES", "INTEGRATIONS"]'), matrix.scenario) && 'ubuntu-latest-16-cores' || 'ubuntu-latest' }} | |
needs: | |
- get-essential-scenarios | |
strategy: | |
matrix: | |
weblog-variant: | |
- express4 | |
- express4-typescript | |
- nextjs | |
scenario: ${{fromJson(needs.get-essential-scenarios.outputs.scenario)}} | |
env: | |
TEST_LIBRARY: nodejs | |
WEBLOG_VARIANT: ${{ matrix.weblog-variant }} | |
DD_API_KEY: ${{ secrets.DD_API_KEY }} | |
steps: | |
- name: Checkout system tests | |
uses: actions/checkout@v4 | |
with: | |
repository: 'DataDog/system-tests' | |
- name: Checkout dd-trace-js | |
uses: actions/checkout@v4 | |
with: | |
path: 'binaries/dd-trace-js' | |
- name: Build runner | |
uses: ./.github/actions/install_runner | |
- name: Pull images | |
uses: ./.github/actions/pull_images | |
with: | |
library: nodejs | |
weblog: ${{ matrix.weblog-variant }} | |
scenarios: '["${{ matrix.scenario }}"]' | |
cleanup: false | |
- name: Build weblog | |
run: ./build.sh -i weblog | |
- name: Build agent | |
id: build-agent | |
run: ./build.sh -i agent | |
- name: Run scenario ${{ matrix.scenario }} | |
run: ./run.sh ${{ matrix.scenario }} | |
- name: Compress artifact | |
if: ${{ always() }} | |
run: tar -czvf artifact.tar.gz $(ls | grep logs) | |
- name: Upload artifact | |
uses: actions/upload-artifact@v2 | |
if: ${{ always() }} | |
with: | |
name: logs_${{ matrix.weblog-variant }}-${{ matrix.scenario }} | |
path: artifact.tar.gz | |
parametric: | |
needs: | |
- build-artifacts | |
uses: DataDog/system-tests/.github/workflows/run-parametric.yml@main | |
secrets: inherit | |
with: | |
library: nodejs | |
binaries_artifact: system_tests_binaries | |
_experimental_job_count: 8 | |
_experimental_job_matrix: '[1,2,3,4,5,6,7,8]' |