Skip to content

Commit

Permalink
fix node options
Browse files Browse the repository at this point in the history
  • Loading branch information
juan-fernandez committed Jan 15, 2025
1 parent 834c146 commit cb91bf3
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,13 @@ class TestVisDynamicInstrumentation {

const { NODE_OPTIONS, ...envWithoutNodeOptions } = process.env

// Remove initialization of dd-trace but keep other NODE_OPTIONS
const DD_TRACE_CI_INIT_REGEX = /-r [^\s]*?dd-trace\/ci\/init\b/
envWithoutNodeOptions.NODE_OPTIONS = NODE_OPTIONS.replace(DD_TRACE_CI_INIT_REGEX, '')

console.log('original node_options', NODE_OPTIONS)

Check failure on line 63 in packages/dd-trace/src/ci-visibility/dynamic-instrumentation/index.js

View workflow job for this annotation

GitHub Actions / lint

Unexpected console statement
console.log('changes node_options', envWithoutNodeOptions.NODE_OPTIONS)

Check failure on line 64 in packages/dd-trace/src/ci-visibility/dynamic-instrumentation/index.js

View workflow job for this annotation

GitHub Actions / lint

Unexpected console statement

log.debug('Starting Test Visibility - Dynamic Instrumentation client...')

const rcChannel = new MessageChannel() // mock channel
Expand Down

0 comments on commit cb91bf3

Please sign in to comment.