fix: guard global.metrics in singleFlightMiddleware - #670
Open
mateussaggin wants to merge 2 commits into
Open
DK CICD / node-vtex-api-node-ci-v2-1od8s5tv-scan
succeeded
Jul 28, 2026 in 43s
node-vtex-api-node-ci-v2-1od8s5tv-scan
Progress summary:
| Step | Status |
|---|---|
| create-project-at-sonarcloud | 🟢 completed |
| scan | 🟢 completed |
⚠️ A completed status for an individual step simply indicates it completed. Errors might have happened: check the overall status of the Check Run and, if necessary, the logs below.
Details
Runner: node-ci-v2-1od8s5tv-scan-pod
create-project-at-sonarcloud logs (access task pipeline | access task only)
fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/main/x86_64/APKINDEX.tar.gz
fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/community/x86_64/APKINDEX.tar.gz
v3.17.10-127-g3518e0bee31 [https://dl-cdn.alpinelinux.org/alpine/v3.17/main]
v3.17.10-127-g3518e0bee31 [https://dl-cdn.alpinelinux.org/alpine/v3.17/community]
OK: 17833 distinct packages available
(1/5) Installing ca-certificates (20240226-r0)
(2/5) Installing brotli-libs (1.0.9-r9)
(3/5) Installing nghttp2-libs (1.51.0-r2)
(4/5) Installing libcurl (8.9.0-r0)
(5/5) Installing curl (8.9.0-r0)
Executing busybox-1.35.0-r29.trigger
Executing ca-certificates-20240226-r0.trigger
OK: 301 MiB in 50 packages
Creating project at self-hosted SonarQube
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
100 174 0 124 100 50 5354 2158 --:--:-- --:--:-- --:--:-- 7565
Project created: {"errors":[{"msg":"Could not create Project with key: \"node-vtex-api\". A similar key already exists: \"node-vtex-api\""}]}
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
100 128 0 0 100 128 0 4930 --:--:-- --:--:-- --:--:-- 5120
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
100 209 0 209 0 0 10494 0 --:--:-- --:--:-- --:--:-- 11000
Project bind success: {"key":"Sonar - Workflows","alm":"github","repository":"vtex/node-vtex-api","url":"https://api.github.com","summaryCommentEnabled":true,"monorepo":false,"repositoryUrl":"https://github.com/vtex/node-vtex-api"}
scan logs (access task pipeline | access task only)
WARN: * src/caches/LRUCache.ts
WARN: * src/service/worker/runtime/http/router.ts
WARN: * src/errors/index.ts
WARN: * jest.config.js
WARN: * src/clients/janus/index.ts
WARN: * src/service/worker/runtime/graphql/utils/translations.ts
WARN: * src/service/logger/metricsLogger.ts
WARN: * src/clients/infra/Sphinx.ts
WARN: * src/utils/binding.ts
WARN: * src/clients/infra/InfraClient.ts
WARN: * src/HttpClient/middlewares/cache.ts
WARN: * src/service/worker/runtime/graphql/middlewares/query.ts
WARN: * src/errors/TooManyRequestsError.ts
WARN: * src/clients/janus/JanusClient.ts
WARN: * src/utils/error.ts
WARN: * src/service/worker/runtime/events/index.ts
WARN: * src/service/worker/runtime/method.ts
WARN: This may lead to missing/broken features in SonarQube
INFO: CPD Executor 36 files had no CPD blocks
INFO: CPD Executor Calculating CPD for 161 files
INFO: CPD Executor CPD calculation finished (done) | time=26ms
INFO: SCM revision ID 'e647cee9ff2e012c9626a08d51899f2118df4480'
INFO: SCM writing changed lines
WARN: Could not find ref 'main' in refs/heads, refs/remotes, refs/remotes/upstream or refs/remotes/origin
INFO: SCM writing changed lines (done) | time=3ms
INFO: Analysis report generated in 77ms, dir size=1.2 MB
INFO: Analysis report compressed in 212ms, zip size=601.3 kB
INFO: Analysis report uploaded in 95ms
INFO: ANALYSIS SUCCESSFUL, you can find the results at: http://sonarqube.vtex.systems/dashboard?id=node-vtex-api&pullRequest=670
INFO: Note that you will be able to access the updated dashboard once the server has processed the submitted analysis report
INFO: More about the report processing at http://sonarqube.vtex.systems/api/ce/task?id=4c80e867-1c5c-4aa2-bddb-7af4f1cffcaa
INFO: Analysis total time: 16.907 s
INFO: ------------------------------------------------------------------------
INFO: EXECUTION SUCCESS
INFO: ------------------------------------------------------------------------
INFO: Total time: 18.240s
INFO: Final Memory: 17M/74M
INFO: ------------------------------------------------------------------------
Loading