hivemq / hivemq-edge

HiveMQ Edge is an MQTT gateway that enables interoperability between OT devices and IT systems. It translates diverse protocols into MQTT for streamlined communication and helps organize data into a unified namespace, making managing and streaming data across your infrastructure easier.
http://hivemq.com
Apache License 2.0
91 stars 20 forks source link

chore(CI): reduce verbosity of cypress output #340

Closed vanch3d closed 3 months ago

vanch3d commented 3 months ago

In the CI pipeline, the output of the Cypress was very verbose (more than 35K lines in the stdout). This was mostly due to every API request not being used by the tests, to not be intercepted by Cypress, resulting in an ECONNREFUSED error which dumped the whole request message in the stdout. A lot of noise masking the details of errors in the tests.

An option to disable morgan outputs (see https://github.com/cypress-io/cypress/issues/26284#issuecomment-1498191390) didn't seem to be working with the GitHub actions

Warning: Unexpected input(s) 'morgan', valid inputs are ['record', 'auto-cancel-after-failures', 'config', 'config-file', 'env', 'browser', 'command', 'start', 'start-windows', 'build', 'install', 'install-command', 'runTests', 'wait-on', 'wait-on-timeout', 'parallel', 'group', 'tag', 'working-directory', 'headed', 'publish-summary', 'summary-title', 'spec', 'project', 'command-prefix', 'ci-build-id', 'cache-key', 'quiet', 'component']

The PR adds intercepts to all API requests, returning a 404 when they are not in use for the tests.

The result is a mere 4K lines in the log output, offering unobfuscated access to the errors.

The PR also updates the version of the Cypress action and cleans a few linting warnings (unused aliases).