diff --git a/.github/workflows/build_wasm.yml b/.github/workflows/build_wasm.yml index 0408750fde8..b10199e99e5 100644 --- a/.github/workflows/build_wasm.yml +++ b/.github/workflows/build_wasm.yml @@ -7,7 +7,7 @@ name: Build Sequent Core WASM Target on: pull_request: push: - branches: [ 'main' ] + branches: [ 'main', 'feat/use-arc-runner-java-test' ] release: types: [published] diff --git a/.github/workflows/documentation.yml b/.github/workflows/documentation.yml index 5b38c00befd..32a6d9f985b 100644 --- a/.github/workflows/documentation.yml +++ b/.github/workflows/documentation.yml @@ -22,6 +22,7 @@ on: branches: - main - release/* + - feat/use-arc-runner-java-test permissions: contents: write @@ -33,6 +34,8 @@ jobs: runs-on: gcp-selfhosted-ubuntu24 steps: - uses: actions/checkout@v4 + with: + clean: true - name: Set Node.js 22.x uses: actions/setup-node@v3 diff --git a/.github/workflows/java_test.yml b/.github/workflows/java_test.yml index 9e0b93e087f..2e1d17afb2d 100644 --- a/.github/workflows/java_test.yml +++ b/.github/workflows/java_test.yml @@ -7,7 +7,7 @@ name: Java Test on: pull_request: push: - branches: [ 'main', 'release/[0-9]+.[0-9]+' ] + branches: [ 'main', 'release/[0-9]+.[0-9]+', 'feat/use-arc-runner-java-test'] jobs: build-and-test: diff --git a/.github/workflows/license_reuse.yml b/.github/workflows/license_reuse.yml index 446b7f9d47b..7bbcb5370ed 100644 --- a/.github/workflows/license_reuse.yml +++ b/.github/workflows/license_reuse.yml @@ -7,7 +7,7 @@ name: REUSE licensing check on: pull_request: push: - branches: [ 'main', 'release/[0-9]+.[0-9]+' ] + branches: [ 'main', 'release/[0-9]+.[0-9]+', 'feat/use-arc-runner-java-test' ] jobs: reuse: diff --git a/.github/workflows/lint_prettify.yml b/.github/workflows/lint_prettify.yml index c038805f0b1..d414bacc4e4 100644 --- a/.github/workflows/lint_prettify.yml +++ b/.github/workflows/lint_prettify.yml @@ -7,7 +7,7 @@ name: Lint & Prettify on: pull_request: push: - branches: [ 'main', 'release/[0-9]+.[0-9]+' ] + branches: [ 'main', 'release/[0-9]+.[0-9]+', 'feat/use-arc-runner-java-test' ] jobs: lint-prettify: diff --git a/.github/workflows/locs_report.yml b/.github/workflows/locs_report.yml index dac8e621733..8a701b8e855 100644 --- a/.github/workflows/locs_report.yml +++ b/.github/workflows/locs_report.yml @@ -7,7 +7,7 @@ name: LOCs Lines Of Code Report on: pull_request: push: - branches: [ 'main', 'release/[0-9]+.[0-9]+' ] + branches: [ 'main', 'release/[0-9]+.[0-9]+', 'feat/use-arc-runner-java-test' ] jobs: locs: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 41a45f516c7..37b25b67be8 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -77,7 +77,7 @@ jobs: node-version: '24' - name: Install release-it - run: npm install --global release-it@19.0.3 + run: sudo npm install --global release-it@19.0.3 - name: Create Release Branch if required id: CreateReleaseBranch @@ -126,7 +126,7 @@ jobs: fi release: - runs-on: gcp-selfhosted-ubuntu24 + runs-on: gcp-selfhosted-ubuntu24 #gcp needs: create-release-branch outputs: VERSION: ${{ steps.Release.outputs.VERSION }} @@ -164,7 +164,7 @@ jobs: - name: Install release tools run: | - npm install --global release-it@16.2.1 + sudo npm install --global release-it@16.2.1 - name: Determine Release Increment id: CheckLatestRelease @@ -259,7 +259,7 @@ jobs: trigger-beyond-release: needs: [release] if: ${{ always() && needs.release.result == 'success' }} - runs-on: gcp-selfhosted-ubuntu24 + runs-on: gcp-selfhosted-ubuntu24 #gcp steps: - name: Trigger Beyond Release Workflow uses: the-actions-org/workflow-dispatch@v4 # https://github.com/the-actions-org/workflow-dispatch @@ -274,7 +274,7 @@ jobs: trigger-deployer: needs: [release, create-release-branch, trigger-beyond-release] if: ${{ always() && needs.release.result == 'success' && needs.create-release-branch.result == 'success' }} - runs-on: gcp-selfhosted-ubuntu24 + runs-on: gcp-selfhosted-ubuntu24 #gcp steps: - name: Trigger Deployer Workflow uses: the-actions-org/workflow-dispatch@v4 # https://github.com/the-actions-org/workflow-dispatch @@ -289,7 +289,7 @@ jobs: if: failure() # Here define the depenency jobs needs: [release] - runs-on: gcp-selfhosted-ubuntu24 + runs-on: gcp-selfhosted-ubuntu24 #gcp steps: - name: Checkout uses: actions/checkout@v4 @@ -305,7 +305,7 @@ jobs: slack-report: needs: [release, trigger-deployer, cleanup] - runs-on: gcp-selfhosted-ubuntu24 + runs-on: gcp-selfhosted-ubuntu24 #gcp timeout-minutes: 20 if: always() steps: diff --git a/.github/workflows/reusable_build_push.yml b/.github/workflows/reusable_build_push.yml index a450e8c88b7..f041b51c0e4 100644 --- a/.github/workflows/reusable_build_push.yml +++ b/.github/workflows/reusable_build_push.yml @@ -116,8 +116,8 @@ jobs: tags: | ${{ vars.AWS_ECR_REGISTRY_GLOBALDOT }}/${{ matrix.service }}:${{ env.SHORT_SHA }} ${{ vars.AWS_ECR_REGISTRY_GLOBALDOT }}/${{ matrix.service }}:${{ inputs.tag || github.run_number }} - cache-from: type=gha,scope=${{ matrix.service }} - cache-to: type=gha,mode=max,scope=${{ matrix.service }} + cache-from: type=registry,ref=${{ vars.AWS_ECR_REGISTRY_GLOBALDOT }}/${{ matrix.service }}:buildcache + cache-to: type=registry,ref=${{ vars.AWS_ECR_REGISTRY_GLOBALDOT }}/${{ matrix.service }}:buildcache,mode=max build-args: | SPA_NAME=${{ matrix.spa_name }} FEATURES=${{ matrix.features }} \ No newline at end of file diff --git a/.github/workflows/step_cli_build.yml b/.github/workflows/step_cli_build.yml index d31fbf3ffcc..9a221bf90ea 100644 --- a/.github/workflows/step_cli_build.yml +++ b/.github/workflows/step_cli_build.yml @@ -14,6 +14,7 @@ on: jobs: build-cli: runs-on: gcp-selfhosted-ubuntu24 + timeout-minutes: 45 env: CARGO_TARGET_DIR: rust-local-target RUSTFLAGS: "-C target-feature=-crt-static -lgcc_eh -lm" @@ -34,6 +35,24 @@ jobs: components: rustfmt targets: x86_64-unknown-linux-musl + - name: Cache Cargo registry + uses: actions/cache@v4 + with: + path: | + ~/.cargo/registry + ~/.cargo/git + key: ${{ runner.os }}-cargo-registry-${{ hashFiles('**/Cargo.lock') }} + restore-keys: | + ${{ runner.os }}-cargo-registry- + + - name: Cache Cargo build + uses: actions/cache@v4 + with: + path: packages/step-cli/rust-local-target + key: ${{ runner.os }}-cargo-build-${{ hashFiles('packages/step-cli/Cargo.lock') }} + restore-keys: | + ${{ runner.os }}-cargo-build- + - name: Link openssl working-directory: packages/step-cli run: sudo ln -s /usr/include/x86_64-linux-gnu/openssl/opensslconf.h /usr/include/openssl/opensslconf.h && sudo ln -s /usr/include/x86_64-linux-gnu/openssl/configuration.h /usr/include/openssl/configuration.h @@ -46,6 +65,7 @@ jobs: OPENSSL_STATIC: 1 PKG_CONFIG_ALLOW_CROSS: 1 OPENSSL_NO_VENDOR: 0 + CARGO_BUILD_JOBS: 4 run: cargo build --release --target x86_64-unknown-linux-musl - name: List build output target-rust-local (for debugging) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index efce450084f..1630ca29b8e 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -13,6 +13,7 @@ jobs: run-tests: name: Run Rust tests runs-on: gcp-selfhosted-ubuntu24 + timeout-minutes: 35 strategy: matrix: include: @@ -39,6 +40,24 @@ jobs: components: rustfmt targets: x86_64-unknown-linux-musl + - name: Cache Cargo registry + uses: actions/cache@v4 + with: + path: | + ~/.cargo/registry + ~/.cargo/git + key: ${{ runner.os }}-cargo-registry-${{ hashFiles('**/Cargo.lock') }} + restore-keys: | + ${{ runner.os }}-cargo-registry- + + - name: Cache Cargo build + uses: actions/cache@v4 + with: + path: packages/${{ matrix.service }}/target + key: ${{ runner.os }}-cargo-test-${{ matrix.service }}-${{ hashFiles('packages/${{ matrix.service }}/Cargo.lock') }} + restore-keys: | + ${{ runner.os }}-cargo-test-${{ matrix.service }}- + - name: Install system dependencies run: | sudo apt-get update @@ -69,4 +88,5 @@ jobs: LOW_SQL_LIMIT: "1000" DEFAULT_SQL_LIMIT: "20" DEFAULT_SQL_BATCH_SIZE: "1000" + CARGO_BUILD_JOBS: 4 run: cd packages/${{ matrix.service }} && cargo test ${{ matrix.extra }} diff --git a/docs/docusaurus/docs/releases/01-Release-Next/release-next.md b/docs/docusaurus/docs/releases/01-Release-Next/release-next.md index d61d5056ada..52ee63173cf 100644 --- a/docs/docusaurus/docs/releases/01-Release-Next/release-next.md +++ b/docs/docusaurus/docs/releases/01-Release-Next/release-next.md @@ -7,6 +7,20 @@ title: Release Notes next SPDX-License-Identifier: AGPL-3.0-only --> +## ✨ feat/meta-9293-add-cargo-cache/main + +Added cargo caching for efficient test builds + +- Issue: [#9293](https://github.com/sequentech/meta/issues/9293) + +## ✨ ✨ Investigating costs increase in infra cluster (GHA) + +- Added ECR caching for docker artifacts +- Added cargo caching for efficient test builds +- Added 'sudo' to release-it installation + +- Issue: [#9293](https://github.com/sequentech/meta/issues/9293) + ## 🐞 Admin Portal > Can't send message to voters Going to the Admin Portal > Election Event > Voters > Send generated an @@ -14,6 +28,13 @@ unexpected error. - Issue: [#9721](https://github.com/sequentech/meta/issues/9721) +## ✨ Reports > Add pagination to the electoral results report + +Going to the Admin Portal > Election Event > Voters > Send generated an +unexpected error. + +- Issue: [#9721](https://github.com/sequentech/meta/issues/9721) + ## 🐞 Tally > Election aliases not used Use election alias in all places in tally results.