-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
A0-3735: Add featurenet test automation (#1553)
# Description This PR * changes update net test scenario (Mainnet -> `main`) to be Mainnet -> Testnet * splits update net tests into two workflow for readability * adds three weekly workflows that tests featurenets internals. They will be migrated to different repo at some point. ## Type of change Please delete options that are not relevant. - New feature (non-breaking change which adds functionality) ## Testing Links updated after rework 34eb77c * [Weekly test featurenets create (short session, branch)](https://github.com/Cardinal-Cryptography/aleph-node/actions/runs/7287465811) * [Weekly test featurenets create (short session, tag)](https://github.com/Cardinal-Cryptography/aleph-node/actions/runs/7287465807) * [Weekly test featurenets create (short session, full sha)](https://github.com/Cardinal-Cryptography/aleph-node/actions/runs/7287465816) * [Nightly update net test from Testnet to main](https://github.com/Cardinal-Cryptography/aleph-node/actions/runs/7287465815) * [Nightly update net test from Mainnet to Testnet](https://github.com/Cardinal-Cryptography/aleph-node/actions/runs/7287465809)
- Loading branch information
1 parent
787c391
commit a028091
Showing
9 changed files
with
377 additions
and
192 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
--- | ||
# This workflow performs from Mainnet to Testnet update. | ||
# Test means that net starts from plain (empty) aleph-node chain, bootstraped using starting | ||
# node image, and then performs rolling restart to target node image | ||
# What this test validates are changes in finalization area to aleph-node binary | ||
|
||
name: Nightly update net test from Mainnet to Testnet | ||
on: | ||
workflow_dispatch: | ||
# Daily at 02:00 | ||
schedule: | ||
- cron: '00 02 * * *' | ||
|
||
concurrency: | ||
group: ${{ github.ref }}-${{ github.workflow }} | ||
cancel-in-progress: false | ||
|
||
jobs: | ||
check-vars-and-secrets: | ||
name: Check vars and secrets | ||
uses: ./.github/workflows/_check-vars-and-secrets.yml | ||
secrets: inherit | ||
|
||
create-featurenet-from-mainnet: | ||
needs: [check-vars-and-secrets] | ||
name: Create featurenet from mainnet | ||
uses: ./.github/workflows/featurenet-create.yml | ||
secrets: inherit | ||
with: | ||
featurenet-name: 'ops-updatenet-mainnet' | ||
ref: 'mainnet' | ||
expiration: '4h' | ||
validators: '7' | ||
internal: true | ||
short-session: false | ||
|
||
update-featurenet-to-testnet: | ||
needs: [create-featurenet-from-mainnet] | ||
name: Update featurenet to Testnet | ||
uses: ./.github/workflows/featurenet-update.yml | ||
secrets: inherit | ||
with: | ||
featurenet-name: 'ops-updatenet-mainnet' | ||
ref: 'testnet' | ||
rolling-update-partition: '0' | ||
short-session: false | ||
|
||
delete-featurenet: | ||
if: ${{ always() }} | ||
needs: [update-featurenet-to-testnet] | ||
name: Delete featurenet | ||
uses: ./.github/workflows/featurenet-delete.yml | ||
secrets: inherit | ||
with: | ||
featurenet-name: 'ops-updatenet-mainnet' | ||
|
||
slack-notification: | ||
name: Slack notification | ||
runs-on: ubuntu-20.04 | ||
needs: [delete-featurenet] | ||
if: > | ||
!cancelled() && | ||
github.event_name != 'workflow_dispatch' | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Send Slack message | ||
uses: ./.github/actions/slack-notification | ||
with: | ||
notify-on: "failure" | ||
env: | ||
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK_DEV_ONDUTY }} |
Oops, something went wrong.