Skip to content

Commit 4344a64

Browse files
v-tarasevich-blitz-brainchakru-r
authored andcommitted
add electron launch args
add temporary memory logging add additional temporary memory logging adjust config and add logs
1 parent 147c0ab commit 4344a64

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

smoke-test/tests/cypress/integration_test.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -262,8 +262,12 @@ def test_run_cypress(auth_session):
262262
test_spec_arg = f" --spec '{specs_str}' "
263263

264264
print("Running Cypress tests with command")
265-
node_options = "--max-old-space-size=5000"
266-
command = f'NO_COLOR=1 NODE_OPTIONS="{node_options}" npx cypress run {record_arg} {test_spec_arg} {tag_arg} --config numTestsKeptInMemory=0'
265+
#node_options = "--max-old-space-size=5000"
266+
#command = f'NO_COLOR=1 NODE_OPTIONS="{node_options}" npx cypress run {record_arg} {test_spec_arg} {tag_arg} --config numTestsKeptInMemory=0'
267+
268+
node_options = "--max-old-space-size=4000"
269+
electron_args = "ELECTRON_EXTRA_LAUNCH_ARGS=\"--js-flags='--max-old-space-size=9596' --disable-dev-shm-usage --disable-gpu\""
270+
command = f'{electron_args} NO_COLOR=1 NODE_OPTIONS="{node_options}" npx cypress run {record_arg} {test_spec_arg} {tag_arg}'
267271
print(command)
268272
# Add --headed --spec '**/mutations/mutations.js' (change spec name)
269273
# in case you want to see the browser for debugging

0 commit comments

Comments
 (0)