Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
f040c9e
chore(deps): bump openai (#6716)
dependabot[bot] Oct 22, 2025
5b92b4f
chore: improve config by making properties private and fix type issue…
BridgeAR Oct 22, 2025
11a51e4
test: increase timeout for dynamo and event hubs tests (#6690)
rochdev Oct 22, 2025
f20dd01
test(test-optimization): reduce cypress test flakiness and add debug …
juan-fernandez Oct 22, 2025
f77f10c
ci(langchain): fix tests for test version bump to 1.0 (#6715)
sabrenner Oct 22, 2025
0d85204
ci: add support for multiple retries to flakiness script (#6685)
rochdev Oct 22, 2025
5f0cf74
ci(langchain): update apm test to use classic langchain for in-memory…
sabrenner Oct 22, 2025
4dc5213
Added flush interval option as env variable and use it for ESM tests …
pabloerhard Oct 22, 2025
17f49dd
Update esbuild test dependency (#6727)
IlyasShabi Oct 23, 2025
4b4b32b
ci: remove flaky flag from serverless workflow (#6692)
rochdev Oct 24, 2025
ed418f0
add script to rerun workflow a specific number of times (#6689)
rochdev Oct 24, 2025
e96f4a1
fix(esbuild): do not crash and build properly when esbuild is used wi…
uurien Oct 24, 2025
be02f70
chore: clean up code in integration tests helper (#6735)
watson Oct 24, 2025
e170c4d
test: reduce cypress flakiness further (#6731)
juan-fernandez Oct 24, 2025
bed7a37
add dsm checkpointer typing (#6732)
wconti27 Oct 24, 2025
cee5c32
fix(ws): handle socket availability gracefully (#6728)
BridgeAR Oct 24, 2025
7a5aefb
[test optimization][STV-59] Fix `jest.mock` for multi worker setups (…
juan-fernandez Oct 24, 2025
0bd4dcc
test: fix race condition in kinesis tests by swallowing irrelevant er…
rochdev Oct 24, 2025
44f4007
[test optimization] Fix retry logic in playwright (#6736)
juan-fernandez Oct 24, 2025
d2a02f3
[test optimization] jest fix: potentially empty this.loggedReferenceE…
juan-fernandez Oct 24, 2025
fc58aa8
nightly testing (#6629)
pabloerhard Oct 24, 2025
d015090
switch to bun for integration tests using the sandbox (#6693)
rochdev Oct 24, 2025
d2fcf36
collect express endpoints (#6271)
IlyasShabi Oct 25, 2025
144aa1a
chore(deps): bump the gh-actions-packages group across 3 directories …
dependabot[bot] Oct 27, 2025
0054786
chore(deps-dev): bump the dev-minor-and-patch-dependencies group acro…
dependabot[bot] Oct 27, 2025
c695dd1
[test optimization] Add faulty logic to EFD in playwright (#6737)
juan-fernandez Oct 27, 2025
b543cdf
[test optimization] Fix retry logic in impacted tests for playwright …
juan-fernandez Oct 27, 2025
fddc769
fix: fix esm instrument express-session regression (#6741)
pabloerhard Oct 27, 2025
1b9c1dd
chore(deps): bump the test-versions group across 1 directory with 2 u…
dependabot[bot] Oct 27, 2025
3e01969
[test optimization] Fix retry logic for flaky test management in play…
juan-fernandez Oct 27, 2025
09e37e3
v5.74.0
juan-fernandez Oct 27, 2025
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
4 changes: 3 additions & 1 deletion .github/actions/install/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,10 @@ runs:
if: inputs.cache == 'true' && steps.yarn-cache.outputs.cache-hit == 'true'
# Retry in case of server error from registry.
# Wait 60 seconds to give the registry server time to heal.
- run: yarn install --frozen-lockfile --ignore-engines || sleep 60 && yarn install --frozen-lockfile --ignore-engines
- run: bun install --linker=hoisted --trust || sleep 60 && bun install --linker=hoisted --trust
shell: bash
env:
_DD_IGNORE_ENGINES: 'true'
- run: tar -cf node_modules.tar node_modules
shell: bash
if: inputs.cache == 'true' && steps.yarn-cache.outputs.cache-hit != 'true'
11 changes: 10 additions & 1 deletion .github/actions/node/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,15 @@ runs:
steps:
- uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.0.0
with:
node-version: ${{ inputs.version == 'eol' && '16' || inputs.version == 'oldest' && '18' || inputs.version == 'maintenance' && '20' || inputs.version == 'active' && '22' || inputs.version == 'latest' && '24' || inputs.version }}
node-version: ${{
inputs.version == 'eol' && '16' ||
inputs.version == 'oldest' && '18' ||
inputs.version == 'maintenance' && '20' ||
inputs.version == 'active' && '22' ||
inputs.version == 'latest' && (env.LATEST_VERSION || '24') ||
inputs.version }}
check-latest: true
registry-url: ${{ inputs.registry-url || 'https://registry.npmjs.org' }}
- uses: oven-sh/setup-bun@735343b667d3e6f658f44d0eca948eb6282f2b76 # v2.0.2
with:
bun-version: "1.2.23"
4 changes: 2 additions & 2 deletions .github/actions/testagent/logs/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ runs:
shell: bash
- name: Archive Test Agent Logs
if: runner.debug == '1' # only create test agent log artifacts if the github action has been re-run with debug mode
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
with:
name: "test_agent_logs_${{ inputs.suffix }}"
path: "./artifacts/logs"
Expand All @@ -48,7 +48,7 @@ runs:
rm "$headers"
shell: bash
- name: Archive Test Agent Tested Versions Artifacts
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
with:
name: supported-integrations-${{ inputs.suffix }}
path: ./artifacts
2 changes: 1 addition & 1 deletion .github/workflows/aiguard.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
- uses: ./.github/actions/install
- uses: ./.github/actions/node
with:
version: ${{ matrix.version }}
- uses: ./.github/actions/install
- run: yarn test:integration:aiguard
- uses: DataDog/junit-upload-github-action@762867566348d59ac9bcf479ebb4ec040db8940a # v2.0.0
if: always()
Expand Down
10 changes: 9 additions & 1 deletion .github/workflows/apm-capabilities.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,21 @@ on:
branches: [master]
schedule:
- cron: 0 4 * * *
workflow_dispatch:
inputs:
latest-version:
description: 'Node version to use'
required: false
type: string


concurrency:
group: ${{ github.workflow }}-${{ github.ref || github.run_id }}
group: ${{ github.workflow }}-${{ inputs.latest-version }}-${{ github.ref || github.run_id }}"
cancel-in-progress: true

env:
MOCHA_OPTIONS: ${{ github.ref == 'refs/heads/master' && '--retries 1' || '' }}
LATEST_VERSION: ${{ inputs.latest-version }}

jobs:
tracing-macos:
Expand Down
25 changes: 22 additions & 3 deletions .github/workflows/apm-integrations.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,21 @@ on:
branches: [master]
schedule:
- cron: 0 4 * * *
workflow_dispatch:
inputs:
latest-version:
description: 'Node version to run'
required: false
type: string


concurrency:
group: ${{ github.workflow }}-${{ github.ref || github.run_id }}
group: ${{ github.workflow }}-${{ inputs.latest-version }}-${{ github.ref || github.run_id }}"
cancel-in-progress: true

env:
MOCHA_OPTIONS: ${{ github.ref == 'refs/heads/master' && '--retries 1' || '' }}
LATEST_VERSION: ${{ inputs.latest-version }}

# TODO: upstream jobs

Expand Down Expand Up @@ -233,9 +241,9 @@ jobs:
steps:
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
- uses: ./.github/actions/testagent/start
- uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.0.0
- uses: ./.github/actions/node
with:
node-version: ${{ matrix.node-version }}
version: ${{ matrix.node-version }}
- uses: ./.github/actions/install
- run: yarn test:plugins:ci
- if: always()
Expand Down Expand Up @@ -376,6 +384,16 @@ jobs:
- uses: ./.github/actions/install
- run: yarn test:plugins:ci

cookie-session:
runs-on: ubuntu-latest
env:
PLUGINS: express-session
steps:
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8
- uses: ./.github/actions/plugins/test
with:
dd_api_key: ${{ secrets.DD_API_KEY }}

fastify:
runs-on: ubuntu-latest
env:
Expand Down Expand Up @@ -750,6 +768,7 @@ jobs:
service: dd-trace-js-tests

# TODO: fix performance issues and test more Node versions

next:
strategy:
fail-fast: false
Expand Down
11 changes: 9 additions & 2 deletions .github/workflows/appsec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,20 @@ on:
branches: [master]
schedule:
- cron: 0 4 * * *
workflow_dispatch:
inputs:
latest-version:
description: 'Node version to use'
required: false
type: string

concurrency:
group: ${{ github.workflow }}-${{ github.ref || github.run_id }}
group: ${{ github.workflow }}-${{ inputs.latest-version }}-${{ github.ref || github.run_id }}"
cancel-in-progress: true

env:
MOCHA_OPTIONS: ${{ github.ref == 'refs/heads/master' && '--retries 1' || '' }}
LATEST_VERSION: ${{ inputs.latest-version }}

jobs:
macos:
Expand Down Expand Up @@ -345,10 +352,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
- uses: ./.github/actions/install
- uses: ./.github/actions/node
with:
version: ${{ matrix.version }}
- uses: ./.github/actions/install
- run: yarn test:integration:appsec
- uses: DataDog/junit-upload-github-action@762867566348d59ac9bcf479ebb4ec040db8940a # v2.0.0
if: always()
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@16140ae1a102900babc80a33c44059580f687047 # v3.29.5
uses: github/codeql-action/init@4e94bd11f71e507f7f87df81788dff88d1dacbfb # v3.29.5
with:
languages: ${{ matrix.language }}
config-file: .github/codeql_config.yml
Expand All @@ -48,7 +48,7 @@ jobs:
# queries: ./path/to/local/query, your-org/your-repo/queries@main

- name: Autobuild
uses: github/codeql-action/autobuild@16140ae1a102900babc80a33c44059580f687047 # v3.29.5
uses: github/codeql-action/autobuild@4e94bd11f71e507f7f87df81788dff88d1dacbfb # v3.29.5

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@16140ae1a102900babc80a33c44059580f687047 # v3.29.5
uses: github/codeql-action/analyze@4e94bd11f71e507f7f87df81788dff88d1dacbfb # v3.29.5
9 changes: 8 additions & 1 deletion .github/workflows/llmobs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,20 @@ on:
branches: [master]
schedule:
- cron: 0 4 * * *
workflow_dispatch:
inputs:
latest-version:
description: 'Node version to use'
required: false
type: string

concurrency:
group: ${{ github.workflow }}-${{ github.ref || github.run_id }}
group: ${{ github.workflow }}-${{ inputs.latest-version }}-${{ github.ref || github.run_id }}"
cancel-in-progress: true

env:
MOCHA_OPTIONS: ${{ github.ref == 'refs/heads/master' && '--retries 1' || '' }}
LATEST_VERSION: ${{ inputs.latest-version }}

jobs:
sdk:
Expand Down
68 changes: 42 additions & 26 deletions .github/workflows/nightly-dispatch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,53 +3,69 @@ name: Nightly Testing
on:
workflow_dispatch:
inputs:
runApmIntegrations:
node-version:
description: 'Node Version To Use'
required: true
type: number
apm-integrations:
description: 'APM Integration Tests'
required: false
default: true
type: boolean
runApmCapabilities:
apm-capabilities:
description: 'APM Capabilities Tests'
required: false
default: true
type: boolean
runLlmobs:
llmobs:
description: 'LLM-OBS Tests'
required: false
default: true
type: boolean
runPlatform:
platform:
description: 'Platform Tests'
required: false
default: true
type: boolean
runServerless:
serverless:
description: 'Serverless Tests'
required: false
default: true
type: boolean
profiling:
description: 'Profiling Tests'
required: false
default: true
type: boolean
appsec:
description: 'AppSec Tests'
required: false
default: true
type: boolean

permissions:
actions: write
contents: read

env:
BRANCH_NAME: ${{ github.head_ref || github.ref_name }}

jobs:
nightly:
run-nightly:
strategy:
matrix:
workflow:
- apm-integrations
- apm-capabilities
- llmobs
- platform
- serverless
- appsec
- profiling
runs-on: ubuntu-latest
steps:
- uses: ./.github/workflows/apm-integrations
if: inputs.runApmIntegrations
with:
runNightly: 'true'
- uses: ./.github/workflows/apm-capabilities
if: inputs.runApmCapabilities
with:
runNightly: 'true'
- uses: ./.github/workflows/llmobs
if: inputs.runLlmobs
with:
runNightly: 'true'
- uses: ./.github/workflows/platform
if: inputs.runPlatform
with:
runNightly: 'true'
- uses: ./.github/workflows/serverless
if: inputs.runServerless
with:
runNightly: 'true'
- name: Trigger ${{matrix.workflow }} workflow
if: ${{ inputs[matrix.workflow] }}
run: gh workflow run ${{matrix.workflow}}.yml --repo ${{ github.repository }} --ref ${{ env.BRANCH_NAME }} -f latest-version=${{ inputs.node-version }}
env:
GH_TOKEN: ${{ github.token }}
36 changes: 32 additions & 4 deletions .github/workflows/platform.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,35 @@ on:
branches: [master]
schedule:
- cron: 0 4 * * *
workflow_dispatch:
inputs:
latest-version:
description: 'Node version to use'
required: false
type: string

concurrency:
group: ${{ github.workflow }}-${{ github.ref || github.run_id }}
group: ${{ github.workflow }}-${{ inputs.latest-version }}-${{ github.ref || github.run_id }}"
cancel-in-progress: true

env:
MOCHA_OPTIONS: ${{ github.ref == 'refs/heads/master' && '--retries 1' || '' }}
LATEST_VERSION: ${{ inputs.latest-version }}

# TODO: upstream jobs

jobs:
bun-pack:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
- uses: ./.github/actions/node/active-lts
- uses: ./.github/actions/install
- run: mkdir npm bun
- run: FILENAME=$(npm pack) && tar -zxf $FILENAME -C npm
- run: ./node_modules/.bin/bun pm pack --gzip-level 0 --filename bun.tgz && tar -zxf bun.tgz -C bun
- run: diff -r npm bun

core:
runs-on: ubuntu-latest
steps:
Expand All @@ -43,6 +61,17 @@ jobs:
dd_api_key: ${{ secrets.DD_API_KEY }}


esbuild:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
- uses: ./.github/actions/node/oldest-maintenance-lts
- uses: ./.github/actions/install
- run: yarn test:esbuild:ci
- uses: ./.github/actions/node/latest
- run: yarn test:esbuild:ci
- uses: codecov/codecov-action@5a1091511ad55cbe89839c7260b706298ca349f7 # v5.5.1

instrumentation-bluebird:
runs-on: ubuntu-latest
env:
Expand Down Expand Up @@ -384,9 +413,8 @@ jobs:
with:
version: ${{ matrix.version }}
- uses: ./.github/actions/install
- run: yarn add --ignore-scripts mocha@10 # Use older mocha to support old Node.js versions
- run: yarn add --ignore-scripts express@4 # Use older express to support old Node.js versions
- run: npm i -g npm@8 # Recent enough to support `--pack-destination` and old enough for old Node.js versions
- run: bun add --linker=hoisted --ignore-scripts mocha@10 # Use older mocha to support old Node.js versions
- run: bun add --linker=hoisted --ignore-scripts express@4 # Use older express to support old Node.js versions
- run: node node_modules/.bin/mocha --colors --timeout 30000 integration-tests/init.spec.js
- uses: DataDog/junit-upload-github-action@762867566348d59ac9bcf479ebb4ec040db8940a # v2.0.0
if: always()
Expand Down
Loading