ci: add e2e-staging workflow for nightly staging tests - #1253
Conversation
Co-authored-by: piotr-iohk <piotr-iohk@users.noreply.github.com>
Regtest APKDownload bitkit-dev-debug universal APK (expires in 30 days). |
|
| if: always() && github.event_name != 'pull_request' && needs.e2e-tests-staging.result == 'failure' | ||
| needs: [e2e-tests-staging] |
There was a problem hiding this comment.
The notification job only observes e2e-tests-staging. If build-staging or e2e-branch fails during a scheduled or manual run, the test job is skipped and its result is skipped, so no Slack notification is sent. Include the upstream jobs in needs and alert when any required job is unsuccessful.
| if: always() && github.event_name != 'pull_request' && needs.e2e-tests-staging.result == 'failure' | |
| needs: [e2e-tests-staging] | |
| if: always() && github.event_name != 'pull_request' && (needs.build-staging.result != 'success' || needs.e2e-branch.result != 'success' || needs.e2e-tests-staging.result != 'success') | |
| needs: [build-staging, e2e-branch, e2e-tests-staging] |
| pull_request: | ||
| types: [opened, synchronize, reopened, ready_for_review] |
There was a problem hiding this comment.
Pull Requests Duplicate Shards
This unrestricted trigger runs the new workflow on every future pull request. Because e2e.yml still runs the same multi-address, Pubky, and hardware-wallet shards, each PR will launch those expensive emulator jobs twice. Remove or explicitly scope this trigger if it was only intended to self-test this PR.
| pull_request: | |
| types: [opened, synchronize, reopened, ready_for_review] |
Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!
Fixes synonymdev/bitkit-e2e-tests#221 (PR A — android)
Description
Adds a new workflow
.github/workflows/e2e-staging.ymlthat runs staging E2E tests:Triggers:
schedule: runs daily at 04:00 UTC (after migration cron at 02:00)workflow_dispatch: manual dispatch withe2e_branchinput (same shape as existinge2e.yml)pull_request: self-tests on this PRStaging shards (moved from
e2e.yml):@multi_address_2@pubky@hardware_wallet@transfer_1|@transfer_max(new per issue — HW full path / channel assert stays on staging)Build: Uses
BACKEND=regtestwithTREZOR_BRIDGE: truematching existing staging build configSlack: Notifies
#bitkit-staging-nightlyviasecrets.SLACK_WEBHOOK_URL_STAGINGon failure (only for scheduled/manual runs, not PRs)The existing
e2e.ymlworkflow remains unchanged — thee2e-statusmerge gate is unaffected.Design
N/A — no UI changes.
Preview
N/A
QA Notes
To dispatch after merge:
The workflow will also run automatically on this PR to self-test, and nightly at 04:00 UTC after merge.