Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cypress frequently throws a [warning] Unexpected input #141

Closed
DlgSHi opened this issue May 14, 2020 · 14 comments
Closed

Cypress frequently throws a [warning] Unexpected input #141

DlgSHi opened this issue May 14, 2020 · 14 comments

Comments

@DlgSHi
Copy link
Contributor

DlgSHi commented May 14, 2020

We have set-up the cypress run for GitHub Actions using your examples. But yesterday it starts failing with en errors as below:
Screenshot 2020-05-14 at 09 22 51

Link to Actions for our project

@bahmutov , @brian-mann any thoughts ?

@DlgSHi DlgSHi changed the title Cypress fails frequently with such error [warning] Unexpected input Cypress frequently throws a [warning] Unexpected input May 15, 2020
@DlgSHi
Copy link
Contributor Author

DlgSHi commented May 15, 2020

An issue was with different env parameters sent from difference GitHub Actions jobs. Fixed with implementing docker container as env.

@leosuncin
Copy link

I believe is because those inputs are not defined in action.yml

inputs:
record:
description: 'Sends test results to Cypress Dashboard'
required: false
default: false
config:
description: 'Set configuration values. Separate multiple values with a comma. The values set here override any values set in your configuration file.'
required: false
config-file:
description: 'Path to a JSON file where configuration values are set.'
required: false
default: cypress.json
env:
description: 'Sets Cypress environment variables'
required: false
browser:
description: 'Name of the browser to use'
required: false
command:
description: 'Command that overrides cypress run'
required: false

@jennifer-shehane
Copy link
Member

Have this issue been resolved? Can this issue be closed?

@jebendfds
Copy link

@jennifer-shehane We are still experiencing this issue. Your documentation says to use the working directory parameter to specify the cypress folder in monorepos, yet the parameter is unrecognized.

Can you elaborate more on your solution @DlgSHi ?

@DlgSHi
Copy link
Contributor Author

DlgSHi commented May 18, 2020

The solution is about setting the same env for every job on the GitHub Actions using docker image. But not about warnings

@prescottprue
Copy link
Contributor

prescottprue commented May 19, 2020

@jennifer-shehane No, I do not think it is yet resolved. As @leosuncin mentioned, I believe it is due to the settings not being in action.yml - I made a PR to include a number of the missing inputs

@craig-dae
Copy link

craig-dae commented May 21, 2020

We have started having this problem yesterday. All pipelines have started failing. We can't merge to master anymore. This is with a production app.

We could use either a fix or a workaround please.

@prescottprue
Copy link
Contributor

prescottprue commented May 21, 2020

@craig-dae I provided a PR for fixing the warnings mentioned above, so now it should just be a matter of getting it merged. If it ends up taking a little while longer I can merge in to master of my fork so that can be pointed to in the meantime

@craig-dae
Copy link

@prescottprue So actually, I am thinking my issue is different, and I should re-open my issue report. I thought that these warnings were causing my issue, but I just looked, and these warnings have been appearing long before my pipeline stopped working.

@calebeby
Copy link

Thanks @prescottprue for your fix, looks great! It would be great if someone from Cypress could merge that

@DlgSHi
Copy link
Contributor Author

DlgSHi commented May 27, 2020

No more warnings as above, thanks :)
One more new warning appears :(

@DlgSHi
Copy link
Contributor Author

DlgSHi commented May 27, 2020

Made a PR to fix that warning

@DlgSHi
Copy link
Contributor Author

DlgSHi commented May 27, 2020

After release v.1.24.3 - no more warnings in console :) Thanks guys, closing an issue

@myildizCH
Copy link

Sometimes it is just enough to clean everything and reinstall. Please follow the steps below if you can't find any solution:
• Go to the project directory
• Remove the node_modules directory: rm -rf node_modules.
• Remove package-lock.json file: rm package-lock.json
• Clear the cache: npm cache clean --force
• Run npm install --verbose

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants