You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a space dedicated to tracking known flaky tests and systematically resolving them.
Note
Pick one, create issue if it doesn't exist and reference here via related issue
After your issue's related PR has been merged and related issue is closed on a good note. click the checkmark!
Flaky Tests
[skipped] "synchronously create a placeholder before generating the docs" Reason[1]: Promise functions start resolving as soon as they've been called. await doesn't tell a promise to start resolving but rather blocks execution only in the scope of its async function. Reason[2]: A placeholder is supposed to be generated quickly before the promise is resolved. Here, we're trying to test in between the time the placeholder is generator and when the promise with the actual data is resolved. Since there's no good mechanism to test in-between promise call and resolution, it makes this test very flaky. Hence, an error is thrown when the placeholder doesn't exist but we try doing JSON.parse(readFileSync(path, 'utf8'));
"allow a job to complete after receiving a sigterm" Reason:workerProcess.kill('SIGTERM') doesn't kill a process exactly after it has been called. It's async and may take some time to actually kill the process. Hence at times, the job gets processed before, other times not depending on computer resource available.
// give the attempt time to start, then kill the server
setTimeout(()=>{
didKill=true;
workerProcess.kill('SIGTERM');
},100);
});
});
SKIPPED
There's something failing intermittently in integration tests Log
I think it's this?
integration-tests/worker test: [worker] ✘ 29bbf427-4414-47d4-9901-b5f79aa092cc failed to send run:complete event. This run will be lost!
integration-tests/worker test: [worker] ✘ Unexpected keys: timestamp
Description
This is a space dedicated to tracking known flaky tests and systematically resolving them.
Note
Flaky Tests
Reason[1]: Promise functions start resolving as soon as they've been called.
awaitdoesn't tell a promise to start resolving but rather blocks execution only in the scope of its async function.Reason[2]: A placeholder is supposed to be generated quickly before the promise is resolved. Here, we're trying to test in between the time the placeholder is generator and when the promise with the actual data is resolved. Since there's no good mechanism to test in-between promise call and resolution, it makes this test very flaky. Hence, an error is thrown when the placeholder doesn't exist but we try doing
JSON.parse(readFileSync(path, 'utf8'));kit/packages/cli/test/docgen/handler.test.ts
Lines 137 to 157 in 7554a34
Related Issue: no issue created
Reason:
workerProcess.kill('SIGTERM')doesn't kill a process exactly after it has been called. It's async and may take some time to actually kill the process. Hence at times, the job gets processed before, other times not depending on computer resource available.kit/integration-tests/worker/test/server.test.ts
Lines 98 to 145 in 535da76
SKIPPED
I think it's this?