Skip to content

test(NODE-5517): display installed deps in CI#4948

Merged
PavelSafronov merged 3 commits into
mainfrom
NODE-5517/always-log-dependencies-in-tests
Jun 3, 2026
Merged

test(NODE-5517): display installed deps in CI#4948
PavelSafronov merged 3 commits into
mainfrom
NODE-5517/always-log-dependencies-in-tests

Conversation

@johnmtll
Copy link
Copy Markdown
Contributor

@johnmtll johnmtll commented May 28, 2026

Description

Summary of Changes

Adds a prefire test hook to mocha which is called whenever a mocha test is invoked. The hook simply logs all installed dependencies via npm ls. This solves an issue described in NODE-5517 which highlights that, even though we already do dependency logging in our install scripts, we may have steps between installs & test runs which surface new dependencies we should have visibility of in CI logs.

This should cover gaps without necessitating changing many ci scripts.

Notes for Reviewers

What is the motivation for this change?

Release Highlight

CI tests updated to always print installed dependencies in logs.

Double check the following

  • Lint is passing (npm run check:lint)
  • Self-review completed using the steps outlined here
  • PR title follows the correct format: type(NODE-xxxx)[!]: description
    • Example: feat(NODE-1234)!: rewriting everything in coffeescript
  • Changes are covered by tests
  • New TODOs have a related JIRA ticket

@johnmtll johnmtll force-pushed the NODE-5517/always-log-dependencies-in-tests branch 2 times, most recently from f957151 to 5c1c5cc Compare May 29, 2026 15:00
@johnmtll johnmtll force-pushed the NODE-5517/always-log-dependencies-in-tests branch from 5c1c5cc to 8c3c4c7 Compare June 1, 2026 19:17
@johnmtll johnmtll marked this pull request as ready for review June 2, 2026 18:08
@johnmtll johnmtll requested a review from a team as a code owner June 2, 2026 18:08
Copy link
Copy Markdown
Contributor

@PavelSafronov PavelSafronov left a comment

Choose a reason for hiding this comment

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

Looks like the following variants don't get these logs:

Think we can/should support these?

Comment thread test/mocha_lambda.js
@johnmtll johnmtll requested a review from PavelSafronov June 3, 2026 14:57
@PavelSafronov PavelSafronov self-assigned this Jun 3, 2026
Copy link
Copy Markdown
Contributor

@PavelSafronov PavelSafronov left a comment

Choose a reason for hiding this comment

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

Looks good!

@PavelSafronov PavelSafronov merged commit b7f54b5 into main Jun 3, 2026
35 checks passed
@PavelSafronov PavelSafronov deleted the NODE-5517/always-log-dependencies-in-tests branch June 3, 2026 20:17
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