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

Fix [Cypress]: Chromium Renderer crash by optimizing memory management #2144

Merged
merged 2 commits into from
Sep 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version-file: ".nvmrc"
cache: "yarn"
node-version-file: '.nvmrc'
cache: 'yarn'
- name: Clone Stack
run: |
git clone https://github.com/stakwork/sphinx-stack.git stack
Expand Down Expand Up @@ -67,8 +67,8 @@ jobs:
- name: Copy Node.json
uses: canastro/copy-file-action@master
with:
source: "stack/relay/NODES.json"
target: "relay/nodes.json"
source: 'stack/relay/NODES.json'
target: 'relay/nodes.json'

- name: Install
run: yarn --immutable
Expand All @@ -79,8 +79,9 @@ jobs:
with:
install-command: yarn --immutable
browser: chrome
headless: true
start: yarn run start-e2e
wait-on: "http://localhost:3000" # Waits for above
wait-on: 'http://localhost:3000' # Waits for above
wait-on-timeout: 120 # Waits for 2 minutes
# Records to Cypress Dashboard
record: true
Expand Down
3 changes: 3 additions & 0 deletions cypress.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ export default defineConfig({
viewportHeight: 900,
viewportWidth: 1440,
watchForFileChanges: false,
experimentalMemoryManagement: true,
numTestsKeptInMemory: 1,
video: false,
},
component: {
supportFile: './cypress/support/components.ts',
Expand Down
Loading