From b565b68f051ab92d65755161a312e6970141088a Mon Sep 17 00:00:00 2001 From: Elias Datler Date: Fri, 6 Jun 2025 16:39:56 +0200 Subject: [PATCH 01/56] test --- .github/workflows/ninja_pr_checks.yml | 42 ++++++++++++++------------- 1 file changed, 22 insertions(+), 20 deletions(-) diff --git a/.github/workflows/ninja_pr_checks.yml b/.github/workflows/ninja_pr_checks.yml index 6a48729d5..bce32b43f 100644 --- a/.github/workflows/ninja_pr_checks.yml +++ b/.github/workflows/ninja_pr_checks.yml @@ -31,25 +31,25 @@ jobs: examples=() declare -A example_paths=( - ["My Crypto Blog (Frontend)"]="hosting/my_crypto_blog" - ["React (Frontend)"]="hosting/react" - ["Motoko backend (Motoko)"]="motoko/backend_only" - ["Daily Planner (Motoko)"]="motoko/daily_planner" - ["EVM Block Explorer (Motoko)"]="motoko/evm_block_explorer" - ["FileVault (Motoko)"]="motoko/filevault" - ["Flying Ninja (Motoko)"]="motoko/flying_ninja" - ["Hello World (Motoko)"]="motoko/hello_world" + # ["My Crypto Blog (Frontend)"]="hosting/my_crypto_blog" + # ["React (Frontend)"]="hosting/react" + # ["Motoko backend (Motoko)"]="motoko/backend_only" + # ["Daily Planner (Motoko)"]="motoko/daily_planner" + # ["EVM Block Explorer (Motoko)"]="motoko/evm_block_explorer" + # ["FileVault (Motoko)"]="motoko/filevault" + # ["Flying Ninja (Motoko)"]="motoko/flying_ninja" + # ["Hello World (Motoko)"]="motoko/hello_world" ["LLM Chatbot (Motoko)"]="motoko/llm_chatbot" - ["Tokenmania (Motoko)"]="motoko/tokenmania" - ["Who Am I (Motoko)"]="motoko/who_am_i" - ["Rust backend (Rust)"]="rust/backend_only" - ["Daily Planner (Rust)"]="rust/daily_planner" - ["EVM Block Explorer (Rust)"]="rust/evm_block_explorer" - ["Flying Ninja (Rust)"]="rust/flying_ninja" - ["Hello World (Rust)"]="rust/hello_world" - ["LLM Chatbot (Rust)"]="rust/llm_chatbot" - ["Tokenmania (Rust)"]="rust/tokenmania" - ["Who Am I (Rust)"]="rust/who_am_i" + # ["Tokenmania (Motoko)"]="motoko/tokenmania" + # ["Who Am I (Motoko)"]="motoko/who_am_i" + # ["Rust backend (Rust)"]="rust/backend_only" + # ["Daily Planner (Rust)"]="rust/daily_planner" + # ["EVM Block Explorer (Rust)"]="rust/evm_block_explorer" + # ["Flying Ninja (Rust)"]="rust/flying_ninja" + # ["Hello World (Rust)"]="rust/hello_world" + # ["LLM Chatbot (Rust)"]="rust/llm_chatbot" + # ["Tokenmania (Rust)"]="rust/tokenmania" + # ["Who Am I (Rust)"]="rust/who_am_i" ) # Check if we should run all examples (workflow file changed) or just changed ones @@ -101,8 +101,10 @@ jobs: dfx-version: "0.27.0" - name: Start dfx and build project - working-directory: ${{ matrix.example.path }} run: | # Note: Running these commands in the same step and with verbose output magically fixes the 502 Bad Gateway issue in dfx/pocketic for the LLM Chatbot example RUST_LOG=trace dfx start --background --verbose - dfx deploy + + - name: Deploy + working-directory: ${{ matrix.example.path }} + run: dfx deploy llm From 88bd7ead8bb5a7e1335a629e7d69ce785ce538d1 Mon Sep 17 00:00:00 2001 From: Elias Datler Date: Fri, 6 Jun 2025 16:41:58 +0200 Subject: [PATCH 02/56] test --- .github/workflows/ninja_pr_checks.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ninja_pr_checks.yml b/.github/workflows/ninja_pr_checks.yml index bce32b43f..79bd84197 100644 --- a/.github/workflows/ninja_pr_checks.yml +++ b/.github/workflows/ninja_pr_checks.yml @@ -39,9 +39,9 @@ jobs: # ["FileVault (Motoko)"]="motoko/filevault" # ["Flying Ninja (Motoko)"]="motoko/flying_ninja" # ["Hello World (Motoko)"]="motoko/hello_world" - ["LLM Chatbot (Motoko)"]="motoko/llm_chatbot" + # ["LLM Chatbot (Motoko)"]="motoko/llm_chatbot" # ["Tokenmania (Motoko)"]="motoko/tokenmania" - # ["Who Am I (Motoko)"]="motoko/who_am_i" + ["Who Am I (Motoko)"]="motoko/who_am_i" # ["Rust backend (Rust)"]="rust/backend_only" # ["Daily Planner (Rust)"]="rust/daily_planner" # ["EVM Block Explorer (Rust)"]="rust/evm_block_explorer" @@ -107,4 +107,4 @@ jobs: - name: Deploy working-directory: ${{ matrix.example.path }} - run: dfx deploy llm + run: dfx deploy internet_identity From 4c08791534c65fdc2519ecb077155a76e5563a32 Mon Sep 17 00:00:00 2001 From: Elias Datler Date: Fri, 6 Jun 2025 16:51:30 +0200 Subject: [PATCH 03/56] test --- .github/workflows/ninja_pr_checks.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ninja_pr_checks.yml b/.github/workflows/ninja_pr_checks.yml index 79bd84197..89d622f86 100644 --- a/.github/workflows/ninja_pr_checks.yml +++ b/.github/workflows/ninja_pr_checks.yml @@ -107,4 +107,4 @@ jobs: - name: Deploy working-directory: ${{ matrix.example.path }} - run: dfx deploy internet_identity + run: dfx deploy From 3a47ef789485c5da084780de9ae84fb66c680cab Mon Sep 17 00:00:00 2001 From: Elias Datler Date: Fri, 6 Jun 2025 16:56:11 +0200 Subject: [PATCH 04/56] Revert "test" This reverts commit 4c08791534c65fdc2519ecb077155a76e5563a32. --- .github/workflows/ninja_pr_checks.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ninja_pr_checks.yml b/.github/workflows/ninja_pr_checks.yml index 89d622f86..79bd84197 100644 --- a/.github/workflows/ninja_pr_checks.yml +++ b/.github/workflows/ninja_pr_checks.yml @@ -107,4 +107,4 @@ jobs: - name: Deploy working-directory: ${{ matrix.example.path }} - run: dfx deploy + run: dfx deploy internet_identity From 842c5e032e881a7aaa1de073d7bb54bdb195e124 Mon Sep 17 00:00:00 2001 From: Elias Datler Date: Fri, 6 Jun 2025 16:59:02 +0200 Subject: [PATCH 05/56] test --- .github/workflows/ninja_pr_checks.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ninja_pr_checks.yml b/.github/workflows/ninja_pr_checks.yml index 79bd84197..c7be45853 100644 --- a/.github/workflows/ninja_pr_checks.yml +++ b/.github/workflows/ninja_pr_checks.yml @@ -86,7 +86,7 @@ jobs: needs: check-ninja-example-changes if: needs.check-ninja-example-changes.outputs.has_examples == 'true' runs-on: ubuntu-24.04 - container: ghcr.io/dfinity/icp-dev-env-slim:20 + # container: ghcr.io/dfinity/icp-dev-env-slim:20 strategy: fail-fast: false matrix: ${{ fromJson(needs.check-ninja-example-changes.outputs.matrix) }} From faf9858bbb1cb6c1ecd2db26de52315b18ff2107 Mon Sep 17 00:00:00 2001 From: Martin Raszyk Date: Fri, 6 Jun 2025 22:23:51 +0200 Subject: [PATCH 06/56] ubuntu --- .github/workflows/ninja_pr_checks.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/ninja_pr_checks.yml b/.github/workflows/ninja_pr_checks.yml index c7be45853..33a231a07 100644 --- a/.github/workflows/ninja_pr_checks.yml +++ b/.github/workflows/ninja_pr_checks.yml @@ -87,6 +87,7 @@ jobs: if: needs.check-ninja-example-changes.outputs.has_examples == 'true' runs-on: ubuntu-24.04 # container: ghcr.io/dfinity/icp-dev-env-slim:20 + container: ubuntu:24.04 strategy: fail-fast: false matrix: ${{ fromJson(needs.check-ninja-example-changes.outputs.matrix) }} From df7e75c970311eb64891efd222c84cc50481d2a5 Mon Sep 17 00:00:00 2001 From: Martin Raszyk Date: Fri, 6 Jun 2025 22:25:04 +0200 Subject: [PATCH 07/56] apt --- .github/workflows/ninja_pr_checks.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/ninja_pr_checks.yml b/.github/workflows/ninja_pr_checks.yml index 33a231a07..4b1f678c9 100644 --- a/.github/workflows/ninja_pr_checks.yml +++ b/.github/workflows/ninja_pr_checks.yml @@ -96,6 +96,9 @@ jobs: - name: Checkout uses: actions/checkout@v4 + - name: Install curl + run: apt update && apt install curl --yes + - name: Install dfx # This is a temporary workaround. Dfx is already installed in the container, but it does not start in the next step if we don't install it here again. uses: dfinity/setup-dfx@main with: From ad1983a5475300273a0056542684f110e7d05f60 Mon Sep 17 00:00:00 2001 From: Martin Raszyk Date: Fri, 6 Jun 2025 22:27:54 +0200 Subject: [PATCH 08/56] libunwind --- .github/workflows/ninja_pr_checks.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ninja_pr_checks.yml b/.github/workflows/ninja_pr_checks.yml index 4b1f678c9..e7e0afed1 100644 --- a/.github/workflows/ninja_pr_checks.yml +++ b/.github/workflows/ninja_pr_checks.yml @@ -97,7 +97,7 @@ jobs: uses: actions/checkout@v4 - name: Install curl - run: apt update && apt install curl --yes + run: apt update && apt install curl libunwind-dev --yes - name: Install dfx # This is a temporary workaround. Dfx is already installed in the container, but it does not start in the next step if we don't install it here again. uses: dfinity/setup-dfx@main From 5fa4ed4688004c36d1f1e5d9559988fe8c4657b7 Mon Sep 17 00:00:00 2001 From: Martin Raszyk Date: Fri, 6 Jun 2025 22:29:25 +0200 Subject: [PATCH 09/56] dfx --- .github/workflows/ninja_pr_checks.yml | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ninja_pr_checks.yml b/.github/workflows/ninja_pr_checks.yml index e7e0afed1..82f55c41c 100644 --- a/.github/workflows/ninja_pr_checks.yml +++ b/.github/workflows/ninja_pr_checks.yml @@ -96,7 +96,7 @@ jobs: - name: Checkout uses: actions/checkout@v4 - - name: Install curl + - name: Install curl and libunwind-dev run: apt update && apt install curl libunwind-dev --yes - name: Install dfx # This is a temporary workaround. Dfx is already installed in the container, but it does not start in the next step if we don't install it here again. @@ -104,11 +104,8 @@ jobs: with: dfx-version: "0.27.0" - - name: Start dfx and build project - run: | - # Note: Running these commands in the same step and with verbose output magically fixes the 502 Bad Gateway issue in dfx/pocketic for the LLM Chatbot example - RUST_LOG=trace dfx start --background --verbose - - name: Deploy working-directory: ${{ matrix.example.path }} - run: dfx deploy internet_identity + run: | + RUST_LOG=trace dfx start --background --verbose + dfx deploy internet_identity From b4a4930b8512e8bf3970e896f3be719d3c839743 Mon Sep 17 00:00:00 2001 From: Martin Raszyk Date: Fri, 6 Jun 2025 22:30:52 +0200 Subject: [PATCH 10/56] debug --- .github/workflows/ninja_pr_checks.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ninja_pr_checks.yml b/.github/workflows/ninja_pr_checks.yml index 82f55c41c..a7713e4f0 100644 --- a/.github/workflows/ninja_pr_checks.yml +++ b/.github/workflows/ninja_pr_checks.yml @@ -107,5 +107,5 @@ jobs: - name: Deploy working-directory: ${{ matrix.example.path }} run: | - RUST_LOG=trace dfx start --background --verbose + RUST_LOG=debug dfx start --background --verbose dfx deploy internet_identity From b171a20eeef095e4e5ca1fc280d2a527134aaddb Mon Sep 17 00:00:00 2001 From: Martin Raszyk Date: Fri, 6 Jun 2025 22:32:08 +0200 Subject: [PATCH 11/56] error --- .github/workflows/ninja_pr_checks.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ninja_pr_checks.yml b/.github/workflows/ninja_pr_checks.yml index a7713e4f0..b0a2bd023 100644 --- a/.github/workflows/ninja_pr_checks.yml +++ b/.github/workflows/ninja_pr_checks.yml @@ -107,5 +107,5 @@ jobs: - name: Deploy working-directory: ${{ matrix.example.path }} run: | - RUST_LOG=debug dfx start --background --verbose + RUST_LOG=error dfx start --background --verbose dfx deploy internet_identity From 5f7252c545c588f2ca00584502a4f302e1de0df6 Mon Sep 17 00:00:00 2001 From: Martin Raszyk Date: Fri, 6 Jun 2025 22:33:41 +0200 Subject: [PATCH 12/56] no RUST_LOG --- .github/workflows/ninja_pr_checks.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ninja_pr_checks.yml b/.github/workflows/ninja_pr_checks.yml index b0a2bd023..f4f09edbb 100644 --- a/.github/workflows/ninja_pr_checks.yml +++ b/.github/workflows/ninja_pr_checks.yml @@ -107,5 +107,5 @@ jobs: - name: Deploy working-directory: ${{ matrix.example.path }} run: | - RUST_LOG=error dfx start --background --verbose + dfx start --background --verbose dfx deploy internet_identity From 56b7210aaa44d2822f3429949cdbeba8b4078b29 Mon Sep 17 00:00:00 2001 From: Martin Raszyk Date: Fri, 6 Jun 2025 22:35:22 +0200 Subject: [PATCH 13/56] step --- .github/workflows/ninja_pr_checks.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ninja_pr_checks.yml b/.github/workflows/ninja_pr_checks.yml index f4f09edbb..b862a11a4 100644 --- a/.github/workflows/ninja_pr_checks.yml +++ b/.github/workflows/ninja_pr_checks.yml @@ -104,8 +104,10 @@ jobs: with: dfx-version: "0.27.0" + - name: Set up + run: dfx start --background --verbose + - name: Deploy working-directory: ${{ matrix.example.path }} run: | - dfx start --background --verbose dfx deploy internet_identity From 0eeae11ec3e38245b8f7634c5965ea6304572612 Mon Sep 17 00:00:00 2001 From: Martin Raszyk Date: Fri, 6 Jun 2025 22:37:25 +0200 Subject: [PATCH 14/56] . From 8a67c51da7c5f8fc776bba022059a95461d60b18 Mon Sep 17 00:00:00 2001 From: Martin Raszyk Date: Fri, 6 Jun 2025 22:39:31 +0200 Subject: [PATCH 15/56] enable concurrency --- .github/workflows/ninja_pr_checks.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/ninja_pr_checks.yml b/.github/workflows/ninja_pr_checks.yml index b862a11a4..ffe392e08 100644 --- a/.github/workflows/ninja_pr_checks.yml +++ b/.github/workflows/ninja_pr_checks.yml @@ -7,7 +7,6 @@ on: concurrency: group: ninja-pr-checks-${{ github.workflow }}-${{ github.ref }} - cancel-in-progress: true jobs: check-ninja-example-changes: From f16479624c782e88f50342ff688fc6658ec9458e Mon Sep 17 00:00:00 2001 From: Martin Raszyk Date: Fri, 6 Jun 2025 22:39:33 +0200 Subject: [PATCH 16/56] . From 8e596f162a044798c555be623e8fbf75b4e36540 Mon Sep 17 00:00:00 2001 From: Martin Raszyk Date: Fri, 6 Jun 2025 22:40:57 +0200 Subject: [PATCH 17/56] . From 59e4dc14b5e8438dcff9857b006cf07365c4c9ae Mon Sep 17 00:00:00 2001 From: Martin Raszyk Date: Fri, 6 Jun 2025 22:40:59 +0200 Subject: [PATCH 18/56] . From 315cb22de9007c45b610fc25ae72ba8cf28391e5 Mon Sep 17 00:00:00 2001 From: Martin Raszyk Date: Fri, 6 Jun 2025 22:41:01 +0200 Subject: [PATCH 19/56] . From d910506aa0455c789f2a2b6d5f9d21460f6b8a10 Mon Sep 17 00:00:00 2001 From: Martin Raszyk Date: Fri, 6 Jun 2025 22:41:03 +0200 Subject: [PATCH 20/56] . From 90ec4ce2cbb403ebdece2be6a6892ec62d9a6a06 Mon Sep 17 00:00:00 2001 From: Martin Raszyk Date: Fri, 6 Jun 2025 22:41:05 +0200 Subject: [PATCH 21/56] . From 3f539e37dabe01495151b3f98c392bfa8add045c Mon Sep 17 00:00:00 2001 From: Martin Raszyk Date: Fri, 6 Jun 2025 22:43:20 +0200 Subject: [PATCH 22/56] no concurrency --- .github/workflows/ninja_pr_checks.yml | 3 --- 1 file changed, 3 deletions(-) diff --git a/.github/workflows/ninja_pr_checks.yml b/.github/workflows/ninja_pr_checks.yml index ffe392e08..d4b5c5455 100644 --- a/.github/workflows/ninja_pr_checks.yml +++ b/.github/workflows/ninja_pr_checks.yml @@ -5,9 +5,6 @@ on: branches: - master -concurrency: - group: ninja-pr-checks-${{ github.workflow }}-${{ github.ref }} - jobs: check-ninja-example-changes: name: Filter projects From 67e5fd07f5b7e6c0e511eec3838fdce467ded08d Mon Sep 17 00:00:00 2001 From: Martin Raszyk Date: Fri, 6 Jun 2025 22:44:02 +0200 Subject: [PATCH 23/56] . From 227320515e56fd074a6931b9e9f612e6f6157eb0 Mon Sep 17 00:00:00 2001 From: Martin Raszyk Date: Fri, 6 Jun 2025 22:44:04 +0200 Subject: [PATCH 24/56] . From 40348a756b13132e7d7ab54dac13ae034f022d53 Mon Sep 17 00:00:00 2001 From: Martin Raszyk Date: Fri, 6 Jun 2025 22:44:52 +0200 Subject: [PATCH 25/56] . From 9d8a1d5adf9314b5b91e32b0d8bc0a509a952ef8 Mon Sep 17 00:00:00 2001 From: Martin Raszyk Date: Fri, 6 Jun 2025 22:44:55 +0200 Subject: [PATCH 26/56] . From 63d05a6a12d57aeb3b5e6a3806cc33ceb0e56e30 Mon Sep 17 00:00:00 2001 From: Martin Raszyk Date: Fri, 6 Jun 2025 22:44:58 +0200 Subject: [PATCH 27/56] . From 9129e1d5f432cca356694083fcb2de898336ba68 Mon Sep 17 00:00:00 2001 From: Martin Raszyk Date: Fri, 6 Jun 2025 22:46:18 +0200 Subject: [PATCH 28/56] rust container --- .github/workflows/ninja_pr_checks.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ninja_pr_checks.yml b/.github/workflows/ninja_pr_checks.yml index d4b5c5455..2025dddbd 100644 --- a/.github/workflows/ninja_pr_checks.yml +++ b/.github/workflows/ninja_pr_checks.yml @@ -83,7 +83,8 @@ jobs: if: needs.check-ninja-example-changes.outputs.has_examples == 'true' runs-on: ubuntu-24.04 # container: ghcr.io/dfinity/icp-dev-env-slim:20 - container: ubuntu:24.04 + #container: ubuntu:24.04 + container: rust:1.83-slim-bookworm strategy: fail-fast: false matrix: ${{ fromJson(needs.check-ninja-example-changes.outputs.matrix) }} From 7f7db57ecc2fbb7c9cbcbf730b45c17d85a05337 Mon Sep 17 00:00:00 2001 From: Martin Raszyk Date: Fri, 6 Jun 2025 22:47:48 +0200 Subject: [PATCH 29/56] . From f354f9c5563ca6100adeb9d1558ab6d27a0d8509 Mon Sep 17 00:00:00 2001 From: Martin Raszyk Date: Fri, 6 Jun 2025 22:48:00 +0200 Subject: [PATCH 30/56] . From 1fc6b0db8a1d10577839d0331add1fe3f6dd9212 Mon Sep 17 00:00:00 2001 From: Martin Raszyk Date: Fri, 6 Jun 2025 22:48:48 +0200 Subject: [PATCH 31/56] . From d10335e9ba8a53f1e5d931fcf53e6b6b206cd1b2 Mon Sep 17 00:00:00 2001 From: Martin Raszyk Date: Fri, 6 Jun 2025 22:49:00 +0200 Subject: [PATCH 32/56] . From 23a2689b588ecbe0e588508b7bbdf4f95ffc7e1f Mon Sep 17 00:00:00 2001 From: Martin Raszyk Date: Fri, 6 Jun 2025 22:49:12 +0200 Subject: [PATCH 33/56] . From 4665c213fae6c5de37ad394ad77d12aa41b1203d Mon Sep 17 00:00:00 2001 From: Martin Raszyk Date: Fri, 6 Jun 2025 22:50:54 +0200 Subject: [PATCH 34/56] dev-env --- .github/workflows/ninja_pr_checks.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ninja_pr_checks.yml b/.github/workflows/ninja_pr_checks.yml index 2025dddbd..741184acb 100644 --- a/.github/workflows/ninja_pr_checks.yml +++ b/.github/workflows/ninja_pr_checks.yml @@ -82,9 +82,9 @@ jobs: needs: check-ninja-example-changes if: needs.check-ninja-example-changes.outputs.has_examples == 'true' runs-on: ubuntu-24.04 - # container: ghcr.io/dfinity/icp-dev-env-slim:20 + container: ghcr.io/dfinity/icp-dev-env-slim:20 #container: ubuntu:24.04 - container: rust:1.83-slim-bookworm + #container: rust:1.83-slim-bookworm strategy: fail-fast: false matrix: ${{ fromJson(needs.check-ninja-example-changes.outputs.matrix) }} From 2fa8bf9735c9d0c732b3a60bc19515c0f5a5c597 Mon Sep 17 00:00:00 2001 From: Martin Raszyk Date: Fri, 6 Jun 2025 22:52:28 +0200 Subject: [PATCH 35/56] . From 66913b04998a394766132770a6514c7a90ed5a91 Mon Sep 17 00:00:00 2001 From: Martin Raszyk Date: Fri, 6 Jun 2025 22:52:40 +0200 Subject: [PATCH 36/56] . From 32810d5d1e10af3293d5884b7bbd1881d4637fa2 Mon Sep 17 00:00:00 2001 From: Martin Raszyk Date: Fri, 6 Jun 2025 22:53:57 +0200 Subject: [PATCH 37/56] . From 4182b9a6494e572712a902f8bac7fa1013987351 Mon Sep 17 00:00:00 2001 From: Martin Raszyk Date: Fri, 6 Jun 2025 22:54:09 +0200 Subject: [PATCH 38/56] . From fc7470ba2a59f55377279d476c47eaeec2e0243c Mon Sep 17 00:00:00 2001 From: Martin Raszyk Date: Fri, 6 Jun 2025 22:55:55 +0200 Subject: [PATCH 39/56] llm --- .github/workflows/ninja_pr_checks.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ninja_pr_checks.yml b/.github/workflows/ninja_pr_checks.yml index 741184acb..77b58fea2 100644 --- a/.github/workflows/ninja_pr_checks.yml +++ b/.github/workflows/ninja_pr_checks.yml @@ -35,9 +35,9 @@ jobs: # ["FileVault (Motoko)"]="motoko/filevault" # ["Flying Ninja (Motoko)"]="motoko/flying_ninja" # ["Hello World (Motoko)"]="motoko/hello_world" - # ["LLM Chatbot (Motoko)"]="motoko/llm_chatbot" + ["LLM Chatbot (Motoko)"]="motoko/llm_chatbot" # ["Tokenmania (Motoko)"]="motoko/tokenmania" - ["Who Am I (Motoko)"]="motoko/who_am_i" + # ["Who Am I (Motoko)"]="motoko/who_am_i" # ["Rust backend (Rust)"]="rust/backend_only" # ["Daily Planner (Rust)"]="rust/daily_planner" # ["EVM Block Explorer (Rust)"]="rust/evm_block_explorer" @@ -107,4 +107,4 @@ jobs: - name: Deploy working-directory: ${{ matrix.example.path }} run: | - dfx deploy internet_identity + dfx deploy From 80c560b5d883f811b172a6d6ea6f53e6c08c5c3b Mon Sep 17 00:00:00 2001 From: Martin Raszyk Date: Fri, 6 Jun 2025 22:59:08 +0200 Subject: [PATCH 40/56] only llm --- .github/workflows/ninja_pr_checks.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ninja_pr_checks.yml b/.github/workflows/ninja_pr_checks.yml index 77b58fea2..12f432929 100644 --- a/.github/workflows/ninja_pr_checks.yml +++ b/.github/workflows/ninja_pr_checks.yml @@ -107,4 +107,4 @@ jobs: - name: Deploy working-directory: ${{ matrix.example.path }} run: | - dfx deploy + dfx deploy llm From fe3543c6490d9bd17a697b32b16e7feb593f6ea1 Mon Sep 17 00:00:00 2001 From: Martin Raszyk Date: Fri, 6 Jun 2025 23:02:05 +0200 Subject: [PATCH 41/56] no wallet --- .github/workflows/ninja_pr_checks.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ninja_pr_checks.yml b/.github/workflows/ninja_pr_checks.yml index 12f432929..ac167c707 100644 --- a/.github/workflows/ninja_pr_checks.yml +++ b/.github/workflows/ninja_pr_checks.yml @@ -107,4 +107,4 @@ jobs: - name: Deploy working-directory: ${{ matrix.example.path }} run: | - dfx deploy llm + dfx deploy llm --no-wallet From 5d81f2220e273d5716e7401803258f64f4170dcb Mon Sep 17 00:00:00 2001 From: Martin Raszyk Date: Fri, 6 Jun 2025 23:03:52 +0200 Subject: [PATCH 42/56] trace deploy --- .github/workflows/ninja_pr_checks.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ninja_pr_checks.yml b/.github/workflows/ninja_pr_checks.yml index ac167c707..b3f3b04e8 100644 --- a/.github/workflows/ninja_pr_checks.yml +++ b/.github/workflows/ninja_pr_checks.yml @@ -107,4 +107,4 @@ jobs: - name: Deploy working-directory: ${{ matrix.example.path }} run: | - dfx deploy llm --no-wallet + RUST_LOG=trace dfx deploy llm --no-wallet From 89b4eb71f3b1d953fa30cfda2de776e697a76696 Mon Sep 17 00:00:00 2001 From: Martin Raszyk Date: Fri, 6 Jun 2025 23:06:20 +0200 Subject: [PATCH 43/56] one step --- .github/workflows/ninja_pr_checks.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ninja_pr_checks.yml b/.github/workflows/ninja_pr_checks.yml index b3f3b04e8..94a428f50 100644 --- a/.github/workflows/ninja_pr_checks.yml +++ b/.github/workflows/ninja_pr_checks.yml @@ -101,10 +101,8 @@ jobs: with: dfx-version: "0.27.0" - - name: Set up - run: dfx start --background --verbose - - name: Deploy working-directory: ${{ matrix.example.path }} run: | - RUST_LOG=trace dfx deploy llm --no-wallet + dfx start --background --verbose + dfx deploy llm --no-wallet From ca603130ef2c48e4ab2be17037ace77901c63358 Mon Sep 17 00:00:00 2001 From: Martin Raszyk Date: Fri, 6 Jun 2025 23:07:50 +0200 Subject: [PATCH 44/56] . From 2056bbf49f68245e3f1236fae12a3041d63bc84f Mon Sep 17 00:00:00 2001 From: Martin Raszyk Date: Fri, 6 Jun 2025 23:08:01 +0200 Subject: [PATCH 45/56] . From 2eb9d65e4cc1ea80b66fa1d7a83d0d9d6b14983e Mon Sep 17 00:00:00 2001 From: Martin Raszyk Date: Fri, 6 Jun 2025 23:09:25 +0200 Subject: [PATCH 46/56] . From a004ead50dc2d5aac0e8aca08de2bdb5755d46bd Mon Sep 17 00:00:00 2001 From: Martin Raszyk Date: Fri, 6 Jun 2025 23:09:37 +0200 Subject: [PATCH 47/56] . From 541496c716e9b7bb68ea6f7098ba245984ff317a Mon Sep 17 00:00:00 2001 From: Martin Raszyk Date: Fri, 6 Jun 2025 23:11:18 +0200 Subject: [PATCH 48/56] separate step --- .github/workflows/ninja_pr_checks.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ninja_pr_checks.yml b/.github/workflows/ninja_pr_checks.yml index 94a428f50..ac167c707 100644 --- a/.github/workflows/ninja_pr_checks.yml +++ b/.github/workflows/ninja_pr_checks.yml @@ -101,8 +101,10 @@ jobs: with: dfx-version: "0.27.0" + - name: Set up + run: dfx start --background --verbose + - name: Deploy working-directory: ${{ matrix.example.path }} run: | - dfx start --background --verbose dfx deploy llm --no-wallet From a994c3979f36c1043433b6a44f4b55f6817ebc4e Mon Sep 17 00:00:00 2001 From: Martin Raszyk Date: Fri, 6 Jun 2025 23:14:32 +0200 Subject: [PATCH 49/56] . From 156c1d0fad28aeebcac44df5b2a0dfce1aceca3d Mon Sep 17 00:00:00 2001 From: Martin Raszyk Date: Fri, 6 Jun 2025 23:14:44 +0200 Subject: [PATCH 50/56] . From ddaea3388fa8564ee59b9e899d8dc22896708dd3 Mon Sep 17 00:00:00 2001 From: Martin Raszyk Date: Fri, 6 Jun 2025 23:17:40 +0200 Subject: [PATCH 51/56] . From ce27f996306b779a94ffae51f89bd87a53ca52db Mon Sep 17 00:00:00 2001 From: Martin Raszyk Date: Fri, 6 Jun 2025 23:17:51 +0200 Subject: [PATCH 52/56] . From ceab1fe48247b1214d2598c67475e04bdc6f2b8e Mon Sep 17 00:00:00 2001 From: Martin Raszyk Date: Fri, 6 Jun 2025 23:39:01 +0200 Subject: [PATCH 53/56] repro --- .github/workflows/ninja_pr_checks.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ninja_pr_checks.yml b/.github/workflows/ninja_pr_checks.yml index ac167c707..0222f82d2 100644 --- a/.github/workflows/ninja_pr_checks.yml +++ b/.github/workflows/ninja_pr_checks.yml @@ -94,7 +94,14 @@ jobs: uses: actions/checkout@v4 - name: Install curl and libunwind-dev - run: apt update && apt install curl libunwind-dev --yes + run: apt update && apt install curl libunwind-dev python3 --yes + + - name: Start server in the background + run: python3 -m http.server 8000 & + + - name: Access server + run: | + for((i=0; i<20; i++)); do curl http://localhost:8000; sleep 1; done - name: Install dfx # This is a temporary workaround. Dfx is already installed in the container, but it does not start in the next step if we don't install it here again. uses: dfinity/setup-dfx@main From 884898e437b232b3fa8afd6be61f28a3abbe89ed Mon Sep 17 00:00:00 2001 From: Martin Raszyk Date: Fri, 6 Jun 2025 23:41:08 +0200 Subject: [PATCH 54/56] for --- .github/workflows/ninja_pr_checks.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ninja_pr_checks.yml b/.github/workflows/ninja_pr_checks.yml index 0222f82d2..cdb781ce0 100644 --- a/.github/workflows/ninja_pr_checks.yml +++ b/.github/workflows/ninja_pr_checks.yml @@ -101,7 +101,7 @@ jobs: - name: Access server run: | - for((i=0; i<20; i++)); do curl http://localhost:8000; sleep 1; done + for i in $(seq 0 20); do curl http://localhost:8000; sleep 1; done - name: Install dfx # This is a temporary workaround. Dfx is already installed in the container, but it does not start in the next step if we don't install it here again. uses: dfinity/setup-dfx@main From 65ba920f0899e665f01cd8d6f0f8be67c1b14d76 Mon Sep 17 00:00:00 2001 From: Martin Raszyk Date: Fri, 6 Jun 2025 23:42:24 +0200 Subject: [PATCH 55/56] curl -v --- .github/workflows/ninja_pr_checks.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ninja_pr_checks.yml b/.github/workflows/ninja_pr_checks.yml index cdb781ce0..19115bef1 100644 --- a/.github/workflows/ninja_pr_checks.yml +++ b/.github/workflows/ninja_pr_checks.yml @@ -101,7 +101,7 @@ jobs: - name: Access server run: | - for i in $(seq 0 20); do curl http://localhost:8000; sleep 1; done + for i in $(seq 0 20); do curl -v http://localhost:8000; sleep 1; done - name: Install dfx # This is a temporary workaround. Dfx is already installed in the container, but it does not start in the next step if we don't install it here again. uses: dfinity/setup-dfx@main From 7077b3355bd7a606b159aa659a7aecc65e203c1b Mon Sep 17 00:00:00 2001 From: Martin Raszyk Date: Fri, 6 Jun 2025 23:42:44 +0200 Subject: [PATCH 56/56] name --- .github/workflows/ninja_pr_checks.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ninja_pr_checks.yml b/.github/workflows/ninja_pr_checks.yml index 19115bef1..946037d64 100644 --- a/.github/workflows/ninja_pr_checks.yml +++ b/.github/workflows/ninja_pr_checks.yml @@ -93,7 +93,7 @@ jobs: - name: Checkout uses: actions/checkout@v4 - - name: Install curl and libunwind-dev + - name: Install curl, libunwind-dev, and python3 run: apt update && apt install curl libunwind-dev python3 --yes - name: Start server in the background