Skip to content

Commit

Permalink
Test: retry build on fail (rework) (#5822)
Browse files Browse the repository at this point in the history
reworking retry logic for build failures

### QA Notes

All tests should pass.  Failed builds should retry
  • Loading branch information
testlabauto authored Dec 18, 2024
1 parent 1f8a3f7 commit 381d39b
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 10 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/test-e2e-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,20 +86,22 @@ jobs:
uses: ./.github/actions/cache-multi-paths

- name: Attempt 1 - Setup Build and Compile
id: attempt1
uses: ./.github/actions/setup-build-env
continue-on-error: true

- name: Attempt 2 - Setup Build and Compile
if: ${{ failure() }}
if: ${{ steps.attempt1.outcome == 'failure' }}
id: attempt2
uses: ./.github/actions/setup-build-env
continue-on-error: true

- name: Attempt 3 - Setup Build and Compile
if: ${{ failure() }}
if: ${{ steps.attempt2.outcome == 'failure' }}
uses: ./.github/actions/setup-build-env

- name: Fail if Retries Exhausted
if: ${{ failure() }}
if: ${{ steps.attempt3.outcome == 'failure' }}
run: exit 1

- name: Install Positron License
Expand Down
8 changes: 5 additions & 3 deletions .github/workflows/test-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,20 +30,22 @@ jobs:
uses: ./.github/actions/cache-multi-paths

- name: Attempt 1 - Setup Build and Compile
id: attempt1
uses: ./.github/actions/setup-build-env
continue-on-error: true

- name: Attempt 2 - Setup Build and Compile
if: ${{ failure() }}
if: ${{ steps.attempt1.outcome == 'failure' }}
id: attempt2
uses: ./.github/actions/setup-build-env
continue-on-error: true

- name: Attempt 3 - Setup Build and Compile
if: ${{ failure() }}
if: ${{ steps.attempt2.outcome == 'failure' }}
uses: ./.github/actions/setup-build-env

- name: Fail if Retries Exhausted
if: ${{ failure() }}
if: ${{ steps.attempt3.outcome == 'failure' }}
run: exit 1

- name: Install Positron License
Expand Down
8 changes: 5 additions & 3 deletions .github/workflows/test-unit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,20 +30,22 @@ jobs:
uses: ./.github/actions/cache-multi-paths

- name: Attempt 1 - Setup Build and Compile
id: attempt1
uses: ./.github/actions/setup-build-env
continue-on-error: true

- name: Attempt 2 - Setup Build and Compile
if: ${{ failure() }}
if: ${{ steps.attempt1.outcome == 'failure' }}
id: attempt2
uses: ./.github/actions/setup-build-env
continue-on-error: true

- name: Attempt 3 - Setup Build and Compile
if: ${{ failure() }}
if: ${{ steps.attempt2.outcome == 'failure' }}
uses: ./.github/actions/setup-build-env

- name: Fail if Retries Exhausted
if: ${{ failure() }}
if: ${{ steps.attempt3.outcome == 'failure' }}
run: exit 1

- name: Install Positron License
Expand Down
2 changes: 1 addition & 1 deletion test/automation/src/positron/positronDataExplorer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export class PositronDataExplorer {
*/
async getDataExplorerTableData(): Promise<object[]> {

await this.code.driver.page.locator(IDLE_STATUS).waitFor({ state: 'visible', timeout: 60000 });
await expect(this.code.driver.page.locator(IDLE_STATUS)).toBeVisible({ timeout: 60000 });

// need a brief additional wait
await this.code.wait(1000);
Expand Down

0 comments on commit 381d39b

Please sign in to comment.