test(express): narrow loopback phase-sorting setup#9291
Conversation
Overall package sizeSelf size: 6.76 MB Dependency sizes| name | version | self size | total size | |------|---------|-----------|------------| | import-in-the-middle | 3.3.1 | 122.62 kB | 438.86 kB | | opentracing | 0.14.7 | 194.81 kB | 194.81 kB | | dc-polyfill | 0.1.11 | 25.74 kB | 25.74 kB |🤖 This report was automatically generated by heaviest-objects-in-the-universe |
🎉 All green!🧪 All tests passed 🎯 Code Coverage (details) 🔗 Commit SHA: d61e175 | Docs | Datadog PR Page | Give us feedback! |
BenchmarksBenchmark execution time: 2026-07-14 21:18:35 Comparing candidate commit d61e175 in PR branch Found 0 performance improvements and 0 performance regressions! Performance is the same for 2314 metrics, 44 unstable metrics.
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #9291 +/- ##
==========================================
- Coverage 96.64% 96.54% -0.11%
==========================================
Files 923 922 -1
Lines 122844 122791 -53
Branches 20989 21215 +226
==========================================
- Hits 118723 118548 -175
- Misses 4121 4243 +122 Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
The LoopBack compatibility specs only exercise its Express phase sorter, but the public entry eagerly loads the model, connector, and remoting stack. Cold module loading can push the synchronous setup hook past five seconds, so load the owner module directly and let the normal timeout guard regressions.
Real applications load LoopBack through its public entry once during bootstrap. Keep that path in the compatibility test and give its eager initialization ten seconds without repeating the work for every case.
24b3fb3 to
d61e175
Compare
Real applications load LoopBack through its public entry once during bootstrap. Keep that path in the compatibility test and give its eager initialization ten seconds without repeating the work for every case.
Real applications load LoopBack through its public entry once during bootstrap. Keep that path in the compatibility test and give its eager initialization ten seconds without repeating the work for every case.
Real applications load LoopBack through its public entry once during bootstrap. Keep that path in the compatibility test and give its eager initialization ten seconds without repeating the work for every case.
Real applications load LoopBack through its public entry once during bootstrap. Keep that path in the compatibility test and give its eager initialization ten seconds without repeating the work for every case.
Summary
The Express/LoopBack compatibility test loaded LoopBack's public entry even though it only exercises the Express phase sorter. That entry eagerly initializes the model, connector, and remoting stack, so cold module loading could push synchronous setup past Mocha's five-second limit. Load the owning server-app module directly while keeping the real LoopBack sorting and HTTP assertions.