From 9884d4cf3445a79f4a895718b354242842667b54 Mon Sep 17 00:00:00 2001 From: Ryan Manuel Date: Thu, 25 Apr 2024 09:46:25 -0500 Subject: [PATCH] Update v8-snapshots.md --- guides/v8-snapshots.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/guides/v8-snapshots.md b/guides/v8-snapshots.md index 536b37242dc7..a29fc3235694 100644 --- a/guides/v8-snapshots.md +++ b/guides/v8-snapshots.md @@ -33,6 +33,14 @@ This cache should be maintained and updated over time. Rather than having this m ## Troubleshooting +**Local Development** + +If you're running into problems locally, either with generating the snapshot or at runtime, a good first step is to clean everything and start from scratch. This command will accomplish that (note that it will delete any new unstaged files, so if you want to keep them, either stash them or stage them): + +``` +git clean -fxd && yarn +``` + **Generation** If the build v8 snapshot command is taking a long time to run on Circle CI, the snapshot cache probably needs to be updated. Run the [Update V8 Snapshot Cache](https://github.com/cypress-io/cypress/actions/workflows/update_v8_snapshot_cache.yml) github action against your branch to generate the snapshots for you on all platforms. You can choose to commit directly to your branch or alternatively issue a PR to your branch.