circleci-orb
circleci-orb copied to clipboard
Question about workspaces
Drop Cypress stuff from workspace after tests have run
Hey folks! I noticed that while running our CircleCI pipelines, everything cypress installs as part of its orb is persisted to workspace, even after it's done running. This means that every step after our e2e tests is lugging around about 270mb of unnecessary layers. Is there a way to prevent this? I looked through the Orb but couldn't find anything. If this is behavior that should be supported I'd love to help figure out the best way to approach & submit a PR.
Thanks ❤️
Look for option skip-workspace or no-workspace - I forgot the exact name, is this what you need?
Sent from my iPhone
On Aug 26, 2020, at 15:18, Steven Langbroek [email protected] wrote:
Drop Cypress stuff from workspace after tests have run
Hey folks! I noticed that while running our CircleCI pipelines, everything cypress installs as part of its orb is persisted to workspace, even after it's done running. This means that every step after our e2e tests is lugging around about 270mb of unnecessary layers. Is there a way to prevent this? I looked through the Orb but couldn't find anything. If this is behavior that should be supported I'd love to help figure out the best way to approach & submit a PR.
Thanks ❤️
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe.
Doh! That seems to be the case. Thanks Gleb!
Hmmm... so, it's still carrying around the workspace layer from cypress/install 🤔
Can you explain the job dependencies in the workflow?
Sent from my iPhone
On Aug 26, 2020, at 15:40, Steven Langbroek [email protected] wrote:
Hmmm... so, it's still carrying around the workspace layer from cypress/install 🤔
— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.

Does this help?
@bahmutov hey! :) is there anything I can do to help with this?
@bahmutov this is still causing performance problems in our CI pipeline. is there anything i can do to help?
I would need a better explanation of what is happening since I cannot determine from your diagram what is preserved and what is not. For example a tiny repo with a workflow file with 3 jobs (install, run, something else) and commands that show how there is an "extra" layer.
Going to go ahead and close this issue as it appears that there is a solution for this. Feel free to open a new issue with more a detailed description of what is happening