From 4fcbb1c9ccc612c211bea0bdef180c23f8fe797c Mon Sep 17 00:00:00 2001 From: Hubert Bugaj Date: Thu, 10 Jul 2025 14:35:09 +0200 Subject: [PATCH 1/4] chore(ci): fmt yaml files --- .github/workflows/scripts-lint.yml | 10 ++++++++++ package.json | 4 +++- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/.github/workflows/scripts-lint.yml b/.github/workflows/scripts-lint.yml index 57668b00467d..d4c5029a9245 100644 --- a/.github/workflows/scripts-lint.yml +++ b/.github/workflows/scripts-lint.yml @@ -71,3 +71,13 @@ jobs: # https://github.com/hadolint/hadolint/wiki/DL3008 # https://github.com/hadolint/hadolint/wiki/DL3018 ignore: DL3008,DL3018 + yaml-lint: + runs-on: ubuntu-24.04-arm + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: "18" + - run: corepack enable + - run: yarn --immutable + - run: yarn yaml-check diff --git a/package.json b/package.json index e1df0036d6fe..700511c4aa7d 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,9 @@ "scripts": { "prettier-version": "prettier --version", "md-fmt": "prettier --write '**/*.md'", - "md-check": "prettier --check '**/*.md'" + "md-check": "prettier --check '**/*.md'", + "yaml-fmt": "prettier --write '**/*.{yml,yaml}'", + "yaml-check": "prettier --check '**/*.{yml,yaml}'" }, "packageManager": "yarn@4.9.2" } From f057de03741dc1a04e190ddf2a9a21c87f5da1e7 Mon Sep 17 00:00:00 2001 From: Hubert Bugaj Date: Thu, 10 Jul 2025 14:37:25 +0200 Subject: [PATCH 2/4] fix yaml formatting --- .github/ISSUE_TEMPLATE/config.yml | 18 +-- .github/dependabot.yml | 2 +- .github/workflows/curio-devnet-publish.yml | 1 - .github/workflows/docker-latest-tag.yml | 6 +- .github/workflows/docker.yml | 28 ++-- .github/workflows/dockerfile-check.yml | 2 +- .github/workflows/docs-check.yml | 12 +- .github/workflows/docs-deploy.yml | 8 +- .github/workflows/docs-required-override.yml | 16 +-- .github/workflows/forest.yml | 126 +++++++++--------- .github/workflows/lotus-devnet-publish.yml | 1 - .github/workflows/release_dispatch.yml | 2 +- .github/workflows/rpc_test_repeat.yml | 6 +- .github/workflows/rust-lint.yml | 12 +- .github/workflows/scripts-lint.yml | 4 +- .../provisioning/dashboards/dashboard.yml | 16 +-- monitored-stack/prometheus/prometheus.yml | 4 +- scripts/devnet-curio/docker-compose.yml | 23 ++-- scripts/devnet/docker-compose.yml | 16 +-- scripts/tests/api_compare/docker-compose.yml | 32 ++--- .../bootstrapper/docker-compose-forest.yml | 16 +-- .../bootstrapper/docker-compose-lotus.yml | 14 +- 22 files changed, 184 insertions(+), 181 deletions(-) diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.yml index 8220a211cc06..985a5c4ffb18 100644 --- a/.github/ISSUE_TEMPLATE/config.yml +++ b/.github/ISSUE_TEMPLATE/config.yml @@ -1,11 +1,11 @@ blank_issues_enabled: true contact_links: - - name: "Filecoin Slack (#fil-forest-help or #fil-forest-dev)" - url: https://join.slack.com/t/filecoinproject/shared_invite/enQtNTUwNTI1Mzk5MDYwLTY4YmFjMzRlZjFiNDc0NmI2N2JjMjk5YTAyMDUyODljODg3MGI0ZGRhZTI5ZDNkZTAyNjkyMzI1ODM1YjA1MWI - about: Please ask questions here. - - name: General Filecoin Discussion Forum - url: https://github.com/filecoin-project/community/discussions - about: Please ask any general Filecoin questions here. - - name: Forest Discussion Forum - url: https://github.com/ChainSafe/forest/discussions - about: Please ask Forest specific questions here. + - name: "Filecoin Slack (#fil-forest-help or #fil-forest-dev)" + url: https://join.slack.com/t/filecoinproject/shared_invite/enQtNTUwNTI1Mzk5MDYwLTY4YmFjMzRlZjFiNDc0NmI2N2JjMjk5YTAyMDUyODljODg3MGI0ZGRhZTI5ZDNkZTAyNjkyMzI1ODM1YjA1MWI + about: Please ask questions here. + - name: General Filecoin Discussion Forum + url: https://github.com/filecoin-project/community/discussions + about: Please ask any general Filecoin questions here. + - name: Forest Discussion Forum + url: https://github.com/ChainSafe/forest/discussions + about: Please ask Forest specific questions here. diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 4326c228a7b4..11b8206f61fd 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -49,4 +49,4 @@ updates: groups: patch-versions: update-types: - - "patch" \ No newline at end of file + - "patch" diff --git a/.github/workflows/curio-devnet-publish.yml b/.github/workflows/curio-devnet-publish.yml index f50e5bd95fb7..1d38ddaaf238 100644 --- a/.github/workflows/curio-devnet-publish.yml +++ b/.github/workflows/curio-devnet-publish.yml @@ -55,4 +55,3 @@ jobs: push: true - name: List docker images run: docker image ls - diff --git a/.github/workflows/docker-latest-tag.yml b/.github/workflows/docker-latest-tag.yml index 3ca4e2479dc2..fd8339251643 100644 --- a/.github/workflows/docker-latest-tag.yml +++ b/.github/workflows/docker-latest-tag.yml @@ -6,12 +6,12 @@ on: workflow_dispatch: inputs: tag: - description: 'Tag of the base image to use' + description: "Tag of the base image to use" required: true type: string new_tag: - description: 'New tag to use' - default: 'latest' + description: "New tag to use" + default: "latest" required: true type: string dry_run: diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 49443cdbe286..7158a2efed87 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -11,24 +11,24 @@ on: tags: - "*" paths-ignore: - - 'docs/**' - - '.github/workflows/docs-*.yml' + - "docs/**" + - ".github/workflows/docs-*.yml" merge_group: pull_request: # This needs to be declared explicitly so that the job is actually # run when moved out of draft. types: [opened, synchronize, reopened, ready_for_review] paths-ignore: - - 'docs/**' - - '.github/workflows/docs-*.yml' + - "docs/**" + - ".github/workflows/docs-*.yml" env: CI: 1 CARGO_INCREMENTAL: 0 CACHE_TIMEOUT_MINUTES: 5 SCRIPT_TIMEOUT_MINUTES: 30 - AWS_ACCESS_KEY_ID: '${{ secrets.AWS_ACCESS_KEY_ID }}' - AWS_SECRET_ACCESS_KEY: '${{ secrets.AWS_SECRET_ACCESS_KEY }}' + AWS_ACCESS_KEY_ID: "${{ secrets.AWS_ACCESS_KEY_ID }}" + AWS_SECRET_ACCESS_KEY: "${{ secrets.AWS_SECRET_ACCESS_KEY }}" RUSTC_WRAPPER: sccache CC: sccache clang CXX: sccache clang++ @@ -57,7 +57,7 @@ jobs: uses: actions/checkout@v4 - name: Setup sccache uses: mozilla-actions/sccache-action@v0.0.9 - timeout-minutes: '${{ fromJSON(env.CACHE_TIMEOUT_MINUTES) }}' + timeout-minutes: "${{ fromJSON(env.CACHE_TIMEOUT_MINUTES) }}" continue-on-error: true - uses: actions/setup-go@v5 with: @@ -69,11 +69,11 @@ jobs: run: make install - uses: actions/upload-artifact@v4 with: - name: 'forest-linux-amd64' + name: "forest-linux-amd64" path: | ~/.cargo/bin/forest* if-no-files-found: error - + build-ubuntu-arm64: name: Build forest binaries on Ubuntu ARM64 runs-on: ubuntu-24.04-arm @@ -102,7 +102,7 @@ jobs: - name: Setup sccache uses: mozilla-actions/sccache-action@v0.0.9 if: github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/v') - timeout-minutes: '${{ fromJSON(env.CACHE_TIMEOUT_MINUTES) }}' + timeout-minutes: "${{ fromJSON(env.CACHE_TIMEOUT_MINUTES) }}" continue-on-error: true - uses: actions/setup-go@v5 if: github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/v') @@ -114,7 +114,7 @@ jobs: - uses: actions/upload-artifact@v4 if: github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/v') with: - name: 'forest-linux-arm64' + name: "forest-linux-arm64" path: | ~/.cargo/bin/forest* if-no-files-found: error @@ -138,14 +138,14 @@ jobs: - uses: actions/download-artifact@v4 with: - name: 'forest-linux-amd64' + name: "forest-linux-amd64" path: /tmp/forest/forest-linux-amd64 - uses: actions/download-artifact@v4 # Compile Docker image only for AMD64 for a regular PR to save some CI time. if: github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/v') with: - name: 'forest-linux-arm64' + name: "forest-linux-arm64" path: /tmp/forest/forest-linux-arm64 - name: Set up Docker Buildx @@ -182,7 +182,7 @@ jobs: type=raw,value={{date 'YYYY-MM-DD'}}-{{sha}} type=ref,event=tag type=edge - + - name: Build fat image and push to GitHub Container Registry uses: docker/build-push-action@v6 with: diff --git a/.github/workflows/dockerfile-check.yml b/.github/workflows/dockerfile-check.yml index 642ca9563cc0..3c286e88bfd9 100644 --- a/.github/workflows/dockerfile-check.yml +++ b/.github/workflows/dockerfile-check.yml @@ -5,7 +5,7 @@ on: workflow_dispatch: schedule: # Run every Sunday at midnight - - cron: '0 0 * * 0' + - cron: "0 0 * * 0" jobs: docker-check: diff --git a/.github/workflows/docs-check.yml b/.github/workflows/docs-check.yml index 4dd1fe1724ee..e72d33b23d84 100644 --- a/.github/workflows/docs-check.yml +++ b/.github/workflows/docs-check.yml @@ -10,17 +10,17 @@ on: branches: - main paths: - - '**.md' - - 'docs/**' - - '.github/workflows/docs-check.yml' + - "**.md" + - "docs/**" + - ".github/workflows/docs-check.yml" merge_group: pull_request: branches: - main paths: - - '**.md' - - 'docs/**' - - '.github/workflows/docs-check.yml' + - "**.md" + - "docs/**" + - ".github/workflows/docs-check.yml" jobs: docs-check: diff --git a/.github/workflows/docs-deploy.yml b/.github/workflows/docs-deploy.yml index 2b4774b0115d..415a5e8e7a33 100644 --- a/.github/workflows/docs-deploy.yml +++ b/.github/workflows/docs-deploy.yml @@ -5,15 +5,15 @@ on: branches: - main paths: - - 'docs/**' - - '.github/workflows/docs-deploy.yml' + - "docs/**" + - ".github/workflows/docs-deploy.yml" merge_group: pull_request: branches: - main paths: - - 'docs/**' - - '.github/workflows/docs-deploy.yml' + - "docs/**" + - ".github/workflows/docs-deploy.yml" permissions: contents: read diff --git a/.github/workflows/docs-required-override.yml b/.github/workflows/docs-required-override.yml index 7a23f8687a6b..e4337d5aa92e 100644 --- a/.github/workflows/docs-required-override.yml +++ b/.github/workflows/docs-required-override.yml @@ -3,8 +3,8 @@ name: Docs Required Override concurrency: - group: '${{ github.workflow }}-${{ github.ref }}' - cancel-in-progress: '${{ github.ref != ''refs/heads/main'' }}' + group: "${{ github.workflow }}-${{ github.ref }}" + cancel-in-progress: "${{ github.ref != 'refs/heads/main' }}" on: workflow_dispatch: @@ -13,16 +13,16 @@ on: branches: - main paths: - - '**.md' - - 'docs/**' - - '.github/workflows/docs-*.yml' + - "**.md" + - "docs/**" + - ".github/workflows/docs-*.yml" push: branches: - main paths: - - '**.md' - - 'docs/**' - - '.github/workflows/docs-*.yml' + - "**.md" + - "docs/**" + - ".github/workflows/docs-*.yml" jobs: # We need this because merge groups dont support path filters diff --git a/.github/workflows/forest.yml b/.github/workflows/forest.yml index eaafcfd96c72..f1515970cfd0 100644 --- a/.github/workflows/forest.yml +++ b/.github/workflows/forest.yml @@ -1,7 +1,7 @@ name: Integration tests concurrency: - group: '${{ github.workflow }}-${{ github.ref }}' - cancel-in-progress: '${{ github.ref != ''refs/heads/main'' }}' + group: "${{ github.workflow }}-${{ github.ref }}" + cancel-in-progress: "${{ github.ref != 'refs/heads/main' }}" on: workflow_dispatch: merge_group: @@ -12,22 +12,22 @@ on: # run when PR is labeled. types: [opened, synchronize, reopened, labeled, unlabeled] paths-ignore: - - 'docs/**' - - '.github/workflows/docs-*.yml' + - "docs/**" + - ".github/workflows/docs-*.yml" push: branches: - main paths-ignore: - - 'docs/**' - - '.github/workflows/docs-*.yml' + - "docs/**" + - ".github/workflows/docs-*.yml" env: CI: 1 CARGO_INCREMENTAL: 0 CACHE_TIMEOUT_MINUTES: 5 SCRIPT_TIMEOUT_MINUTES: 30 - AWS_ACCESS_KEY_ID: '${{ secrets.AWS_ACCESS_KEY_ID }}' - AWS_SECRET_ACCESS_KEY: '${{ secrets.AWS_SECRET_ACCESS_KEY }}' + AWS_ACCESS_KEY_ID: "${{ secrets.AWS_ACCESS_KEY_ID }}" + AWS_SECRET_ACCESS_KEY: "${{ secrets.AWS_SECRET_ACCESS_KEY }}" RUSTC_WRAPPER: sccache CC: sccache clang CXX: sccache clang++ @@ -51,7 +51,7 @@ jobs: uses: actions/checkout@v4 - name: Setup sccache uses: mozilla-actions/sccache-action@v0.0.9 - timeout-minutes: '${{ fromJSON(env.CACHE_TIMEOUT_MINUTES) }}' + timeout-minutes: "${{ fromJSON(env.CACHE_TIMEOUT_MINUTES) }}" continue-on-error: true - uses: actions/setup-go@v5 with: @@ -78,7 +78,7 @@ jobs: uses: actions/checkout@v4 - name: Setup sccache uses: mozilla-actions/sccache-action@v0.0.9 - timeout-minutes: '${{ fromJSON(env.CACHE_TIMEOUT_MINUTES) }}' + timeout-minutes: "${{ fromJSON(env.CACHE_TIMEOUT_MINUTES) }}" continue-on-error: true - uses: actions/setup-go@v5 with: @@ -90,7 +90,7 @@ jobs: run: make install-slim-quick - uses: actions/upload-artifact@v4 with: - name: 'forest-${{ runner.os }}' + name: "forest-${{ runner.os }}" path: | ~/.cargo/bin/forest* if-no-files-found: error @@ -101,7 +101,7 @@ jobs: uses: actions/checkout@v4 - name: Setup sccache uses: mozilla-actions/sccache-action@v0.0.9 - timeout-minutes: '${{ fromJSON(env.CACHE_TIMEOUT_MINUTES) }}' + timeout-minutes: "${{ fromJSON(env.CACHE_TIMEOUT_MINUTES) }}" continue-on-error: true - name: Install Apt Dependencies run: | @@ -124,14 +124,14 @@ jobs: - uses: actions/checkout@v4 - uses: actions/download-artifact@v4 with: - name: 'forest-${{ runner.os }}' + name: "forest-${{ runner.os }}" path: ~/.cargo/bin - name: Set permissions run: | chmod +x ~/.cargo/bin/forest* - name: forest-cli check run: ./scripts/tests/forest_cli_check.sh - timeout-minutes: '${{ fromJSON(env.SCRIPT_TIMEOUT_MINUTES) }}' + timeout-minutes: "${{ fromJSON(env.SCRIPT_TIMEOUT_MINUTES) }}" calibnet-check: needs: - build-ubuntu @@ -141,23 +141,23 @@ jobs: - run: lscpu - uses: actions/cache@v4 with: - path: '${{ env.FIL_PROOFS_PARAMETER_CACHE }}' + path: "${{ env.FIL_PROOFS_PARAMETER_CACHE }}" key: proof-params-keys - uses: actions/checkout@v4 - uses: actions/download-artifact@v4 with: - name: 'forest-${{ runner.os }}' + name: "forest-${{ runner.os }}" path: ~/.cargo/bin - uses: actions/download-artifact@v4 with: - name: 'forest-${{ runner.os }}' + name: "forest-${{ runner.os }}" path: ~/.cargo/bin - name: Set permissions run: | chmod +x ~/.cargo/bin/forest* - name: Other commands check run: ./scripts/tests/calibnet_other_check.sh - timeout-minutes: '${{ fromJSON(env.SCRIPT_TIMEOUT_MINUTES) }}' + timeout-minutes: "${{ fromJSON(env.SCRIPT_TIMEOUT_MINUTES) }}" env: CC: clang CXX: clang++ @@ -170,23 +170,23 @@ jobs: - run: lscpu - uses: actions/cache@v4 with: - path: '${{ env.FIL_PROOFS_PARAMETER_CACHE }}' + path: "${{ env.FIL_PROOFS_PARAMETER_CACHE }}" key: proof-params-keys - name: Checkout Sources uses: actions/checkout@v4 - uses: actions/download-artifact@v4 with: - name: 'forest-${{ runner.os }}' + name: "forest-${{ runner.os }}" path: ~/.cargo/bin - uses: actions/download-artifact@v4 with: - name: 'forest-${{ runner.os }}' + name: "forest-${{ runner.os }}" path: ~/.cargo/bin - name: Set permissions run: | chmod +x ~/.cargo/bin/forest* - run: ./scripts/tests/calibnet_stateless_mode_check.sh - timeout-minutes: '${{ fromJSON(env.SCRIPT_TIMEOUT_MINUTES) }}' + timeout-minutes: "${{ fromJSON(env.SCRIPT_TIMEOUT_MINUTES) }}" calibnet-stateless-rpc-check: needs: - build-ubuntu @@ -196,23 +196,23 @@ jobs: - run: lscpu - uses: actions/cache@v4 with: - path: '${{ env.FIL_PROOFS_PARAMETER_CACHE }}' + path: "${{ env.FIL_PROOFS_PARAMETER_CACHE }}" key: proof-params-keys - name: Checkout Sources uses: actions/checkout@v4 - uses: actions/download-artifact@v4 with: - name: 'forest-${{ runner.os }}' + name: "forest-${{ runner.os }}" path: ~/.cargo/bin - uses: actions/download-artifact@v4 with: - name: 'forest-${{ runner.os }}' + name: "forest-${{ runner.os }}" path: ~/.cargo/bin - name: Set permissions run: | chmod +x ~/.cargo/bin/forest* - run: ./scripts/tests/calibnet_stateless_rpc_check.sh - timeout-minutes: '${{ fromJSON(env.SCRIPT_TIMEOUT_MINUTES) }}' + timeout-minutes: "${{ fromJSON(env.SCRIPT_TIMEOUT_MINUTES) }}" state-migrations-check: needs: - build-ubuntu @@ -222,19 +222,19 @@ jobs: - run: lscpu - uses: actions/cache@v4 with: - path: '${{ env.FIL_PROOFS_PARAMETER_CACHE }}' + path: "${{ env.FIL_PROOFS_PARAMETER_CACHE }}" key: proof-params-keys - uses: actions/checkout@v4 - uses: actions/download-artifact@v4 with: - name: 'forest-${{ runner.os }}' + name: "forest-${{ runner.os }}" path: ~/.cargo/bin - name: Set permissions run: | chmod +x ~/.cargo/bin/forest* - name: Migration Regression Tests run: ./scripts/tests/calibnet_migration_regression_tests.sh - timeout-minutes: '${{ fromJSON(env.SCRIPT_TIMEOUT_MINUTES) }}' + timeout-minutes: "${{ fromJSON(env.SCRIPT_TIMEOUT_MINUTES) }}" calibnet-wallet-check: needs: - build-ubuntu @@ -244,24 +244,24 @@ jobs: - run: lscpu - uses: actions/cache@v4 with: - path: '${{ env.FIL_PROOFS_PARAMETER_CACHE }}' + path: "${{ env.FIL_PROOFS_PARAMETER_CACHE }}" key: proof-params-keys - uses: actions/checkout@v4 - uses: actions/download-artifact@v4 with: - name: 'forest-${{ runner.os }}' + name: "forest-${{ runner.os }}" path: ~/.cargo/bin - name: Set permissions run: | chmod +x ~/.cargo/bin/forest* - name: Wallet commands check env: - CALIBNET_WALLET: '${{ secrets.CALIBNET_WALLET }}' + CALIBNET_WALLET: "${{ secrets.CALIBNET_WALLET }}" run: | if [[ "$CALIBNET_WALLET" != "" ]]; then ./scripts/tests/calibnet_wallet_check.sh "$CALIBNET_WALLET" fi - timeout-minutes: '${{ fromJSON(env.SCRIPT_TIMEOUT_MINUTES) }}' + timeout-minutes: "${{ fromJSON(env.SCRIPT_TIMEOUT_MINUTES) }}" calibnet-export-check: needs: - build-ubuntu @@ -271,19 +271,19 @@ jobs: - run: lscpu - uses: actions/cache@v4 with: - path: '${{ env.FIL_PROOFS_PARAMETER_CACHE }}' + path: "${{ env.FIL_PROOFS_PARAMETER_CACHE }}" key: proof-params-keys - uses: actions/checkout@v4 - uses: actions/download-artifact@v4 with: - name: 'forest-${{ runner.os }}' + name: "forest-${{ runner.os }}" path: ~/.cargo/bin - name: Set permissions run: | chmod +x ~/.cargo/bin/forest* - name: Snapshot export check run: ./scripts/tests/calibnet_export_check.sh - timeout-minutes: '${{ fromJSON(env.SCRIPT_TIMEOUT_MINUTES) }}' + timeout-minutes: "${{ fromJSON(env.SCRIPT_TIMEOUT_MINUTES) }}" calibnet-no-discovery-checks: needs: - build-ubuntu @@ -293,18 +293,18 @@ jobs: - run: lscpu - uses: actions/cache@v4 with: - path: '${{ env.FIL_PROOFS_PARAMETER_CACHE }}' + path: "${{ env.FIL_PROOFS_PARAMETER_CACHE }}" key: proof-params-keys - uses: actions/checkout@v4 - uses: actions/download-artifact@v4 with: - name: 'forest-${{ runner.os }}' + name: "forest-${{ runner.os }}" path: ~/.cargo/bin - name: Set permissions run: | chmod +x ~/.cargo/bin/forest* - run: ./scripts/tests/calibnet_no_discovery_check.sh - timeout-minutes: '${{ fromJSON(env.SCRIPT_TIMEOUT_MINUTES) }}' + timeout-minutes: "${{ fromJSON(env.SCRIPT_TIMEOUT_MINUTES) }}" calibnet-kademlia-checks: needs: - build-ubuntu @@ -314,18 +314,18 @@ jobs: - run: lscpu - uses: actions/cache@v4 with: - path: '${{ env.FIL_PROOFS_PARAMETER_CACHE }}' + path: "${{ env.FIL_PROOFS_PARAMETER_CACHE }}" key: proof-params-keys - uses: actions/checkout@v4 - uses: actions/download-artifact@v4 with: - name: 'forest-${{ runner.os }}' + name: "forest-${{ runner.os }}" path: ~/.cargo/bin - name: Set permissions run: | chmod +x ~/.cargo/bin/forest* - run: ./scripts/tests/calibnet_kademlia_check.sh - timeout-minutes: '${{ fromJSON(env.SCRIPT_TIMEOUT_MINUTES) }}' + timeout-minutes: "${{ fromJSON(env.SCRIPT_TIMEOUT_MINUTES) }}" calibnet-eth-mapping-check: needs: - build-ubuntu @@ -335,23 +335,23 @@ jobs: - run: lscpu - uses: actions/cache@v4 with: - path: '${{ env.FIL_PROOFS_PARAMETER_CACHE }}' + path: "${{ env.FIL_PROOFS_PARAMETER_CACHE }}" key: proof-params-keys - name: Checkout Sources uses: actions/checkout@v4 - uses: actions/download-artifact@v4 with: - name: 'forest-${{ runner.os }}' + name: "forest-${{ runner.os }}" path: ~/.cargo/bin - uses: actions/download-artifact@v4 with: - name: 'forest-${{ runner.os }}' + name: "forest-${{ runner.os }}" path: ~/.cargo/bin - name: Set permissions run: | chmod +x ~/.cargo/bin/forest* - run: ./scripts/tests/calibnet_eth_mapping_check.sh - timeout-minutes: '${{ fromJSON(env.SCRIPT_TIMEOUT_MINUTES) }}' + timeout-minutes: "${{ fromJSON(env.SCRIPT_TIMEOUT_MINUTES) }}" db-migration-checks: needs: - build-ubuntu @@ -359,19 +359,19 @@ jobs: steps: - uses: actions/cache@v4 with: - path: '${{ env.FIL_PROOFS_PARAMETER_CACHE }}' + path: "${{ env.FIL_PROOFS_PARAMETER_CACHE }}" key: proof-params-keys - uses: actions/checkout@v4 - uses: actions/download-artifact@v4 with: - name: 'forest-${{ runner.os }}' + name: "forest-${{ runner.os }}" path: ~/.cargo/bin - name: Set permissions run: | chmod +x ~/.cargo/bin/forest* - name: Database migration checks run: ./scripts/tests/calibnet_db_migration.sh - timeout-minutes: '${{ fromJSON(env.SCRIPT_TIMEOUT_MINUTES) }}' + timeout-minutes: "${{ fromJSON(env.SCRIPT_TIMEOUT_MINUTES) }}" local-devnet-check: name: Devnet checks runs-on: ubuntu-24.04 @@ -384,7 +384,7 @@ jobs: - uses: actions/cache@v4 id: cache with: - path: '${{ env.FIL_PROOFS_PARAMETER_CACHE }}' + path: "${{ env.FIL_PROOFS_PARAMETER_CACHE }}" key: proof-params-2k - name: Load cache into volume if: steps.cache.outputs.cache-hit == 'true' @@ -398,13 +398,13 @@ jobs: - uses: actions/checkout@v4 - uses: actions/download-artifact@v4 with: - name: 'forest-${{ runner.os }}' + name: "forest-${{ runner.os }}" - name: Devnet setup run: ./scripts/devnet/setup.sh - timeout-minutes: '${{ fromJSON(env.SCRIPT_TIMEOUT_MINUTES) }}' + timeout-minutes: "${{ fromJSON(env.SCRIPT_TIMEOUT_MINUTES) }}" - name: Devnet check run: ./scripts/devnet/check.sh - timeout-minutes: '${{ fromJSON(env.SCRIPT_TIMEOUT_MINUTES) }}' + timeout-minutes: "${{ fromJSON(env.SCRIPT_TIMEOUT_MINUTES) }}" - name: Dump docker logs if: always() uses: jwalton/gh-docker-logs@v2 @@ -431,7 +431,7 @@ jobs: - uses: actions/cache@v4 id: cache with: - path: '${{ env.FIL_PROOFS_PARAMETER_CACHE }}' + path: "${{ env.FIL_PROOFS_PARAMETER_CACHE }}" key: proof-params-2k - name: Load cache into volume if: steps.cache.outputs.cache-hit == 'true' @@ -445,19 +445,19 @@ jobs: - uses: actions/checkout@v4 - uses: actions/download-artifact@v4 with: - name: 'forest-${{ runner.os }}' + name: "forest-${{ runner.os }}" - name: Devnet setup run: | cp ./scripts/devnet/setup.sh ./scripts/devnet-curio/setup.sh chmod +x ./scripts/devnet-curio/setup.sh ./scripts/devnet-curio/setup.sh - timeout-minutes: '${{ fromJSON(env.SCRIPT_TIMEOUT_MINUTES) }}' + timeout-minutes: "${{ fromJSON(env.SCRIPT_TIMEOUT_MINUTES) }}" - name: Devnet check run: | cp ./scripts/devnet/check.sh ./scripts/devnet-curio/check.sh chmod +x ./scripts/devnet-curio/check.sh ./scripts/devnet-curio/check.sh - timeout-minutes: '${{ fromJSON(env.SCRIPT_TIMEOUT_MINUTES) }}' + timeout-minutes: "${{ fromJSON(env.SCRIPT_TIMEOUT_MINUTES) }}" - name: Dump docker logs if: always() uses: jwalton/gh-docker-logs@v2 @@ -482,10 +482,10 @@ jobs: - uses: actions/checkout@v4 - uses: actions/download-artifact@v4 with: - name: 'forest-${{ runner.os }}' + name: "forest-${{ runner.os }}" - name: Run bootstrap tests run: ./scripts/tests/bootstrapper/test_bootstrapper.sh forest - timeout-minutes: '${{ fromJSON(env.SCRIPT_TIMEOUT_MINUTES) }}' + timeout-minutes: "${{ fromJSON(env.SCRIPT_TIMEOUT_MINUTES) }}" - name: Dump docker logs if: always() uses: jwalton/gh-docker-logs@v2 @@ -501,10 +501,10 @@ jobs: - uses: actions/checkout@v4 - uses: actions/download-artifact@v4 with: - name: 'forest-${{ runner.os }}' + name: "forest-${{ runner.os }}" - name: Run bootstrap tests run: ./scripts/tests/bootstrapper/test_bootstrapper.sh lotus - timeout-minutes: '${{ fromJSON(env.SCRIPT_TIMEOUT_MINUTES) }}' + timeout-minutes: "${{ fromJSON(env.SCRIPT_TIMEOUT_MINUTES) }}" - name: Dump docker logs if: always() uses: jwalton/gh-docker-logs@v2 @@ -535,10 +535,10 @@ jobs: - uses: actions/checkout@v4 - uses: actions/download-artifact@v4 with: - name: 'forest-${{ runner.os }}' + name: "forest-${{ runner.os }}" - name: Run api compare tests run: ./scripts/tests/api_compare/setup.sh - timeout-minutes: '${{ fromJSON(env.SCRIPT_TIMEOUT_MINUTES) }}' + timeout-minutes: "${{ fromJSON(env.SCRIPT_TIMEOUT_MINUTES) }}" - name: Dump docker logs if: always() uses: jwalton/gh-docker-logs@v2 diff --git a/.github/workflows/lotus-devnet-publish.yml b/.github/workflows/lotus-devnet-publish.yml index fe5331b3ec57..0effb2c0e10e 100644 --- a/.github/workflows/lotus-devnet-publish.yml +++ b/.github/workflows/lotus-devnet-publish.yml @@ -52,4 +52,3 @@ jobs: push: true - name: List docker images run: docker image ls - diff --git a/.github/workflows/release_dispatch.yml b/.github/workflows/release_dispatch.yml index 79a300f042ee..c4a1e5d04745 100644 --- a/.github/workflows/release_dispatch.yml +++ b/.github/workflows/release_dispatch.yml @@ -5,7 +5,7 @@ on: workflow_dispatch: inputs: tag: - description: 'Tag to release' + description: "Tag to release" required: true type: string diff --git a/.github/workflows/rpc_test_repeat.yml b/.github/workflows/rpc_test_repeat.yml index 2947e87a3a85..cd672622a711 100644 --- a/.github/workflows/rpc_test_repeat.yml +++ b/.github/workflows/rpc_test_repeat.yml @@ -4,9 +4,9 @@ on: workflow_dispatch: inputs: image: - description: 'Forest image to use' + description: "Forest image to use" required: false - default: 'ghcr.io/chainsafe/forest:edge-fat' + default: "ghcr.io/chainsafe/forest:edge-fat" type: string schedule: @@ -40,7 +40,7 @@ jobs: echo "FROM $IMAGE" > Dockerfile-RPC export FOREST_DOCKERFILE_OVERRIDE=Dockerfile-RPC ./scripts/tests/api_compare/setup.sh - timeout-minutes: '${{ fromJSON(env.SCRIPT_TIMEOUT_MINUTES) }}' + timeout-minutes: "${{ fromJSON(env.SCRIPT_TIMEOUT_MINUTES) }}" - name: Dump docker logs if: always() uses: jwalton/gh-docker-logs@v2 diff --git a/.github/workflows/rust-lint.yml b/.github/workflows/rust-lint.yml index 770db711f803..f7f5f9348de6 100644 --- a/.github/workflows/rust-lint.yml +++ b/.github/workflows/rust-lint.yml @@ -12,21 +12,21 @@ on: branches: - main paths-ignore: - - 'docs/**' - - '.github/workflows/docs-*.yml' + - "docs/**" + - ".github/workflows/docs-*.yml" push: branches: - main paths-ignore: - - 'docs/**' - - '.github/workflows/docs-*.yml' + - "docs/**" + - ".github/workflows/docs-*.yml" env: CI: 1 CARGO_INCREMENTAL: 0 CACHE_TIMEOUT_MINUTES: 5 - AWS_ACCESS_KEY_ID: '${{ secrets.AWS_ACCESS_KEY_ID }}' - AWS_SECRET_ACCESS_KEY: '${{ secrets.AWS_SECRET_ACCESS_KEY }}' + AWS_ACCESS_KEY_ID: "${{ secrets.AWS_ACCESS_KEY_ID }}" + AWS_SECRET_ACCESS_KEY: "${{ secrets.AWS_SECRET_ACCESS_KEY }}" RUSTC_WRAPPER: "sccache" CC: "sccache clang" CXX: "sccache clang++" diff --git a/.github/workflows/scripts-lint.yml b/.github/workflows/scripts-lint.yml index d4c5029a9245..330cf7d20db8 100644 --- a/.github/workflows/scripts-lint.yml +++ b/.github/workflows/scripts-lint.yml @@ -30,7 +30,7 @@ jobs: - name: Set up Ruby uses: ruby/setup-ruby@v1 with: - ruby-version: '3.0' + ruby-version: "3.0" - name: Run rubocop run: | gem install rubocop -v 1.58 --no-document @@ -42,7 +42,7 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-python@v5 with: - python-version: '3.12' + python-version: "3.12" - run: pip install black flake8 - name: Run Python linters uses: wearerequired/lint-action@v2 diff --git a/monitored-stack/grafana/provisioning/dashboards/dashboard.yml b/monitored-stack/grafana/provisioning/dashboards/dashboard.yml index ad9164fd8ea0..76b0bc8ac98b 100644 --- a/monitored-stack/grafana/provisioning/dashboards/dashboard.yml +++ b/monitored-stack/grafana/provisioning/dashboards/dashboard.yml @@ -1,11 +1,11 @@ apiVersion: 1 providers: -- name: 'Prometheus' - orgId: 1 - folder: '' - type: file - disableDeletion: false - editable: false - options: - path: /etc/grafana/provisioning/dashboard-definitions + - name: "Prometheus" + orgId: 1 + folder: "" + type: file + disableDeletion: false + editable: false + options: + path: /etc/grafana/provisioning/dashboard-definitions diff --git a/monitored-stack/prometheus/prometheus.yml b/monitored-stack/prometheus/prometheus.yml index 9639a2c917da..9e8a8e7ba9b7 100644 --- a/monitored-stack/prometheus/prometheus.yml +++ b/monitored-stack/prometheus/prometheus.yml @@ -2,6 +2,6 @@ global: scrape_interval: 5s scrape_configs: - - job_name: 'forest' + - job_name: "forest" static_configs: - - targets: ['forest:6116'] + - targets: ["forest:6116"] diff --git a/scripts/devnet-curio/docker-compose.yml b/scripts/devnet-curio/docker-compose.yml index 65939b36eb90..63e47efc8d3f 100644 --- a/scripts/devnet-curio/docker-compose.yml +++ b/scripts/devnet-curio/docker-compose.yml @@ -28,7 +28,7 @@ services: - LOTUS_TEEP_HEIGHT=${TEEP_HEIGHT} env_file: - lotus.env - entrypoint: [ "/bin/bash", "-c" ] + entrypoint: ["/bin/bash", "-c"] command: - | set -euxo pipefail @@ -77,7 +77,7 @@ services: - ${LOTUS_P2P_PORT}:${LOTUS_P2P_PORT} env_file: - lotus.env - entrypoint: [ "/bin/bash", "-c" ] + entrypoint: ["/bin/bash", "-c"] command: - | set -euxo pipefail @@ -120,7 +120,7 @@ services: env_file: - lotus-miner.env restart: on-failure # lotus node might not be ready - entrypoint: [ "/bin/bash", "-c" ] + entrypoint: ["/bin/bash", "-c"] command: - | set -euxo pipefail @@ -152,7 +152,7 @@ services: - LOTUS_WAFFLE_HEIGHT=${WAFFLE_HEIGHT} - LOTUS_TUKTUK_HEIGHT=${TUKTUK_HEIGHT} - LOTUS_TEEP_HEIGHT=${TEEP_HEIGHT} - entrypoint: [ "/bin/bash", "-c" ] + entrypoint: ["/bin/bash", "-c"] env_file: - lotus.env networks: @@ -203,7 +203,7 @@ services: - devnet ports: - ${FOREST_RPC_PORT}:${FOREST_RPC_PORT} - entrypoint: [ "/bin/bash", "-c" ] + entrypoint: ["/bin/bash", "-c"] command: - | set -euxo pipefail @@ -228,7 +228,7 @@ services: - ./data/forest:${FOREST_DATA_DIR} networks: - devnet - entrypoint: [ "/bin/bash", "-c" ] + entrypoint: ["/bin/bash", "-c"] command: - | set -euxo pipefail @@ -264,7 +264,7 @@ services: - .env networks: - devnet - entrypoint: [ "/bin/bash", "/run_curio.sh" ] + entrypoint: ["/bin/bash", "/run_curio.sh"] yugabyte: container_name: yugabyte @@ -279,7 +279,13 @@ services: restart: unless-stopped volumes: - ./data/yugabyte:/home/yugabyte/yb_data - command: [ "bin/yugabyted", "start", "--base_dir=/home/yugabyte/yb_data", "--background=false" ] + command: + [ + "bin/yugabyted", + "start", + "--base_dir=/home/yugabyte/yb_data", + "--background=false", + ] networks: - devnet @@ -287,6 +293,5 @@ volumes: # Shared proof parameter files. It is re-used by both Lotus and Forest. filecoin-proofs: - networks: devnet: diff --git a/scripts/devnet/docker-compose.yml b/scripts/devnet/docker-compose.yml index dbfce696a205..789c5b3b82a8 100644 --- a/scripts/devnet/docker-compose.yml +++ b/scripts/devnet/docker-compose.yml @@ -29,7 +29,7 @@ services: - LOTUS_TOCK_FIX_HEIGHT=${TOCK_FIX_HEIGHT} env_file: - lotus.env - entrypoint: ["/bin/bash", "-c" ] + entrypoint: ["/bin/bash", "-c"] command: - | set -euxo pipefail @@ -82,7 +82,7 @@ services: - ${LOTUS_P2P_PORT}:${LOTUS_P2P_PORT} env_file: - lotus.env - entrypoint: ["/bin/bash", "-c" ] + entrypoint: ["/bin/bash", "-c"] command: - | set -euxo pipefail @@ -126,7 +126,7 @@ services: env_file: - lotus-miner.env restart: on-failure # lotus node might not be ready - entrypoint: ["/bin/bash", "-c" ] + entrypoint: ["/bin/bash", "-c"] command: - | set -euxo pipefail @@ -160,7 +160,7 @@ services: - LOTUS_TEEP_HEIGHT=${TEEP_HEIGHT} - LOTUS_TOCK_HEIGHT=${TOCK_HEIGHT} - LOTUS_TOCK_FIX_HEIGHT=${TOCK_FIX_HEIGHT} - entrypoint: ["/bin/bash", "-c" ] + entrypoint: ["/bin/bash", "-c"] env_file: - lotus.env networks: @@ -213,7 +213,7 @@ services: - devnet ports: - ${FOREST_RPC_PORT}:${FOREST_RPC_PORT} - entrypoint: ["/bin/bash", "-c" ] + entrypoint: ["/bin/bash", "-c"] command: - | set -euxo pipefail @@ -262,7 +262,7 @@ services: - devnet ports: - ${FOREST_OFFLINE_RPC_PORT}:${FOREST_OFFLINE_RPC_PORT} - entrypoint: ["/bin/bash", "-c" ] + entrypoint: ["/bin/bash", "-c"] command: - | set -euxo pipefail @@ -270,7 +270,7 @@ services: grep -o \"localnet.*\" ${LOTUS_DATA_DIR}/localnet.json | tr -d '"' | tee ${FOREST_DATA_DIR}/network_name fi NETWORK_NAME=$$(cat ${FOREST_DATA_DIR}/network_name) - forest-tool api serve --chain $$NETWORK_NAME --genesis ${LOTUS_DATA_DIR}/devgen.car --port ${FOREST_OFFLINE_RPC_PORT} + forest-tool api serve --chain $$NETWORK_NAME --genesis ${LOTUS_DATA_DIR}/devgen.car --port ${FOREST_OFFLINE_RPC_PORT} # At the moment of writing, Forest was not able to connect to a devnet node using its config. # This is a workaround to force the connection. @@ -286,7 +286,7 @@ services: - forest-data:${FOREST_DATA_DIR} networks: - devnet - entrypoint: ["/bin/bash", "-c" ] + entrypoint: ["/bin/bash", "-c"] command: - | set -euxo pipefail diff --git a/scripts/tests/api_compare/docker-compose.yml b/scripts/tests/api_compare/docker-compose.yml index 88329fb78d5f..ef18566c2c67 100644 --- a/scripts/tests/api_compare/docker-compose.yml +++ b/scripts/tests/api_compare/docker-compose.yml @@ -1,7 +1,7 @@ # Docker compose file to run Forest and Lotus API tests. services: - init: + init: build: context: ../../../. dockerfile: ${FOREST_DOCKERFILE_OVERRIDE:-Dockerfile} @@ -12,7 +12,7 @@ services: - api-tests environment: - FIL_PROOFS_PARAMETER_CACHE=${FIL_PROOFS_PARAMETER_CACHE} - entrypoint: [ "/bin/bash", "-c" ] + entrypoint: ["/bin/bash", "-c"] user: 0:0 command: - | @@ -43,7 +43,7 @@ services: - FULLNODE_API_INFO=/dns/forest/tcp/${FOREST_RPC_PORT}/http - FOREST_CHAIN_INDEXER_ENABLED=1 - FOREST_ETH_MAPPINGS_RANGE=300 - entrypoint: [ "/bin/bash", "-c" ] + entrypoint: ["/bin/bash", "-c"] user: 0:0 command: - | @@ -57,7 +57,7 @@ services: --import-snapshot $(ls /data/*.car.zst | tail -n 1) \ --import-mode=symlink \ --halt-after-import - + SNAPSHOT_EPOCH="$(ls /data/*.car.zst | tail -n 1 | grep -Eo '[0-9]+' | tail -n 1)" # backfill the index db forest-tool index backfill --from $$SNAPSHOT_EPOCH --to $(($$SNAPSHOT_EPOCH - 300)) --chain ${CHAIN} @@ -66,7 +66,7 @@ services: --rpc-address 0.0.0.0:${FOREST_RPC_PORT} \ --healthcheck-address 0.0.0.0:${FOREST_HEALTHZ_RPC_PORT} healthcheck: - test: [ "CMD", "forest-cli", "sync", "wait" ] + test: ["CMD", "forest-cli", "sync", "wait"] interval: 15s timeout: 10m retries: 3 @@ -82,12 +82,12 @@ services: - node-data:/data networks: - api-tests - entrypoint: [ "/bin/bash", "-c" ] + entrypoint: ["/bin/bash", "-c"] user: 0:0 command: - | set -euo pipefail - + export FULLNODE_API_INFO="$(cat /data/forest-token):/dns/forest/tcp/${FOREST_RPC_PORT}/http" echo "Waiting till Forest is ready" forest-cli healthcheck ready --healthcheck-port ${FOREST_HEALTHZ_RPC_PORT} --wait @@ -102,7 +102,7 @@ services: - node-data:/data networks: - api-tests - entrypoint: [ "/bin/bash", "-c" ] + entrypoint: ["/bin/bash", "-c"] user: 0:0 command: - | @@ -130,14 +130,14 @@ services: - FIL_PROOFS_PARAMETER_CACHE=${FIL_PROOFS_PARAMETER_CACHE} - FULLNODE_API_INFO=/dns/api-serve/tcp/${FOREST_OFFLINE_RPC_PORT}/http - FOREST_ETH_MAPPINGS_RANGE=300 - entrypoint: [ "/bin/bash", "-c" ] + entrypoint: ["/bin/bash", "-c"] command: - | set -euxo pipefail forest-tool api serve $(ls /data/*.car.zst | tail -n 1) \ --chain calibnet --height=-50 --port ${FOREST_OFFLINE_RPC_PORT} --save-token /data/forest-token-offline healthcheck: - test: [ "CMD", "forest-cli", "chain", "head" ] + test: ["CMD", "forest-cli", "chain", "head"] interval: 10s timeout: 3s retries: 3 @@ -162,7 +162,7 @@ services: - LOTUS_CHAINSTORE_ENABLESPLITSTORE=false - LOTUS_SYNC_BOOTSTRAP_PEERS=1 - FULLNODE_API_INFO=/dns/lotus/tcp/${LOTUS_RPC_PORT}/http - entrypoint: [ "/bin/bash", "-c" ] + entrypoint: ["/bin/bash", "-c"] command: - | set -euxo pipefail @@ -180,7 +180,7 @@ services: - api-tests environment: - FULLNODE_API_INFO=/dns/lotus/tcp/${LOTUS_RPC_PORT}/http - entrypoint: [ "/bin/bash", "-c" ] + entrypoint: ["/bin/bash", "-c"] command: - | set -euxo pipefail @@ -226,7 +226,7 @@ services: - RUST_LOG=info,forest::tool::subcommands=debug - FOREST_RPC_DEFAULT_TIMEOUT=120 - FIL_PROOFS_PARAMETER_CACHE=${FIL_PROOFS_PARAMETER_CACHE} - entrypoint: [ "/bin/bash", "-c" ] + entrypoint: ["/bin/bash", "-c"] user: 0:0 command: - | @@ -262,7 +262,7 @@ services: - RUST_LOG=info,forest::tool::subcommands=debug - FOREST_RPC_DEFAULT_TIMEOUT=120 - FIL_PROOFS_PARAMETER_CACHE=${FIL_PROOFS_PARAMETER_CACHE} - entrypoint: [ "/bin/bash", "-c" ] + entrypoint: ["/bin/bash", "-c"] user: 0:0 command: - | @@ -282,7 +282,7 @@ services: image: busybox networks: - api-tests - entrypoint: [ "/bin/sh", "-c" ] + entrypoint: ["/bin/sh", "-c"] command: - | set -euxo pipefail @@ -296,7 +296,7 @@ services: image: busybox networks: - api-tests - entrypoint: [ "/bin/sh", "-c" ] + entrypoint: ["/bin/sh", "-c"] command: - | set -euxo pipefail diff --git a/scripts/tests/bootstrapper/docker-compose-forest.yml b/scripts/tests/bootstrapper/docker-compose-forest.yml index 1f5b79166408..b3841e47a7c0 100644 --- a/scripts/tests/bootstrapper/docker-compose-forest.yml +++ b/scripts/tests/bootstrapper/docker-compose-forest.yml @@ -1,7 +1,7 @@ # Docker compose file to run Forest bootstrap tests. services: - init: + init: build: context: ../../../. dockerfile: ${FOREST_DOCKERFILE_OVERRIDE:-Dockerfile} @@ -12,7 +12,7 @@ services: - bootstrap-tests environment: - FIL_PROOFS_PARAMETER_CACHE=${FIL_PROOFS_PARAMETER_CACHE} - entrypoint: [ "/bin/bash", "-c" ] + entrypoint: ["/bin/bash", "-c"] user: 0:0 command: - | @@ -40,7 +40,7 @@ services: environment: - FIL_PROOFS_PARAMETER_CACHE=${FIL_PROOFS_PARAMETER_CACHE} - FULLNODE_API_INFO=/dns/forest/tcp/${FOREST_RPC_PORT}/http - entrypoint: [ "/bin/bash", "-c" ] + entrypoint: ["/bin/bash", "-c"] user: 0:0 command: - | @@ -51,7 +51,7 @@ services: forest --chain ${CHAIN} --encrypt-keystore false --no-gc \ --p2p-listen-address /ip4/0.0.0.0/tcp/$FOREST_P2P_PORT \ - --stateless + --stateless forest-peer: depends_on: init: @@ -66,7 +66,7 @@ services: - bootstrap-tests environment: - FIL_PROOFS_PARAMETER_CACHE=${FIL_PROOFS_PARAMETER_CACHE} - entrypoint: [ "/bin/bash", "-c" ] + entrypoint: ["/bin/bash", "-c"] user: 0:0 command: - | @@ -87,7 +87,7 @@ services: --rpc-address 0.0.0.0:${FOREST_RPC_PORT} \ --import-snapshot $(ls /data/*.car.zst | tail -n 1) healthcheck: - test: [ "CMD", "forest-cli", "sync", "wait" ] + test: ["CMD", "forest-cli", "sync", "wait"] interval: 15s timeout: 10m retries: 3 @@ -109,7 +109,7 @@ services: environment: - FIL_PROOFS_PARAMETER_CACHE=${FIL_PROOFS_PARAMETER_CACHE} - FULLNODE_API_INFO=/dns/forest-peer/tcp/${FOREST_RPC_PORT}/http - entrypoint: [ "/bin/bash", "-c" ] + entrypoint: ["/bin/bash", "-c"] user: 0:0 command: - | @@ -129,7 +129,7 @@ services: image: busybox networks: - bootstrap-tests - entrypoint: [ "/bin/sh", "-c" ] + entrypoint: ["/bin/sh", "-c"] command: - | set -euxo pipefail diff --git a/scripts/tests/bootstrapper/docker-compose-lotus.yml b/scripts/tests/bootstrapper/docker-compose-lotus.yml index 7a6f69232429..3b52740de658 100644 --- a/scripts/tests/bootstrapper/docker-compose-lotus.yml +++ b/scripts/tests/bootstrapper/docker-compose-lotus.yml @@ -1,7 +1,7 @@ # Docker compose file to run Forest bootstrap tests. services: - init: + init: build: context: ../../../. dockerfile: ${FOREST_DOCKERFILE_OVERRIDE:-Dockerfile} @@ -12,7 +12,7 @@ services: - bootstrap-tests environment: - FIL_PROOFS_PARAMETER_CACHE=${FIL_PROOFS_PARAMETER_CACHE} - entrypoint: [ "/bin/bash", "-c" ] + entrypoint: ["/bin/bash", "-c"] user: 0:0 command: - | @@ -40,7 +40,7 @@ services: environment: - FIL_PROOFS_PARAMETER_CACHE=${FIL_PROOFS_PARAMETER_CACHE} - FULLNODE_API_INFO=/dns/forest/tcp/${FOREST_RPC_PORT}/http - entrypoint: [ "/bin/bash", "-c" ] + entrypoint: ["/bin/bash", "-c"] user: 0:0 command: - | @@ -51,7 +51,7 @@ services: forest --chain ${CHAIN} --encrypt-keystore false --no-gc \ --p2p-listen-address /ip4/0.0.0.0/tcp/$FOREST_P2P_PORT \ - --stateless + --stateless lotus: depends_on: init: @@ -69,7 +69,7 @@ services: - FULLNODE_API_INFO=/dns/lotus/tcp/${LOTUS_RPC_PORT}/http - LOTUS_P2P_BOOTSTRAPPERS=${FOREST_BOOTSTRAPPER_ADDRESS} - LOTUS_P2P_DHT_NO_ROUTING_TABLE_FILTER=1 - entrypoint: [ "/bin/bash", "-c" ] + entrypoint: ["/bin/bash", "-c"] command: - | set -euxo pipefail @@ -87,7 +87,7 @@ services: - bootstrap-tests environment: - FULLNODE_API_INFO=/dns/lotus/tcp/${LOTUS_RPC_PORT}/http - entrypoint: [ "/bin/bash", "-c" ] + entrypoint: ["/bin/bash", "-c"] command: - | set -euxo pipefail @@ -106,7 +106,7 @@ services: image: busybox networks: - bootstrap-tests - entrypoint: [ "/bin/sh", "-c" ] + entrypoint: ["/bin/sh", "-c"] command: - | set -euxo pipefail From 10a0b86651df8e5035279497fcff81ccaa46db2d Mon Sep 17 00:00:00 2001 From: Hubert Date: Thu, 10 Jul 2025 14:47:59 +0200 Subject: [PATCH 3/4] Update .github/workflows/forest.yml Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> --- .github/workflows/forest.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/forest.yml b/.github/workflows/forest.yml index f1515970cfd0..94e3c05a4ae2 100644 --- a/.github/workflows/forest.yml +++ b/.github/workflows/forest.yml @@ -1,7 +1,7 @@ name: Integration tests concurrency: group: "${{ github.workflow }}-${{ github.ref }}" - cancel-in-progress: "${{ github.ref != 'refs/heads/main' }}" + cancel-in-progress: ${{ github.ref != 'refs/heads/main' }} on: workflow_dispatch: merge_group: From 5ed220c1c240fda568f76a613bcd8a4ad382801d Mon Sep 17 00:00:00 2001 From: Hubert Bugaj Date: Thu, 10 Jul 2025 14:51:18 +0200 Subject: [PATCH 4/4] no quotes for `timeout-minutes` value --- .github/workflows/butterflynet.yml | 4 +-- .github/workflows/docker.yml | 4 +-- .github/workflows/forest.yml | 42 +++++++++++++-------------- .github/workflows/rpc_test_repeat.yml | 2 +- 4 files changed, 26 insertions(+), 26 deletions(-) diff --git a/.github/workflows/butterflynet.yml b/.github/workflows/butterflynet.yml index 36d3234f35ac..be0c7b82fd8e 100644 --- a/.github/workflows/butterflynet.yml +++ b/.github/workflows/butterflynet.yml @@ -22,7 +22,7 @@ jobs: uses: actions/checkout@v4 - name: Setup sccache uses: mozilla-actions/sccache-action@v0.0.9 - timeout-minutes: "${{ fromJSON(env.CACHE_TIMEOUT_MINUTES) }}" + timeout-minutes: ${{ fromJSON(env.CACHE_TIMEOUT_MINUTES) }} continue-on-error: true - uses: actions/setup-go@v5 with: @@ -34,4 +34,4 @@ jobs: run: make install-slim-quick - name: Run butterflynet checks run: ./scripts/tests/butterflynet_check.sh - timeout-minutes: "${{ fromJSON(env.SCRIPT_TIMEOUT_MINUTES) }}" + timeout-minutes: ${{ fromJSON(env.SCRIPT_TIMEOUT_MINUTES) }} diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 7158a2efed87..d4c20ca31b58 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -57,7 +57,7 @@ jobs: uses: actions/checkout@v4 - name: Setup sccache uses: mozilla-actions/sccache-action@v0.0.9 - timeout-minutes: "${{ fromJSON(env.CACHE_TIMEOUT_MINUTES) }}" + timeout-minutes: ${{ fromJSON(env.CACHE_TIMEOUT_MINUTES) }} continue-on-error: true - uses: actions/setup-go@v5 with: @@ -102,7 +102,7 @@ jobs: - name: Setup sccache uses: mozilla-actions/sccache-action@v0.0.9 if: github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/v') - timeout-minutes: "${{ fromJSON(env.CACHE_TIMEOUT_MINUTES) }}" + timeout-minutes: ${{ fromJSON(env.CACHE_TIMEOUT_MINUTES) }} continue-on-error: true - uses: actions/setup-go@v5 if: github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/v') diff --git a/.github/workflows/forest.yml b/.github/workflows/forest.yml index 94e3c05a4ae2..f5b114c7a1d7 100644 --- a/.github/workflows/forest.yml +++ b/.github/workflows/forest.yml @@ -51,7 +51,7 @@ jobs: uses: actions/checkout@v4 - name: Setup sccache uses: mozilla-actions/sccache-action@v0.0.9 - timeout-minutes: "${{ fromJSON(env.CACHE_TIMEOUT_MINUTES) }}" + timeout-minutes: ${{ fromJSON(env.CACHE_TIMEOUT_MINUTES) }} continue-on-error: true - uses: actions/setup-go@v5 with: @@ -78,7 +78,7 @@ jobs: uses: actions/checkout@v4 - name: Setup sccache uses: mozilla-actions/sccache-action@v0.0.9 - timeout-minutes: "${{ fromJSON(env.CACHE_TIMEOUT_MINUTES) }}" + timeout-minutes: ${{ fromJSON(env.CACHE_TIMEOUT_MINUTES) }} continue-on-error: true - uses: actions/setup-go@v5 with: @@ -101,7 +101,7 @@ jobs: uses: actions/checkout@v4 - name: Setup sccache uses: mozilla-actions/sccache-action@v0.0.9 - timeout-minutes: "${{ fromJSON(env.CACHE_TIMEOUT_MINUTES) }}" + timeout-minutes: ${{ fromJSON(env.CACHE_TIMEOUT_MINUTES) }} continue-on-error: true - name: Install Apt Dependencies run: | @@ -131,7 +131,7 @@ jobs: chmod +x ~/.cargo/bin/forest* - name: forest-cli check run: ./scripts/tests/forest_cli_check.sh - timeout-minutes: "${{ fromJSON(env.SCRIPT_TIMEOUT_MINUTES) }}" + timeout-minutes: ${{ fromJSON(env.SCRIPT_TIMEOUT_MINUTES) }} calibnet-check: needs: - build-ubuntu @@ -157,7 +157,7 @@ jobs: chmod +x ~/.cargo/bin/forest* - name: Other commands check run: ./scripts/tests/calibnet_other_check.sh - timeout-minutes: "${{ fromJSON(env.SCRIPT_TIMEOUT_MINUTES) }}" + timeout-minutes: ${{ fromJSON(env.SCRIPT_TIMEOUT_MINUTES) }} env: CC: clang CXX: clang++ @@ -186,7 +186,7 @@ jobs: run: | chmod +x ~/.cargo/bin/forest* - run: ./scripts/tests/calibnet_stateless_mode_check.sh - timeout-minutes: "${{ fromJSON(env.SCRIPT_TIMEOUT_MINUTES) }}" + timeout-minutes: ${{ fromJSON(env.SCRIPT_TIMEOUT_MINUTES) }} calibnet-stateless-rpc-check: needs: - build-ubuntu @@ -212,7 +212,7 @@ jobs: run: | chmod +x ~/.cargo/bin/forest* - run: ./scripts/tests/calibnet_stateless_rpc_check.sh - timeout-minutes: "${{ fromJSON(env.SCRIPT_TIMEOUT_MINUTES) }}" + timeout-minutes: ${{ fromJSON(env.SCRIPT_TIMEOUT_MINUTES) }} state-migrations-check: needs: - build-ubuntu @@ -234,7 +234,7 @@ jobs: chmod +x ~/.cargo/bin/forest* - name: Migration Regression Tests run: ./scripts/tests/calibnet_migration_regression_tests.sh - timeout-minutes: "${{ fromJSON(env.SCRIPT_TIMEOUT_MINUTES) }}" + timeout-minutes: ${{ fromJSON(env.SCRIPT_TIMEOUT_MINUTES) }} calibnet-wallet-check: needs: - build-ubuntu @@ -261,7 +261,7 @@ jobs: if [[ "$CALIBNET_WALLET" != "" ]]; then ./scripts/tests/calibnet_wallet_check.sh "$CALIBNET_WALLET" fi - timeout-minutes: "${{ fromJSON(env.SCRIPT_TIMEOUT_MINUTES) }}" + timeout-minutes: ${{ fromJSON(env.SCRIPT_TIMEOUT_MINUTES) }} calibnet-export-check: needs: - build-ubuntu @@ -283,7 +283,7 @@ jobs: chmod +x ~/.cargo/bin/forest* - name: Snapshot export check run: ./scripts/tests/calibnet_export_check.sh - timeout-minutes: "${{ fromJSON(env.SCRIPT_TIMEOUT_MINUTES) }}" + timeout-minutes: ${{ fromJSON(env.SCRIPT_TIMEOUT_MINUTES) }} calibnet-no-discovery-checks: needs: - build-ubuntu @@ -304,7 +304,7 @@ jobs: run: | chmod +x ~/.cargo/bin/forest* - run: ./scripts/tests/calibnet_no_discovery_check.sh - timeout-minutes: "${{ fromJSON(env.SCRIPT_TIMEOUT_MINUTES) }}" + timeout-minutes: ${{ fromJSON(env.SCRIPT_TIMEOUT_MINUTES) }} calibnet-kademlia-checks: needs: - build-ubuntu @@ -325,7 +325,7 @@ jobs: run: | chmod +x ~/.cargo/bin/forest* - run: ./scripts/tests/calibnet_kademlia_check.sh - timeout-minutes: "${{ fromJSON(env.SCRIPT_TIMEOUT_MINUTES) }}" + timeout-minutes: ${{ fromJSON(env.SCRIPT_TIMEOUT_MINUTES) }} calibnet-eth-mapping-check: needs: - build-ubuntu @@ -351,7 +351,7 @@ jobs: run: | chmod +x ~/.cargo/bin/forest* - run: ./scripts/tests/calibnet_eth_mapping_check.sh - timeout-minutes: "${{ fromJSON(env.SCRIPT_TIMEOUT_MINUTES) }}" + timeout-minutes: ${{ fromJSON(env.SCRIPT_TIMEOUT_MINUTES) }} db-migration-checks: needs: - build-ubuntu @@ -371,7 +371,7 @@ jobs: chmod +x ~/.cargo/bin/forest* - name: Database migration checks run: ./scripts/tests/calibnet_db_migration.sh - timeout-minutes: "${{ fromJSON(env.SCRIPT_TIMEOUT_MINUTES) }}" + timeout-minutes: ${{ fromJSON(env.SCRIPT_TIMEOUT_MINUTES) }} local-devnet-check: name: Devnet checks runs-on: ubuntu-24.04 @@ -401,10 +401,10 @@ jobs: name: "forest-${{ runner.os }}" - name: Devnet setup run: ./scripts/devnet/setup.sh - timeout-minutes: "${{ fromJSON(env.SCRIPT_TIMEOUT_MINUTES) }}" + timeout-minutes: ${{ fromJSON(env.SCRIPT_TIMEOUT_MINUTES) }} - name: Devnet check run: ./scripts/devnet/check.sh - timeout-minutes: "${{ fromJSON(env.SCRIPT_TIMEOUT_MINUTES) }}" + timeout-minutes: ${{ fromJSON(env.SCRIPT_TIMEOUT_MINUTES) }} - name: Dump docker logs if: always() uses: jwalton/gh-docker-logs@v2 @@ -451,13 +451,13 @@ jobs: cp ./scripts/devnet/setup.sh ./scripts/devnet-curio/setup.sh chmod +x ./scripts/devnet-curio/setup.sh ./scripts/devnet-curio/setup.sh - timeout-minutes: "${{ fromJSON(env.SCRIPT_TIMEOUT_MINUTES) }}" + timeout-minutes: ${{ fromJSON(env.SCRIPT_TIMEOUT_MINUTES) }} - name: Devnet check run: | cp ./scripts/devnet/check.sh ./scripts/devnet-curio/check.sh chmod +x ./scripts/devnet-curio/check.sh ./scripts/devnet-curio/check.sh - timeout-minutes: "${{ fromJSON(env.SCRIPT_TIMEOUT_MINUTES) }}" + timeout-minutes: ${{ fromJSON(env.SCRIPT_TIMEOUT_MINUTES) }} - name: Dump docker logs if: always() uses: jwalton/gh-docker-logs@v2 @@ -485,7 +485,7 @@ jobs: name: "forest-${{ runner.os }}" - name: Run bootstrap tests run: ./scripts/tests/bootstrapper/test_bootstrapper.sh forest - timeout-minutes: "${{ fromJSON(env.SCRIPT_TIMEOUT_MINUTES) }}" + timeout-minutes: ${{ fromJSON(env.SCRIPT_TIMEOUT_MINUTES) }} - name: Dump docker logs if: always() uses: jwalton/gh-docker-logs@v2 @@ -504,7 +504,7 @@ jobs: name: "forest-${{ runner.os }}" - name: Run bootstrap tests run: ./scripts/tests/bootstrapper/test_bootstrapper.sh lotus - timeout-minutes: "${{ fromJSON(env.SCRIPT_TIMEOUT_MINUTES) }}" + timeout-minutes: ${{ fromJSON(env.SCRIPT_TIMEOUT_MINUTES) }} - name: Dump docker logs if: always() uses: jwalton/gh-docker-logs@v2 @@ -538,7 +538,7 @@ jobs: name: "forest-${{ runner.os }}" - name: Run api compare tests run: ./scripts/tests/api_compare/setup.sh - timeout-minutes: "${{ fromJSON(env.SCRIPT_TIMEOUT_MINUTES) }}" + timeout-minutes: ${{ fromJSON(env.SCRIPT_TIMEOUT_MINUTES) }} - name: Dump docker logs if: always() uses: jwalton/gh-docker-logs@v2 diff --git a/.github/workflows/rpc_test_repeat.yml b/.github/workflows/rpc_test_repeat.yml index cd672622a711..f0d5495ca3a0 100644 --- a/.github/workflows/rpc_test_repeat.yml +++ b/.github/workflows/rpc_test_repeat.yml @@ -40,7 +40,7 @@ jobs: echo "FROM $IMAGE" > Dockerfile-RPC export FOREST_DOCKERFILE_OVERRIDE=Dockerfile-RPC ./scripts/tests/api_compare/setup.sh - timeout-minutes: "${{ fromJSON(env.SCRIPT_TIMEOUT_MINUTES) }}" + timeout-minutes: ${{ fromJSON(env.SCRIPT_TIMEOUT_MINUTES) }} - name: Dump docker logs if: always() uses: jwalton/gh-docker-logs@v2