-
Notifications
You must be signed in to change notification settings - Fork 345
Description
Tracer Version(s)
5.35.0
Node.js Version(s)
20.18
Bug Report
We do test parallelization, running tests with code like this:
CYPRESS_CACHE_FOLDER=$CYPRESS_CACHE cypress run -C ./cypress/config/cypress.specs.config.ts -b chrome --config baseUrl=http://localhost:3000,trashAssetsBeforeRuns=false --spec $TESTS
$TESTS
is an array with a series of comma-separated files to run on each matrix task.
After configuring the Cypress integration, we don't seem to get report on individual tests. instead everything is grouped into "suites"

The suite's name is that of the first test ran for the given job, so data is arbitrarily grouped into "suites" whose name only represent the first test ran.
Also I'd expect the "tests" tab to be populated, but it's not.
Feels like the plugin is only working "partially" and not doing everything it should be doing 🤔
Reproduction Code
No response
Error Logs
I've tried running with DD_TRACE_DEBUG: true
and DD_TRACE_LOG_LEVEL: error
, which adds some warnings:
Warning: Package '@opentelemetry/sdk-trace-node' was loaded before dd-trace! This may break instrumentation.
Warning: Package 'lodash' was loaded before dd-trace! This may break instrumentation.
Warning: Package 'bluebird' was loaded before dd-trace! This may break instrumentation.
Warning: Package 'cypress' was loaded before dd-trace! This may break instrumentation.
Warning: Please ensure dd-trace is loaded before other modules.
tput: No value for $TERM and no -T specified
Tracer Config
All DD imports were added at the beginning of the files
# support file
import 'dd-trace/ci/cypress/support';
// ...
# specs/plugins.ts
import ddTraceCiPlugin from 'dd-trace/ci/cypress/plugin';
// ...
module.exports = (on, config) => {
ddTraceCiPlugin(on, config);
// ... other plugins
These variables were added to the github action that runs tests
DD_CIVISIBILITY_AGENTLESS_ENABLED: true
DD_API_KEY: ${{ secrets.DD_API_KEY }}
DD_SITE: datadoghq.com
DD_TRACE_DEBUG: true
DD_TRACE_LOG_LEVEL: error
Operating System
GitHub Runner (Ubuntu)
Bundling
Unsure