From 1b79495c8d0517225b6ba1f3764db6a9e52673ab Mon Sep 17 00:00:00 2001 From: Asutosh Panda <136367735+asutosh23@users.noreply.github.com> Date: Tue, 30 Sep 2025 09:27:24 +0530 Subject: [PATCH 1/8] ci: test tenki-standard-autoscale --- .github/workflows/build_and_push.yml | 46 +++++++++++++++------------- 1 file changed, 25 insertions(+), 21 deletions(-) diff --git a/.github/workflows/build_and_push.yml b/.github/workflows/build_and_push.yml index f5423cb782..d55fe8d8a5 100644 --- a/.github/workflows/build_and_push.yml +++ b/.github/workflows/build_and_push.yml @@ -1,16 +1,17 @@ name: Build and Push Docker Image -on: - workflow_dispatch: - inputs: - testing: - description: "Build with testing features" - type: boolean - default: false - required: false - push: - branches: - - nightly +on: pull_request +# on: + # workflow_dispatch: + # inputs: + # testing: + # description: "Build with testing features" + # type: boolean + # default: false + # required: false + # push: + # branches: + # - nightly env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} @@ -18,7 +19,8 @@ env: jobs: linux_amd64_binary_extraction: - runs-on: ubicloud-standard-30 + runs-on: tenki-standard-autoscale + # runs-on: ubicloud-standard-30 steps: - name: Checkout uses: actions/checkout@v5 @@ -43,7 +45,8 @@ jobs: - name: Build Project id: build run: | - if [ "${{ github.event_name }}" = "workflow_dispatch" -a "${{ inputs.testing }}" = "true" ] || [ "${{ github.ref }}" = "refs/heads/nightly" ]; then + if [ "${{ github.event_name }}" = "pull_request" -a "${{ inputs.testing }}" = "true" ] || [ "${{ github.ref }}" = "refs/heads/nightly" ]; then + # if [ "${{ github.event_name }}" = "workflow_dispatch" -a "${{ inputs.testing }}" = "true" ] || [ "${{ github.ref }}" = "refs/heads/nightly" ]; then echo "Building with testing features" cargo build --features testing echo "image_name=citrea-test" >> $GITHUB_OUTPUT @@ -68,11 +71,11 @@ jobs: - name: Set up QEMU uses: docker/setup-qemu-action@v3 - - name: Login to Docker Hub - uses: docker/login-action@v3 - with: - username: ${{ vars.DOCKERHUB_USERNAME }} - password: ${{ secrets.DOCKERHUB_TOKEN }} + # - name: Login to Docker Hub + # uses: docker/login-action@v3 + # with: + # username: ${{ vars.DOCKERHUB_USERNAME }} + # password: ${{ secrets.DOCKERHUB_TOKEN }} - name: Build Docker image uses: docker/build-push-action@v6 @@ -80,9 +83,10 @@ jobs: file: ./docker/build-push/nightly/Dockerfile context: ./docker/build-push/nightly tags: | - ${{ vars.DOCKERHUB_USERNAME }}/${{ steps.build.outputs.image_name }}:${{ env.IMAGE_TAG }} - ${{ vars.DOCKERHUB_USERNAME }}/${{ steps.build.outputs.image_name }}:latest + tenkicloud/${{ steps.build.outputs.image_name }}:${{ env.IMAGE_TAG }} + tenkicloud/${{ steps.build.outputs.image_name }}:latest platforms: linux/amd64 - push: true + push: false + # push: true load: false provenance: false From 8d7a19b1a3f89ebeffadd5b92634088ba95311c4 Mon Sep 17 00:00:00 2001 From: Asutosh Panda <136367735+asutosh23@users.noreply.github.com> Date: Tue, 30 Sep 2025 10:05:28 +0530 Subject: [PATCH 2/8] test tenki-standard-large-plus-16c-32g --- .github/workflows/build_and_push.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build_and_push.yml b/.github/workflows/build_and_push.yml index d55fe8d8a5..9ad17ec674 100644 --- a/.github/workflows/build_and_push.yml +++ b/.github/workflows/build_and_push.yml @@ -19,7 +19,7 @@ env: jobs: linux_amd64_binary_extraction: - runs-on: tenki-standard-autoscale + runs-on: tenki-standard-large-plus-16c-32g # runs-on: ubicloud-standard-30 steps: - name: Checkout From 9f4304704c25127e3e7898d1a260d65aa5dd8773 Mon Sep 17 00:00:00 2001 From: Asutosh Panda <136367735+asutosh23@users.noreply.github.com> Date: Wed, 1 Oct 2025 03:05:50 +0530 Subject: [PATCH 3/8] test ubicloud runners --- .github/workflows/build_and_push.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build_and_push.yml b/.github/workflows/build_and_push.yml index 9ad17ec674..e5e96934c7 100644 --- a/.github/workflows/build_and_push.yml +++ b/.github/workflows/build_and_push.yml @@ -19,8 +19,8 @@ env: jobs: linux_amd64_binary_extraction: - runs-on: tenki-standard-large-plus-16c-32g - # runs-on: ubicloud-standard-30 + # runs-on: tenki-standard-large-plus-16c-32g + runs-on: ubicloud-standard-30 steps: - name: Checkout uses: actions/checkout@v5 From 81001e21318a21dac5d370995712a8e135fb6eba Mon Sep 17 00:00:00 2001 From: Asutosh Panda <136367735+asutosh23@users.noreply.github.com> Date: Wed, 1 Oct 2025 03:17:06 +0530 Subject: [PATCH 4/8] test tenki-standard-autoscale --- .github/workflows/build_and_push.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build_and_push.yml b/.github/workflows/build_and_push.yml index e5e96934c7..d55fe8d8a5 100644 --- a/.github/workflows/build_and_push.yml +++ b/.github/workflows/build_and_push.yml @@ -19,8 +19,8 @@ env: jobs: linux_amd64_binary_extraction: - # runs-on: tenki-standard-large-plus-16c-32g - runs-on: ubicloud-standard-30 + runs-on: tenki-standard-autoscale + # runs-on: ubicloud-standard-30 steps: - name: Checkout uses: actions/checkout@v5 From 085c07eabd266cef1f893b833b026d53ca3c2f8c Mon Sep 17 00:00:00 2001 From: Asutosh Panda <136367735+asutosh23@users.noreply.github.com> Date: Wed, 1 Oct 2025 23:14:03 +0530 Subject: [PATCH 5/8] bring back the workflow to original state with tenki runners --- .github/workflows/build_and_push.yml | 220 ++++++++++++++++++++++++--- 1 file changed, 195 insertions(+), 25 deletions(-) diff --git a/.github/workflows/build_and_push.yml b/.github/workflows/build_and_push.yml index d55fe8d8a5..a032350766 100644 --- a/.github/workflows/build_and_push.yml +++ b/.github/workflows/build_and_push.yml @@ -1,17 +1,16 @@ name: Build and Push Docker Image -on: pull_request -# on: - # workflow_dispatch: - # inputs: - # testing: - # description: "Build with testing features" - # type: boolean - # default: false - # required: false - # push: - # branches: - # - nightly +on: + workflow_dispatch: + inputs: + testing: + description: "Build with testing features" + type: boolean + default: false + required: false + push: + branches: + - nightly env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} @@ -19,8 +18,7 @@ env: jobs: linux_amd64_binary_extraction: - runs-on: tenki-standard-autoscale - # runs-on: ubicloud-standard-30 + runs-on: tenki-standard-large-plus-16c-32g steps: - name: Checkout uses: actions/checkout@v5 @@ -45,8 +43,7 @@ jobs: - name: Build Project id: build run: | - if [ "${{ github.event_name }}" = "pull_request" -a "${{ inputs.testing }}" = "true" ] || [ "${{ github.ref }}" = "refs/heads/nightly" ]; then - # if [ "${{ github.event_name }}" = "workflow_dispatch" -a "${{ inputs.testing }}" = "true" ] || [ "${{ github.ref }}" = "refs/heads/nightly" ]; then + if [ "${{ github.event_name }}" = "workflow_dispatch" -a "${{ inputs.testing }}" = "true" ] || [ "${{ github.ref }}" = "refs/heads/nightly" ]; then echo "Building with testing features" cargo build --features testing echo "image_name=citrea-test" >> $GITHUB_OUTPUT @@ -71,11 +68,185 @@ jobs: - name: Set up QEMU uses: docker/setup-qemu-action@v3 - # - name: Login to Docker Hub - # uses: docker/login-action@v3 - # with: - # username: ${{ vars.DOCKERHUB_USERNAME }} - # password: ${{ secrets.DOCKERHUB_TOKEN }} + - name: Login to Docker Hub + uses: docker/login-action@v3 + with: + username: ${{ vars.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_TOKEN }} + + - name: Build Docker image + uses: docker/build-push-action@v6 + with: + file: ./docker/build-push/nightly/Dockerfile + context: ./docker/build-push/nightly + tags: | + ${{ vars.DOCKERHUB_USERNAME }}/${{ steps.build.outputs.image_name }}:${{ env.IMAGE_TAG }} + ${{ vars.DOCKERHUB_USERNAME }}/${{ steps.build.outputs.image_name }}:latest + platforms: linux/amd64 + push: true + load: false + provenance: falsename: Build and Push Docker Image + +on: + workflow_dispatch: + inputs: + testing: + description: "Build with testing features" + type: boolean + default: false + required: false + push: + branches: + - nightly + +env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + IMAGE_TAG: ${{ github.sha }} + +jobs: + linux_amd64_binary_extraction: + runs-on: tenki-standard-large-plus-16c-32g + steps: + - name: Checkout + uses: actions/checkout@v5 + + - name: Install Dependencies + run: | + sudo apt update && sudo apt -y install curl gcc cpp cmake clang llvm + sudo apt -y autoremove && sudo apt clean && sudo rm -rf /var/lib/apt/lists/* + + - name: Install Rust + run: | + curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y + rustup install 1.85.0 + rustup default 1.85.0 + rustup toolchain install 1.85-x86_64-unknown-linux-gnu + + - name: Install risc0 + uses: ./.github/actions/install-risc0 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + + - name: Build Project + id: build + run: | + if [ "${{ github.event_name }}" = "workflow_dispatch" -a "${{ inputs.testing }}" = "true" ] || [ "${{ github.ref }}" = "refs/heads/nightly" ]; then + echo "Building with testing features" + cargo build --features testing + echo "image_name=citrea-test" >> $GITHUB_OUTPUT + else + cargo build + echo "image_name=citrea-dev" >> $GITHUB_OUTPUT + fi + env: + REPR_GUEST_BUILD: 1 + CITREA_NETWORK: nightly + + + - name: Copy binary to build-push/nightly + run: | + cp target/debug/citrea docker/build-push/nightly/citrea + chmod +x docker/build-push/nightly/citrea + cp $(which r0vm) docker/build-push/nightly/r0vm + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + + - name: Set up QEMU + uses: docker/setup-qemu-action@v3 + + - name: Login to Docker Hub + uses: docker/login-action@v3 + with: + username: ${{ vars.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_TOKEN }} + + - name: Build Docker image + uses: docker/build-push-action@v6 + with: + file: ./docker/build-push/nightly/Dockerfile + context: ./docker/build-push/nightly + tags: | + ${{ vars.DOCKERHUB_USERNAME }}/${{ steps.build.outputs.image_name }}:${{ env.IMAGE_TAG }} + ${{ vars.DOCKERHUB_USERNAME }}/${{ steps.build.outputs.image_name }}:latest + platforms: linux/amd64 + push: true + load: false + provenance: falsename: Build and Push Docker Image + +on: + workflow_dispatch: + inputs: + testing: + description: "Build with testing features" + type: boolean + default: false + required: false + push: + branches: + - nightly + +env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + IMAGE_TAG: ${{ github.sha }} + +jobs: + linux_amd64_binary_extraction: + runs-on: tenki-standard-large-plus-16c-32g + steps: + - name: Checkout + uses: actions/checkout@v5 + + - name: Install Dependencies + run: | + sudo apt update && sudo apt -y install curl gcc cpp cmake clang llvm + sudo apt -y autoremove && sudo apt clean && sudo rm -rf /var/lib/apt/lists/* + + - name: Install Rust + run: | + curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y + rustup install 1.85.0 + rustup default 1.85.0 + rustup toolchain install 1.85-x86_64-unknown-linux-gnu + + - name: Install risc0 + uses: ./.github/actions/install-risc0 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + + - name: Build Project + id: build + run: | + if [ "${{ github.event_name }}" = "workflow_dispatch" -a "${{ inputs.testing }}" = "true" ] || [ "${{ github.ref }}" = "refs/heads/nightly" ]; then + echo "Building with testing features" + cargo build --features testing + echo "image_name=citrea-test" >> $GITHUB_OUTPUT + else + cargo build + echo "image_name=citrea-dev" >> $GITHUB_OUTPUT + fi + env: + REPR_GUEST_BUILD: 1 + CITREA_NETWORK: nightly + + + - name: Copy binary to build-push/nightly + run: | + cp target/debug/citrea docker/build-push/nightly/citrea + chmod +x docker/build-push/nightly/citrea + cp $(which r0vm) docker/build-push/nightly/r0vm + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + + - name: Set up QEMU + uses: docker/setup-qemu-action@v3 + + - name: Login to Docker Hub + uses: docker/login-action@v3 + with: + username: ${{ vars.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_TOKEN }} - name: Build Docker image uses: docker/build-push-action@v6 @@ -83,10 +254,9 @@ jobs: file: ./docker/build-push/nightly/Dockerfile context: ./docker/build-push/nightly tags: | - tenkicloud/${{ steps.build.outputs.image_name }}:${{ env.IMAGE_TAG }} - tenkicloud/${{ steps.build.outputs.image_name }}:latest + ${{ vars.DOCKERHUB_USERNAME }}/${{ steps.build.outputs.image_name }}:${{ env.IMAGE_TAG }} + ${{ vars.DOCKERHUB_USERNAME }}/${{ steps.build.outputs.image_name }}:latest platforms: linux/amd64 - push: false - # push: true + push: true load: false provenance: false From cf7e50a4da07271b7362100f6c70b887a6a5bce7 Mon Sep 17 00:00:00 2001 From: Asutosh Panda <136367735+asutosh23@users.noreply.github.com> Date: Wed, 1 Oct 2025 23:15:25 +0530 Subject: [PATCH 6/8] Update build_and_push.yml --- .github/workflows/build_and_push.yml | 174 --------------------------- 1 file changed, 174 deletions(-) diff --git a/.github/workflows/build_and_push.yml b/.github/workflows/build_and_push.yml index a032350766..420f77c220 100644 --- a/.github/workflows/build_and_push.yml +++ b/.github/workflows/build_and_push.yml @@ -1,179 +1,5 @@ name: Build and Push Docker Image -on: - workflow_dispatch: - inputs: - testing: - description: "Build with testing features" - type: boolean - default: false - required: false - push: - branches: - - nightly - -env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - IMAGE_TAG: ${{ github.sha }} - -jobs: - linux_amd64_binary_extraction: - runs-on: tenki-standard-large-plus-16c-32g - steps: - - name: Checkout - uses: actions/checkout@v5 - - - name: Install Dependencies - run: | - sudo apt update && sudo apt -y install curl gcc cpp cmake clang llvm - sudo apt -y autoremove && sudo apt clean && sudo rm -rf /var/lib/apt/lists/* - - - name: Install Rust - run: | - curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y - rustup install 1.85.0 - rustup default 1.85.0 - rustup toolchain install 1.85-x86_64-unknown-linux-gnu - - - name: Install risc0 - uses: ./.github/actions/install-risc0 - with: - github_token: ${{ secrets.GITHUB_TOKEN }} - - - name: Build Project - id: build - run: | - if [ "${{ github.event_name }}" = "workflow_dispatch" -a "${{ inputs.testing }}" = "true" ] || [ "${{ github.ref }}" = "refs/heads/nightly" ]; then - echo "Building with testing features" - cargo build --features testing - echo "image_name=citrea-test" >> $GITHUB_OUTPUT - else - cargo build - echo "image_name=citrea-dev" >> $GITHUB_OUTPUT - fi - env: - REPR_GUEST_BUILD: 1 - CITREA_NETWORK: nightly - - - - name: Copy binary to build-push/nightly - run: | - cp target/debug/citrea docker/build-push/nightly/citrea - chmod +x docker/build-push/nightly/citrea - cp $(which r0vm) docker/build-push/nightly/r0vm - - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v3 - - - name: Set up QEMU - uses: docker/setup-qemu-action@v3 - - - name: Login to Docker Hub - uses: docker/login-action@v3 - with: - username: ${{ vars.DOCKERHUB_USERNAME }} - password: ${{ secrets.DOCKERHUB_TOKEN }} - - - name: Build Docker image - uses: docker/build-push-action@v6 - with: - file: ./docker/build-push/nightly/Dockerfile - context: ./docker/build-push/nightly - tags: | - ${{ vars.DOCKERHUB_USERNAME }}/${{ steps.build.outputs.image_name }}:${{ env.IMAGE_TAG }} - ${{ vars.DOCKERHUB_USERNAME }}/${{ steps.build.outputs.image_name }}:latest - platforms: linux/amd64 - push: true - load: false - provenance: falsename: Build and Push Docker Image - -on: - workflow_dispatch: - inputs: - testing: - description: "Build with testing features" - type: boolean - default: false - required: false - push: - branches: - - nightly - -env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - IMAGE_TAG: ${{ github.sha }} - -jobs: - linux_amd64_binary_extraction: - runs-on: tenki-standard-large-plus-16c-32g - steps: - - name: Checkout - uses: actions/checkout@v5 - - - name: Install Dependencies - run: | - sudo apt update && sudo apt -y install curl gcc cpp cmake clang llvm - sudo apt -y autoremove && sudo apt clean && sudo rm -rf /var/lib/apt/lists/* - - - name: Install Rust - run: | - curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y - rustup install 1.85.0 - rustup default 1.85.0 - rustup toolchain install 1.85-x86_64-unknown-linux-gnu - - - name: Install risc0 - uses: ./.github/actions/install-risc0 - with: - github_token: ${{ secrets.GITHUB_TOKEN }} - - - name: Build Project - id: build - run: | - if [ "${{ github.event_name }}" = "workflow_dispatch" -a "${{ inputs.testing }}" = "true" ] || [ "${{ github.ref }}" = "refs/heads/nightly" ]; then - echo "Building with testing features" - cargo build --features testing - echo "image_name=citrea-test" >> $GITHUB_OUTPUT - else - cargo build - echo "image_name=citrea-dev" >> $GITHUB_OUTPUT - fi - env: - REPR_GUEST_BUILD: 1 - CITREA_NETWORK: nightly - - - - name: Copy binary to build-push/nightly - run: | - cp target/debug/citrea docker/build-push/nightly/citrea - chmod +x docker/build-push/nightly/citrea - cp $(which r0vm) docker/build-push/nightly/r0vm - - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v3 - - - name: Set up QEMU - uses: docker/setup-qemu-action@v3 - - - name: Login to Docker Hub - uses: docker/login-action@v3 - with: - username: ${{ vars.DOCKERHUB_USERNAME }} - password: ${{ secrets.DOCKERHUB_TOKEN }} - - - name: Build Docker image - uses: docker/build-push-action@v6 - with: - file: ./docker/build-push/nightly/Dockerfile - context: ./docker/build-push/nightly - tags: | - ${{ vars.DOCKERHUB_USERNAME }}/${{ steps.build.outputs.image_name }}:${{ env.IMAGE_TAG }} - ${{ vars.DOCKERHUB_USERNAME }}/${{ steps.build.outputs.image_name }}:latest - platforms: linux/amd64 - push: true - load: false - provenance: falsename: Build and Push Docker Image - on: workflow_dispatch: inputs: From ab25939a266f875a8a0c9df39c434d9d60ec6535 Mon Sep 17 00:00:00 2001 From: Asutosh Panda <136367735+asutosh23@users.noreply.github.com> Date: Tue, 7 Oct 2025 02:58:00 +0530 Subject: [PATCH 7/8] test tenki-standard-xlarge-32c-128g --- .github/workflows/build_and_push.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build_and_push.yml b/.github/workflows/build_and_push.yml index 420f77c220..39c3a34b8e 100644 --- a/.github/workflows/build_and_push.yml +++ b/.github/workflows/build_and_push.yml @@ -18,7 +18,7 @@ env: jobs: linux_amd64_binary_extraction: - runs-on: tenki-standard-large-plus-16c-32g + runs-on: tenki-standard-xlarge-32c-128g steps: - name: Checkout uses: actions/checkout@v5 From 367af44b933af9d8d28ce85adecfdbb96a1130aa Mon Sep 17 00:00:00 2001 From: Asutosh Panda <136367735+asutosh23@users.noreply.github.com> Date: Tue, 7 Oct 2025 02:59:43 +0530 Subject: [PATCH 8/8] test tenki runner 32C --- .github/workflows/build_and_push.yml | 40 +++++++++++++++------------- 1 file changed, 21 insertions(+), 19 deletions(-) diff --git a/.github/workflows/build_and_push.yml b/.github/workflows/build_and_push.yml index 39c3a34b8e..a7ca34ddd4 100644 --- a/.github/workflows/build_and_push.yml +++ b/.github/workflows/build_and_push.yml @@ -1,16 +1,18 @@ name: Build and Push Docker Image -on: - workflow_dispatch: - inputs: - testing: - description: "Build with testing features" - type: boolean - default: false - required: false - push: - branches: - - nightly +on: pull_request + +# on: +# workflow_dispatch: +# inputs: +# testing: +# description: "Build with testing features" +# type: boolean +# default: false +# required: false +# push: +# branches: +# - nightly env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} @@ -68,11 +70,11 @@ jobs: - name: Set up QEMU uses: docker/setup-qemu-action@v3 - - name: Login to Docker Hub - uses: docker/login-action@v3 - with: - username: ${{ vars.DOCKERHUB_USERNAME }} - password: ${{ secrets.DOCKERHUB_TOKEN }} + # - name: Login to Docker Hub + # uses: docker/login-action@v3 + # with: + # username: ${{ vars.DOCKERHUB_USERNAME }} + # password: ${{ secrets.DOCKERHUB_TOKEN }} - name: Build Docker image uses: docker/build-push-action@v6 @@ -80,9 +82,9 @@ jobs: file: ./docker/build-push/nightly/Dockerfile context: ./docker/build-push/nightly tags: | - ${{ vars.DOCKERHUB_USERNAME }}/${{ steps.build.outputs.image_name }}:${{ env.IMAGE_TAG }} - ${{ vars.DOCKERHUB_USERNAME }}/${{ steps.build.outputs.image_name }}:latest + tenkicloud/${{ steps.build.outputs.image_name }}:${{ env.IMAGE_TAG }} + tenkicloud/${{ steps.build.outputs.image_name }}:latest platforms: linux/amd64 - push: true + push: false load: false provenance: false