Skip to content

Envia parte dos logs para o Axiom via API, reduzindo o uso do dreno de logs da Vercel #2314

Envia parte dos logs para o Axiom via API, reduzindo o uso do dreno de logs da Vercel

Envia parte dos logs para o Axiom via API, reduzindo o uso do dreno de logs da Vercel #2314

Triggered via pull request January 10, 2025 22:55
Status Failure
Total duration 3m 13s
Artifacts

ci.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

9 errors and 3 warnings
tests/unit/models/controller.test.js > Controller > logRequest > should log request information: models/controller.js#L126
TypeError: response.on is not a function ❯ logRequest models/controller.js:126:12 ❯ tests/unit/models/controller.test.js:31:7
tests/unit/models/controller.test.js > Controller > logRequest > should call logger.info only with headers and body in array format: models/controller.js#L126
TypeError: response.on is not a function ❯ logRequest models/controller.js:126:12 ❯ tests/unit/models/controller.test.js:42:7
tests/unit/models/controller.test.js > Controller > logRequest > should not log extra request params: models/controller.js#L126
TypeError: response.on is not a function ❯ logRequest models/controller.js:126:12 ❯ tests/unit/models/controller.test.js:60:7
tests/unit/models/controller.test.js > Controller > logRequest > should truncate long "requestBody.body": models/controller.js#L126
TypeError: response.on is not a function ❯ logRequest models/controller.js:126:12 ❯ tests/unit/models/controller.test.js:84:7
tests/unit/models/controller.test.js > Controller > logRequest > should redact sensitive data: models/controller.js#L126
TypeError: response.on is not a function ❯ logRequest models/controller.js:126:12 ❯ tests/unit/models/controller.test.js:115:7
tests/unit/models/controller.test.js > Controller > logRequest > should redact sensitive data with long "body": models/controller.js#L126
TypeError: response.on is not a function ❯ logRequest models/controller.js:126:12 ❯ tests/unit/models/controller.test.js:148:7
tests/unit/models/controller.test.js > Controller > logRequest > should log only "id" and "username" among the user data: models/controller.js#L126
TypeError: response.on is not a function ❯ logRequest models/controller.js:126:12 ❯ tests/unit/models/controller.test.js:175:7
tests/unit/models/controller.test.js > Controller > logRequest > should log non string "requestBody.body": models/controller.js#L126
TypeError: response.on is not a function ❯ logRequest models/controller.js:126:12 ❯ tests/unit/models/controller.test.js:204:7
Tests
Process completed with exit code 1.
Lint Commits
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
Lint Styles
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
Tests
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636