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