Update the js tests action to retry it up to 3 times if tests fail for the first time #10203
Labels
Good First Issue
Good first issue for new engineers
P2
Low priority
QA: Eng
Requires specialized QA by an engineer
Type: Infrastructure
Engineering infrastructure & tooling
Feature Description
Our js tests tend to fail on a random basis caused by some sporadic timeouts that is hard to troubleshoot and fix. We need to repeat failed tests on failure to increase the chance of passing js tests without a need to manually restart it.
Do not alter or remove anything below. The following sections will be managed by moderators only.
Acceptance criteria
Implementation Brief
site-kit-wp/.github/workflows/js-css-lint-test.yml
Lines 75 to 76 in 370ca1c
run
commanduses: nick-fields/retry@v3
with the following properties (docs):max_attempts: 3
timeout_minutes: 15
command: "npm run test:js"
retry_on: error
retry_wait_seconds: 0
new_command_on_retry: "npm run test:js -- --onlyFailures"
Test Coverage
QA Brief
Changelog entry
The text was updated successfully, but these errors were encountered: