From f35353981c84d7e444abb09dae3269e7907f557b Mon Sep 17 00:00:00 2001 From: Kammerlo Date: Sun, 12 May 2024 10:02:14 +0200 Subject: [PATCH 01/15] fix: added docker system prune --- .github/workflows/ci.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 97dd0592..539fd1cc 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -9,6 +9,12 @@ jobs: tests: runs-on: ubuntu-20.04 steps: + - name: Check disk space + run: df -h + - name: Remove unused docker + run: docker system prune -f + - name: Check disk space again + run: df -h - name: Checkout source code uses: actions/checkout@v2 with: From 43277aaff8e24db8fa8c5c7fe285c4d80058e5e5 Mon Sep 17 00:00:00 2001 From: Kammerlo Date: Sun, 12 May 2024 10:05:33 +0200 Subject: [PATCH 02/15] fix: further clean ups --- .github/workflows/ci.yml | 35 +++++++++++++++++++++++++++++++++-- 1 file changed, 33 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 539fd1cc..fa801ed1 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -11,14 +11,45 @@ jobs: steps: - name: Check disk space run: df -h - - name: Remove unused docker - run: docker system prune -f + - name: Free disk space + run: | + sudo docker rmi $(docker image ls -aq) >/dev/null 2>&1 || true + sudo rm -rf \ + /usr/share/dotnet /usr/local/lib/android /opt/ghc \ + /usr/local/share/powershell /usr/share/swift /usr/local/.ghcup \ + /usr/lib/jvm || true + echo "some directories deleted" + sudo apt install aptitude -y >/dev/null 2>&1 + sudo aptitude purge aria2 ansible azure-cli shellcheck rpm xorriso zsync \ + esl-erlang firefox gfortran-8 gfortran-9 google-chrome-stable \ + google-cloud-sdk imagemagick \ + libmagickcore-dev libmagickwand-dev libmagic-dev ant ant-optional kubectl \ + mercurial apt-transport-https mono-complete libmysqlclient \ + unixodbc-dev yarn chrpath libssl-dev libxft-dev \ + libfreetype6 libfreetype6-dev libfontconfig1 libfontconfig1-dev \ + snmp pollinate libpq-dev postgresql-client powershell ruby-full \ + sphinxsearch subversion mongodb-org azure-cli microsoft-edge-stable \ + -y -f >/dev/null 2>&1 + sudo aptitude purge google-cloud-sdk -f -y >/dev/null 2>&1 + sudo aptitude purge microsoft-edge-stable -f -y >/dev/null 2>&1 || true + sudo apt purge microsoft-edge-stable -f -y >/dev/null 2>&1 || true + sudo aptitude purge '~n ^mysql' -f -y >/dev/null 2>&1 + sudo aptitude purge '~n ^php' -f -y >/dev/null 2>&1 + sudo aptitude purge '~n ^dotnet' -f -y >/dev/null 2>&1 + sudo apt-get autoremove -y >/dev/null 2>&1 + sudo apt-get autoclean -y >/dev/null 2>&1 + echo "some packages purged" - name: Check disk space again run: df -h - name: Checkout source code uses: actions/checkout@v2 with: path: cardano-rosetta + - name: Get more space + run: | + df . -h + sudo rm -rf ${GITHUB_WORKSPACE}/.git + df . -h - name: Setup Node.js uses: actions/setup-node@v1 with: From ecc6c57409ec59a9437807e9c1124c7716ac7712 Mon Sep 17 00:00:00 2001 From: Kammerlo Date: Sun, 12 May 2024 10:11:25 +0200 Subject: [PATCH 03/15] fix: extracted disk space clean up to action --- .github/workflows/ci.yml | 39 ++------------------------ .github/workflows/post_integration.yml | 3 +- .github/workflows/post_release.yml | 2 ++ .github/workflows/pre_release.yml | 2 ++ 4 files changed, 8 insertions(+), 38 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index fa801ed1..b38c5f85 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -9,47 +9,12 @@ jobs: tests: runs-on: ubuntu-20.04 steps: - - name: Check disk space - run: df -h - - name: Free disk space - run: | - sudo docker rmi $(docker image ls -aq) >/dev/null 2>&1 || true - sudo rm -rf \ - /usr/share/dotnet /usr/local/lib/android /opt/ghc \ - /usr/local/share/powershell /usr/share/swift /usr/local/.ghcup \ - /usr/lib/jvm || true - echo "some directories deleted" - sudo apt install aptitude -y >/dev/null 2>&1 - sudo aptitude purge aria2 ansible azure-cli shellcheck rpm xorriso zsync \ - esl-erlang firefox gfortran-8 gfortran-9 google-chrome-stable \ - google-cloud-sdk imagemagick \ - libmagickcore-dev libmagickwand-dev libmagic-dev ant ant-optional kubectl \ - mercurial apt-transport-https mono-complete libmysqlclient \ - unixodbc-dev yarn chrpath libssl-dev libxft-dev \ - libfreetype6 libfreetype6-dev libfontconfig1 libfontconfig1-dev \ - snmp pollinate libpq-dev postgresql-client powershell ruby-full \ - sphinxsearch subversion mongodb-org azure-cli microsoft-edge-stable \ - -y -f >/dev/null 2>&1 - sudo aptitude purge google-cloud-sdk -f -y >/dev/null 2>&1 - sudo aptitude purge microsoft-edge-stable -f -y >/dev/null 2>&1 || true - sudo apt purge microsoft-edge-stable -f -y >/dev/null 2>&1 || true - sudo aptitude purge '~n ^mysql' -f -y >/dev/null 2>&1 - sudo aptitude purge '~n ^php' -f -y >/dev/null 2>&1 - sudo aptitude purge '~n ^dotnet' -f -y >/dev/null 2>&1 - sudo apt-get autoremove -y >/dev/null 2>&1 - sudo apt-get autoclean -y >/dev/null 2>&1 - echo "some packages purged" - - name: Check disk space again - run: df -h - name: Checkout source code uses: actions/checkout@v2 with: path: cardano-rosetta - - name: Get more space - run: | - df . -h - sudo rm -rf ${GITHUB_WORKSPACE}/.git - df . -h + - name: Free Diskspace + uses: ./.github/actions/free_disk_space - name: Setup Node.js uses: actions/setup-node@v1 with: diff --git a/.github/workflows/post_integration.yml b/.github/workflows/post_integration.yml index 7827ccd1..3b8d6bc2 100644 --- a/.github/workflows/post_integration.yml +++ b/.github/workflows/post_integration.yml @@ -11,7 +11,8 @@ jobs: steps: - name: Checkout source code uses: actions/checkout@v2 - + - name: Free Diskspace + uses: ./.github/actions/free_disk_space - name: Build Cardano Rosetta - mainnet uses: ./.github/actions/build_cardano_rosetta with: diff --git a/.github/workflows/post_release.yml b/.github/workflows/post_release.yml index 79e1a505..193360cb 100644 --- a/.github/workflows/post_release.yml +++ b/.github/workflows/post_release.yml @@ -11,6 +11,8 @@ jobs: steps: - name: Checkout source code uses: actions/checkout@v2 + - name: Free Diskspace + uses: ./.github/actions/free_disk_space - name: Build Cardano Rosetta - mainnet uses: ./.github/actions/build_cardano_rosetta with: diff --git a/.github/workflows/pre_release.yml b/.github/workflows/pre_release.yml index e46fe281..81bd2842 100644 --- a/.github/workflows/pre_release.yml +++ b/.github/workflows/pre_release.yml @@ -9,6 +9,8 @@ jobs: steps: - name: Checkout source code uses: actions/checkout@v2 + - name: Free Diskspace + uses: ./.github/actions/free_disk_space - name: Build from Git URL with no cache run: docker build -t cardano-rosetta:${{ github.sha }} From 4ab1d1b1287ae54569983cd8423de4b6bd605a91 Mon Sep 17 00:00:00 2001 From: Kammerlo Date: Sun, 12 May 2024 10:13:10 +0200 Subject: [PATCH 04/15] fix: adjusted path for CI pipeline --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b38c5f85..183d3629 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -14,7 +14,7 @@ jobs: with: path: cardano-rosetta - name: Free Diskspace - uses: ./.github/actions/free_disk_space + uses: ./cardano-rosetta/.github/actions/free_disk_space - name: Setup Node.js uses: actions/setup-node@v1 with: From 2b4ddc62314bcd5f2d555ab6dee426252b456c67 Mon Sep 17 00:00:00 2001 From: Kammerlo Date: Sun, 12 May 2024 10:15:49 +0200 Subject: [PATCH 05/15] fix: adjusted path for CI pipeline --- .github/workflows/ci.yml | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 183d3629..61424fd8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -11,16 +11,14 @@ jobs: steps: - name: Checkout source code uses: actions/checkout@v2 - with: - path: cardano-rosetta - name: Free Diskspace - uses: ./cardano-rosetta/.github/actions/free_disk_space + uses: ./.github/actions/free_disk_space - name: Setup Node.js uses: actions/setup-node@v1 with: node-version: 18 - name: Lint and test - working-directory: ./cardano-rosetta/cardano-rosetta-server + working-directory: ./cardano-rosetta-server run: | yarn install --offline --frozen-lockfile --loglevel=error yarn lint @@ -40,16 +38,16 @@ jobs: PAGE_SIZE: 5 DEFAULT_RELATIVE_TTL: 1000 - name: Build Cardano Rosetta - uses: ./cardano-rosetta/.github/actions/build_cardano_rosetta + uses: ./.github/actions/build_cardano_rosetta with: build-context: ${{ github.workspace }}/cardano-rosetta tag: ${{ github.sha }} - name: Smoke test Cardano Rosetta image - uses: ./cardano-rosetta/.github/actions/smoke_test_cardano_rosetta + uses: ./.github/actions/smoke_test_cardano_rosetta with: tag: ${{ github.sha }} - test-exe: ./cardano-rosetta/test/smoke_test.sh + test-exe: ./test/smoke_test.sh - name: Postman Tests - uses: ./cardano-rosetta/.github/actions/postman_tests_cardano_rosetta + uses: ./.github/actions/postman_tests_cardano_rosetta with: tag: ${{ github.sha }} From e220fe1a4f8979291067a4d4229e0cb6026d1fbd Mon Sep 17 00:00:00 2001 From: Kammerlo Date: Sun, 12 May 2024 10:17:36 +0200 Subject: [PATCH 06/15] fix: adjusted path for CI pipeline --- .github/workflows/ci.yml | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 61424fd8..183d3629 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -11,14 +11,16 @@ jobs: steps: - name: Checkout source code uses: actions/checkout@v2 + with: + path: cardano-rosetta - name: Free Diskspace - uses: ./.github/actions/free_disk_space + uses: ./cardano-rosetta/.github/actions/free_disk_space - name: Setup Node.js uses: actions/setup-node@v1 with: node-version: 18 - name: Lint and test - working-directory: ./cardano-rosetta-server + working-directory: ./cardano-rosetta/cardano-rosetta-server run: | yarn install --offline --frozen-lockfile --loglevel=error yarn lint @@ -38,16 +40,16 @@ jobs: PAGE_SIZE: 5 DEFAULT_RELATIVE_TTL: 1000 - name: Build Cardano Rosetta - uses: ./.github/actions/build_cardano_rosetta + uses: ./cardano-rosetta/.github/actions/build_cardano_rosetta with: build-context: ${{ github.workspace }}/cardano-rosetta tag: ${{ github.sha }} - name: Smoke test Cardano Rosetta image - uses: ./.github/actions/smoke_test_cardano_rosetta + uses: ./cardano-rosetta/.github/actions/smoke_test_cardano_rosetta with: tag: ${{ github.sha }} - test-exe: ./test/smoke_test.sh + test-exe: ./cardano-rosetta/test/smoke_test.sh - name: Postman Tests - uses: ./.github/actions/postman_tests_cardano_rosetta + uses: ./cardano-rosetta/.github/actions/postman_tests_cardano_rosetta with: tag: ${{ github.sha }} From 9e0b1d1d80ad3f5d1ea3b64a41b96cbb424729d6 Mon Sep 17 00:00:00 2001 From: Kammerlo Date: Sun, 12 May 2024 10:18:08 +0200 Subject: [PATCH 07/15] fix: adjusted path for CI pipeline --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 183d3629..ee86d8a9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -14,7 +14,7 @@ jobs: with: path: cardano-rosetta - name: Free Diskspace - uses: ./cardano-rosetta/.github/actions/free_disk_space + uses: ../cardano-rosetta/.github/actions/free_disk_space - name: Setup Node.js uses: actions/setup-node@v1 with: From bee250242ee02c57c3e517db6531a88ba9c49c26 Mon Sep 17 00:00:00 2001 From: Kammerlo Date: Sun, 12 May 2024 10:21:29 +0200 Subject: [PATCH 08/15] fix: adjusted triggers for action to test --- .github/workflows/ci.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ee86d8a9..774381cd 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -4,6 +4,9 @@ on: pull_request: branches: - master + push: + branches: + - fix/free-github-actions-storage jobs: tests: From 253d2d58980067d515e25840f1b83d7f06d56cad Mon Sep 17 00:00:00 2001 From: Kammerlo Date: Sun, 12 May 2024 10:22:12 +0200 Subject: [PATCH 09/15] fix: adjusted triggers for action to test --- .github/actions/free_disk_space/action.yml | 41 ++++++++++++++++++++++ .github/workflows/ci.yml | 2 +- 2 files changed, 42 insertions(+), 1 deletion(-) create mode 100644 .github/actions/free_disk_space/action.yml diff --git a/.github/actions/free_disk_space/action.yml b/.github/actions/free_disk_space/action.yml new file mode 100644 index 00000000..1e44ba84 --- /dev/null +++ b/.github/actions/free_disk_space/action.yml @@ -0,0 +1,41 @@ +name: Free disk space +description: This actions cleans up the disk space of github actions +runs: + using: composite + steps: + - name: Check disk space + run: df -h + - name: Free disk space + run: | + sudo docker rmi $(docker image ls -aq) >/dev/null 2>&1 || true + sudo rm -rf \ + /usr/share/dotnet /usr/local/lib/android /opt/ghc \ + /usr/local/share/powershell /usr/share/swift /usr/local/.ghcup \ + /usr/lib/jvm || true + echo "some directories deleted" + sudo apt install aptitude -y >/dev/null 2>&1 + sudo aptitude purge aria2 ansible azure-cli shellcheck rpm xorriso zsync \ + esl-erlang firefox gfortran-8 gfortran-9 google-chrome-stable \ + google-cloud-sdk imagemagick \ + libmagickcore-dev libmagickwand-dev libmagic-dev ant ant-optional kubectl \ + mercurial apt-transport-https mono-complete libmysqlclient \ + unixodbc-dev yarn chrpath libssl-dev libxft-dev \ + libfreetype6 libfreetype6-dev libfontconfig1 libfontconfig1-dev \ + snmp pollinate libpq-dev postgresql-client powershell ruby-full \ + sphinxsearch subversion mongodb-org azure-cli microsoft-edge-stable \ + -y -f >/dev/null 2>&1 + sudo aptitude purge google-cloud-sdk -f -y >/dev/null 2>&1 + sudo aptitude purge microsoft-edge-stable -f -y >/dev/null 2>&1 || true + sudo apt purge microsoft-edge-stable -f -y >/dev/null 2>&1 || true + sudo aptitude purge '~n ^mysql' -f -y >/dev/null 2>&1 + sudo aptitude purge '~n ^php' -f -y >/dev/null 2>&1 + sudo aptitude purge '~n ^dotnet' -f -y >/dev/null 2>&1 + sudo apt-get autoremove -y >/dev/null 2>&1 + sudo apt-get autoclean -y >/dev/null 2>&1 + echo "some packages purged" + - name: Check disk space again + run: df -h + - name: Get more space + run: | + sudo rm -rf ${GITHUB_WORKSPACE}/.git + df . -h diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 774381cd..b01e7538 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -17,7 +17,7 @@ jobs: with: path: cardano-rosetta - name: Free Diskspace - uses: ../cardano-rosetta/.github/actions/free_disk_space + uses: ./cardano-rosetta/.github/actions/free_disk_space - name: Setup Node.js uses: actions/setup-node@v1 with: From 9d779b83f65302f3051e5fab5b20d2d6d56a24bb Mon Sep 17 00:00:00 2001 From: Kammerlo Date: Sun, 12 May 2024 10:23:29 +0200 Subject: [PATCH 10/15] fix: added shell --- .github/actions/free_disk_space/action.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/actions/free_disk_space/action.yml b/.github/actions/free_disk_space/action.yml index 1e44ba84..f2592eff 100644 --- a/.github/actions/free_disk_space/action.yml +++ b/.github/actions/free_disk_space/action.yml @@ -4,8 +4,10 @@ runs: using: composite steps: - name: Check disk space + shell: bash run: df -h - name: Free disk space + shell: bash run: | sudo docker rmi $(docker image ls -aq) >/dev/null 2>&1 || true sudo rm -rf \ @@ -34,8 +36,10 @@ runs: sudo apt-get autoclean -y >/dev/null 2>&1 echo "some packages purged" - name: Check disk space again + shell: bash run: df -h - name: Get more space + shell: bash run: | sudo rm -rf ${GITHUB_WORKSPACE}/.git df . -h From 62dd388280dd1f0b46e1e62c7dce126b74a72908 Mon Sep 17 00:00:00 2001 From: Kammerlo Date: Sun, 12 May 2024 10:24:25 +0200 Subject: [PATCH 11/15] fix: removed trigger on fix branch --- .github/workflows/ci.yml | 3 --- 1 file changed, 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b01e7538..183d3629 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -4,9 +4,6 @@ on: pull_request: branches: - master - push: - branches: - - fix/free-github-actions-storage jobs: tests: From 5627c6c270ea8cd9df53290297f71940eb1166c9 Mon Sep 17 00:00:00 2001 From: Kammerlo Date: Sun, 12 May 2024 13:14:58 +0200 Subject: [PATCH 12/15] fix: removed smoketest, Testing with postman collection from now on --- .github/actions/smoke_test_cardano_rosetta/action.yml | 1 - .github/workflows/ci.yml | 5 ----- 2 files changed, 6 deletions(-) diff --git a/.github/actions/smoke_test_cardano_rosetta/action.yml b/.github/actions/smoke_test_cardano_rosetta/action.yml index d918f27e..31a442cd 100644 --- a/.github/actions/smoke_test_cardano_rosetta/action.yml +++ b/.github/actions/smoke_test_cardano_rosetta/action.yml @@ -22,5 +22,4 @@ runs: run: | sleep 10 ${{ inputs.test-exe }} ${{ inputs.network-identifier }} - docker stop cardano-rosetta shell: bash diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 183d3629..02809819 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -44,11 +44,6 @@ jobs: with: build-context: ${{ github.workspace }}/cardano-rosetta tag: ${{ github.sha }} - - name: Smoke test Cardano Rosetta image - uses: ./cardano-rosetta/.github/actions/smoke_test_cardano_rosetta - with: - tag: ${{ github.sha }} - test-exe: ./cardano-rosetta/test/smoke_test.sh - name: Postman Tests uses: ./cardano-rosetta/.github/actions/postman_tests_cardano_rosetta with: From 0e19daeb308490892f253f9f56a3a0f9f3edbf3f Mon Sep 17 00:00:00 2001 From: Kammerlo Date: Sun, 12 May 2024 16:13:39 +0200 Subject: [PATCH 13/15] fixed mainnet --- .github/workflows/ci.yml | 5 +++++ config/network/mainnet/cardano-db-sync/config.json | 2 +- config/network/mainnet/cardano-node/config.json | 8 ++++---- 3 files changed, 10 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 02809819..183d3629 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -44,6 +44,11 @@ jobs: with: build-context: ${{ github.workspace }}/cardano-rosetta tag: ${{ github.sha }} + - name: Smoke test Cardano Rosetta image + uses: ./cardano-rosetta/.github/actions/smoke_test_cardano_rosetta + with: + tag: ${{ github.sha }} + test-exe: ./cardano-rosetta/test/smoke_test.sh - name: Postman Tests uses: ./cardano-rosetta/.github/actions/postman_tests_cardano_rosetta with: diff --git a/config/network/mainnet/cardano-db-sync/config.json b/config/network/mainnet/cardano-db-sync/config.json index be7828e5..1c03894e 100644 --- a/config/network/mainnet/cardano-db-sync/config.json +++ b/config/network/mainnet/cardano-db-sync/config.json @@ -2,7 +2,7 @@ "EnableLogMetrics": false, "EnableLogging": true, "NetworkName": "mainnet", - "NodeConfigFile": "config.json", + "NodeConfigFile": "../cardano-node/config.json", "PrometheusPort": 8080, "RequiresNetworkMagic": "RequiresNoMagic", "defaultBackends": [ diff --git a/config/network/mainnet/cardano-node/config.json b/config/network/mainnet/cardano-node/config.json index e5dff503..2ddddeb6 100644 --- a/config/network/mainnet/cardano-node/config.json +++ b/config/network/mainnet/cardano-node/config.json @@ -1,9 +1,9 @@ { - "AlonzoGenesisFile": "../genesis/alonzo-genesis.json", + "AlonzoGenesisFile": "../genesis/alonzo.json", "AlonzoGenesisHash": "7e94a15f55d1e82d10f09203fa1d40f8eede58fd8066542cf6566008068ed874", - "ByronGenesisFile": "../genesis/byron-genesis.json", + "ByronGenesisFile": "../genesis/byron.json", "ByronGenesisHash": "5f20df933584822601f9e3f8c024eb5eb252fe8cefb24d1317dc3d432e940ebb", - "ConwayGenesisFile": "../genesis/conway-genesis.json", + "ConwayGenesisFile": "../genesis/conway.json", "ConwayGenesisHash": "de609b281cb3d8ae91a9d63a00c87092975612d603aa54c0f1c6a781e33d6e1e", "EnableP2P": true, "LastKnownBlockVersion-Alt": 0, @@ -14,7 +14,7 @@ "PeerSharing": true, "Protocol": "Cardano", "RequiresNetworkMagic": "RequiresNoMagic", - "ShelleyGenesisFile": "../genesis/shelley-genesis.json", + "ShelleyGenesisFile": "../genesis/shelley.json", "ShelleyGenesisHash": "1a3be38bcbb7911969283716ad7aa550250226b76a61fc51cc9a9a35d9276d81", "TargetNumberOfActivePeers": 20, "TargetNumberOfEstablishedPeers": 50, From 40f37399f87ffea69247a425f013666ebfdd7930 Mon Sep 17 00:00:00 2001 From: Kammerlo Date: Sun, 12 May 2024 18:19:40 +0200 Subject: [PATCH 14/15] fix: changed names of container names for tests --- .github/actions/postman_tests_cardano_rosetta/action.yml | 2 +- .github/actions/smoke_test_cardano_rosetta/action.yml | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/actions/postman_tests_cardano_rosetta/action.yml b/.github/actions/postman_tests_cardano_rosetta/action.yml index 9b9e0dd0..8b0919aa 100644 --- a/.github/actions/postman_tests_cardano_rosetta/action.yml +++ b/.github/actions/postman_tests_cardano_rosetta/action.yml @@ -13,7 +13,7 @@ runs: using: composite steps: - name: Run - run: docker run --rm -d -p 8080:8080 --name cardano-rosetta --shm-size=2g cardano-rosetta:${{ inputs.tag }} + run: docker run --rm -d -p 8080:8080 --name cardano-rosetta-postman-tests --shm-size=2g cardano-rosetta:${{ inputs.tag }} shell: bash - name: Wait for docker to start run: sleep 60 diff --git a/.github/actions/smoke_test_cardano_rosetta/action.yml b/.github/actions/smoke_test_cardano_rosetta/action.yml index 31a442cd..7f0acb4f 100644 --- a/.github/actions/smoke_test_cardano_rosetta/action.yml +++ b/.github/actions/smoke_test_cardano_rosetta/action.yml @@ -16,10 +16,11 @@ runs: using: composite steps: - name: Run - run: docker run --rm -d -p 8080:8080 --name cardano-rosetta --shm-size=2g cardano-rosetta:${{ inputs.tag }} + run: docker run --rm -d -p 8080:8080 --name cardano-rosetta-smoke-test --shm-size=2g cardano-rosetta:${{ inputs.tag }} shell: bash - name: Test run: | sleep 10 ${{ inputs.test-exe }} ${{ inputs.network-identifier }} + docker stop cardano-rosetta shell: bash From 2677933141b30326543aec4513ea52a01d8f1a73 Mon Sep 17 00:00:00 2001 From: Kammerlo Date: Sun, 12 May 2024 21:27:02 +0200 Subject: [PATCH 15/15] fix: changed names of container names for tests --- .github/actions/smoke_test_cardano_rosetta/action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/actions/smoke_test_cardano_rosetta/action.yml b/.github/actions/smoke_test_cardano_rosetta/action.yml index 7f0acb4f..fa790f21 100644 --- a/.github/actions/smoke_test_cardano_rosetta/action.yml +++ b/.github/actions/smoke_test_cardano_rosetta/action.yml @@ -22,5 +22,5 @@ runs: run: | sleep 10 ${{ inputs.test-exe }} ${{ inputs.network-identifier }} - docker stop cardano-rosetta + docker stop cardano-rosetta-smoke-test shell: bash