Excessive HTTP request logging
Problem
Is it possible to silence the HTTP logging outputted by Cypress? This is making it difficult to see test pass / failure output. I've tried setting the quite option to true, however this doesn't seem to have any effect. Any support would be appreciated.
Image

Workflow File
name: Test - E2E
on:
push:
branches-ignore:
- master
paths-ignore:
- src/answers/**
jobs:
test:
runs-on: ubuntu-20.04
steps:
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 14
- name: Checkout
uses: actions/checkout@v2
- name: Cypress run
uses: cypress-io/github-action@v4
with:
browser: chrome
build: npm run build
start: npx serve -s build
quiet: true
@ollyrowe
-
This problem has been reported before. See https://github.com/cypress-io/github-action/issues/649. It is not caused by cypress-io/github-action.
-
https://github.com/vercel/serve does not mention it, however if you execute
npx serve --helpyou can find the option:
-L, --no-request-logging Do not log any request information to the console.
(If you are making changing in your workflow, you can probably also update actions/checkout@v2 to v3 and cypress-io/github-action@v4 to v5 which will get rid of some deprecation warnings.)
@ollyrowe
Please let us know if adding --no-request-logging to your workflow line start: npx serve -s build has solved your issue.
Hi @MikeMcC399, thank you for your response. I've just tried this and it does exactly what I'm after! If this issue has been raised before, would you like me to look into updating the README to add this flag as an example? Thanks again for your time, very much appreciated 🙂
Hi @ollyrowe
It's good to hear that your issue is resolved. Thanks for confirming!
If this issue has been raised before, would you like me to look into updating the README to add this flag as an example?
vercel/serve isn't part of cypress-io/github-action and it is not currently referred to in the README.md of cypress-io/github-action, although it is used in several of the examples, so it doesn't quite fit to add your suggestion to the README here.
You might like to suggest adding it to the readme.md of vercel/serve. I made a similar suggestion in https://github.com/vercel/serve/issues/750 to add the information about their NO_UPDATE_CHECK environment flag in that file. They changed the default port in vercel/serve/releases/tag/13.0.0 from default port from 5000 to 3000 and this is also not documented in their readme.md.
Hi @MikeMcC399, ah yes sorry you're right, I should have noticed that the source of the logging was actually the serve command, apologies for wasting your time here! I've just taken a look at the serve repository and it looks like they do mention the --help argument within their README which I also should have noticed. Thanks again!