Skip to content

Commit

Permalink
retry e2e tests on beefier runners
Browse files Browse the repository at this point in the history
  • Loading branch information
iethree committed Jun 28, 2023
1 parent 7c94ccc commit 7932b6f
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 2 deletions.
19 changes: 17 additions & 2 deletions .github/workflows/e2e-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,13 +64,28 @@ jobs:
- name: Prepare uberjar artifact
uses: ./.github/actions/prepare-uberjar-artifact

determine_runner:
runs-on: ubuntu-latest
outputs:
runner: ${{ steps.determine_runner.outputs.runner }}
steps:
- name: Determine runner
id: determine_runner
run: |
echo "run attempt: ${{ github.event.workflow_run.run_attempt}}"
if [ ${{ github.event.workflow_run.run_attempt || 0 }} -gt 1 ]; then
echo "runner=buildjet-4vcpu-ubuntu-2204" >> $GITHUB_OUTPUT
else
echo "runner=ubuntu-latest" >> $GITHUB_OUTPUT
fi
e2e-tests:
needs: [build, files-changed, test-run-id]
needs: [build, files-changed, test-run-id, determine_runner]
if: |
always() &&
needs.files-changed.outputs.e2e_all == 'true' &&
needs.build.result == 'success'
runs-on: ubuntu-22.04
runs-on: ${{ needs.determine_runner.outputs.runner }}
timeout-minutes: 90
name: e2e-tests-${{ matrix.folder }}${{ matrix.context }}-${{ matrix.edition }}
env:
Expand Down
3 changes: 3 additions & 0 deletions e2e/test/scenarios/models/models.cy.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,9 @@ describe("scenarios > models", () => {
cy.findByText("Raw Data").click();
cy.findByText("Sample Database").click(); // go back to db list
cy.findByText("Saved Questions").should("not.exist");

cy.findByText("Great Balls of Fire").should("be.visible"); // FIXME

testDataPickerSearch({
inputPlaceholderText: "Search for a table…",
query: "Ord",
Expand Down

0 comments on commit 7932b6f

Please sign in to comment.