-
Notifications
You must be signed in to change notification settings - Fork 4
ci: fall back if e2e clone branch is gone #767
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
ddda379
ad2d4fd
6ed7db4
07f3647
f210253
2861716
d7a6e9e
d8468dd
3604e79
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -157,17 +157,19 @@ jobs: | |
| name: e2e-tests-local - ${{ matrix.shard.name }} | ||
|
|
||
| steps: | ||
| - name: Show selected E2E branch | ||
| env: | ||
| E2E_BRANCH: ${{ needs.e2e-branch.outputs.branch }} | ||
| run: echo $E2E_BRANCH | ||
| - name: Resolve E2E tests ref | ||
| id: e2e-ref | ||
| uses: synonymdev/bitkit-e2e-tests/.github/actions/resolve-e2e-ref@main | ||
|
piotr-iohk marked this conversation as resolved.
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. [P2] Distinguish a missing ref from transport failures. The referenced action runs
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Addressed in synonymdev/bitkit-e2e-tests#254. |
||
| with: | ||
| selected: ${{ needs.e2e-branch.outputs.branch }} | ||
| e2e_branch_input: ${{ github.event.inputs.e2e_branch || 'default-feature-branch' }} | ||
|
|
||
| - name: Clone E2E tests | ||
| uses: actions/checkout@v7 | ||
| with: | ||
| repository: synonymdev/bitkit-e2e-tests | ||
| path: bitkit-e2e-tests | ||
| ref: ${{ needs.e2e-branch.outputs.branch }} | ||
| ref: ${{ steps.e2e-ref.outputs.ref }} | ||
|
|
||
| - name: Download iOS app | ||
| uses: actions/download-artifact@v8 | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -123,10 +123,24 @@ jobs: | |
| app_branch: ${{ github.head_ref || github.ref_name }} | ||
| e2e_branch_input: ${{ github.event.inputs.e2e_branch || 'default-feature-branch' }} | ||
|
|
||
| resolve-e2e-ref: | ||
| if: github.event_name != 'pull_request' || (github.event.pull_request.draft == false && (startsWith(github.head_ref, 'release-') || startsWith(github.base_ref, 'release-'))) | ||
| needs: [e2e-branch] | ||
| runs-on: ubuntu-latest | ||
| outputs: | ||
| ref: ${{ steps.e2e-ref.outputs.ref }} | ||
| steps: | ||
| - name: Resolve E2E tests ref | ||
| id: e2e-ref | ||
| uses: synonymdev/bitkit-e2e-tests/.github/actions/resolve-e2e-ref@main | ||
| with: | ||
| selected: ${{ needs.e2e-branch.outputs.branch }} | ||
| e2e_branch_input: ${{ github.event.inputs.e2e_branch || 'default-feature-branch' }} | ||
|
|
||
| prepare-wallets: | ||
| if: github.event_name != 'pull_request' || (github.event.pull_request.draft == false && (startsWith(github.head_ref, 'release-') || startsWith(github.base_ref, 'release-'))) | ||
| uses: synonymdev/bitkit-e2e-tests/.github/workflows/migration-wallet-setup.yml@main | ||
| needs: [e2e-branch] | ||
| needs: [e2e-branch, resolve-e2e-ref] | ||
| strategy: | ||
| fail-fast: false | ||
| matrix: | ||
|
|
@@ -138,7 +152,7 @@ jobs: | |
| - { name: migration_3-with-passphrase, setup_type: passphrase } | ||
| - { name: migration_4-with-sweep, setup_type: sweep } | ||
| with: | ||
| e2e_branch: ${{ needs.e2e-branch.outputs.branch }} | ||
| e2e_branch: ${{ needs.resolve-e2e-ref.outputs.ref }} | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. [P2] Resolve the ref inside the migration wallet setup workflow. This value comes from a separate successful
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Addressed in synonymdev/bitkit-e2e-tests#254: |
||
| rn_version: ${{ matrix.rn_version }} | ||
| setup_type: ${{ matrix.scenario.setup_type }} | ||
| scenario_name: ${{ matrix.scenario.name }} | ||
|
|
@@ -165,17 +179,19 @@ jobs: | |
| BACKEND: regtest | ||
|
|
||
| steps: | ||
| - name: Show selected E2E branch | ||
| env: | ||
| E2E_BRANCH: ${{ needs.e2e-branch.outputs.branch }} | ||
| run: echo $E2E_BRANCH | ||
| - name: Resolve E2E tests ref | ||
| id: e2e-ref | ||
| uses: synonymdev/bitkit-e2e-tests/.github/actions/resolve-e2e-ref@main | ||
| with: | ||
| selected: ${{ needs.e2e-branch.outputs.branch }} | ||
| e2e_branch_input: ${{ github.event.inputs.e2e_branch || 'default-feature-branch' }} | ||
|
|
||
| - name: Clone E2E tests | ||
| uses: actions/checkout@v7 | ||
| with: | ||
| repository: synonymdev/bitkit-e2e-tests | ||
| path: bitkit-e2e-tests | ||
| ref: ${{ needs.e2e-branch.outputs.branch }} | ||
| ref: ${{ steps.e2e-ref.outputs.ref }} | ||
|
|
||
| - name: Download iOS app | ||
| uses: actions/download-artifact@v8 | ||
|
|
@@ -336,11 +352,18 @@ jobs: | |
| runs-on: ubuntu-latest | ||
| needs: [build, e2e-branch, prepare-wallets, e2e-tests] | ||
| steps: | ||
| - name: Resolve E2E tests ref | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same as the |
||
| id: e2e-ref | ||
| uses: synonymdev/bitkit-e2e-tests/.github/actions/resolve-e2e-ref@main | ||
| with: | ||
| selected: ${{ needs.e2e-branch.outputs.branch }} | ||
| e2e_branch_input: ${{ github.event.inputs.e2e_branch || 'default-feature-branch' }} | ||
|
|
||
| - name: Checkout E2E tests | ||
| uses: actions/checkout@v7 | ||
| with: | ||
| repository: synonymdev/bitkit-e2e-tests | ||
| ref: ${{ needs.e2e-branch.outputs.branch }} | ||
| ref: ${{ steps.e2e-ref.outputs.ref }} | ||
|
|
||
| - name: Post Slack summary | ||
| env: | ||
|
|
@@ -353,5 +376,5 @@ jobs: | |
| E2E_TESTS_RESULT: ${{ needs.e2e-tests.result }} | ||
| RUN_URL: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }} | ||
| RUN_ATTEMPT: ${{ github.run_attempt }} | ||
| E2E_TESTS_REF: ${{ needs.e2e-branch.outputs.branch }} | ||
| E2E_TESTS_REF: ${{ steps.e2e-ref.outputs.ref }} | ||
| run: python3 scripts/slack_summary.py e2e-migration | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One failed lookup here drops the nightly Slack summary. This applies once synonymdev/bitkit-e2e-tests#254 lands.
slack-reportruns underalways(). After #254, the resolver exits 1 on anygit ls-remotestatus other than 2. A single DNS, auth or 5xx blip in this reporting job therefore fails this step.Checkout E2E testsandPost Slack summaryhave noif: always(), so both are skipped and nothing is posted, including on nights when shards failed. Before this PR the job depended only onactions/checkout, which retries its fetch.E2E_TESTS_REFalso becomes this job's own re-resolution, not the ref the shards ran on. It diverges if the companion branch is deleted between the shards and the report.Fix: set
continue-on-error: trueon this step and useref: ${{ steps.e2e-ref.outputs.ref || 'main' }}, or keepneeds.e2e-branch.outputs.branchin the reporting job. The shard-level fail-closed behaviour is unaffected either way.