Repository navigation
Description
Part of #554, change set C. Rulings: #554 rulings 5, 6, 9, 15 and 16.
Status, 2026-11-11. Built in 7b7e61a, deployed 2026-11-03. Proven: Verification item 1 (run 41608014517), item 4 (cron 42443026527, 2026-11-08) and item 5 (run 41677887088). The Filter simulation passed 20 of 20 lines, plus rows L and X (comment of 2026-11-03). Left: items 2 and 3 (maintainer, due 2026-11-18). Then the Measured comments (agent in the repo). Acceptance boxes 4 and 5 need a dated ruling by 2026-11-18.
Status, 2026-11-16. Boxes 4 and 5 were ruled on 2026-11-16 (accepted, dated 2026-11-11). Items 2 and 3 now take 1 run each, because the diff fixes the job count (review, 2026-11-16). Left: items 2 and 3 (maintainer, due 2026-11-18), then one Measured comment per PR.
Summary
- Today.
.github/filters/extensions.yamlkeys each extension on its whole folder. A README screenshot or demo GIF change starts that extension's full clean-room suite. - Measured cost. Push run 34821528307 changed two PNG files and nothing else.
- Its
🔎 Detect Changeslog (run 34821528307) printsFilter extension-hypermultimedia = trueandChanges output set to ["extension-hypermultimedia"]. - The Ext suite ran 193 s.
🏗️ Build Verificationwaited for it until +220 s, though the other gates had ended by +107 s. - That run's Build Verification failed for another reason. Use only its job seconds, not its M6.
- Its
- After. README media skips the suite:
extensions/<ext>/assets/**, and*.gif,*.png,*.jpg,*.jpeg,*.webp,*.mp4at an extension's root.README.md,CHANGELOG.mdandpackage.jsonstill run it, because the preflight reads them. Per the [Tracking] Faster, change-aware CI/CD pipeline #554 first shared rule, nothing else is excluded. - Also: the filter step gets
predicate-quantifier: 'some-with-excludes'._sharedgainsscripts/check-quickstart-example.ts,.github/workflows/prod.docs.plus.ymland.github/filters/**.scripts/check-ci.tsmirrors all of it. - The filter is global. It changes
(build):deploy pushes too.- A media-only
(build): frontpush skips its Ext job. A(build): backpush runs no Ext job, as today. - A
(build): frontpush that touches the three new_sharedentries now runs all six Ext jobs. Before this issue it ran none. - Since Build the deploy images while the quality gates run #565, images end after the gates on 14 of 15
(build):deploys (2026-11-03 to 2026-11-11, review read of 2026-11-11). So an Ext suite on a deploy adds 0 s to M1.
- A media-only
Benchmark
| Field | Value |
|---|---|
| Metric | 1. 🧪 Ext (…) jobs started by a change that touches only extension README media (count, exact). |
| Before | 1. 1 job. Run 34821528307 (2026-09-14) changed 2 PNG files: Changes output set to ["extension-hypermultimedia"], one Ext job, 193 s.Context for the Claim's runner-minutes, not a metric: n = 6 runs (41608014517, 41626334830, 41636667896, 42443026527, 42626416956, 42643193705): hypermultimedia median 209 s (190–229 s); hyperlink median 187.5 s (166–203 s); mermaid median 152.5 s (132–182 s). |
| After | 1. Offline: 0 jobs, Filter simulation 20 of 20 lines (comment of 2026-11-03). Live: not measured yet. |
| Condition | GitHub-hosted ubuntu-latest. prod.docs.plus.yml at 7b7e61a or later, with #563 on main. One draft PR per check, one fixed change set, 1 run each. State the date and the head SHA. |
| How to run | Verification items 2 and 3. Read each run with the Verification grep and gh run view <id> --repo docs-plus/docs.plus --json createdAt,jobs. |
| Pass rule | 1. Changes output set to [] and 0 Ext jobs in the item 2 run.Revert: any Rollback condition, for example a non-media file left out of Changes output set to. |
| Guard | Control: the item 3 run starts 🧪 Ext (extension-mermaid) with its ✈️ Preflight step. The weekly cron still runs all six suites. |
| Owner | Maintainer: opens each draft PR, waits for its one run, closes it unmerged. Agent in the repo: posts one Measured comment per PR. |
| Claim | "A README picture change now starts 0 extension test suites, down from 1 (2 for hyperlink media). That saves one suite run, about 2.5 to 3.5 runner-minutes (n = 6 per suite)." |
Depends on / Blocks
- Depends on: nothing.
- Blocks: Run only the CI suites a pull request or push can affect #563. It adds scopes to the same
🔎 Detect Changesjob and relies on thispredicate-quantifierline. - Touches the same job as Start the extension and webapp unit tests without waiting for backend validation #558, which edits the
extension-testsneedsandiflines. Line numbers may move; Step 0 handles that.
Current behaviour
Every link is pinned to commit d0a53756f8676556358b6adc6c2397d2ed7c64c8.
- The filter keys each extension on its whole folder, with no exclusions (
.github/filters/extensions.yaml:1-43).
_shared(L5-L22) lacks the three new entries. Each key is- *sharedplus'extensions/<ext>/**'(L24-L43).extension-hypermultimediaalso watches'extensions/extension-hyperlink/**'(L33-L34). - The filter step sets no quantifier (
prod.docs.plus.yml:146-149):- id: filter uses: dorny/paths-filter@ceb8a2b8f2d89434be7ff52d3de7ec3738c5cc9d # v4.0.3 with: filters: .github/filters/extensions.yaml
workflow_dispatch,scheduleand a push without a diff base list all six extensions (prod.docs.plus.yml:157).- The matrix is the filter output (
prod.docs.plus.yml:272-286). It runs only whenneeds.changes.outputs.changed_extensions != '[]', then runs the suite and the preflight (:298-306).buildaccepts a skippedextension-tests(:375). - The preflight reads the README (
scripts/extension-preflight.sh:16-17) throughscripts/check-quickstart-example.ts, which needs a## Quickstartsection (scripts/check-quickstart-example.ts:19-22). - No CI suite, build or preflight reads
assets/.- Specs match
cypress/e2e/**/*.cy.ts(cypress.config.ts:7). Gallery specs incypress/docs/run only throughdocs:screenshots. --readme-media-dir ./assets/readme-media(package.json:41) is served only on a/readme-media/*request (launch.ts:69-84). Nocypress/e2espec makes one.flattenReadmeScreenshotswrites toassets/only forreadme-gallery.cy.ts(:10-17). The tarball shipsdist,CHANGELOG.mdandLICENSEonly (package.json:53-57).- Every
.gif,.png,.jpg,.webpand.mp4file underextensions/sits inextensions/<ext>/assets/.
- Specs match
- The cache key (
.github/actions/build-extensions/action.yml:34-52) hashesextensions/*/package.jsonandextensions/*/src/**only. scripts/check-ci.tsmirrors the filter for the Husky pre-push run (:19-42,:98-107). Itstouched()counts any file underextensions/<dir>/.AGENTS.md:222says to change both together.- The pinned
dorny/paths-filterv4.0.3 supports'some-with-excludes'(action.yml:47-55). It applies per key, and an exclusion is final (src/filter.ts:133-149;someat:150-151).
Target behaviour
| Change | Suites today | Suites after |
|---|---|---|
Only extensions/<ext>/assets/** files |
that extension's | none |
Only an image or video at an extension root, for example extensions/<ext>/preview.png |
that extension's | none |
Only a extensions/extension-hyperlink/assets/** file |
hyperlink and hypermultimedia | none |
extensions/<ext>/README.md, CHANGELOG.md or package.json |
that extension's | unchanged |
An image elsewhere, for example cypress/fixtures/x.png or src/icons/a.png |
that extension's | unchanged |
scripts/check-quickstart-example.ts, .github/workflows/prod.docs.plus.yml or .github/filters/** |
none | all six |
bun.lock or any other _shared entry |
all six | unchanged |
Any file outside extensions/ and _shared |
none | unchanged |
workflow_dispatch, schedule, or a push with no diff base |
all six | unchanged |
- Push 39283678757 changed mermaid
README.mdandpackage.jsonbeside its GIFs. Its mermaid suite (run 39283678757, 194 s) still runs, by design. scripts/check-ci.tspicks the same suites for every row.
Implementation steps
Read every file in Read first before Step 0. "Comment here" means a comment on this issue.
Step 0. Check the base
- Compare the cited files with the pin:
For each listed file, compare the cited lines with Current behaviour. A moved line is fine; use the new number. If the filter keys, the filter step,
git diff --stat d0a53756f8676556358b6adc6c2397d2ed7c64c8 HEAD -- .github/filters/extensions.yaml .github/workflows/prod.docs.plus.yml .github/actions/build-extensions/action.yml scripts/check-ci.ts scripts/extension-preflight.sh scripts/check-quickstart-example.ts AGENTS.md
SHARED_EXACT,SHARED_PREFIXESortouched()changed in meaning, stop and comment here. - This must print one line, with
ceb8a2b8f2d89434be7ff52d3de7ec3738c5cc9d # v4.0.3:If the pin changed, readgrep -n "dorny/paths-filter" .github/workflows/*.yml
action.ymlandsrc/filter.tsat the new SHA. Ifsome-with-excludesno longer behaves as item 9 says, stop and comment here. - Run both commands:
git ls-files 'extensions/*' | grep -E '\.(gif|png|jpe?g|webp|mp4)$' | grep -v -E '^extensions/[^/]+/assets/' git grep -n -E "assets/|readme-media" -- 'extensions/*/src/*' 'extensions/*/test/*' 'extensions/*/cypress/e2e/*' 'extensions/*/cypress/support/*' 'extensions/*/tsup.config.ts' 'extensions/*/cypress.config.ts' 'packages/release-tooling' 'scripts/run-tests.sh' 'scripts/extension-preflight.sh' 'scripts/build-extensions.sh'
- At 0b302b2 the first command prints five test files under
extensions/extension-hyperlink/test/playground/icons/. They are not README media, and they still start both suites (Filter simulation row X). Any other line: stop and comment here. - At 0b302b2 the second command prints eight lines in
extensions/extension-hyperlink/. Each names the/readme-media/URL path. Hyperlink serves that path fromtest/playground/icons/(extensions/extension-hyperlink/package.json:42), not fromassets/. - Any other line from the second command means that file reads
assets/in CI. Stop and comment here with the line. Each directory pathspec ends in/*, or git matches no file below it. Check each one: for example,git ls-files -- 'extensions/*/src/*' | wc -lmust print more than 0.
- At 0b302b2 the first command prints five test files under
- Confirm the extension keys match
scripts/publishable-extensions.ts:extension-indent,extension-hyperlink,extension-hypermultimedia,extension-inline-code,extension-placeholder,extension-mermaid. Give any seventh key the same*readme_medialine in Step 1.
Step 1. The filter file
Replace .github/filters/extensions.yaml with this. Keep any key or _shared entry that main gained after the pin.
# Shared inputs for ALL extensions, appended to every key via YAML anchor.
# Mirrored in scripts/check-ci.ts; dist inputs also in build-extensions hashFiles.
# Test-only entries (playground, run-tests.sh, setup-cypress, the quickstart check,
# the workflow, this folder) run the suites but need no cache bust: dist is unchanged.
_shared: &shared
- 'package.json'
- 'bun.lock'
- 'tsconfig.base.json'
- 'tsup.base.ts'
- 'packages/floating-popover/**'
- 'packages/floating-tooltip/**'
- '.github/actions/build-extensions/**'
- '.github/actions/setup-cypress/**'
# Resolves the Bun version and runs the frozen-lockfile install for every ext job.
- '.github/actions/setup-bun/**'
- 'packages/playground/**'
- 'scripts/publishable-extensions.ts'
- 'scripts/build-extensions.sh'
- 'scripts/run-tests.sh'
- 'scripts/extension-preflight.sh'
# extension-preflight.sh runs it to compare each README Quickstart with examples/vanilla.
- 'scripts/check-quickstart-example.ts'
# The workflow that runs these suites, and this filter.
- '.github/workflows/prod.docs.plus.yml'
- '.github/filters/**'
# Implements `release-preflight`, which every extension's prepublishOnly runs.
- 'packages/release-tooling/**'
# README media: no suite, build or preflight reads it. The step sets
# predicate-quantifier: 'some-with-excludes', so a '!' rule is final for its key.
# README.md, CHANGELOG.md and package.json stay in, because the preflight reads them.
_readme_media: &readme_media
- '!extensions/*/assets/**'
- '!extensions/*/*.{gif,png,jpg,jpeg,webp,mp4}'
extension-indent:
- *shared
- *readme_media
- 'extensions/extension-indent/**'
extension-hyperlink:
- *shared
- *readme_media
- 'extensions/extension-hyperlink/**'
extension-hypermultimedia:
- *shared
- *readme_media
- 'extensions/extension-hypermultimedia/**'
# Its playground imports extension-hyperlink, and linked-image.cy.ts tests that pair.
- 'extensions/extension-hyperlink/**'
extension-inline-code:
- *shared
- *readme_media
- 'extensions/extension-inline-code/**'
extension-placeholder:
- *shared
- *readme_media
- 'extensions/extension-placeholder/**'
extension-mermaid:
- *shared
- *readme_media
- 'extensions/extension-mermaid/**'_sharedand_readme_mediaare filter outputs thatassembleignores. A key of only!rules never matches, so_readme_mediais alwaysfalse.- Every key needs
- *readme_media. Without it onextension-hypermultimedia, a hyperlink GIF would still start that suite. - Check:
bunx prettier --check .github/filters/extensions.yamlpasses.
Step 2. The filter step
In .github/workflows/prod.docs.plus.yml, change the filter step of 🔎 Detect Changes (L146-L149 at the pin) to:
- id: filter
uses: dorny/paths-filter@ceb8a2b8f2d89434be7ff52d3de7ec3738c5cc9d # v4.0.3
with:
filters: .github/filters/extensions.yaml
# Under the default 'some', a '!' rule matches every other file and starts every suite.
predicate-quantifier: 'some-with-excludes'- Change nothing else. The stale "~14 min" comment at L117 belongs to Make CI failures reach Telegram: set the watchdog secrets, alert on red E2E pushes #557.
- Check:
actionlint -config-file .github/actionlint.yaml .github/workflows/prod.docs.plus.ymlexits 0.
Step 3. Leave the build-extensions cache key
Do not edit .github/actions/build-extensions/action.yml. The new entries do not change dist bytes, and adding them to hashFiles would bust the cache. Its L34-L37 comment stays true, because the Step 1 header names the test-only entries.
Step 4. The check-ci.ts mirror
Superseded by df1a9d4 (2026-11-03): check-ci.ts now parses the filter file. It holds no README_MEDIA. Do not apply this step on a rebuild. The Step 5 sentence about README_MEDIA is superseded the same way: AGENTS.md:219 now says scripts/check-ci.ts reads this filter file.
In scripts/check-ci.ts:
- Append to
SHARED_EXACT(L20-L29 at the pin):'scripts/extension-preflight.sh', 'scripts/check-quickstart-example.ts', '.github/workflows/prod.docs.plus.yml' ])
- Append to
SHARED_PREFIXES(L30-L38):'.github/actions/setup-bun/', '.github/filters/' ]
- Below
ALSO_WATCHES(L40-L42), add:// The filter's `_readme_media` excludes: no suite or preflight reads README media. const README_MEDIA = /^extensions\/[^/]+\/(assets\/|[^/]+\.(gif|png|jpe?g|webp|mp4)$)/
- Change
touchedinextensionsFor(L102-L103) to:const touched = (dir: string) => changed.some( (file) => !README_MEDIA.test(file) && (file === `extensions/${dir}` || file.startsWith(`extensions/${dir}/`)) )
- Export nothing and add no test file. The script runs its gates at import.
- Check:
bunx prettier --check scripts/check-ci.tsandbunx eslint scripts/check-ci.ts --max-warnings=0pass. Do not runbun run check:ci.
Step 5. AGENTS.md
At AGENTS.md:222, after the sentence that ends "ALSO_WATCHES, so change both together.", add:
README media is excluded:
extensions/*/assets/**and image or video files at an extension root start no suite. The step setspredicate-quantifier: 'some-with-excludes', because under the defaultsomea!rule matches every other file.README.md,CHANGELOG.mdandpackage.jsonstill start the suite, because the preflight reads them.scripts/check-ci.tsmirrors the exclusion inREADME_MEDIA.
- In the same paragraph, find "the build-extensions action, and the extension build scripts". Replace it with "the build-extensions action, the extension build and preflight scripts, this workflow, and
.github/filters/". - Check:
bun run check:agent-docspasses.
Step 6. Prove the filter
FORCE_ALL (L157) makes a dispatch list all six suites, so use a local copy of the v4.0.3 matching rules instead.
- The script uses the repo's
picomatch@2copy in the Bun store and downloads nothing. If nopicomatch@2.*folder exists undernode_modules/.bun, runbun installfirst. - Run the whole block as one shell command from the repo root. It lives in
/tmp/ext-filter-sim, outside the repo.
T=/tmp/ext-filter-sim; mkdir -p "$T"
cat > "$T/filter-sim.ts" <<'EOF'
// bun filter-sim.ts <filters.yaml> <some|some-with-excludes> <file>... → matching keys, as dorny/paths-filter v4.0.3
import { readFileSync } from 'node:fs'
import { Glob } from 'bun'
const repo = process.env.REPO ?? process.cwd()
const pmDir = [...new Glob('node_modules/.bun/picomatch@2.*/node_modules/picomatch').scanSync({ cwd: repo, onlyFiles: false })][0]
if (!pmDir) throw new Error('no picomatch@2 under node_modules/.bun; run bun install first')
const picomatch = require(`${repo}/${pmDir}`)
const [yamlPath, quantifier, ...files] = Bun.argv.slice(2)
const doc = Bun.YAML.parse(readFileSync(yamlPath, 'utf8')) as Record<string, unknown>
const flat = (x: unknown): string[] => (Array.isArray(x) ? x.flatMap(flat) : [x as string])
const out: string[] = []
for (const [key, item] of Object.entries(doc)) {
const ms = flat(item).map((p) => picomatch(p, { dot: true }, true))
const inc = ms.filter((m: any) => !m.state.negated), exc = ms.filter((m: any) => m.state.negated)
const hit = (f: string) =>
quantifier === 'some-with-excludes'
? !exc.some((m: any) => !m(f)) && inc.some((m: any) => m(f))
: ms.some((m: any) => m(f))
if (files.some(hit)) out.push(key)
}
console.log(JSON.stringify(out.filter((k) => !k.startsWith('_'))))
EOF
git show d0a53756f8676556358b6adc6c2397d2ed7c64c8:.github/filters/extensions.yaml > "$T/before.yaml"
N=.github/filters/extensions.yaml; B="$T/before.yaml"; Q=some-with-excludes
sim() { REPO=$PWD bun "$T/filter-sim.ts" "$@"; }
sim $B some extensions/extension-hypermultimedia/assets/image-dark.png extensions/extension-hypermultimedia/assets/image-light.png
sim $N $Q extensions/extension-hypermultimedia/assets/image-dark.png extensions/extension-hypermultimedia/assets/image-light.png
sim $N $Q extensions/extension-mermaid/assets/demo-dark.gif
sim $N $Q extensions/extension-indent/preview.png
sim $N $Q extensions/extension-hyperlink/assets/demo-dark.gif
sim $N $Q extensions/extension-hypermultimedia/assets/readme-media/ATTRIBUTION.md
sim $N $Q extensions/extension-mermaid/README.md
sim $N $Q extensions/extension-indent/CHANGELOG.md
sim $N $Q extensions/extension-placeholder/package.json
sim $N $Q $(git show --name-only --format= 427c245c25a79f40f32117a760c8f2d0797eac74)
sim $N $Q extensions/extension-hypermultimedia/cypress/fixtures/x.png
sim $N $Q extensions/extension-mermaid/src/icons/a.png
sim $N $Q extensions/extension-hyperlink/src/index.ts
sim $N $Q scripts/check-quickstart-example.ts
sim $N $Q .github/workflows/prod.docs.plus.yml
sim $N $Q .github/filters/extensions.yaml
sim $N $Q bun.lock
sim $N $Q apps/webapp/src/pages/index.tsx
sim $N some apps/webapp/src/pages/index.tsx
sim $N some extensions/extension-mermaid/assets/demo-dark.gif
rm -r "$T"Expect exactly these 20 lines. ALL stands for ["extension-indent","extension-hyperlink","extension-hypermultimedia","extension-inline-code","extension-placeholder","extension-mermaid"].
| Output lines | Expected |
|---|---|
| 1 (old filter, run 34821528307), 11 | ["extension-hypermultimedia"] |
| 2–6, 18 | [] |
7, 10 (commit 427c245c2, push 39283678757), 12 |
["extension-mermaid"] |
| 8 | ["extension-indent"] |
| 9 | ["extension-placeholder"] |
| 13 | ["extension-hyperlink","extension-hypermultimedia"] |
| 14–17, 19, 20 | ALL |
- Lines 19 and 20 are traps under
some. They show why Step 2 is required. - If any row differs, stop. Fix the filter, or comment here when the cause is not clear.
- Post the 20 output lines as a comment here, headed "Filter simulation".
Step 7. Gates for the touched files
actionlint -config-file .github/actionlint.yaml .github/workflows/prod.docs.plus.yml
bunx prettier --check .github/filters/extensions.yaml .github/workflows/prod.docs.plus.yml scripts/check-ci.ts AGENTS.md
bunx eslint scripts/check-ci.ts --max-warnings=0
bun run check:agent-docsAll four must exit 0. bash .github/scripts/parse-build-trigger.test.sh is not needed, because triage does not change.
Review checkpoint
Show git diff --stat and git diff for .github/filters/extensions.yaml, .github/workflows/prod.docs.plus.yml, scripts/check-ci.ts and AGENTS.md. Show the Step 6 comment link and the Step 7 output. Then stop. Do not run git add, git commit, git push or git stash, and create no branch or pull request.
The maintainer commits and pushes per SP2 (#554), as its own commit with a non-deploy subject such as ci(filters): skip extension suites for README media.
Acceptance criteria
-
.github/filters/extensions.yamlmatches Step 1. Every extension key holds- *readme_media. - The
filterstep setspredicate-quantifier: 'some-with-excludes'. No other workflow line changed. -
.github/actions/build-extensions/action.ymlis unchanged. -
scripts/check-ci.tsreads.github/filters/extensions.yaml(df1a9d4). Its column in the Filter simulation matches all 20 lines. Amended, maintainer ruling 2026-11-16 (accepted, dated 2026-11-11). -
AGENTS.mdnames the media exclusion and the quantifier. Amended, maintainer ruling 2026-11-16 (accepted, dated 2026-11-11). - The "Filter simulation" comment exists, and all 20 lines match the Step 6 table. (Comment of 2026-11-03.)
- The four Step 7 commands exit 0.
- After merge, the landing push shows
Changes output set to ["_shared","extension-indent","extension-hyperlink","extension-hypermultimedia","extension-inline-code","extension-placeholder","extension-mermaid"], and all six🧪 Ext (…)jobs pass. (Run 41608014517.) - After merge, a change that touches only extension README media shows
Changes output set to []and no🧪 Ext (…)job. - After merge, a change to an extension
README.mdstill runs that extension's🧪 Ext (…)job, with its✈️ Preflightstep. - The "Measured, " comments exist, as Accountability says.
Verification
Before merge (the builder): run the Step 7 gates and the Step 6 simulation.
A dry_run_subject dispatch is optional; it only proves that the step loads the new input. Run SP1 (#554) first. Run one dispatch at a time, and wait for it with gh run watch <id> --repo docs-plus/docs.plus. Nobody pushes to main while the dispatch runs. Expect six 🧪 Ext (…) jobs and no Input parameter 'predicate-quantifier' error. Ignore its Changes output set to line.
After merge (the maintainer, or an agent the maintainer names). To read a 🔎 Detect Changes log:
gh run view <run-id> --repo docs-plus/docs.plus --log --job <detect-changes-job-id> | grep -a -E -A1 "Changes will be detected|name-status|\[(added|modified|removed|renamed)\] |Detected [0-9]+ changed files|Filter (_shared|extension-)|Changes output set to"
gh run view <run-id> --repo docs-plus/docs.plus --json jobs -q '.jobs[] | select(.name | test("Ext \\(|Build Verification")) | [.name, .conclusion, .startedAt, .completedAt] | @tsv'Keep -a. A push diff line holds NUL bytes, and without -a GNU grep drops the needed lines.
- The landing push. Expect the full
Changes output set tolist from Acceptance criteria and six passing🧪 Ext (…)jobs. This proves that the step accepts the quantifier. Done: run 41608014517 (2026-11-03). - The first media-only change. Required. By 2026-11-18, the maintainer opens a draft pull request that adds one copied PNG under
extensions/extension-mermaid/assets/.- One run is enough, because the diff fixes the job count. Do not use
gh run rerun. - Expect
Changes output set to []and no🧪 Ext (…)job in the run. Run only the CI suites a pull request or push can affect #563 is on main, so🏗️ Build Verificationskips. - Record the Ext job count. Close the PR unmerged.
- One run is enough, because the diff fixes the job count. Do not use
- The first README change. Required. The maintainer opens it only after the item 2 PR is closed, by 2026-11-18. It is a draft pull request with a one-line edit to
extensions/extension-mermaid/README.mdoutside## Quickstart.- Wait for its one run. Close the PR unmerged.
- Expect
Changes output set to ["extension-mermaid"]and a passing🧪 Ext (extension-mermaid)job with its✈️ Preflight (extension-mermaid)step, in the run. - Record the mermaid job seconds.
- The next weekly cron (Sunday 00:00 UTC). Expect all six
🧪 Ext (…)jobs. Done: cron 42443026527 (2026-11-08) ran all six, allsuccess. - The next
(build):deploy. Done: run 41677887088 (2026-11-03). ExpectChanges output set toto name every extension with a non-media file in that push's diff, and no other. The diff is the range inChanges will be detected between <before> and main.- If the diff touches the three new
_sharedentries, expect_sharedand all six names.deploythen waits forbuild(:427), as Summary says.
- If the diff touches the three new
Accountability
- The builder posts the "Filter simulation" comment before review.
- The maintainer checks item 1 within one day of the push, then items 2 and 3 by 2026-11-18.
- Record per SP3 ([Tracking] Faster, change-aware CI/CD pipeline #554), one comment per checked run. Add the
🔎 Detect Changesjob id, itsDetected N changed filesandChanges output set tolines, and the Ext jobs with seconds. Metrics: Measure CI/CD time to live after the v2.3 work: 1090 s median before #569.
| Metric | Run to read | Baseline | Expected |
|---|---|---|---|
| Ext jobs started, media-only change | item 2, n = 1 | 1 (run 34821528307) | 0 |
| Ext job seconds, media-only change | item 2, n = 1 | 193 s, run 34821528307 | no Ext job |
| M1 | each (build): deploy until #554 closes |
median 1090 s, n = 14 (the baseline in #569, before #565) | unchanged. M1 after: see #569 Measured 6812443811. |
M2g, M2i, M3, M4, M5 and W do not change. Close this issue only after the comments for items 1, 2 and 3 exist.
Rollback
Revert per SP4 (#554) when any run after merge shows one of these:
- A diff file outside
assets/and the root media globs leaves its extension out ofChanges output set to. Read the diff lines with the Verificationgrep. - The
🔎 Detect Changesstep fails on thepredicate-quantifierinput. - The weekly cron fails on a spec that an earlier filtered push changed, while that push showed no
🧪 Ext (…)job for it.
Fix, do not revert, when a media-only change still runs its suite. That costs time only. Comment here with the run id.
Known gap, not a revert. A push whose run was cancelled is not path-tested by the next push. The workflow sets cancel-in-progress: true, and the diff base is github.event.before. Run 42643542728 logged Detected 0 changed files after run 42643193705 was cancelled. The weekly cron is the backstop. Follow-up: #759 (a FORCE_ALL or diff-base fix, by maintainer ruling).
After the revert:
- The revert run starts no
🧪 Ext (…)job, as expected: none of the four files is an old filter input. - Skipped suites do not rerun on their own. Run SP1 ([Tracking] Faster, change-aware CI/CD pipeline #554), then
gh workflow run prod.docs.plus.yml --repo docs-plus/docs.plus --ref mainwith no inputs.FORCE_ALLruns all six suites, and nothing deploys. - Run one dispatch at a time, and wait for it with
gh run watch <id> --repo docs-plus/docs.plus. Nobody pushes tomainwhile the dispatch runs. - Expect six passing
🧪 Ext (…)jobs. Post the run id here.
Docs to update
AGENTS.md:222: Step 5.- Nothing else.
.github/WORKFLOWS.md:67and.cursor/docs/scripts-naming-convention.md:178stay true after Step 4.
Out of scope
- The
webapp,admin,backendanddocs_onlyscopes, and skipping Build Verification on docs-only or media-only pushes: Run only the CI suites a pull request or push can affect #563. - Removing
back-validationfrom theextension-testsneeds: Start the extension and webapp unit tests without waiting for backend validation #558. - The stale "~14 min" comment at
prod.docs.plus.yml:117: Make CI failures reach Telegram: set the watchdog secrets, alert on red E2E pushes #557. - Excluding any non-media file, such as
README.md,CHANGELOG.md,package.json,examples/**orcypress/docs/**. - Excluding media under
src/**orcypress/fixtures/**. Those can be build or test inputs. - Changing
FORCE_ALL, the weekly cron, the matrixiforbuild's accepted results.
Read first
AGENTS.md: §Git And Commits, §Test Policy, and line 222.extensions/CLAUDE.md: the extension workflow and thedocs:gifanddocs:screenshotsnotes..github/filters/extensions.yaml, in full..github/workflows/prod.docs.plus.yml: L124-L176 (🔎 Detect Changes), L272-L306 (extension-tests) and L375.scripts/check-ci.ts: L1-L110.scripts/extension-preflight.shandscripts/check-quickstart-example.ts..github/actions/build-extensions/action.yml.dorny/paths-filteratceb8a2b8f2d89434be7ff52d3de7ec3738c5cc9d:action.yml:47-55andsrc/filter.ts:122-214.
Activity
HMarzban commentedon Oct 26, 2026
Built and committed on local main. Awaits the maintainer's final push.
Remaining gate: the push, then the after-merge checks 1 to 3. The Filter simulation result is ready for the maintainer to post.
ci(filters): skip extension suites for README media
HMarzban commentedon Nov 3, 2026
Status, 2026-11-03.
7b7e61a80is pushed and deployed on 2026-11-03. The landing push showssome-with-excludesand all six extension names, and all six Ext jobs passed.df1a9d402later removedREADME_MEDIAfromscripts/check-ci.ts. That script now reads.github/filters/extensions.yamldirectly.Left:
Measuredcomments.HMarzban commentedon Nov 3, 2026
Measured, 2026-11-03.
Run: 41608014517, attempt 1 (the landing push), then deploys 41626334830 and 41636667896.
On main: #555–#565. #566 has only its temporary
backend_no_cacheinput (a9688f0). #568 has only its trace tooling (d9b6222).M1 598 | M2g 496 | M2i 509 | M3 445 | M4 7 | M5 59 | W 9 | free_gb 60 | cached_installs 0
Expected: the landing push lists
_sharedand all six extensions, and all six Ext jobs pass. M1 is "unchanged, except the Summary gain".Verdict: keep.
🔎 Detect Changeson each run. Every run logspredicate-quantifier: some-with-excludesand no input error.Detected N changed filesChanges output set to["_shared","extension-indent","extension-hyperlink","extension-hypermultimedia","extension-inline-code","extension-placeholder","extension-mermaid"]The two later deploys list all six because
bun.lockis in each diff, andbun.lockis_shared. That matches Verification item 5.Ext job seconds (job duration), all
success:M1 on each
(build):deploy: 598 s (41608014517), 633 s (41626334830), 670 s (41636667896). Each read is from the🚀 Deploy Productionjob.Item 1 (the landing push) is proven. Items 2 and 3 have not happened. No media-only change and no extension README-only change has run on the new code. The Filter simulation comment is not on this issue yet. The next weekly cron is due on 2026-11-08.
Can close now: no — the Filter simulation comment (builder), the media-only and README checks (maintainer), and the Sunday cron read.
HMarzban commentedon Nov 3, 2026
Filter simulation, 2026-11-03.
Base:
mainatfb6b55173. It holds7b7e61a80(the filter change) anddf1a9d402(scripts/check-ci.tsnow reads.github/filters/extensions.yaml). Since7b7e61a80, only the filter file's header comment changed.How I ran it:
/tmp/ext-filter-sim. Bun 1.4.4, with the repo's[email protected](dorny v4.0.3 locks2.3.1).src/filter.tsatceb8a2b8f. The script matches it:dot: true, and undersome-with-excludesan exclusion is final. Keys that start with_are dropped from the output.selects()andextensionsFor()fromscripts/check-ci.tsatfb6b55173. The script itself runs every gate at import, so I did not run it.ALLstands for["extension-indent","extension-hyperlink","extension-hypermultimedia","extension-inline-code","extension-placeholder","extension-mermaid"].d0a53756f),someextensions/extension-hypermultimedia/assets/image-dark.png,…/image-light.png(run 34821528307)["extension-hypermultimedia"]["extension-hypermultimedia"]some-with-excludes[][][]extensions/extension-mermaid/assets/demo-dark.gif[][][]extensions/extension-indent/preview.png[][][]extensions/extension-hyperlink/assets/demo-dark.gif[][][]extensions/extension-hypermultimedia/assets/readme-media/ATTRIBUTION.md[][][]extensions/extension-mermaid/README.md["extension-mermaid"]["extension-mermaid"]["extension-mermaid"]extensions/extension-indent/CHANGELOG.md["extension-indent"]["extension-indent"]["extension-indent"]extensions/extension-placeholder/package.json["extension-placeholder"]["extension-placeholder"]["extension-placeholder"]427c245c2(push 39283678757): mermaidREADME.md,package.json,cypress/docs/**, 12assets/files,extensions/CLAUDE.md["extension-mermaid"]["extension-mermaid"]["extension-mermaid"]extensions/extension-hypermultimedia/cypress/fixtures/x.png["extension-hypermultimedia"]["extension-hypermultimedia"]["extension-hypermultimedia"]extensions/extension-mermaid/src/icons/a.png["extension-mermaid"]["extension-mermaid"]["extension-mermaid"]extensions/extension-hyperlink/src/index.ts["extension-hyperlink","extension-hypermultimedia"]scripts/check-quickstart-example.tsALLALLALL.github/workflows/prod.docs.plus.ymlALLALLALL.github/filters/extensions.yamlALLALLALLbun.lockALLALLALLapps/webapp/src/pages/index.tsx[][][]some(trap)apps/webapp/src/pages/index.tsxALLALLsome(trap)extensions/extension-mermaid/assets/demo-dark.gifALLALLsome-with-excludesa9b0c69e8..8e25e83dfwith--no-renames: 675 files, the same count as job 125822714251ALL, plus_sharedin the real logALLALLsome-with-excludesextensions/extension-hyperlink/test/playground/icons/dark.png["extension-hyperlink","extension-hypermultimedia"]Lines 19 and 20 show why the step needs
predicate-quantifier: 'some-with-excludes'. Under the defaultsome, each!rule matches every other file.Line X is new. Since
e47494c69(2026-10-26), four test PNG files sit inextensions/extension-hyperlink/test/playground/icons/. So the Step 0 media check now prints four lines. They are not README media, and they still start both suites, as the "image elsewhere" case of Target behaviour says.The 20 Step 6 output lines:
Proves: the "Filter simulation" acceptance item (all 20 lines match), and the rule that
scripts/check-ci.tspicks the same suites for every row.df1a9d402made thecheck-ci.tscheckbox wording stale; the check-ci.ts column proves its intent. Still left: the media-only check (Verification 2) and the README check (Verification 3) (maintainer), then the Sunday 2026-11-08 cron read and theMeasuredcomments (builder).HMarzban commentedon Nov 3, 2026
Status, 2026-11-03 (after the 1b05cb2 deploy).
Verification item 5 holds on run 41677887088 (
🔎 Detect Changes, job 126063430598):Detected 23 changed files, equal togit diff --name-only 3298c7f83..1b05cb24d.Changes output set to ["extension-hyperlink","extension-hypermultimedia"]. Hyperlink source starts both suites, as simulation line 13 shows.extensions/README.mdstarted no suite. Both Ext jobs passed, and no other Ext job ran.Left:
HMarzban commentedon Nov 11, 2026
Measured, 2026-11-08. Read on 2026-11-11 with
gh run view 42443026527 --repo docs-plus/docs.plus --json jobs.Run: cron 42443026527,
schedule, attempt 1, headd31ed9033. The run endedsuccess.Expected: all six
🧪 Ext (…)jobs run (Verification item 4).Verdict: keep. Item 4 is proven.
Ext job seconds (job duration), all
success:🔒 Security Auditand🔎 Detect Changesran. Type Check, Webapp Unit Tests, Backend Validation, Build Verification and Deploy Production were skipped, as on every cron.Body edits, 2026-11-11:
/readme-media/URL lines in hyperlink. Hyperlink serves that path fromtest/playground/icons/, notassets/.scripts/check-ci.tsnow reads the filter file. Boxes 4 and 5 wait for a maintainer ruling on the new text.Left: Verification items 2 and 3 (maintainer, by 2026-11-18). Then one Measured comment per PR (agent in the repo).
HMarzban commentedon Nov 14, 2026
Moved to v2.3.7 at the v2.3.6 release audit. The live media-only and README checks have not run. Their afters are not measured yet.
HMarzban commentedon Nov 16, 2026
Maintainer ruling, 2026-11-16
Answered by the maintainer in the 2026-11-16 working session; posted by the agent.
HMarzban commentedon Nov 16, 2026
Review, 2026-11-16 (maintainer approved).
5aa56e1d1confirms boxes 1-3. Boxes 4 and 5 carry the 2026-11-16 ruling.HMarzban commentedon Nov 17, 2026
Rollback note, 2026-11-17 (#759 step 5). Scopes read
before..after. Since #759 (58f22a844), a run after a cancelled push forces every scope.