Skip to content

Commit 39e6d82

Browse files
adjust config and add logs
1 parent d40fc61 commit 39e6d82

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

smoke-test/tests/cypress/cypress/support/e2e.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,14 @@ afterEach(() => {
5151
cy.log(`Used: ${formatBytes(mem.usedJSHeapSize)}`);
5252
cy.log(`Total: ${formatBytes(mem.totalJSHeapSize)}`);
5353
cy.log(`Limit: ${formatBytes(mem.jsHeapSizeLimit)}`);
54+
55+
console.log("=== Browser Tab Memory ===");
56+
console.log(`Used: ${formatBytes(mem.usedJSHeapSize)}`);
57+
console.log(`Total: ${formatBytes(mem.totalJSHeapSize)}`);
58+
console.log(`Limit: ${formatBytes(mem.jsHeapSizeLimit)}`);
5459
} else {
5560
cy.log("Browser memory API not available");
61+
console.log("Browser memory API not available");
5662
}
5763
});
5864
});

smoke-test/tests/cypress/integration_test.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -262,8 +262,8 @@ 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=6000"
266-
electron_args = "ELECTRON_EXTRA_LAUNCH_ARGS=\"--js-flags='--max-old-space-size=4096' --disable-dev-shm-usage --disable-gpu\""
265+
node_options = "--max-old-space-size=500"
266+
electron_args = "ELECTRON_EXTRA_LAUNCH_ARGS=\"--js-flags='--max-old-space-size=9596' --disable-dev-shm-usage --disable-gpu\""
267267
command = f'{electron_args} NO_COLOR=1 NODE_OPTIONS="{node_options}" npx cypress run {record_arg} {test_spec_arg} {tag_arg} --config numTestsKeptInMemory=2'
268268
print(command)
269269
# Add --headed --spec '**/mutations/mutations.js' (change spec name)

0 commit comments

Comments
 (0)