Skip to content

Conversation

@rjrudin
Copy link
Contributor

@rjrudin rjrudin commented Nov 26, 2025

No description provided.

@rjrudin rjrudin requested a review from anu3990 as a code owner November 26, 2025 13:53
Copilot AI review requested due to automatic review settings November 26, 2025 13:53
@github-actions
Copy link

Copyright Validation Results
Total: 1 | Passed: 0 | Failed: 0 | Skipped: 1 | at: 2025-11-26 13:54:03 UTC | commit: 2d31cf1

⏭️ Skipped (Excluded) Files

  • Jenkinsfile

✅ All files have valid copyright headers!

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR modifies the Jenkins pipeline to add support for excluding fragile tests from E2E test runs. The main pipeline stage (ML 12) will exclude certain nodejs-dmsdk tests, while other stages (ML 11, ML 12.1 EA, ML 10) will continue running the complete test suite.

Key Changes:

  • Added a parameter to runE2ETests() function to conditionally exclude fragile tests
  • Changed shell script delimiters from single quotes to double quotes to support variable interpolation
  • Only the main ML 12 stage excludes fragile tests; other stages run all tests

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

sh label: 'run-e2e-tests', script: '''
export PATH=${NODE_HOME_DIR}/bin:$PATH
def runE2ETests(excludeFragileTests) {
def excludeFlag = excludeFragileTests ? '--exclude "test-complete/nodejs-dmsdk*.js"' : ''
Copy link

Copilot AI Nov 26, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The excludeFlag construction may cause command-line parsing issues because the exclude pattern contains unescaped quotes. Consider moving the quotes outside or ensuring proper escaping: def excludeFlag = excludeFragileTests ? '--exclude test-complete/nodejs-dmsdk*.js' : '' or using proper escaping for the shell context.

Suggested change
def excludeFlag = excludeFragileTests ? '--exclude "test-complete/nodejs-dmsdk*.js"' : ''
def excludeFlag = excludeFragileTests ? '--exclude test-complete/nodejs-dmsdk*.js' : ''

Copilot uses AI. Check for mistakes.
echo "Running test-complete tests"
./node_modules/.bin/mocha --no-parallel -R xunit --timeout 60000 test-complete/ --reporter mocha-junit-reporter --reporter-options mochaFile=$WORKSPACE/test-complete-results.xml || true
./node_modules/.bin/mocha --no-parallel -R xunit --timeout 60000 test-complete/ ${excludeFlag} --reporter mocha-junit-reporter --reporter-options mochaFile=\$WORKSPACE/test-complete-results.xml || true
Copy link

Copilot AI Nov 26, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The ${excludeFlag} variable may not be properly expanded when empty, potentially causing syntax errors in the shell command. When excludeFlag is an empty string, this could result in two consecutive spaces in the command. Consider using Groovy string interpolation more carefully or testing with an empty flag value.

Copilot uses AI. Check for mistakes.
@rjrudin rjrudin merged commit e1c03ae into develop Nov 26, 2025
6 checks passed
@rjrudin rjrudin deleted the feature/more-fragile branch November 26, 2025 14:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants