From 3561848bdfd24769e7d6b55f4bce461826449e91 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Krzysztof=20Le=C5=9Bniak?= Date: Thu, 18 Dec 2025 12:37:34 +0100 Subject: [PATCH 1/2] Align to new app_request_table_vacuum call --- database/hafbe_app_helpers.sql | 16 ++++++++-------- submodules/btracker | 2 +- submodules/hafah | 2 +- submodules/reptracker | 2 +- 4 files changed, 11 insertions(+), 11 deletions(-) diff --git a/database/hafbe_app_helpers.sql b/database/hafbe_app_helpers.sql index a4aacb14..ee5be738 100644 --- a/database/hafbe_app_helpers.sql +++ b/database/hafbe_app_helpers.sql @@ -111,10 +111,10 @@ $$ BEGIN IF hive.get_current_stage_name(_context_name) = 'MASSIVE_PROCESSING' THEN CALL hafbe_app.massive_processing(_block_range.first_block, _block_range.last_block, _logs); - PERFORM hive.app_request_table_vacuum('hafbe_app.current_witness_votes', interval '30 minutes'); - PERFORM hive.app_request_table_vacuum('hafbe_app.current_witnesses', interval '30 minutes'); - PERFORM hive.app_request_table_vacuum('hafbe_app.current_account_proxies', interval '30 minutes'); - + PERFORM hive.app_request_table_vacuum('hafbe_app', 'current_witness_votes', interval '30 minutes'); + PERFORM hive.app_request_table_vacuum('hafbe_app', 'current_witnesses', interval '30 minutes'); + PERFORM hive.app_request_table_vacuum('hafbe_app', 'current_account_proxies', interval '30 minutes'); + RETURN; END IF; IF NOT hafbe_app.isIndexesCreated() THEN @@ -122,10 +122,10 @@ BEGIN END IF; CALL hafbe_app.single_processing(_block_range.first_block, _logs); -- cache tables needs to be vacuumed, due to change from `TRUNCATE TABLE` to `DELETE FROM` in block processing - PERFORM hive.app_request_table_vacuum('hafbe_app.account_vest_stats_cache', interval '10 minutes'); - PERFORM hive.app_request_table_vacuum('hafbe_app.witness_votes_cache', interval '10 minutes'); - PERFORM hive.app_request_table_vacuum('hafbe_app.witness_rank_cache', interval '10 minutes'); - PERFORM hive.app_request_table_vacuum('hafbe_app.witness_votes_change_cache', interval '10 minutes'); + PERFORM hive.app_request_table_vacuum('hafbe_app', 'account_vest_stats_cache', interval '10 minutes'); + PERFORM hive.app_request_table_vacuum('hafbe_app', 'witness_votes_cache', interval '10 minutes'); + PERFORM hive.app_request_table_vacuum('hafbe_app', 'witness_rank_cache', interval '10 minutes'); + PERFORM hive.app_request_table_vacuum('hafbe_app', 'witness_votes_change_cache', interval '10 minutes'); END $$; diff --git a/submodules/btracker b/submodules/btracker index 4c6c40d3..fc2a0aef 160000 --- a/submodules/btracker +++ b/submodules/btracker @@ -1 +1 @@ -Subproject commit 4c6c40d3d1bec5de343a4344ce19e95fc97720b3 +Subproject commit fc2a0aef2c523fdc4d97ce73dcd0d8b3ac3de46f diff --git a/submodules/hafah b/submodules/hafah index c34ecdd6..f7295e3f 160000 --- a/submodules/hafah +++ b/submodules/hafah @@ -1 +1 @@ -Subproject commit c34ecdd6fc87d4b792695f20530f2ab910455755 +Subproject commit f7295e3f0b77f0c02b4489f20b5207684e3eb1de diff --git a/submodules/reptracker b/submodules/reptracker index e93888e8..e392a9d9 160000 --- a/submodules/reptracker +++ b/submodules/reptracker @@ -1 +1 @@ -Subproject commit e93888e885c4c9c52aadea0a5bcf1d8e4e3bd5dd +Subproject commit e392a9d936c7c820d6d0630c1d08ed9f9e71bac5 -- GitLab From 94c93415934f6e13e839c06d210f50dbda844b0b Mon Sep 17 00:00:00 2001 From: Dan Notestein Date: Fri, 9 Jan 2026 23:59:28 -0500 Subject: [PATCH 2/2] Remove apk add from find_haf_image job docker-builder image already has git, bash, and curl installed. Running apk add fails because the container runs as non-root. --- .gitlab-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 05c56657..63e01619 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -119,7 +119,7 @@ find_haf_image: UPSTREAM_BRANCH: "develop" UPSTREAM_OUTPUT: "haf_image.env" before_script: - - apk add --no-cache git bash curl + # docker-builder image already has git, bash, and curl # Fetch source patterns from HAF's script (single source of truth) - | PATTERNS_URL="https://gitlab.syncad.com/hive/haf/-/raw/develop/scripts/ci-helpers/source-patterns.sh" -- GitLab