From 3f21fa954902599103ad9733f5d18ae0c8362e33 Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Sat, 5 Dec 2026 04:07:06 -0800 Subject: [PATCH] block-ci: judge known bugs with the module helper; list only live reproductions The inline loop called an empty -run match or a skip a fix, and the list still named #188 (closed, test passes) and #189 (test absent), so every nightly run failed. Use known-bugs.sh and its controls, as the module workflow does, and keep only #186: #187's reproduction passes at this revision because values.yaml sets blockmaster.stateHostPath. Co-Authored-By: Claude Opus 5.5 --- .github/block/scripts/block-ci-port-test.py | 11 +++++++++++ .github/workflows/block-known-bugs.yml | 22 ++++----------------- 2 files changed, 15 insertions(+), 18 deletions(-) diff --git a/.github/block/scripts/block-ci-port-test.py b/.github/block/scripts/block-ci-port-test.py index 2861bfa5d5..b897ade959 100644 --- a/.github/block/scripts/block-ci-port-test.py +++ b/.github/block/scripts/block-ci-port-test.py @@ -46,6 +46,17 @@ class PortTests(unittest.TestCase): post = (ROOT / ".github/workflows/block-post-merge-review.yml").read_text() self.assertIn("working-directory: ${{ github.workspace }}", post) + def test_known_bugs_use_the_module_verdict_helper(self): + text = (ROOT / ".github/workflows/block-known-bugs.yml").read_text() + self.assertIn("bash .github/scripts/known-bugs-test.sh", text) + self.assertIn("bash .github/scripts/known-bugs.sh <<'LIST'", text) + rows = text.split("<<'LIST'\n", 1)[1].split("\n LIST", 1)[0].split("\n") + self.assertTrue(rows) + for row in rows: + issue, pkg, test = row.split() + sources = (ROOT / "seaweed-block" / pkg).glob("*_test.go") + self.assertTrue(any("func " + test + "(" in s.read_text() for s in sources), row) + def test_release_tag_namespace_and_artifact_identity(self): text = (ROOT / ".github/workflows/block-release.yml").read_text() self.assertIn('"seaweed-block/v*"', text) diff --git a/.github/workflows/block-known-bugs.yml b/.github/workflows/block-known-bugs.yml index 7516554255..64cc2d0169 100644 --- a/.github/workflows/block-known-bugs.yml +++ b/.github/workflows/block-known-bugs.yml @@ -66,28 +66,14 @@ jobs: go-version-file: seaweed-block/go.mod cache: false + - name: Known-bug verdict controls + run: bash .github/scripts/known-bugs-test.sh + - name: Each reproduction still fails run: | - set -u - ok=1 - while read -r issue pkg test; do - [ -n "$issue" ] || continue - if go test -count=1 -run "^${test}\$" "$pkg" > "out-${test}.txt" 2>&1; then - echo "::error::${test} (${pkg}) now PASSES: ${issue} looks fixed, remove its skip" - ok=0 - elif grep -q "^--- FAIL: ${test} " "out-${test}.txt"; then - echo "${test} (${issue}) still fails, as expected" - else - echo "::error::${test} (${pkg}) did not run or failed to build:"; tail -20 "out-${test}.txt" - ok=0 - fi - done <<'LIST' + bash .github/scripts/known-bugs.sh <<'LIST' #186 ./cmd/blockmaster/ TestChartOptInLoopbackFlagIsAcceptedByBlockmaster - #187 ./cmd/blockmaster/ TestChartDefaultAuthorityStateSurvivesPodReplacement - #188 ./core/ops/ TestDeleteSafety_UntimedCleanupCannotProveFreshness - #189 ./core/storage/ TestMultiBlockRecordsRequireDistinctOnDiskImplVersion LIST - [ "$ok" = 1 ] - name: Clean job workspace # Hosted runners are disposable; their setup-go cache upload runs in