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

E2E (14.5.1 ): Error when using multiple --env with github and NX_CLOUD_DISTRIBUTED_EXECUTION #11401

Closed
ureciocais opened this issue Aug 2, 2022 · 2 comments
Labels
outdated scope: testing tools Issues related to Cypress / Jest / Playwright / Vitest support in Nx status: closed / duplicate type: bug

Comments

@ureciocais
Copy link

Current Behavior

Prior we've been executing our e2e providing 3 env vars to Cypress.
Something like yarn nx run project-e2e:e2e --env.USERNAME --env.PASSWORD --env.SECRET
It's been working fine with NX_CLOUD_DISTRIBUTED_EXECUTION, until this version: 14.5.1
Now we are getting this error: "Property 'env' does not match the schema. '[object' should be a 'object'"

Expected Behavior

I would expect it to forward the env vars to the agents. It looks like instead, it is forwarding the string "--env=[object Object]"

Steps to Reproduce

Create a workflow on github, with agents, where you run the e2e nx command on a project and pass in several envs, as shown above

Failure Logs

Environment

@nrwl/express : Not Found
@nrwl/jest : 14.5.1
@nrwl/js : 14.5.1
@nrwl/linter : 14.5.1
@nrwl/nest : Not Found
@nrwl/next : Not Found
@nrwl/node : 14.5.1
@nrwl/nx-cloud : 14.2.0
@nrwl/nx-plugin : Not Found
@nrwl/react : 14.5.1
@nrwl/react-native : Not Found
@nrwl/schematics : Not Found
@nrwl/storybook : 14.5.1
@nrwl/web : 14.5.1
@nrwl/workspace : 14.5.1
typescript : 4.7.4

Community plugins:

@AgentEnder AgentEnder added the scope: testing tools Issues related to Cypress / Jest / Playwright / Vitest support in Nx label Aug 2, 2022
@AgentEnder
Copy link
Member

Duplicate of #10808

@github-actions
Copy link

This issue has been closed for more than 30 days. If this issue is still occuring, please open a new issue with more recent context.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 22, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
outdated scope: testing tools Issues related to Cypress / Jest / Playwright / Vitest support in Nx status: closed / duplicate type: bug
Projects
None yet
Development

No branches or pull requests

2 participants