From 0f5e0c7e01c298685187a325b4e91a02f8d26228 Mon Sep 17 00:00:00 2001 From: Florian Berthold Date: Fri, 29 May 2026 20:51:12 +0200 Subject: [PATCH 1/3] ci(release): hide auto-generated source archives (hide_archive_links) --- .gitea/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitea/workflows/release.yml b/.gitea/workflows/release.yml index 709a7cd..1b1b66b 100644 --- a/.gitea/workflows/release.yml +++ b/.gitea/workflows/release.yml @@ -37,7 +37,7 @@ jobs: RID=$(curl -sf -X POST -H "Authorization: token $GITEA_TOKEN" \ -H "Content-Type: application/json" \ "$API/repos/$REPO/releases" \ - -d "$(jq -nc --arg t "$TAG" '{tag_name:$t,name:$t,draft:false,prerelease:false}')" \ + -d "$(jq -nc --arg t "$TAG" '{tag_name:$t,name:$t,draft:false,prerelease:false,hide_archive_links:true}')" \ | jq -r '.id') fi echo "release id: $RID" From 3f71d66b0ea053cf07825c227762654068bb0145 Mon Sep 17 00:00:00 2001 From: Florian Berthold Date: Wed, 10 Jun 2026 02:11:46 +0200 Subject: [PATCH 2/3] ci(release): sync release.yml from coa-template MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit hide_archive_links is only honored by Gitea on release edit, not create — add the PATCH step after create/lookup so auto-generated source archive links actually stay hidden (coa-template 90874c5). --- .gitea/workflows/release.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.gitea/workflows/release.yml b/.gitea/workflows/release.yml index 1b1b66b..2f93975 100644 --- a/.gitea/workflows/release.yml +++ b/.gitea/workflows/release.yml @@ -41,6 +41,10 @@ jobs: | jq -r '.id') fi echo "release id: $RID" + # Gitea honors hide_archive_links only on edit, not create — PATCH it + # so the auto-generated Source Code (zip/tar.gz) links stay hidden. + curl -sf -X PATCH -H "Authorization: token $GITEA_TOKEN" -H "Content-Type: application/json" \ + "$API/repos/$REPO/releases/$RID" -d '{"hide_archive_links":true}' >/dev/null || true # Upload every dist/*.zip. Per-asset failures don't fail the job — # we want partial releases to still publish rather than block the # whole pipeline on one big file. From d0c64d75eb9053a2c8dacb7375608eb41a239976 Mon Sep 17 00:00:00 2001 From: Florian Berthold Date: Wed, 10 Jun 2026 02:13:58 +0200 Subject: [PATCH 3/3] fix(sync): enforce THROTTLE as hard floor on threat broadcasts Large threat deltas could bypass the 0.4 s gate entirely, sending unbounded SendAddonMessage traffic in early combat (3.3.5 servers disconnect chatty senders). Throttle now always applies; the MIN_DELTA filter is checked separately afterwards. --- Omen/OmenSync.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Omen/OmenSync.lua b/Omen/OmenSync.lua index 5c8a3b1..e0ec9fc 100644 --- a/Omen/OmenSync.lua +++ b/Omen/OmenSync.lua @@ -34,7 +34,7 @@ local Omen = LibStub("AceAddon-3.0"):GetAddon("Omen") if not Omen then return end local PREFIX = "OMSYNC" -local THROTTLE = 0.4 -- min seconds between sends per (subject, mob) +local THROTTLE = 0.4 -- hard floor: min seconds between sends per (subject, mob) local STALE = 8 -- seconds; entries older than this are ignored local MIN_DELTA = 0.05 -- 5%; smaller changes don't trigger a send @@ -98,7 +98,8 @@ function Omen:SyncBroadcastThreat(subjectGUID, mobGUID, value, isTanking) local age = now - prev.time local maxV = math.max(value, prev.value, 1) local pct = math.abs(value - prev.value) / maxV - if age < THROTTLE and pct < MIN_DELTA then return end + if age < THROTTLE then return end -- hard rate floor + if pct < MIN_DELTA then return end end lastSend[subjectGUID][mobGUID] = { value = value, time = now }