Commit Graph
30 Commits
Author SHA1 Message Date
pingqiu 2ce032e32e test(block-ci): cover masked whitespace in reference destinations 2026-12-05 08:16:19 -08:00
pingqiu 286cbf4ecb fix(block-ci): validate original destination syntax 2026-12-05 07:55:05 -08:00
pingqiu 9d19a1a516 fix(block-ci): preserve original link destination bytes 2026-12-05 07:44:32 -08:00
pingqiu 36d91b0cea fix(block-ci): preserve escapes and context when masking code 2026-12-05 07:35:17 -08:00
pingqiu 30e7ead741 fix(block-ci): require complete matching code-span delimiters 2026-12-05 07:22:19 -08:00
Chris LuandClaude Opus 5.5 3f356a0b21 fix(block-ci): publish the draft a rerun of block-release finds
An interrupted first run can leave the tag with an unpublished draft.
The rerun took the existing-release branch, replaced the assets and
exited 0 with the release still a draft. Publish after the uploads,
keeping it off the repository's Latest.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-05 06:49:04 -08:00
Chris LuandClaude Opus 5.5 eeef10aeb2 fix(block-ci): mask code spans that wrap lines before matching links
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-05 06:48:56 -08:00
pingqiu 2c8d8d3a14 fix(block-ci): refuse ambiguous merge bases in readiness checks 2026-12-05 05:53:05 -08:00
pingqiu c06afc5a26 fix(block-ci): normalize artifact paths from both checker entry points 2026-12-05 05:50:09 -08:00
Chris LuandClaude Opus 5.5 0c510646dd block-ci: keep root block CI files clean under the public-text scan
The port test fixture spelled out a recorded-artifact path, and the unit
group test a pid literal, so the checker flagged both as added lines of
any PR that touches them. Build the fixture path from parts, name the
pid through a variable, and scan the root block CI files with the
checker's own pattern.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-05 04:31:48 -08:00
Chris LuandClaude Opus 5.5 7c31672e4a block-ci: refuse host files in a labelled PR outside the allow list
Host paths went through the module allow list, where "*_test.go", "*.md"
and "docs/*" also match root files, so a labelled PR changing
weed/example_test.go or README.md passed. List host changes separately
and fail on any of them; the module list still runs. The port test now
runs the step in a scratch repository.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-05 04:31:01 -08:00
Chris LuandClaude Opus 5.5 27f97dd6d1 block-ci: test the root wiring the active workflows use
The nested self-tests read the module's inactive test.yml, deploy/
Dockerfiles and chunkstore-scope.sh. Assert the docs-only gates in
block-test.yml, that each root image refuses every binary it builds, and
that the root classifier selects run for chunkstore, storage and durable
edits.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-05 04:10:08 -08:00
Chris LuandClaude Opus 5.5 b3403d5da6 block-ci: match doc links per paragraph, with nested parentheses and long fences
A link whose label wraps onto the next line was never checked, a target
such as guide(v2).md was cut at its first ')', and a three-backtick line
inside a four-backtick fence closed it. Close a fence only with the same
character at least as long, keep one level of balanced parentheses in a
destination, and match links over each paragraph.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-05 04:09:42 -08:00
Chris LuandClaude Opus 5.5 3fd8862426 block-ci: keep the public-text adapter in step with the module checker
The root adapter carried the v1.1.0 signatures: it passed /home/<user>/
paths and run metadata, and an empty docs/spec/**/recorded-* artifact,
which the module checker refuses. Take the module's pattern and artifact
path check, keep module-relative paths, skip the root adapter's own
pattern when run from the root, and run the module self-test against the
adapter so the two cannot drift.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-05 04:08:59 -08:00
Chris LuandClaude Opus 5.5 bb8c969709 block-ci: check host paths in a labelled post-merge-review PR
The changed-path list holds module paths and block controls only, so a
labelled PR that also changed host files passed on its module part. Add
every other changed path with its root name; the allow list refuses it.
The spec-trace scope stays module-only.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-05 04:08:02 -08:00
Chris LuandClaude Opus 5.5 25afda36b0 block-ci: refuse only control changes the PR itself makes
The two-dot diff against current master listed every block workflow master
changed after the PR branched, so an older docs-only PR hit
workflow_review_required for good. Diff from the merge base; the gate
already requires the tested base to be current master.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-05 04:07:45 -08:00
Chris LuandClaude Opus 5.5 b52fd36f0a block-ci: list both sides of a move when planning unit packages
Without --no-renames a file moved out of core/storage/ shows only its new
path, so the planner skipped the package it left. The sibling scope scripts
already pass the flag.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-05 04:07:24 -08:00
Chris LuandClaude Opus 5.5 d216bfda15 block-ci: let a release rerun replace the assets of a published tag
gh release create fails once the tag's release exists, after both image
pushes have already run again. Keep the imported helper's existing-release
path: edit the prerelease flag and upload with --clobber.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-05 04:07:23 -08:00
Chris LuandClaude Opus 5.5 3f21fa9549 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 <noreply@anthropic.com>
2026-12-05 04:07:06 -08:00
pingqiu 9a8a3b81fb fix(block-ci): refresh test evidence before reporting readiness 2026-12-05 01:37:50 -08:00
pingqiu 58347a55f0 ci(block): refuse workspace aliases before cleanup 2026-12-05 00:34:43 -08:00
pingqiu 12b9f2f037 ci(block): pin merge evidence and refuse control changes 2026-12-05 00:16:07 -08:00
pingqiu 9bdd7f25e0 ci(block): bound runner disk use and clean job workspaces 2026-12-04 23:56:51 -08:00
Chris LuandClaude Opus 5.5 ed7592dc4d ci: run the block documentation link check from root scripts
The Relative documentation links step called .github/scripts/doc-links-check.py
and its test inside seaweed-block/, but neither the imported module nor
upstream seaweed-block has them, so the unit suite would fail once the step
runs. Add the checker and its test under .github/block/scripts/ with the
other port scripts and point the step and its contract test there.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-04 19:22:24 -08:00
Chris LuandClaude Opus 5.5 915909cf6b ci: refuse a block release without notes before pushing images
The notes file was first checked in the last step, after both images
(and, for the highest stable tag, :alpha) were already pushed to GHCR, so
a tag without docs/releases/vX.Y.Z.md left the images published and no
GitHub release. Check it with the tag format, before anything is pushed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-04 19:21:27 -08:00
Chris LuandClaude Opus 5.5 fef4dbaaac ci: publish block releases from hosted runners
The release job holds contents: write and packages: write and logs in to
GHCR, and builds its images with the runner's Docker. Following
BLOCK_RUNNER_LABEL put it on the persistent pool that same-repository PR
test jobs also use, whose Docker and build cache those jobs can leave
state in, and whose Docker setup is still listed as unvalidated. The
source repository published from ubuntu-latest; keep that.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-04 19:21:26 -08:00
Chris LuandClaude Opus 5.5 ed6d649794 ci: keep the block post-merge-review check on hosted runners
The job's own comment records that it ended in 'Set up job' with no log on
every self-hosted runner, and the source repository ran it on ubuntu-latest.
The port made it follow BLOCK_RUNNER_LABEL, so setting the variable would
bring that failure back for every labelled same-repository PR.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-04 19:21:25 -08:00
pingqiu 1776005e5b ci: check block documentation relative links 2026-12-04 19:12:07 -08:00
pingqiu b699a0dd01 ci: preserve policy self-exclusion at the root path 2026-12-04 19:06:49 -08:00
pingqiu 4762c84e43 ci: port block workflows to the shared repository 2026-12-04 19:06:49 -08:00