From daa35247f353227b2a3fd7172ed071c10e054998 Mon Sep 17 00:00:00 2001 From: Anmol1696 Date: Wed, 12 Jun 2024 14:31:14 +0530 Subject: [PATCH 01/29] upgrade starship-action v4 --- .github/actions/e2e-test/action.yaml | 3 +-- .github/workflows/pr-tests.yaml | 3 +-- .github/workflows/smoke-tests.yaml | 9 +++------ 3 files changed, 5 insertions(+), 10 deletions(-) diff --git a/.github/actions/e2e-test/action.yaml b/.github/actions/e2e-test/action.yaml index d39e9448..0d5671cb 100644 --- a/.github/actions/e2e-test/action.yaml +++ b/.github/actions/e2e-test/action.yaml @@ -65,10 +65,9 @@ runs: - name: Setup Test infra id: starship-action - uses: cosmology-tech/starship-action@0.3.0 + uses: cosmology-tech/starship-action@0.4.0 with: values: ${{ env.CONFIG_FILE }} - port-forward: true version: 0.0.0 chart: ./starship/charts/devnet kubeconfig: ${{ steps.kubeconfig.outputs.content }} diff --git a/.github/workflows/pr-tests.yaml b/.github/workflows/pr-tests.yaml index b92729ab..ebf23c05 100644 --- a/.github/workflows/pr-tests.yaml +++ b/.github/workflows/pr-tests.yaml @@ -53,10 +53,9 @@ jobs: - name: Setup Test infra id: starship-action - uses: cosmology-tech/starship-action@0.3.0 + uses: cosmology-tech/starship-action@0.4.0 with: values: ${{ env.CONFIG_FILE }} - port-forward: true version: 0.0.0 chart: ./starship/charts/devnet diff --git a/.github/workflows/smoke-tests.yaml b/.github/workflows/smoke-tests.yaml index 59a90f9f..0d01bd43 100644 --- a/.github/workflows/smoke-tests.yaml +++ b/.github/workflows/smoke-tests.yaml @@ -29,10 +29,9 @@ jobs: - name: Setup Test infra id: starship-action - uses: cosmology-tech/starship-action@0.3.0 + uses: cosmology-tech/starship-action@0.4.0 with: values: ${{ env.CONFIG_FILE }} - port-forward: true version: 0.0.0 chart: ./starship/charts/devnet timeout: 10m @@ -66,10 +65,9 @@ jobs: - name: Setup Test infra id: starship-action - uses: cosmology-tech/starship-action@0.3.0 + uses: cosmology-tech/starship-action@0.4.0 with: values: ${{ env.CONFIG_FILE }} - port-forward: true version: 0.0.0 chart: ./starship/charts/devnet timeout: 10m @@ -103,10 +101,9 @@ jobs: - name: Setup Test infra id: starship-action - uses: cosmology-tech/starship-action@0.3.0 + uses: cosmology-tech/starship-action@0.4.0 with: values: ${{ env.CONFIG_FILE }} - port-forward: true version: 0.0.0 chart: ./starship/charts/devnet timeout: 10m From de8d3c8cb2dfc842379a5fdd119189e6511ad798 Mon Sep 17 00:00:00 2001 From: Anmol1696 Date: Wed, 12 Jun 2024 14:55:17 +0530 Subject: [PATCH 02/29] upgrade to starship-action 0.4.1 --- .github/actions/e2e-test/action.yaml | 2 +- .github/workflows/pr-tests.yaml | 2 +- .github/workflows/smoke-tests.yaml | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/actions/e2e-test/action.yaml b/.github/actions/e2e-test/action.yaml index 0d5671cb..a21ea743 100644 --- a/.github/actions/e2e-test/action.yaml +++ b/.github/actions/e2e-test/action.yaml @@ -65,7 +65,7 @@ runs: - name: Setup Test infra id: starship-action - uses: cosmology-tech/starship-action@0.4.0 + uses: cosmology-tech/starship-action@0.4.1 with: values: ${{ env.CONFIG_FILE }} version: 0.0.0 diff --git a/.github/workflows/pr-tests.yaml b/.github/workflows/pr-tests.yaml index ebf23c05..2babfa90 100644 --- a/.github/workflows/pr-tests.yaml +++ b/.github/workflows/pr-tests.yaml @@ -53,7 +53,7 @@ jobs: - name: Setup Test infra id: starship-action - uses: cosmology-tech/starship-action@0.4.0 + uses: cosmology-tech/starship-action@0.4.1 with: values: ${{ env.CONFIG_FILE }} version: 0.0.0 diff --git a/.github/workflows/smoke-tests.yaml b/.github/workflows/smoke-tests.yaml index 0d01bd43..43e67fee 100644 --- a/.github/workflows/smoke-tests.yaml +++ b/.github/workflows/smoke-tests.yaml @@ -29,7 +29,7 @@ jobs: - name: Setup Test infra id: starship-action - uses: cosmology-tech/starship-action@0.4.0 + uses: cosmology-tech/starship-action@0.4.1 with: values: ${{ env.CONFIG_FILE }} version: 0.0.0 @@ -65,7 +65,7 @@ jobs: - name: Setup Test infra id: starship-action - uses: cosmology-tech/starship-action@0.4.0 + uses: cosmology-tech/starship-action@0.4.1 with: values: ${{ env.CONFIG_FILE }} version: 0.0.0 @@ -101,7 +101,7 @@ jobs: - name: Setup Test infra id: starship-action - uses: cosmology-tech/starship-action@0.4.0 + uses: cosmology-tech/starship-action@0.4.1 with: values: ${{ env.CONFIG_FILE }} version: 0.0.0 From 57a5da264c5b7d4fa008d52db6d764d9a1015586 Mon Sep 17 00:00:00 2001 From: Anmol1696 Date: Thu, 13 Jun 2024 16:43:04 +0530 Subject: [PATCH 03/29] update starship-cli to version 2.5.0 --- .github/actions/e2e-test/action.yaml | 3 ++- .github/workflows/pr-tests.yaml | 3 ++- .github/workflows/smoke-tests.yaml | 9 ++++++--- 3 files changed, 10 insertions(+), 5 deletions(-) diff --git a/.github/actions/e2e-test/action.yaml b/.github/actions/e2e-test/action.yaml index a21ea743..794b02d0 100644 --- a/.github/actions/e2e-test/action.yaml +++ b/.github/actions/e2e-test/action.yaml @@ -65,12 +65,13 @@ runs: - name: Setup Test infra id: starship-action - uses: cosmology-tech/starship-action@0.4.1 + uses: cosmology-tech/starship-action@0.4.3 with: values: ${{ env.CONFIG_FILE }} version: 0.0.0 chart: ./starship/charts/devnet kubeconfig: ${{ steps.kubeconfig.outputs.content }} + cli-version: 2.5.0 - name: Run tests run: | diff --git a/.github/workflows/pr-tests.yaml b/.github/workflows/pr-tests.yaml index 2babfa90..14b90dc9 100644 --- a/.github/workflows/pr-tests.yaml +++ b/.github/workflows/pr-tests.yaml @@ -53,11 +53,12 @@ jobs: - name: Setup Test infra id: starship-action - uses: cosmology-tech/starship-action@0.4.1 + uses: cosmology-tech/starship-action@0.4.3 with: values: ${{ env.CONFIG_FILE }} version: 0.0.0 chart: ./starship/charts/devnet + cli-version: 2.5.0 - name: Run tests run: | diff --git a/.github/workflows/smoke-tests.yaml b/.github/workflows/smoke-tests.yaml index 43e67fee..7dfd0814 100644 --- a/.github/workflows/smoke-tests.yaml +++ b/.github/workflows/smoke-tests.yaml @@ -29,12 +29,13 @@ jobs: - name: Setup Test infra id: starship-action - uses: cosmology-tech/starship-action@0.4.1 + uses: cosmology-tech/starship-action@0.4.3 with: values: ${{ env.CONFIG_FILE }} version: 0.0.0 chart: ./starship/charts/devnet timeout: 10m + cli-version: 2.5.0 # todo: change this to be post step of the action - name: Cleanup cluster @@ -65,12 +66,13 @@ jobs: - name: Setup Test infra id: starship-action - uses: cosmology-tech/starship-action@0.4.1 + uses: cosmology-tech/starship-action@0.4.3 with: values: ${{ env.CONFIG_FILE }} version: 0.0.0 chart: ./starship/charts/devnet timeout: 10m + cli-version: 2.5.0 # todo: change this to be post step of the action - name: Cleanup cluster @@ -101,12 +103,13 @@ jobs: - name: Setup Test infra id: starship-action - uses: cosmology-tech/starship-action@0.4.1 + uses: cosmology-tech/starship-action@0.4.3 with: values: ${{ env.CONFIG_FILE }} version: 0.0.0 chart: ./starship/charts/devnet timeout: 10m + cli-version: 2.5.0 # todo: change this to be post step of the action - name: Cleanup cluster From 8d6df8903182ef3364059236d65697d30001df21 Mon Sep 17 00:00:00 2001 From: Anmol1696 Date: Thu, 13 Jun 2024 18:13:27 +0530 Subject: [PATCH 04/29] fix relative path, try to use build of starshipjs from local clients/js --- .github/actions/e2e-test/action.yaml | 15 ++++++++++++++- .github/workflows/pr-tests.yaml | 15 ++++++++++++++- clients/js/packages/cli/src/utils.ts | 2 +- 3 files changed, 29 insertions(+), 3 deletions(-) diff --git a/.github/actions/e2e-test/action.yaml b/.github/actions/e2e-test/action.yaml index 794b02d0..0f4143d7 100644 --- a/.github/actions/e2e-test/action.yaml +++ b/.github/actions/e2e-test/action.yaml @@ -63,6 +63,19 @@ runs: go-version: "1.21" check-latest: true + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: "20.x" + cache: "yarn" + cache-dependency-path: "clients/js/yarn.lock" + + - name: Install starshipjs + run: | + cd clients/js + yarn build + shell: bash + - name: Setup Test infra id: starship-action uses: cosmology-tech/starship-action@0.4.3 @@ -71,7 +84,7 @@ runs: version: 0.0.0 chart: ./starship/charts/devnet kubeconfig: ${{ steps.kubeconfig.outputs.content }} - cli-version: 2.5.0 + cli-version: 0.0.0 - name: Run tests run: | diff --git a/.github/workflows/pr-tests.yaml b/.github/workflows/pr-tests.yaml index 14b90dc9..cbdd3f25 100644 --- a/.github/workflows/pr-tests.yaml +++ b/.github/workflows/pr-tests.yaml @@ -51,6 +51,19 @@ jobs: go-version: "1.21" check-latest: true + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: "20.x" + cache: "yarn" + cache-dependency-path: "clients/js/yarn.lock" + + - name: Install starshipjs + run: | + cd clients/js + yarn build + shell: bash + - name: Setup Test infra id: starship-action uses: cosmology-tech/starship-action@0.4.3 @@ -58,7 +71,7 @@ jobs: values: ${{ env.CONFIG_FILE }} version: 0.0.0 chart: ./starship/charts/devnet - cli-version: 2.5.0 + cli-version: 0.0.0 - name: Run tests run: | diff --git a/clients/js/packages/cli/src/utils.ts b/clients/js/packages/cli/src/utils.ts index 235591ee..a43b2ddc 100644 --- a/clients/js/packages/cli/src/utils.ts +++ b/clients/js/packages/cli/src/utils.ts @@ -63,7 +63,7 @@ export const loadConfig = (argv: any): Config => { }); if (context.helmFile) { - const dir = dirname(argv.config || process.cwd()); + const dir = argv.config ? dirname(argv.config) : process.cwd(); context.helmFile = resolve(resolvePath(dir), context.helmFile); starship = loadYaml(context.helmFile) as StarshipConfig } From bac94907f8543891d8d37e84ae3cb644987d52a0 Mon Sep 17 00:00:00 2001 From: Anmol1696 Date: Thu, 13 Jun 2024 18:15:13 +0530 Subject: [PATCH 05/29] update relative path to clients --- .github/workflows/pr-tests.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pr-tests.yaml b/.github/workflows/pr-tests.yaml index cbdd3f25..d90b5dd4 100644 --- a/.github/workflows/pr-tests.yaml +++ b/.github/workflows/pr-tests.yaml @@ -56,11 +56,11 @@ jobs: with: node-version: "20.x" cache: "yarn" - cache-dependency-path: "clients/js/yarn.lock" + cache-dependency-path: "../clients/js/yarn.lock" - name: Install starshipjs run: | - cd clients/js + cd ../clients/js yarn build shell: bash From d3102c00d14b761b70078c340c06c2118c6accf8 Mon Sep 17 00:00:00 2001 From: Anmol1696 Date: Thu, 13 Jun 2024 18:16:18 +0530 Subject: [PATCH 06/29] remove dependency path --- .github/workflows/pr-tests.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pr-tests.yaml b/.github/workflows/pr-tests.yaml index d90b5dd4..fac3c1e1 100644 --- a/.github/workflows/pr-tests.yaml +++ b/.github/workflows/pr-tests.yaml @@ -56,7 +56,7 @@ jobs: with: node-version: "20.x" cache: "yarn" - cache-dependency-path: "../clients/js/yarn.lock" + cache-dependency-path: "clients/js/yarn.lock" - name: Install starshipjs run: | From 90a39e4c01095d0dfece66f17b14bf1336b5047b Mon Sep 17 00:00:00 2001 From: Anmol1696 Date: Thu, 13 Jun 2024 18:18:20 +0530 Subject: [PATCH 07/29] run yarn before yarn --- .github/workflows/pr-tests.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/pr-tests.yaml b/.github/workflows/pr-tests.yaml index fac3c1e1..8c857f05 100644 --- a/.github/workflows/pr-tests.yaml +++ b/.github/workflows/pr-tests.yaml @@ -61,6 +61,7 @@ jobs: - name: Install starshipjs run: | cd ../clients/js + yarn yarn build shell: bash From ad7171229c1fc6bc3c66d585ceb19ef540426cb0 Mon Sep 17 00:00:00 2001 From: Anmol1696 Date: Thu, 13 Jun 2024 18:39:23 +0530 Subject: [PATCH 08/29] use github action with commit --- .github/actions/e2e-test/action.yaml | 1 - .github/workflows/pr-tests.yaml | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/actions/e2e-test/action.yaml b/.github/actions/e2e-test/action.yaml index 0f4143d7..31cd7d63 100644 --- a/.github/actions/e2e-test/action.yaml +++ b/.github/actions/e2e-test/action.yaml @@ -68,7 +68,6 @@ runs: with: node-version: "20.x" cache: "yarn" - cache-dependency-path: "clients/js/yarn.lock" - name: Install starshipjs run: | diff --git a/.github/workflows/pr-tests.yaml b/.github/workflows/pr-tests.yaml index 8c857f05..506b842a 100644 --- a/.github/workflows/pr-tests.yaml +++ b/.github/workflows/pr-tests.yaml @@ -67,7 +67,7 @@ jobs: - name: Setup Test infra id: starship-action - uses: cosmology-tech/starship-action@0.4.3 + uses: cosmology-tech/starship-action@731b85fc09ed469ae98bbe5ffcec66dd3166f352 with: values: ${{ env.CONFIG_FILE }} version: 0.0.0 From dd0ebe9a755f42fea4dc8263cd97ee52e792ac36 Mon Sep 17 00:00:00 2001 From: Anmol1696 Date: Thu, 13 Jun 2024 19:52:20 +0530 Subject: [PATCH 09/29] remove local setup for installing starship --- .github/workflows/pr-tests.yaml | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/.github/workflows/pr-tests.yaml b/.github/workflows/pr-tests.yaml index 506b842a..99a188dd 100644 --- a/.github/workflows/pr-tests.yaml +++ b/.github/workflows/pr-tests.yaml @@ -51,20 +51,6 @@ jobs: go-version: "1.21" check-latest: true - - name: Setup Node.js - uses: actions/setup-node@v4 - with: - node-version: "20.x" - cache: "yarn" - cache-dependency-path: "clients/js/yarn.lock" - - - name: Install starshipjs - run: | - cd ../clients/js - yarn - yarn build - shell: bash - - name: Setup Test infra id: starship-action uses: cosmology-tech/starship-action@731b85fc09ed469ae98bbe5ffcec66dd3166f352 From c23069446e789031131614242edb391ac59b9e73 Mon Sep 17 00:00:00 2001 From: Anmol1696 Date: Thu, 13 Jun 2024 19:55:58 +0530 Subject: [PATCH 10/29] set starship cli-version to 2.5.1 --- .github/workflows/pr-tests.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pr-tests.yaml b/.github/workflows/pr-tests.yaml index 99a188dd..96f192ab 100644 --- a/.github/workflows/pr-tests.yaml +++ b/.github/workflows/pr-tests.yaml @@ -58,7 +58,7 @@ jobs: values: ${{ env.CONFIG_FILE }} version: 0.0.0 chart: ./starship/charts/devnet - cli-version: 0.0.0 + cli-version: 2.5.1 - name: Run tests run: | From cbba5515b8055fbc99f69555bfc094e905f739fb Mon Sep 17 00:00:00 2001 From: Anmol1696 Date: Thu, 13 Jun 2024 22:22:25 +0530 Subject: [PATCH 11/29] update cli-version and starship-action to main --- .github/workflows/pr-tests.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pr-tests.yaml b/.github/workflows/pr-tests.yaml index 96f192ab..f83bc3e1 100644 --- a/.github/workflows/pr-tests.yaml +++ b/.github/workflows/pr-tests.yaml @@ -58,7 +58,7 @@ jobs: values: ${{ env.CONFIG_FILE }} version: 0.0.0 chart: ./starship/charts/devnet - cli-version: 2.5.1 + cli-version: 2.5.6 - name: Run tests run: | From 7edb726e82428d06762bb45f8625655f836e943b Mon Sep 17 00:00:00 2001 From: Anmol1696 Date: Thu, 13 Jun 2024 22:22:47 +0530 Subject: [PATCH 12/29] update commit to starship-action --- .github/workflows/pr-tests.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pr-tests.yaml b/.github/workflows/pr-tests.yaml index f83bc3e1..7bd46520 100644 --- a/.github/workflows/pr-tests.yaml +++ b/.github/workflows/pr-tests.yaml @@ -53,7 +53,7 @@ jobs: - name: Setup Test infra id: starship-action - uses: cosmology-tech/starship-action@731b85fc09ed469ae98bbe5ffcec66dd3166f352 + uses: cosmology-tech/starship-action@8b97b7adfdd0388f3f7242424bb8dadbed234dd1 with: values: ${{ env.CONFIG_FILE }} version: 0.0.0 From 7289afb70cda8fe74a49592f8a49793375fdc4de Mon Sep 17 00:00:00 2001 From: Anmol1696 Date: Thu, 13 Jun 2024 22:26:37 +0530 Subject: [PATCH 13/29] set config properly --- .github/workflows/pr-tests.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pr-tests.yaml b/.github/workflows/pr-tests.yaml index 7bd46520..1313dace 100644 --- a/.github/workflows/pr-tests.yaml +++ b/.github/workflows/pr-tests.yaml @@ -55,7 +55,7 @@ jobs: id: starship-action uses: cosmology-tech/starship-action@8b97b7adfdd0388f3f7242424bb8dadbed234dd1 with: - values: ${{ env.CONFIG_FILE }} + config: ${{ env.CONFIG_FILE }} version: 0.0.0 chart: ./starship/charts/devnet cli-version: 2.5.6 From d35b5ba4e0639e3c753ee83f22a71aa08b23c41a Mon Sep 17 00:00:00 2001 From: Anmol1696 Date: Thu, 13 Jun 2024 22:35:43 +0530 Subject: [PATCH 14/29] update all starship-action --- .github/actions/e2e-test/action.yaml | 6 +++--- .github/workflows/pr-tests.yaml | 2 +- .github/workflows/smoke-tests.yaml | 21 +++++++++------------ 3 files changed, 13 insertions(+), 16 deletions(-) diff --git a/.github/actions/e2e-test/action.yaml b/.github/actions/e2e-test/action.yaml index 31cd7d63..11c44f9c 100644 --- a/.github/actions/e2e-test/action.yaml +++ b/.github/actions/e2e-test/action.yaml @@ -77,13 +77,13 @@ runs: - name: Setup Test infra id: starship-action - uses: cosmology-tech/starship-action@0.4.3 + uses: cosmology-tech/starship-action@0.5.0 with: - values: ${{ env.CONFIG_FILE }} + config: ${{ env.CONFIG_FILE }} version: 0.0.0 chart: ./starship/charts/devnet kubeconfig: ${{ steps.kubeconfig.outputs.content }} - cli-version: 0.0.0 + cli-version: 2.5.6 - name: Run tests run: | diff --git a/.github/workflows/pr-tests.yaml b/.github/workflows/pr-tests.yaml index 1313dace..9d96de7e 100644 --- a/.github/workflows/pr-tests.yaml +++ b/.github/workflows/pr-tests.yaml @@ -53,7 +53,7 @@ jobs: - name: Setup Test infra id: starship-action - uses: cosmology-tech/starship-action@8b97b7adfdd0388f3f7242424bb8dadbed234dd1 + uses: cosmology-tech/starship-action@0.5.0 with: config: ${{ env.CONFIG_FILE }} version: 0.0.0 diff --git a/.github/workflows/smoke-tests.yaml b/.github/workflows/smoke-tests.yaml index 7dfd0814..01ed786c 100644 --- a/.github/workflows/smoke-tests.yaml +++ b/.github/workflows/smoke-tests.yaml @@ -29,13 +29,12 @@ jobs: - name: Setup Test infra id: starship-action - uses: cosmology-tech/starship-action@0.4.3 + uses: cosmology-tech/starship-action@0.5.0 with: - values: ${{ env.CONFIG_FILE }} + config: ${{ env.CONFIG_FILE }} version: 0.0.0 chart: ./starship/charts/devnet - timeout: 10m - cli-version: 2.5.0 + cli-version: 2.5.6 # todo: change this to be post step of the action - name: Cleanup cluster @@ -66,13 +65,12 @@ jobs: - name: Setup Test infra id: starship-action - uses: cosmology-tech/starship-action@0.4.3 + uses: cosmology-tech/starship-action@0.5.0 with: - values: ${{ env.CONFIG_FILE }} + config: ${{ env.CONFIG_FILE }} version: 0.0.0 chart: ./starship/charts/devnet - timeout: 10m - cli-version: 2.5.0 + cli-version: 2.5.6 # todo: change this to be post step of the action - name: Cleanup cluster @@ -103,13 +101,12 @@ jobs: - name: Setup Test infra id: starship-action - uses: cosmology-tech/starship-action@0.4.3 + uses: cosmology-tech/starship-action@0.5.0 with: - values: ${{ env.CONFIG_FILE }} + config: ${{ env.CONFIG_FILE }} version: 0.0.0 chart: ./starship/charts/devnet - timeout: 10m - cli-version: 2.5.0 + cli-version: 2.5.6 # todo: change this to be post step of the action - name: Cleanup cluster From ba48a48781a6c9eeb74d41eb3c0413b26f9913f2 Mon Sep 17 00:00:00 2001 From: Anmol1696 Date: Thu, 13 Jun 2024 23:02:34 +0530 Subject: [PATCH 15/29] upgrade starship cli version to 2.6.0 fixing cometmock --- .github/actions/e2e-test/action.yaml | 2 +- .github/workflows/pr-tests.yaml | 2 +- .github/workflows/smoke-tests.yaml | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/actions/e2e-test/action.yaml b/.github/actions/e2e-test/action.yaml index 11c44f9c..195bbdbe 100644 --- a/.github/actions/e2e-test/action.yaml +++ b/.github/actions/e2e-test/action.yaml @@ -83,7 +83,7 @@ runs: version: 0.0.0 chart: ./starship/charts/devnet kubeconfig: ${{ steps.kubeconfig.outputs.content }} - cli-version: 2.5.6 + cli-version: 2.6.0 - name: Run tests run: | diff --git a/.github/workflows/pr-tests.yaml b/.github/workflows/pr-tests.yaml index 9d96de7e..3ae42f45 100644 --- a/.github/workflows/pr-tests.yaml +++ b/.github/workflows/pr-tests.yaml @@ -58,7 +58,7 @@ jobs: config: ${{ env.CONFIG_FILE }} version: 0.0.0 chart: ./starship/charts/devnet - cli-version: 2.5.6 + cli-version: 2.6.0 - name: Run tests run: | diff --git a/.github/workflows/smoke-tests.yaml b/.github/workflows/smoke-tests.yaml index 01ed786c..6f182850 100644 --- a/.github/workflows/smoke-tests.yaml +++ b/.github/workflows/smoke-tests.yaml @@ -34,7 +34,7 @@ jobs: config: ${{ env.CONFIG_FILE }} version: 0.0.0 chart: ./starship/charts/devnet - cli-version: 2.5.6 + cli-version: 2.6.0 # todo: change this to be post step of the action - name: Cleanup cluster @@ -70,7 +70,7 @@ jobs: config: ${{ env.CONFIG_FILE }} version: 0.0.0 chart: ./starship/charts/devnet - cli-version: 2.5.6 + cli-version: 2.6.0 # todo: change this to be post step of the action - name: Cleanup cluster @@ -106,7 +106,7 @@ jobs: config: ${{ env.CONFIG_FILE }} version: 0.0.0 chart: ./starship/charts/devnet - cli-version: 2.5.6 + cli-version: 2.6.0 # todo: change this to be post step of the action - name: Cleanup cluster From fdfa4a1a6282d104f9b386738128602b9458ce1f Mon Sep 17 00:00:00 2001 From: Anmol1696 Date: Fri, 14 Jun 2024 15:28:40 +0530 Subject: [PATCH 16/29] update cli-version to 2.6.1 --- .github/actions/e2e-test/action.yaml | 2 +- .github/workflows/pr-tests.yaml | 2 +- .github/workflows/smoke-tests.yaml | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/actions/e2e-test/action.yaml b/.github/actions/e2e-test/action.yaml index 195bbdbe..e737d546 100644 --- a/.github/actions/e2e-test/action.yaml +++ b/.github/actions/e2e-test/action.yaml @@ -83,7 +83,7 @@ runs: version: 0.0.0 chart: ./starship/charts/devnet kubeconfig: ${{ steps.kubeconfig.outputs.content }} - cli-version: 2.6.0 + cli-version: 2.6.1 - name: Run tests run: | diff --git a/.github/workflows/pr-tests.yaml b/.github/workflows/pr-tests.yaml index 3ae42f45..4264494f 100644 --- a/.github/workflows/pr-tests.yaml +++ b/.github/workflows/pr-tests.yaml @@ -58,7 +58,7 @@ jobs: config: ${{ env.CONFIG_FILE }} version: 0.0.0 chart: ./starship/charts/devnet - cli-version: 2.6.0 + cli-version: 2.6.1 - name: Run tests run: | diff --git a/.github/workflows/smoke-tests.yaml b/.github/workflows/smoke-tests.yaml index 6f182850..568575ea 100644 --- a/.github/workflows/smoke-tests.yaml +++ b/.github/workflows/smoke-tests.yaml @@ -34,7 +34,7 @@ jobs: config: ${{ env.CONFIG_FILE }} version: 0.0.0 chart: ./starship/charts/devnet - cli-version: 2.6.0 + cli-version: 2.6.1 # todo: change this to be post step of the action - name: Cleanup cluster @@ -70,7 +70,7 @@ jobs: config: ${{ env.CONFIG_FILE }} version: 0.0.0 chart: ./starship/charts/devnet - cli-version: 2.6.0 + cli-version: 2.6.1 # todo: change this to be post step of the action - name: Cleanup cluster @@ -106,7 +106,7 @@ jobs: config: ${{ env.CONFIG_FILE }} version: 0.0.0 chart: ./starship/charts/devnet - cli-version: 2.6.0 + cli-version: 2.6.1 # todo: change this to be post step of the action - name: Cleanup cluster From 42c433199596a5db2b920e2d9695d6f08fb30aff Mon Sep 17 00:00:00 2001 From: Anmol1696 Date: Sun, 16 Jun 2024 16:34:55 +0530 Subject: [PATCH 17/29] update tests to use local starship cli --- .github/actions/e2e-test/action.yaml | 4 +++- .github/workflows/pr-tests.yaml | 18 ++++++++++++++++-- .github/workflows/smoke-tests.yaml | 6 +++--- 3 files changed, 22 insertions(+), 6 deletions(-) diff --git a/.github/actions/e2e-test/action.yaml b/.github/actions/e2e-test/action.yaml index e737d546..b5d4d993 100644 --- a/.github/actions/e2e-test/action.yaml +++ b/.github/actions/e2e-test/action.yaml @@ -73,11 +73,13 @@ runs: run: | cd clients/js yarn build + ln -s $GITHUB_WORKSPACE/clients/js/dist/index.js /usr/local/bin/starship + starship --version shell: bash - name: Setup Test infra id: starship-action - uses: cosmology-tech/starship-action@0.5.0 + uses: cosmology-tech/starship-action@0.5.1 with: config: ${{ env.CONFIG_FILE }} version: 0.0.0 diff --git a/.github/workflows/pr-tests.yaml b/.github/workflows/pr-tests.yaml index 4264494f..d9f6cf84 100644 --- a/.github/workflows/pr-tests.yaml +++ b/.github/workflows/pr-tests.yaml @@ -51,14 +51,28 @@ jobs: go-version: "1.21" check-latest: true + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: "20.x" + cache: "yarn" + + - name: Install starshipjs + run: | + cd clients/js + yarn build + ln -s $GITHUB_WORKSPACE/clients/js/dist/index.js /usr/local/bin/starship + starship --version + shell: bash + - name: Setup Test infra id: starship-action - uses: cosmology-tech/starship-action@0.5.0 + uses: cosmology-tech/starship-action@0.5.1 with: config: ${{ env.CONFIG_FILE }} version: 0.0.0 chart: ./starship/charts/devnet - cli-version: 2.6.1 + cli-version: 0.0.0 - name: Run tests run: | diff --git a/.github/workflows/smoke-tests.yaml b/.github/workflows/smoke-tests.yaml index 568575ea..928111eb 100644 --- a/.github/workflows/smoke-tests.yaml +++ b/.github/workflows/smoke-tests.yaml @@ -29,7 +29,7 @@ jobs: - name: Setup Test infra id: starship-action - uses: cosmology-tech/starship-action@0.5.0 + uses: cosmology-tech/starship-action@0.5.1 with: config: ${{ env.CONFIG_FILE }} version: 0.0.0 @@ -65,7 +65,7 @@ jobs: - name: Setup Test infra id: starship-action - uses: cosmology-tech/starship-action@0.5.0 + uses: cosmology-tech/starship-action@0.5.1 with: config: ${{ env.CONFIG_FILE }} version: 0.0.0 @@ -101,7 +101,7 @@ jobs: - name: Setup Test infra id: starship-action - uses: cosmology-tech/starship-action@0.5.0 + uses: cosmology-tech/starship-action@0.5.1 with: config: ${{ env.CONFIG_FILE }} version: 0.0.0 From e35affa48360d1d4bbecb77b16908682bfb33b72 Mon Sep 17 00:00:00 2001 From: Anmol1696 Date: Sun, 16 Jun 2024 16:39:28 +0530 Subject: [PATCH 18/29] remove default working dir, set working dir per step --- .github/actions/e2e-test/action.yaml | 1 + .github/workflows/pr-tests.yaml | 7 +++---- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/actions/e2e-test/action.yaml b/.github/actions/e2e-test/action.yaml index b5d4d993..b6bf4900 100644 --- a/.github/actions/e2e-test/action.yaml +++ b/.github/actions/e2e-test/action.yaml @@ -68,6 +68,7 @@ runs: with: node-version: "20.x" cache: "yarn" + cache-dependency-path: clients/js - name: Install starshipjs run: | diff --git a/.github/workflows/pr-tests.yaml b/.github/workflows/pr-tests.yaml index d9f6cf84..5e591e03 100644 --- a/.github/workflows/pr-tests.yaml +++ b/.github/workflows/pr-tests.yaml @@ -21,10 +21,6 @@ jobs: runs-on: ubuntu-latest timeout-minutes: 30 - defaults: - run: - working-directory: starship - strategy: matrix: config-file: @@ -56,6 +52,7 @@ jobs: with: node-version: "20.x" cache: "yarn" + cache-dependency-path: clients/js - name: Install starshipjs run: | @@ -79,6 +76,7 @@ jobs: cd tests/e2e/ && go test -v ./... env: TEST_CONFIG_FILE: ${{ env.CONFIG_FILE }} + working-directory: starship # todo: change this to be post step of the action - name: Cleanup cluster @@ -89,3 +87,4 @@ jobs: env: DEVNET_NAME: ${{ steps.starship-action.outputs.name }} DEVNET_NAMESPACE: ${{ steps.starship-action.outputs.namespace }} + working-directory: starship From cef28ba80c32ebd6cadee4b397d1f2458b26ee3f Mon Sep 17 00:00:00 2001 From: Anmol1696 Date: Sun, 16 Jun 2024 16:42:02 +0530 Subject: [PATCH 19/29] create temp package.json file --- .github/workflows/pr-tests.yaml | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pr-tests.yaml b/.github/workflows/pr-tests.yaml index 5e591e03..2d75c49f 100644 --- a/.github/workflows/pr-tests.yaml +++ b/.github/workflows/pr-tests.yaml @@ -47,12 +47,22 @@ jobs: go-version: "1.21" check-latest: true + - name: Create yarn.lock and package.json file if not exists + run: | + if [ ! -f $GITHUB_WORKSPACE/yarn.lock ]; then + echo 'Creating temporary yarn.lock file' + echo '' > $GITHUB_WORKSPACE/yarn.lock + fi + if [ ! -f $GITHUB_WORKSPACE/package.json ]; then + echo 'Creating temporary package.json file' + echo '{}' > $GITHUB_WORKSPACE/package.json + fi + - name: Setup Node.js uses: actions/setup-node@v4 with: node-version: "20.x" cache: "yarn" - cache-dependency-path: clients/js - name: Install starshipjs run: | @@ -60,7 +70,6 @@ jobs: yarn build ln -s $GITHUB_WORKSPACE/clients/js/dist/index.js /usr/local/bin/starship starship --version - shell: bash - name: Setup Test infra id: starship-action From bf538e830073b3f8f37acadda867423956f49787 Mon Sep 17 00:00:00 2001 From: Anmol1696 Date: Sun, 16 Jun 2024 16:44:03 +0530 Subject: [PATCH 20/29] run yarn before running yarn build --- .github/workflows/pr-tests.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/pr-tests.yaml b/.github/workflows/pr-tests.yaml index 2d75c49f..a90b6406 100644 --- a/.github/workflows/pr-tests.yaml +++ b/.github/workflows/pr-tests.yaml @@ -67,6 +67,7 @@ jobs: - name: Install starshipjs run: | cd clients/js + yarn yarn build ln -s $GITHUB_WORKSPACE/clients/js/dist/index.js /usr/local/bin/starship starship --version From 8b0ab6ad4683a03aa97568fcf38b21fa42a75ad6 Mon Sep 17 00:00:00 2001 From: Anmol1696 Date: Sun, 16 Jun 2024 16:48:59 +0530 Subject: [PATCH 21/29] try to not use ln -s, use PATH instead --- .github/workflows/pr-tests.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/pr-tests.yaml b/.github/workflows/pr-tests.yaml index a90b6406..22c48bba 100644 --- a/.github/workflows/pr-tests.yaml +++ b/.github/workflows/pr-tests.yaml @@ -69,7 +69,8 @@ jobs: cd clients/js yarn yarn build - ln -s $GITHUB_WORKSPACE/clients/js/dist/index.js /usr/local/bin/starship + export PATH=$GITHUB_WORKSPACE/clients/js/node_modules/.bin:$PATH + echo "::add-path::$GITHUB_WORKSPACE/clients/js/node_modules/.bin" starship --version - name: Setup Test infra From 1dbeb0e91702b4f412f828f997ce359670782050 Mon Sep 17 00:00:00 2001 From: Anmol1696 Date: Sun, 16 Jun 2024 16:54:38 +0530 Subject: [PATCH 22/29] update PATH, to include .bin --- .github/workflows/pr-tests.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pr-tests.yaml b/.github/workflows/pr-tests.yaml index 22c48bba..71df5730 100644 --- a/.github/workflows/pr-tests.yaml +++ b/.github/workflows/pr-tests.yaml @@ -69,8 +69,8 @@ jobs: cd clients/js yarn yarn build - export PATH=$GITHUB_WORKSPACE/clients/js/node_modules/.bin:$PATH - echo "::add-path::$GITHUB_WORKSPACE/clients/js/node_modules/.bin" + chmod +x node_modules/.bin/starship + echo "PATH=$GITHUB_WORKSPACE/clients/js/node_modules/.bin:$PATH" >> $GITHUB_ENV starship --version - name: Setup Test infra From 227fa1c61462a27cf89278352a3deb5f528b5328 Mon Sep 17 00:00:00 2001 From: Anmol1696 Date: Sun, 16 Jun 2024 17:00:21 +0530 Subject: [PATCH 23/29] add step to verify command --- .github/workflows/pr-tests.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/pr-tests.yaml b/.github/workflows/pr-tests.yaml index 71df5730..fb796d7f 100644 --- a/.github/workflows/pr-tests.yaml +++ b/.github/workflows/pr-tests.yaml @@ -71,6 +71,9 @@ jobs: yarn build chmod +x node_modules/.bin/starship echo "PATH=$GITHUB_WORKSPACE/clients/js/node_modules/.bin:$PATH" >> $GITHUB_ENV + + - name: Verify starship CLI + run: | starship --version - name: Setup Test infra From 7decc5a373efd2c6786b85c14bacf4fe26fa4ee9 Mon Sep 17 00:00:00 2001 From: Anmol1696 Date: Sun, 16 Jun 2024 17:46:04 +0530 Subject: [PATCH 24/29] update tests so that starship cli is installed beforehand --- .github/actions/e2e-test/action.yaml | 22 ++++++-- .github/workflows/pr-tests.yaml | 6 +-- .github/workflows/smoke-tests.yaml | 81 ++++++++++++++++++++++++++-- 3 files changed, 96 insertions(+), 13 deletions(-) diff --git a/.github/actions/e2e-test/action.yaml b/.github/actions/e2e-test/action.yaml index b6bf4900..6d153be3 100644 --- a/.github/actions/e2e-test/action.yaml +++ b/.github/actions/e2e-test/action.yaml @@ -63,19 +63,31 @@ runs: go-version: "1.21" check-latest: true + - name: Create yarn.lock and package.json file if not exists + run: | + if [ ! -f $GITHUB_WORKSPACE/yarn.lock ]; then + echo 'Creating temporary yarn.lock file' + echo '' > $GITHUB_WORKSPACE/yarn.lock + fi + if [ ! -f $GITHUB_WORKSPACE/package.json ]; then + echo 'Creating temporary package.json file' + echo '{}' > $GITHUB_WORKSPACE/package.json + fi + shell: bash + - name: Setup Node.js uses: actions/setup-node@v4 with: node-version: "20.x" cache: "yarn" - cache-dependency-path: clients/js - - name: Install starshipjs + - name: Install starship CLI run: | cd clients/js + yarn yarn build - ln -s $GITHUB_WORKSPACE/clients/js/dist/index.js /usr/local/bin/starship - starship --version + chmod +x node_modules/.bin/starship + echo "PATH=$GITHUB_WORKSPACE/clients/js/node_modules/.bin:$PATH" >> $GITHUB_ENV shell: bash - name: Setup Test infra @@ -86,7 +98,7 @@ runs: version: 0.0.0 chart: ./starship/charts/devnet kubeconfig: ${{ steps.kubeconfig.outputs.content }} - cli-version: 2.6.1 + cli-version: 0.0.0 - name: Run tests run: | diff --git a/.github/workflows/pr-tests.yaml b/.github/workflows/pr-tests.yaml index fb796d7f..6c5bd0f0 100644 --- a/.github/workflows/pr-tests.yaml +++ b/.github/workflows/pr-tests.yaml @@ -64,7 +64,7 @@ jobs: node-version: "20.x" cache: "yarn" - - name: Install starshipjs + - name: Install starship CLI run: | cd clients/js yarn @@ -72,10 +72,6 @@ jobs: chmod +x node_modules/.bin/starship echo "PATH=$GITHUB_WORKSPACE/clients/js/node_modules/.bin:$PATH" >> $GITHUB_ENV - - name: Verify starship CLI - run: | - starship --version - - name: Setup Test infra id: starship-action uses: cosmology-tech/starship-action@0.5.1 diff --git a/.github/workflows/smoke-tests.yaml b/.github/workflows/smoke-tests.yaml index 928111eb..2651add7 100644 --- a/.github/workflows/smoke-tests.yaml +++ b/.github/workflows/smoke-tests.yaml @@ -27,6 +27,31 @@ jobs: - name: Checkout uses: actions/checkout@v2 + - name: Create yarn.lock and package.json file if not exists + run: | + if [ ! -f $GITHUB_WORKSPACE/yarn.lock ]; then + echo 'Creating temporary yarn.lock file' + echo '' > $GITHUB_WORKSPACE/yarn.lock + fi + if [ ! -f $GITHUB_WORKSPACE/package.json ]; then + echo 'Creating temporary package.json file' + echo '{}' > $GITHUB_WORKSPACE/package.json + fi + + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: "20.x" + cache: "yarn" + + - name: Install starship CLI + run: | + cd clients/js + yarn + yarn build + chmod +x node_modules/.bin/starship + echo "PATH=$GITHUB_WORKSPACE/clients/js/node_modules/.bin:$PATH" >> $GITHUB_ENV + - name: Setup Test infra id: starship-action uses: cosmology-tech/starship-action@0.5.1 @@ -34,7 +59,7 @@ jobs: config: ${{ env.CONFIG_FILE }} version: 0.0.0 chart: ./starship/charts/devnet - cli-version: 2.6.1 + cli-version: 0.0.0 # todo: change this to be post step of the action - name: Cleanup cluster @@ -63,6 +88,31 @@ jobs: - name: Checkout uses: actions/checkout@v2 + - name: Create yarn.lock and package.json file if not exists + run: | + if [ ! -f $GITHUB_WORKSPACE/yarn.lock ]; then + echo 'Creating temporary yarn.lock file' + echo '' > $GITHUB_WORKSPACE/yarn.lock + fi + if [ ! -f $GITHUB_WORKSPACE/package.json ]; then + echo 'Creating temporary package.json file' + echo '{}' > $GITHUB_WORKSPACE/package.json + fi + + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: "20.x" + cache: "yarn" + + - name: Install starship CLI + run: | + cd clients/js + yarn + yarn build + chmod +x node_modules/.bin/starship + echo "PATH=$GITHUB_WORKSPACE/clients/js/node_modules/.bin:$PATH" >> $GITHUB_ENV + - name: Setup Test infra id: starship-action uses: cosmology-tech/starship-action@0.5.1 @@ -70,7 +120,7 @@ jobs: config: ${{ env.CONFIG_FILE }} version: 0.0.0 chart: ./starship/charts/devnet - cli-version: 2.6.1 + cli-version: 0.0.0 # todo: change this to be post step of the action - name: Cleanup cluster @@ -99,6 +149,31 @@ jobs: - name: Checkout uses: actions/checkout@v2 + - name: Create yarn.lock and package.json file if not exists + run: | + if [ ! -f $GITHUB_WORKSPACE/yarn.lock ]; then + echo 'Creating temporary yarn.lock file' + echo '' > $GITHUB_WORKSPACE/yarn.lock + fi + if [ ! -f $GITHUB_WORKSPACE/package.json ]; then + echo 'Creating temporary package.json file' + echo '{}' > $GITHUB_WORKSPACE/package.json + fi + + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: "20.x" + cache: "yarn" + + - name: Install starship CLI + run: | + cd clients/js + yarn + yarn build + chmod +x node_modules/.bin/starship + echo "PATH=$GITHUB_WORKSPACE/clients/js/node_modules/.bin:$PATH" >> $GITHUB_ENV + - name: Setup Test infra id: starship-action uses: cosmology-tech/starship-action@0.5.1 @@ -106,7 +181,7 @@ jobs: config: ${{ env.CONFIG_FILE }} version: 0.0.0 chart: ./starship/charts/devnet - cli-version: 2.6.1 + cli-version: 0.0.0 # todo: change this to be post step of the action - name: Cleanup cluster From de77c49a79e7a4e62d9a10ef77cdc56f0ab3902e Mon Sep 17 00:00:00 2001 From: Anmol1696 Date: Mon, 17 Jun 2024 14:55:08 +0530 Subject: [PATCH 25/29] update multi-validator test to specific resources --- clients/js/packages/client/src/client.ts | 2 +- starship/tests/e2e/configs/multi-validator.yaml | 8 ++------ 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/clients/js/packages/client/src/client.ts b/clients/js/packages/client/src/client.ts index e40c7a52..ba1aa95d 100644 --- a/clients/js/packages/client/src/client.ts +++ b/clients/js/packages/client/src/client.ts @@ -29,7 +29,7 @@ export const defaultStarshipContext: Partial = { helmRepo: 'starship', helmRepoUrl: 'https://cosmology-tech.github.io/starship/', helmChart: 'starship/devnet', - helmVersion: 'v0.2.3', + helmVersion: 'v0.2.4', helmNamespace: '', }; diff --git a/starship/tests/e2e/configs/multi-validator.yaml b/starship/tests/e2e/configs/multi-validator.yaml index 5d25a1a5..462385e5 100644 --- a/starship/tests/e2e/configs/multi-validator.yaml +++ b/starship/tests/e2e/configs/multi-validator.yaml @@ -8,12 +8,8 @@ chains: exposer: 38083 faucet: 8000 resources: - limits: - cpu: "0.4" - memory: 1Gi - requests: - cpu: "0.2" - memory: 600M + cpu: "0.3" + memory: 600M faucet: concurrency: 2 resources: From bc3ea81e941b81801c3fc9f1f405c5f1a765908a Mon Sep 17 00:00:00 2001 From: Anmol1696 Date: Mon, 17 Jun 2024 15:16:03 +0530 Subject: [PATCH 26/29] try and fix cometmock for good --- .../devnet/templates/chains/cosmos/cometmock.yaml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/starship/charts/devnet/templates/chains/cosmos/cometmock.yaml b/starship/charts/devnet/templates/chains/cosmos/cometmock.yaml index 68bae1e7..80b4a38d 100644 --- a/starship/charts/devnet/templates/chains/cosmos/cometmock.yaml +++ b/starship/charts/devnet/templates/chains/cosmos/cometmock.yaml @@ -128,22 +128,24 @@ spec: - bash - "-c" - | - mkdir -p /chain/genesis/config /chain/genesis/data + mkdir -p /chain/genesis/config + mkdir -p /chain/genesis/data curl http://$GENESIS_HOST.$NAMESPACE.svc.cluster.local:$GENESIS_PORT/genesis -o /chain/genesis/config/genesis.json echo "Genesis file that we got....." cat /chain/genesis/config/genesis.json ## fetch priv_validator and priv_validator_state of all validators curl http://$GENESIS_HOST.$NAMESPACE.svc.cluster.local:$GENESIS_PORT/priv_keys -o /chain/genesis/config/priv_validator_key.json - curl http://$GENESIS_HOST.$NAMESPACE.svc.cluster.local:$GENESIS_PORT/priv_validator_state -o /chain/genesis/data/priv_validator_state.json + echo '{"height":"0","round":0,"step":0}' > /chain/genesis/data/priv_validator_state.json {{- if gt $chain.numValidators 1.0}} for i in $(seq 0 {{ sub $chain.numValidators 2 }}); do - mkdir -p /chain/validator-$i/config /chain/validator-$i/data + mkdir -p /chain/validator-$i/config + mkdir -p /chain/validator-$i/data curl http://{{ $chain.hostname }}-validator-$i.{{ $chain.hostname }}-validator.$NAMESPACE.svc.cluster.local:$GENESIS_PORT/node_key -o /chain/validator-$i/config/node_key.json curl http://{{ $chain.hostname }}-validator-$i.{{ $chain.hostname }}-validator.$NAMESPACE.svc.cluster.local:$GENESIS_PORT/priv_keys -o /chain/validator-$i/config/priv_validator_key.json - curl http://{{ $chain.hostname }}-validator-$i.{{ $chain.hostname }}-validator.$NAMESPACE.svc.cluster.local:$GENESIS_PORT/priv_validator_state -o /chain/validator-$i/data/priv_validator_state.json + echo '{"height":"0","round":0,"step":0}' > /chain/validator-$i/data/priv_validator_state.json done {{- end }} From 73c4d68143850b9c0f7fe9081022bcf8b8fd2237 Mon Sep 17 00:00:00 2001 From: Anmol1696 Date: Tue, 18 Jun 2024 07:36:08 +0530 Subject: [PATCH 27/29] run e2e tests for branch --- .github/workflows/e2e-tests.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/e2e-tests.yaml b/.github/workflows/e2e-tests.yaml index 9baf5643..233f6c38 100644 --- a/.github/workflows/e2e-tests.yaml +++ b/.github/workflows/e2e-tests.yaml @@ -5,6 +5,7 @@ on: branches: - main - release/* + - anmol/starship-action-upgrade # debug branch paths: - "starship/**" - ".github/workflows/e2e-tests.yaml" From 1c0263e47f3f8f487375d0f054f10ed0f715455b Mon Sep 17 00:00:00 2001 From: Anmol1696 Date: Tue, 18 Jun 2024 15:38:58 +0530 Subject: [PATCH 28/29] run e2e tests --- .github/workflows/e2e-tests.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/e2e-tests.yaml b/.github/workflows/e2e-tests.yaml index 233f6c38..8210e1bb 100644 --- a/.github/workflows/e2e-tests.yaml +++ b/.github/workflows/e2e-tests.yaml @@ -5,7 +5,7 @@ on: branches: - main - release/* - - anmol/starship-action-upgrade # debug branch + - anmol/starship-action-upgrade # debug branch paths: - "starship/**" - ".github/workflows/e2e-tests.yaml" From 8c928afdb9e4d1c1b246caf04097ae03c8a2fa19 Mon Sep 17 00:00:00 2001 From: Anmol1696 Date: Tue, 18 Jun 2024 17:15:37 +0530 Subject: [PATCH 29/29] remove debug branch from e2e tests --- .github/workflows/e2e-tests.yaml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/e2e-tests.yaml b/.github/workflows/e2e-tests.yaml index 8210e1bb..9baf5643 100644 --- a/.github/workflows/e2e-tests.yaml +++ b/.github/workflows/e2e-tests.yaml @@ -5,7 +5,6 @@ on: branches: - main - release/* - - anmol/starship-action-upgrade # debug branch paths: - "starship/**" - ".github/workflows/e2e-tests.yaml"