-
Notifications
You must be signed in to change notification settings - Fork 553
Change to createTestLogger #24880
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Change to createTestLogger #24880
Conversation
There was a problem hiding this 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 updates how the test logger is injected and used in our telemetry setup and aligns pipeline variable naming.
- Switches from
getTestLogger
tocreateTestLogger
in Mocha setup hooks - Updates Mocha config to inject via
FLUID_TEST_LOGGER_PKG_SPECIFIER
rather than path - Renames pipeline variables from
FLUID_TEST_LOGGER_PKG_PATH
toFLUID_TEST_LOGGER_PKG_SPECIFIER
Reviewed Changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.
Show a summary per file
File | Description |
---|---|
tools/pipelines/test-service-clients.yml | Replaced FLUID_TEST_LOGGER_PKG_PATH with PKG_SPECIFIER |
tools/pipelines/test-real-service.yml | Replaced FLUID_TEST_LOGGER_PKG_PATH with PKG_SPECIFIER |
tools/pipelines/test-perf-benchmarks.yml | Replaced FLUID_TEST_LOGGER_PKG_PATH with PKG_SPECIFIER |
packages/test/mocha-test-setup/src/mochaHooks.ts | Switched to async hooks and dynamic createTestLogger import |
packages/test/mocha-test-setup/mocharc-common.cjs | Added logic to inject specifier-based module before setup |
Comments suppressed due to low confidence (1)
tools/pipelines/test-service-clients.yml:54
- [nitpick] This environment variable declaration is repeated across multiple pipeline files; consider extracting it into a shared template or YAML anchor to reduce duplication.
FLUID_TEST_LOGGER_PKG_SPECIFIER: '@ff-internal/aria-logger' # Contains createTestLogger impl to inject
🔗 No broken links found! ✅ Your attention to detail is admirable. linkcheck output
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Last few comments. I'm particularly interested in knowing what happens when you run the e2e tests locally providing an invalid package specifier (e.g. a package name that doesn't exist). It should throw the error you wrote (after applying the suggestion below).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! 🚀
Description
There is a problem in our telemetry where not all of the test results are being reflected in out portal.
This PR consists in changing the getTestLogger function to the createTestLogger function which is a necessary part for the solution.
Also updates the pipelines to use
PKG_SPECIFIER
instead ofPKG_PATH
since it's better to have it consistent throughout our pipelines.Reviewer Guidance
Please let me know if there is something else that I should be aware of.
Fixes: AB#42164