Skip to content

Conversation

@rjrudin
Copy link
Contributor

@rjrudin rjrudin commented Oct 17, 2025

Only using bunyan in logging.js, and that test seems very safe to run, so it's no longer excluded by Jenkinsfile.

Removing winston allows for the "color" and "color-string" overrides to be removed as well as nothing else depends on them.

Copilot AI review requested due to automatic review settings October 17, 2025 14:36
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 removes the Winston logging library dependency from the codebase, retaining only Bunyan for logging functionality. The changes simplify the test suite and eliminate unnecessary package dependencies.

  • Removed Winston logging tests and dependencies from the test suite
  • Cleaned up package.json by removing winston and related color dependencies
  • Updated Jenkinsfile to run previously excluded logging tests

Reviewed Changes

Copilot reviewed 3 out of 4 changed files in this pull request and generated 1 comment.

File Description
test-basic/logging.js Removed Winston-specific logging tests and imports, keeping only Bunyan tests
package.json Removed winston dependency and related color package overrides
Jenkinsfile Removed test exclusions for logging tests, allowing them to run in CI

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Comment on lines 48 to +51
});



Copy link

Copilot AI Oct 17, 2025

Choose a reason for hiding this comment

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

[nitpick] There are excessive blank lines at the end of the file. Consider removing the extra blank line on line 50 to maintain consistent formatting.

Copilot uses AI. Check for mistakes.
@github-actions
Copy link

github-actions bot commented Oct 17, 2025

Copyright Validation Results
Total: 5 | Passed: 2 | Failed: 0 | Skipped: 3 | at: 2025-10-17 18:15:49 UTC | commit: 9314dab

⏭️ Skipped (Excluded) Files

  • Jenkinsfile
  • package-lock.json
  • package.json

✅ Valid Files

  • test-basic/logging.js
  • test-complete-proxy/gulpfile.js

✅ All files have valid copyright headers!

@rjrudin rjrudin changed the title remove winston MLE-24763 Enabling logging test and removing winston Oct 17, 2025
BillFarber
BillFarber previously approved these changes Oct 17, 2025
"color-name": "2.0.0",
"color-string": "2.1.0",
"cross-spawn": "7.0.6",
"debug": "4.3.6",
Copy link
Contributor

Choose a reason for hiding this comment

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

These were part of fix for npm supply chain attack.

Copy link
Contributor

@anu3990 anu3990 left a comment

Choose a reason for hiding this comment

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

These were part of fix for npm supply chain attack. Also, what is the motivation for this PR ?

@rjrudin rjrudin force-pushed the feature/24763-logging-test branch from 2cf0cd1 to c9035a5 Compare October 17, 2025 16:37
@stevebio
Copy link
Collaborator

The mocha regex also excluded tests with name 'archivePath' and that matches the test file documents-temporal-protect.js. Not sure why that was excluded, maybe not documented as to why. But seems unrelated to removal of winston logging?

@rjrudin
Copy link
Contributor Author

rjrudin commented Oct 17, 2025

The mocha regex also excluded tests with name 'archivePath' and that matches the test file documents-temporal-protect.js. Not sure why that was excluded, maybe not documented as to why. But seems unrelated to removal of winston logging?

There are no files containing archivePath in their path, so that rule was OBE and not doing anything.

@rjrudin
Copy link
Contributor Author

rjrudin commented Oct 17, 2025

These were part of fix for npm supply chain attack. Also, what is the motivation for this PR ?

This includes the logging.js test in the suite of tests, but without Winston, as testing just with Bunyan is sufficient for testing the feature. By removing Winston, we're able to remove two of the libraries that required overrides. Nothing else depends on those two libraries, so the overrides can be safely removed.

Only using bunyan in logging.js, and that test seems very safe to run, so it's no longer excluded by Jenkinsfile.

Removed the two "test-complete" logging tests that weren't actually doing anything.

Removing winston allows for the "color" and "color-string" overrides to be removed as well as nothing else depends on them.
@rjrudin rjrudin force-pushed the feature/24763-logging-test branch from b9dd9d5 to 9314dab Compare October 17, 2025 18:15
@rjrudin rjrudin merged commit 3e68289 into develop Oct 17, 2025
3 checks passed
@rjrudin rjrudin deleted the feature/24763-logging-test branch October 17, 2025 18:48
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.

5 participants