From 0d4717d9e85c3f1fc77277056fcdc33b4e439c5c Mon Sep 17 00:00:00 2001 From: "Ola [AHLNET]" Date: Tue, 28 Nov 2023 09:02:54 +0100 Subject: [PATCH 1/7] Fix for op cert if glv is started before node is ready in core mode. (#1713) ## Description Minor fix for opcert to re-run check if node goes from relay to core mode on startup. --- scripts/cnode-helper-scripts/gLiveView.sh | 4 ++-- scripts/grest-helper-scripts/setup-grest.sh | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/scripts/cnode-helper-scripts/gLiveView.sh b/scripts/cnode-helper-scripts/gLiveView.sh index 4b5927830..1c82d628e 100755 --- a/scripts/cnode-helper-scripts/gLiveView.sh +++ b/scripts/cnode-helper-scripts/gLiveView.sh @@ -59,7 +59,7 @@ setTheme() { # Do NOT modify code below # ###################################### -GLV_VERSION=v1.28.1 +GLV_VERSION=v1.28.2 PARENT="$(dirname $0)" @@ -823,7 +823,7 @@ while true; do cpu_util="0.0" fi if [[ ${about_to_lead} -gt 0 ]]; then - [[ ${nodemode} != "Core" ]] && clrScreen && nodemode="Core" + [[ ${nodemode} != "Core" ]] && nodemode="Core" && getOpCert && clrScreen else [[ ${nodemode} != "Relay" ]] && clrScreen && nodemode="Relay" fi diff --git a/scripts/grest-helper-scripts/setup-grest.sh b/scripts/grest-helper-scripts/setup-grest.sh index cc3420a33..cdb063d46 100755 --- a/scripts/grest-helper-scripts/setup-grest.sh +++ b/scripts/grest-helper-scripts/setup-grest.sh @@ -197,7 +197,7 @@ SGVERSION=v1.1.0 # Description : Remove all grest-related cron entries. remove_all_grest_cron_jobs() { printf "\nRemoving all installed cron jobs..." - grep -rl ${CRON_SCRIPTS_DIR} ${CRON_DIR} | xargs rm -f + grep -rl ${CRON_SCRIPTS_DIR} ${CRON_DIR} | xargs sudo rm -f rm -f ${CRON_SCRIPTS_DIR}/*.sh psql "${PGDATABASE}" -qt -c "SELECT PG_CANCEL_BACKEND(pid) FROM pg_stat_activity WHERE usename='${USER}' AND application_name = 'psql' AND query NOT LIKE '%pg_stat_activity%';" psql "${PGDATABASE}" -qt -c "SELECT PG_TERMINATE_BACKEND(pid) FROM pg_stat_activity WHERE usename='${USER}' AND application_name = 'psql' AND query NOT LIKE '%pg_stat_activity%';" @@ -614,7 +614,7 @@ SGVERSION=v1.1.0 printf "\n (Re)Deploying GRest objects to DBSync..." populate_genesis_table for row in $(jq -r '.[] | @base64' <<<${rpc_file_list}); do - if [[ $(jqDecode '.type' "${row}") = 'dir' ]]; then + if [[ $(jqDecode '.type' "${row}") = 'dir' ]] && [[ $(jqDecode '.name' "${row}") != 'db-scripts' ]]; then printf "\n Downloading pSQL executions from subdir $(jqDecode '.name' "${row}")" if ! rpc_file_list_subdir=$(curl -s -m ${CURL_TIMEOUT} "https://api.github.com/repos/${G_ACCOUNT}/koios-artifacts/contents/files/grest/rpc/$(jqDecode '.name' "${row}")?ref=${SGVERSION}"); then printf "\n \e[31mERROR\e[0m: ${rpc_file_list_subdir}" && continue @@ -667,7 +667,7 @@ SGVERSION=v1.1.0 [[ "${INSTALL_MONITORING_AGENTS}" == "Y" ]] && deploy_monitoring_agents [[ "${OVERWRITE_CONFIG}" == "Y" ]] && deploy_configs [[ "${OVERWRITE_SYSTEMD}" == "Y" ]] && deploy_systemd - [[ "${RESET_GREST}" == "Y" ]] && remove_all_grest_cron_jobs && setup_db_basics && reset_grest + [[ "${RESET_GREST}" == "Y" ]] && remove_all_grest_cron_jobs && reset_grest [[ "${DB_QRY_UPDATES}" == "Y" ]] && remove_all_grest_cron_jobs && setup_db_basics && deploy_query_updates && update_grest_version pushd -0 >/dev/null || err_exit dirs -c From 7f2bf3b32096f4b4c438b948e1bb0843c39e45d6 Mon Sep 17 00:00:00 2001 From: illuminatus Date: Wed, 29 Nov 2023 00:57:22 -0800 Subject: [PATCH 2/7] Add new inputs to workflow summary and correct conditional statement. (#1712) ## Description Use correct syntax to access workflow input variables for Docker Image workflow. Adds GUILD_DEPLOY_BRANCH and Push to GA Registry as the inverse of **testing** boolean. ## Where should the reviewer start? Check job summaries from the **How has this been tested?** section. ## Motivation and context Fixes a mistake in the if condition for the push and adds the details to the summary output. ## Which issue it fixes? N/A / CI ## How has this been tested? Jobs: * Inputs: [branch:alpha, testing=true](https://github.com/cardano-community/guild-operators/actions/runs/7015236578) * Step **docker push latest** not run * Summary **Push to GA Registry** False * Inputs: [branch:alpha, testing=false](https://github.com/cardano-community/guild-operators/actions/runs/7015458964/job/19084816266) * Step **docker push latest** not run * Summary **Push to GA Registry** False * Inputs: [branch:master, testing=true](https://github.com/cardano-community/guild-operators/actions/runs/7015459989) * Step **docker push latest** not run * Summary **Push to GA Registry** False * Inputs: [branch:master, testing=false](https://github.com/cardano-community/guild-operators/actions/runs/7015483984) * Step **docker push latest** run * Summary **Push to GA Registry** True ## Examples Summary for a GA Image build: ``` Summary Details Docker Image: docker.io/***/cardano-node:8.1.2 G_ACCOUNT: cardano-community GUILD_DEPLOY_BRANCH: master Push to GA Registry: true CNVERSION: 8.1.2 ``` Summary for a test Image build: ``` Summary Details Docker Image: docker.io/***/cardano-node:8.1.2 G_ACCOUNT: cardano-community GUILD_DEPLOY_BRANCH: alpha Push to GA Registry: false CNVERSION: 8.1.2 ``` --------- Co-authored-by: Ola [AHLNET] Co-authored-by: RdLrT <3169068+rdlrt@users.noreply.github.com> --- .github/workflows/docker_bin.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/docker_bin.yml b/.github/workflows/docker_bin.yml index a56fe0bf6..d3872a78b 100644 --- a/.github/workflows/docker_bin.yml +++ b/.github/workflows/docker_bin.yml @@ -30,13 +30,14 @@ jobs: run: | echo "G_ACCOUNT=${GITHUB_REPOSITORY_OWNER,,}" >> $GITHUB_ENV echo "CNVERSION=$(cat files/docker/node/release-versions/cardano-node-latest.txt)" >> $GITHUB_ENV + echo "PUSH_TO_GA=false" >> $GITHUB_ENV - name: Compiling new node software suite run: | DOCKER_BUILDKIT=1 docker build . \ --file files/docker/node/dockerfile_bin \ --compress \ --build-arg G_ACCOUNT=${{ env.G_ACCOUNT }} \ - --build-arg GUILD_DEPLOY_BRANCH=${{ env.guild_deploy_branch }} \ + --build-arg GUILD_DEPLOY_BRANCH=${{ github.event.inputs.guild_deploy_branch }} \ --tag ${{ env.REGISTRY }}/${{ secrets.DOCKER_USER }}/cardano-node:latest # Workaround to provide additional free space for builds. # https://github.com/actions/virtual-environments/issues/2840 @@ -53,9 +54,10 @@ jobs: sudo rm -rf "/usr/local/share/boost" sudo rm -rf "$AGENT_TOOLSDIRECTORY" - name: docker push latest - if: env.testing == 'false' && env.guild_deploy_branch == 'master' + if: github.event.inputs.testing == 'false' && github.event.inputs.guild_deploy_branch == 'master' run: | CNVERSION=`cat files/docker/node/release-versions/cardano-node-latest.txt` + echo "PUSH_TO_GA=true" >> $GITHUB_ENV docker push ${{ env.REGISTRY }}/${{ secrets.DOCKER_USER }}/cardano-node:latest docker tag ${{ env.REGISTRY }}/${{ secrets.DOCKER_USER }}/cardano-node:latest ${{ secrets.DOCKER_USER }}/cardano-node:${{ env.CNVERSION }} docker push ${{ env.REGISTRY }}/${{ secrets.DOCKER_USER }}/cardano-node:${{ env.CNVERSION }} @@ -65,4 +67,6 @@ jobs: echo "## Summary Details" >> $GITHUB_STEP_SUMMARY echo "* Docker Image: ${{ env.REGISTRY }}/${{ secrets.DOCKER_USER }}/cardano-node:${{ env.CNVERSION }}" >> $GITHUB_STEP_SUMMARY echo "* G_ACCOUNT: ${GITHUB_REPOSITORY_OWNER}" >> $GITHUB_STEP_SUMMARY + echo "* GUILD_DEPLOY_BRANCH: ${{ github.event.inputs.guild_deploy_branch }}" >> $GITHUB_STEP_SUMMARY + echo "* Push to GA Registry: ${{ env.PUSH_TO_GA }}" >> $GITHUB_STEP_SUMMARY echo "* CNVERSION: ${{ env.CNVERSION }}" >> $GITHUB_STEP_SUMMARY From f6f524441bfae09b17532c4976179fb25d4a9fb3 Mon Sep 17 00:00:00 2001 From: illuminatus Date: Wed, 29 Nov 2023 00:58:25 -0800 Subject: [PATCH 3/7] Mithril latest releases (#1715) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## Description 1. Creates a workflow to obtain the latest mithril release `mithril-latest.yml` 2. Changes `guild-deploy.sh` from the static version bump for mithril to obtaining the latest release. 3. Triggers the **Docker Image** workflow (`dockerfile_bin.yml`) when a push changes `files/docker/node/release-versions/mithril-latest.txt`. ## Where should the reviewer start? Testing via `./guild-deploy.sh -b mithril-latest-releases -s m` should update the `mithril-client --version` output to `0.5.5+0780dfa` ## Motivation and context Breaking changes between mithril release v2342.0 and v2347.0. Once the latest snaphot is signed by v2347.0 the v2342.0 client no longer works (for the latest snapshot). ## Which issue it fixes? Closes #1714 ## How has this been tested? Running the current guild cardano-node:latest container, running `/opt/cardano/cnode/scripts/guild-deploy.sh -b mithril-latest-releases -s m` twice, once to update script the second to install Mithril's latest release. Then ``` ./mithril-client.sh -d INFO: The db directory does not exist.. INFO: Downloading latest mithril snapshot.. 1/6 - Checking local disk info… 2/6 - Fetching the certificate's information… 3/6 - Verifying the certificate chain… 4/6 - Downloading and unpacking the snapshot… ⠁ [00:02:13] [###########>----------------------------------------------------------------------------------------------------------------------------------------] 3.17 GiB/39.08 GiB (1468.8s) ``` confirming the download starts without certificate errors. --------- Co-authored-by: Ola [AHLNET] Co-authored-by: RdLrT <3169068+rdlrt@users.noreply.github.com> --- .github/workflows/docker_bin.yml | 1 + .github/workflows/mithril-latest.yml | 30 ++++++++++++++++++++ scripts/cnode-helper-scripts/guild-deploy.sh | 5 +--- 3 files changed, 32 insertions(+), 4 deletions(-) create mode 100644 .github/workflows/mithril-latest.yml diff --git a/.github/workflows/docker_bin.yml b/.github/workflows/docker_bin.yml index d3872a78b..f6c164e1e 100644 --- a/.github/workflows/docker_bin.yml +++ b/.github/workflows/docker_bin.yml @@ -15,6 +15,7 @@ on: push: paths: - 'files/docker/node/release-versions/cardano-node-latest.txt' + - 'files/docker/node/release-versions/mithril-latest.txt' jobs: build: diff --git a/.github/workflows/mithril-latest.yml b/.github/workflows/mithril-latest.yml new file mode 100644 index 000000000..9a247fc34 --- /dev/null +++ b/.github/workflows/mithril-latest.yml @@ -0,0 +1,30 @@ +name: Get latest Mithril release version +on: + workflow_dispatch: + schedule: + - cron: '0 0 * * *' +jobs: + get-version: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + with: + token: ${{ secrets.REPO_SCOPED_TOKEN }} + fetch-depth: 0 + ref: alpha + - name: Fetch Mithril release version + run: | + curl -sL https://api.github.com/repos/input-output-hk/mithril/releases/latest | jq -r '.tag_name' tag_name > files/docker/node/release-versions/mithril-latest.txt + - name: Assigns release version + run: | + VERSION=$(cat ./files/docker/node/release-versions/mithril-latest.txt) + - name: Check for modified files + id: git-check + run: echo ::set-output name=modified::$([ -z "`git status --porcelain`" ] && echo "false" || echo "true") + - name: Commit latest release version + if: steps.git-check.outputs.modified == 'true' + run: | + git config --global user.name ${{ secrets.REPO_SCOPED_USER }} + git config --global user.email ${{ secrets.REPO_SCOPED_EMAIL }} + git commit -am "New mithril release version ${VERSION}" + git push diff --git a/scripts/cnode-helper-scripts/guild-deploy.sh b/scripts/cnode-helper-scripts/guild-deploy.sh index bb2153f40..1c3d09595 100755 --- a/scripts/cnode-helper-scripts/guild-deploy.sh +++ b/scripts/cnode-helper-scripts/guild-deploy.sh @@ -493,10 +493,7 @@ download_cardanosigner() { download_mithril() { echo -e "\nDownloading Mithril..." pushd "${HOME}"/tmp >/dev/null || err_exit - # dynamic latest release updated automatically, uncomment and comment out the hardcoded release below if needed - # mithril_release="$(curl -s https://api.github.com/repos/input-output-hk/mithril/releases/latest | jq -r '.tag_name')" - # hardcoded latest release requiring a bump - mithril_release="2342.0" + mithril_release="$(curl -s https://api.github.com/repos/input-output-hk/mithril/releases/latest | jq -r '.tag_name')" echo -e "\n Downloading Mithril Signer/Client ${mithril_release}..." rm -f mithril-signer mithril-client curl -m 200 -sfL https://github.com/input-output-hk/mithril/releases/download/${mithril_release}/mithril-${mithril_release}-linux-x64.tar.gz -o mithril.tar.gz || err_exit " Could not download mithril's latest release archive from IO github!" From baf8cc3dddfcdc862331a8a97288394e31be6237 Mon Sep 17 00:00:00 2001 From: getwildr <93333139+getwildr@users.noreply.github.com> Date: Thu, 30 Nov 2023 12:09:29 +0100 Subject: [PATCH 4/7] Update protectionPreRequisites For Use w/o CHATTR (#1716) ## Description Update protectionPreRequisites For Use w/o CHATTR command available Adds a return 0 if we reach eventually the end of the func. ## Where should the reviewer start? cntools.sh -o w/o chattr and ENABLE_CHATTR false ## Motivation and context cntools.sh -o w/o chattr and ENABLE_CHATTR false does not work protectionPreRequisites returns non ZERO code if - ENABLE_CHATTR false - chattr not available Because [ false == true ] (L139) will return a non zero rc. ## Which issue it fixes? n/a ## How has this been tested? [cntools.sh -o w/o chattr and ENABLE_CHATTR false] is launching OK up to the main menu. --- scripts/cnode-helper-scripts/cntools.library | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/cnode-helper-scripts/cntools.library b/scripts/cnode-helper-scripts/cntools.library index 32d638aad..d75b0034c 100644 --- a/scripts/cnode-helper-scripts/cntools.library +++ b/scripts/cnode-helper-scripts/cntools.library @@ -149,6 +149,7 @@ protectionPreRequisites() { fi rm -f "${TMP_DIR}"/test fi + return 0 } # Command : safeDel [path] From dc54526d76fe3b74a92d6f6812eeee644c86160c Mon Sep 17 00:00:00 2001 From: "Ola [AHLNET]" Date: Thu, 30 Nov 2023 22:37:02 +0100 Subject: [PATCH 5/7] gLiveView 1.28.3 (#1717) OP cert fallback check for cert used in running node process if ${POOL_DIR}/${POOL_OPCERT_FILENAME} doesn't exist. This can happen for non-guild setups. --- .github/workflows/mithril-latest.yml | 2 +- docs/Scripts/gliveview.md | 4 +++- scripts/cnode-helper-scripts/gLiveView.sh | 7 ++++++- 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/.github/workflows/mithril-latest.yml b/.github/workflows/mithril-latest.yml index 9a247fc34..3fd578b8c 100644 --- a/.github/workflows/mithril-latest.yml +++ b/.github/workflows/mithril-latest.yml @@ -14,7 +14,7 @@ jobs: ref: alpha - name: Fetch Mithril release version run: | - curl -sL https://api.github.com/repos/input-output-hk/mithril/releases/latest | jq -r '.tag_name' tag_name > files/docker/node/release-versions/mithril-latest.txt + curl -sL https://api.github.com/repos/input-output-hk/mithril/releases/latest | jq -r '.tag_name' > files/docker/node/release-versions/mithril-latest.txt - name: Assigns release version run: | VERSION=$(cat ./files/docker/node/release-versions/mithril-latest.txt) diff --git a/docs/Scripts/gliveview.md b/docs/Scripts/gliveview.md index 56eb8ead2..9ac26cad7 100644 --- a/docs/Scripts/gliveview.md +++ b/docs/Scripts/gliveview.md @@ -9,6 +9,9 @@ For most setups, it's enough to set `CNODE_PORT` in the `env` file. The rest of The tool can be run in legacy mode with only standard ASCII characters for terminals with trouble displaying the box-drawing characters. Run `./gLiveView.sh -h` to show available command-line parameters or permanently set it directly in script. +!!! info "Note !!" + Keeping gLiveView to it's intent of being a dashboard and not a full-fledged monitoring tool, we intend to keep most relevant information for a node operator in a minimalistic dashboard, accordingly - gLiveView runs by default in compact mode. One can enable verbose mode by pressing 'v' to unhide additional fields. + A sample output from both core and relay together with peer analysis: === "Core" @@ -23,7 +26,6 @@ A sample output from both core and relay together with peer analysis: ![Peer-Analysis](https://raw.githubusercontent.com/cardano-community/guild-operators/images/glv-peers.png ':size=35%') - ###### Upper main section Displays live metrics from cardano-node gathered through the nodes EKG/Prometheus(env setting) endpoint. diff --git a/scripts/cnode-helper-scripts/gLiveView.sh b/scripts/cnode-helper-scripts/gLiveView.sh index 1c82d628e..bcd343f1b 100755 --- a/scripts/cnode-helper-scripts/gLiveView.sh +++ b/scripts/cnode-helper-scripts/gLiveView.sh @@ -59,7 +59,7 @@ setTheme() { # Do NOT modify code below # ###################################### -GLV_VERSION=v1.28.2 +GLV_VERSION=v1.28.3 PARENT="$(dirname $0)" @@ -515,6 +515,11 @@ getOpCert () { op_cert_disk="?" op_cert_node="?" opcert_file="${POOL_DIR}/${POOL_OPCERT_FILENAME}" + if [[ ! -f ${opcert_file} && -n ${CNODE_PID} ]]; then + if [[ $(ps -p ${CNODE_PID} -o cmd=) =~ --shelley-operational-certificate[[:space:]]([^[:space:]]+) ]]; then + opcert_file="${BASH_REMATCH[1]}" + fi + fi if [[ -f ${opcert_file} ]]; then op_cert_tsv=$(jq -r '[ .qKesNodeStateOperationalCertificateNumber //"?", From 2ed14061d65481698f9b9d58212358300d84072d Mon Sep 17 00:00:00 2001 From: dmitrystas Date: Fri, 1 Dec 2023 14:23:04 +0100 Subject: [PATCH 6/7] Add CONWAY_GENESIS_JSON to env (#1719) It is required in dbsync.sh --- scripts/cnode-helper-scripts/env | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/scripts/cnode-helper-scripts/env b/scripts/cnode-helper-scripts/env index 1304f5f24..dbf29b699 100644 --- a/scripts/cnode-helper-scripts/env +++ b/scripts/cnode-helper-scripts/env @@ -933,19 +933,22 @@ if ! command -v "jq" &>/dev/null; then return 1 fi -read -ra CONFIG_CONTENTS <<<"$(jq -r '[ .AlonzoGenesisFile //"null", .ByronGenesisFile //"null", .ShelleyGenesisFile //"null", .Protocol //"Cardano", .TraceChainDb //"null", .EnableP2P //"false"]| @tsv' "${CONFIG}" 2>/dev/null)" +read -ra CONFIG_CONTENTS <<<"$(jq -r '[ .AlonzoGenesisFile //"null", .ByronGenesisFile //"null", .ShelleyGenesisFile //"null", .Protocol //"Cardano", .TraceChainDb //"null", .EnableP2P //"false", .ConwayGenesisFile //"null"]| @tsv' "${CONFIG}" 2>/dev/null)" if [[ ${CONFIG_CONTENTS[4]} != "true" ]]; then echo "Could not find TraceChainDb when attempting to parse ${CONFIG} file in JSON format, please double-check the syntax of your config, or simply download it from guild-operators repository!" return 1 else + CONWAY_GENESIS_JSON="${CONFIG_CONTENTS[6]}" ALONZO_GENESIS_JSON="${CONFIG_CONTENTS[0]}" BYRON_GENESIS_JSON="${CONFIG_CONTENTS[1]}" GENESIS_JSON="${CONFIG_CONTENTS[2]}" # if relative path is used, assume same parent dir as config + [[ ! ${CONWAY_GENESIS_JSON} =~ ^/ ]] && CONWAY_GENESIS_JSON="$(dirname "${CONFIG}")/${CONWAY_GENESIS_JSON}" [[ ! ${ALONZO_GENESIS_JSON} =~ ^/ ]] && ALONZO_GENESIS_JSON="$(dirname "${CONFIG}")/${ALONZO_GENESIS_JSON}" [[ ! ${BYRON_GENESIS_JSON} =~ ^/ ]] && BYRON_GENESIS_JSON="$(dirname "${CONFIG}")/${BYRON_GENESIS_JSON}" [[ ! ${GENESIS_JSON} =~ ^/ ]] && GENESIS_JSON="$(dirname "${CONFIG}")/${GENESIS_JSON}" # if genesis files not found, exit with rc 1 + [[ ! -f "${CONWAY_GENESIS_JSON}" ]] && echo "Byron genesis file not found: ${CONWAY_GENESIS_JSON}" && return 1 [[ ! -f "${ALONZO_GENESIS_JSON}" ]] && echo "Byron genesis file not found: ${ALONZO_GENESIS_JSON}" && return 1 [[ ! -f "${BYRON_GENESIS_JSON}" ]] && echo "Byron genesis file not found: ${BYRON_GENESIS_JSON}" && return 1 [[ ! -f "${GENESIS_JSON}" ]] && echo "Shelley genesis file not found: ${GENESIS_JSON}" && return 1 From 5723657a5ecd44f14e6202d279321da65c5c2308 Mon Sep 17 00:00:00 2001 From: RdLrT <3169068+rdlrt@users.noreply.github.com> Date: Wed, 6 Dec 2023 23:42:33 +1100 Subject: [PATCH 7/7] Update changelog for koios 1.1.0 (#1721) ## Description - [x] Update changelog as per cardano-community/koios-artifacts#250 - [x] Fix PostgREST release to v11.2.2, as v12 can leak DDoS attempts if used as-is --- docs/Build/grest-changelog.md | 18 ++++++++++++++++++ scripts/grest-helper-scripts/setup-grest.sh | 3 ++- 2 files changed, 20 insertions(+), 1 deletion(-) diff --git a/docs/Build/grest-changelog.md b/docs/Build/grest-changelog.md index 95848b0c6..d831bdcc9 100644 --- a/docs/Build/grest-changelog.md +++ b/docs/Build/grest-changelog.md @@ -1,5 +1,23 @@ # Koios gRest Changelog +## [1.1.0] - For all networks. + +This will be first major [breaking] release for Koios consumers in a while, and will be rolled out under new base prefix (`/api/v1`). +The major work with this release was to start making use of newer flags in dbsync which help performance of queries under new endpoints. Please ensure to check out the release notes for `1.1.0rc` below. The list for this section is only a small addendum to `1.1.0rc`: + +### Chores: +- Make use of asset-txo-cache for top assets on mainnet, and use this cache for `asset_addresses` and `policy_asset_addresses` [#250](https://github.com/cardano-community/koios-artifacts/pull/250) +- Add v0 RPC redirectors to keep serve v0 endpoints from v1 [#250](https://github.com/cardano-community/koios-artifacts/pull/250) +- Convert few simple RPC functions from PLPGSQL to SQL language to help with inline filtering [#250](https://github.com/cardano-community/koios-artifacts/pull/250) +- Address linting results from SQLFluff [#250](https://github.com/cardano-community/koios-artifacts/pull/250) +- Move db-scripts from guild-operators repository to koios-artifacts repository [#250](https://github.com/cardano-community/koios-artifacts/pull/250) +- Drop stale db-scripts/genesis_table.sql file [#250](https://github.com/cardano-community/koios-artifacts/pull/250) +- Add 3 additional indexes for collateral and reference inputs based on query times [#250](https://github.com/cardano-community/koios-artifacts/pull/250) +- Add top 3 assets for preview/preprod to asset-txo-cache [#250](https://github.com/cardano-community/koios-artifacts/pull/250) +- Bump schema version for koios-1.1.0 [#250](https://github.com/cardano-community/koios-artifacts/pull/250) +- Minor patch for output data type (`pool_registrations` and `pool_retirements`) [#249](https://github.com/cardano-community/koios-artifacts/pull/249) + + ## [1.1.0rc] - For all networks. This will be first major [breaking] release for Koios consumers in a while, and will be rolled out under new base prefix (`/api/v1`). diff --git a/scripts/grest-helper-scripts/setup-grest.sh b/scripts/grest-helper-scripts/setup-grest.sh index cdb063d46..51484dcb3 100755 --- a/scripts/grest-helper-scripts/setup-grest.sh +++ b/scripts/grest-helper-scripts/setup-grest.sh @@ -302,7 +302,8 @@ SGVERSION=v1.1.0 else pgrest_binary=linux-static-x64.tar.xz fi - pgrest_asset_url="$(curl -s https://api.github.com/repos/PostgREST/postgrest/releases/latest | jq -r '.assets[].browser_download_url' | grep ${pgrest_binary})" + #pgrest_asset_url="$(curl -s https://api.github.com/repos/PostgREST/postgrest/releases/latest | jq -r '.assets[].browser_download_url' | grep ${pgrest_binary})" + pgrest_asset_url="https://github.com/PostgREST/postgrest/releases/download/v11.2.2/postgrest-v11.2.2-linux-static-x64.tar.xz" # Fix PostgREST to v11.2.2 until v12 headers are updated if curl -sL -f -m ${CURL_TIMEOUT} -o postgrest.tar.xz "${pgrest_asset_url}"; then tar xf postgrest.tar.xz &>/dev/null && rm -f postgrest.tar.xz [[ -f postgrest ]] || err_exit "PostgREST archive downloaded but binary not found after attempting to extract package!"