Random failing issues during the `gui tests`
Quite regularly the gui test fails. As a workaround, we can restart the job and hope it will pass. Here is the summary of a failed test:
Summary of all failing tests
FAIL src/components/uploads/UploadPage.spec.js (354.586 s)
● Delete selected entries from table
thrown: "Exceeded timeout of 120000 ms for a test.
Use jest.setTimeout(newTimeout) to increase the timeout value, if this is a long-running test."
252 | })
253 |
> 254 | test('Delete selected entries from table', async () => {
| ^
255 | await startAPI('tests.states.uploads.multiple_entries', 'tests/data/uploads/delete_entries_from_table', 'test', 'password')
256 | render(<UploadPage uploadId="dft_upload_1"/>)
257 |
at Object.<anonymous> (src/components/uploads/UploadPage.spec.js:254:1)
Test Suites: 1 failed, 25 passed, 26 total
Tests: 1 failed, 285 passed, 286 total
Snapshots: 0 total
Time: 2822.837 s
error Command failed with exit code 1.
There is another error message earlier in the log which might be the source of the actual problem:
FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory
Note: The tests' running time (54 minutes 1 second) is actually very close to the hard timeout limit (1h)