From a69ac48b97237c1227f8612e84f9eb68b084dc7b Mon Sep 17 00:00:00 2001 From: kukkok3 <93382903+kukkok3@users.noreply.github.com> Date: Thu, 16 Jan 2025 10:30:08 +0100 Subject: [PATCH 1/2] chore: migrate nightly ci to forge --- .github/workflows/nightly-ci.yml | 58 +++++++++++++------------------- 1 file changed, 24 insertions(+), 34 deletions(-) diff --git a/.github/workflows/nightly-ci.yml b/.github/workflows/nightly-ci.yml index 99f04704940..493fdcb08b9 100644 --- a/.github/workflows/nightly-ci.yml +++ b/.github/workflows/nightly-ci.yml @@ -5,7 +5,6 @@ on: - cron: '0 0 * * *' # Runs every day at 00:00 workflow_dispatch: - permissions: id-token: write contents: write @@ -16,26 +15,15 @@ concurrency: cancel-in-progress: true env: - AWS_REGION: eu-central-1 - AWS_ROLE_ARN: arn:aws:iam::332405224602:role/ci - EARTHLY_TARGET: docker - ECR_REGISTRY: 332405224602.dkr.ecr.eu-central-1.amazonaws.com REPORT_EXT: .junit-report.xml ALLURE_REPORT_PATH: nightly-allure-report jobs: ci_nightly: - uses: input-output-hk/catalyst-ci/.github/workflows/ci.yml@master + uses: input-output-hk/catalyst-forge/.github/workflows/ci.yml@ci/v1.5.1 with: - aws_ecr_registry: 332405224602.dkr.ecr.eu-central-1.amazonaws.com - aws_role_arn: arn:aws:iam::332405224602:role/ci - aws_region: eu-central-1 + forge_version: 0.8.0 nightly: true - secrets: - dockerhub_token: ${{ secrets.DOCKERHUB_TOKEN }} - dockerhub_username: ${{ secrets.DOCKERHUB_USERNAME }} - earthly_runner_address: ${{ secrets.EARTHLY_SATELLITE_ADDRESS }} - earthly_runner_secret: ${{ secrets.EARTHLY_RUNNER_SECRET }} generate-test-reports: name: Generate test reports @@ -43,36 +31,38 @@ jobs: steps: - uses: actions/checkout@v4 - - name: Setup CI - uses: input-output-hk/catalyst-ci/actions/setup@master + - name: Install Forge + uses: input-output-hk/catalyst-forge/actions/install@ci/v1.5.3 with: - aws_role_arn: ${{ env.AWS_ROLE_ARN }} - aws_region: ${{ env.AWS_REGION }} - earthly_runner_secret: ${{ secrets.EARTHLY_RUNNER_SECRET }} + version: 0.8.0 + if: always() + + - name: Setup CI + uses: input-output-hk/catalyst-forge/actions/setup@ci/v1.5.3 - name: Get python api test report - uses: input-output-hk/catalyst-ci/actions/run@master + uses: input-output-hk/catalyst-forge/actions/run@ci/v1.5.3 if: always() continue-on-error: true with: - earthfile: ./catalyst-gateway/tests/api_tests/ - flags: --allow-privileged - targets: nightly-test - target_flags: - runner_address: ${{ secrets.EARTHLY_SATELLITE_ADDRESS }} - artifact: "false" + command: run + args: ./catalyst-gateway/tests/api_tests+nightly-test - name: Get cardano wallet integration test report - uses: input-output-hk/catalyst-ci/actions/run@master + uses: input-output-hk/catalyst-forge/actions/run@ci/v1.5.3 if: always() continue-on-error: true with: - earthfile: ./catalyst_voices/packages/libs/catalyst_cardano/catalyst_cardano/wallet-automation/ - flags: --allow-privileged - targets: nightly-test - target_flags: - runner_address: ${{ secrets.EARTHLY_SATELLITE_ADDRESS }} - artifact: "false" + command: run + args: ./catalyst_voices/packages/libs/catalyst_cardano/catalyst_cardano/wallet-automation+nightly-test + + - name: Get schemathesis test report + uses: input-output-hk/catalyst-forge/actions/run@ci/v1.5.3 + if: always() + continue-on-error: true + with: + command: run + args: ./catalyst-gateway/tests/schemathesis_tests+nightly+test-fuzzer-api - name: Collect and upload test reports uses: actions/upload-artifact@v4 @@ -118,7 +108,7 @@ jobs: repository: gh-pages-dir branch: gh-pages pull_args: --rebase -X ours - + - name: Send Slack notification if: ${{ always() && steps.allure.outputs.report_url }} uses: slackapi/slack-github-action@v2.0.0 From 94360601233d06bd704cbe0790b5cdd20793590a Mon Sep 17 00:00:00 2001 From: kukkok3 <93382903+kukkok3@users.noreply.github.com> Date: Thu, 16 Jan 2025 10:32:13 +0100 Subject: [PATCH 2/2] chore: adds blueprint.cue --- .../catalyst_cardano/wallet-automation/blueprint.cue | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/catalyst_voices/packages/libs/catalyst_cardano/catalyst_cardano/wallet-automation/blueprint.cue b/catalyst_voices/packages/libs/catalyst_cardano/catalyst_cardano/wallet-automation/blueprint.cue index cb4463fa634..0ef883a1681 100644 --- a/catalyst_voices/packages/libs/catalyst_cardano/catalyst_cardano/wallet-automation/blueprint.cue +++ b/catalyst_voices/packages/libs/catalyst_cardano/catalyst_cardano/wallet-automation/blueprint.cue @@ -1,2 +1,9 @@ version: "1.0.0" -project: name: "voices-wallet-automation-test" +project: { + name: "voices-wallet-automation-test" + ci: { + targets: { + "nightly-test": privileged: true + } + } +}