Skip to content

Stop extension README media from triggering extension test suites #562

Open

Description

@HMarzban

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.yaml keys 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 Changes log (run 34821528307) prints Filter extension-hypermultimedia = true and Changes output set to ["extension-hypermultimedia"].
    • The Ext suite ran 193 s. 🏗️ Build Verification waited 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.
  • After. README media skips the suite: extensions/<ext>/assets/**, and *.gif, *.png, *.jpg, *.jpeg, *.webp, *.mp4 at an extension's root. README.md, CHANGELOG.md and package.json still 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'. _shared gains scripts/check-quickstart-example.ts, .github/workflows/prod.docs.plus.yml and .github/filters/**. scripts/check-ci.ts mirrors all of it.
  • The filter is global. It changes (build): deploy pushes too.
    • A media-only (build): front push skips its Ext job. A (build): back push runs no Ext job, as today.
    • A (build): front push that touches the three new _shared entries 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.

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

Current behaviour

Every link is pinned to commit d0a53756f8676556358b6adc6c2397d2ed7c64c8.

  1. 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 - *shared plus 'extensions/<ext>/**' (L24-L43). extension-hypermultimedia also watches 'extensions/extension-hyperlink/**' (L33-L34).
  2. 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
  3. workflow_dispatch, schedule and a push without a diff base list all six extensions (prod.docs.plus.yml:157).
  4. The matrix is the filter output (prod.docs.plus.yml:272-286). It runs only when needs.changes.outputs.changed_extensions != '[]', then runs the suite and the preflight (:298-306). build accepts a skipped extension-tests (:375).
  5. The preflight reads the README (scripts/extension-preflight.sh:16-17) through scripts/check-quickstart-example.ts, which needs a ## Quickstart section (scripts/check-quickstart-example.ts:19-22).
  6. No CI suite, build or preflight reads assets/.
    • Specs match cypress/e2e/**/*.cy.ts (cypress.config.ts:7). Gallery specs in cypress/docs/ run only through docs:screenshots.
    • --readme-media-dir ./assets/readme-media (package.json:41) is served only on a /readme-media/* request (launch.ts:69-84). No cypress/e2e spec makes one.
    • flattenReadmeScreenshots writes to assets/ only for readme-gallery.cy.ts (:10-17). The tarball ships dist, CHANGELOG.md and LICENSE only (package.json:53-57).
    • Every .gif, .png, .jpg, .webp and .mp4 file under extensions/ sits in extensions/<ext>/assets/.
  7. The cache key (.github/actions/build-extensions/action.yml:34-52) hashes extensions/*/package.json and extensions/*/src/** only.
  8. scripts/check-ci.ts mirrors the filter for the Husky pre-push run (:19-42, :98-107). Its touched() counts any file under extensions/<dir>/. AGENTS.md:222 says to change both together.
  9. The pinned dorny/paths-filter v4.0.3 supports 'some-with-excludes' (action.yml:47-55). It applies per key, and an exclusion is final (src/filter.ts:133-149; some at :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.md and package.json beside its GIFs. Its mermaid suite (run 39283678757, 194 s) still runs, by design.
  • scripts/check-ci.ts picks 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

  1. Compare the cited files with the pin:
    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
    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, SHARED_EXACT, SHARED_PREFIXES or touched() changed in meaning, stop and comment here.
  2. This must print one line, with ceb8a2b8f2d89434be7ff52d3de7ec3738c5cc9d # v4.0.3:
    grep -n "dorny/paths-filter" .github/workflows/*.yml
    If the pin changed, read action.yml and src/filter.ts at the new SHA. If some-with-excludes no longer behaves as item 9 says, stop and comment here.
  3. 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 from test/playground/icons/ (extensions/extension-hyperlink/package.json:42), not from assets/.
    • 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 -l must print more than 0.
  4. 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_media line 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/**'
  • _shared and _readme_media are filter outputs that assemble ignores. A key of only ! rules never matches, so _readme_media is always false.
  • Every key needs - *readme_media. Without it on extension-hypermultimedia, a hyperlink GIF would still start that suite.
  • Check: bunx prettier --check .github/filters/extensions.yaml passes.

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'

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:

  1. Append to SHARED_EXACT (L20-L29 at the pin):
      'scripts/extension-preflight.sh',
      'scripts/check-quickstart-example.ts',
      '.github/workflows/prod.docs.plus.yml'
    ])
  2. Append to SHARED_PREFIXES (L30-L38):
      '.github/actions/setup-bun/',
      '.github/filters/'
    ]
  3. 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)$)/
  4. Change touched in extensionsFor (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.ts and bunx eslint scripts/check-ci.ts --max-warnings=0 pass. Do not run bun 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 sets predicate-quantifier: 'some-with-excludes', because under the default some a ! rule matches every other file. README.md, CHANGELOG.md and package.json still start the suite, because the preflight reads them. scripts/check-ci.ts mirrors the exclusion in README_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-docs passes.

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@2 copy in the Bun store and downloads nothing. If no picomatch@2.* folder exists under node_modules/.bun, run bun install first.
  • 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-docs

All 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.yaml matches Step 1. Every extension key holds - *readme_media.
  • The filter step sets predicate-quantifier: 'some-with-excludes'. No other workflow line changed.
  • .github/actions/build-extensions/action.yml is unchanged.
  • scripts/check-ci.ts reads .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.md names 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.md still runs that extension's 🧪 Ext (…) job, with its ✈️ Preflight step.
  • 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.

  1. The landing push. Expect the full Changes output set to list from Acceptance criteria and six passing 🧪 Ext (…) jobs. This proves that the step accepts the quantifier. Done: run 41608014517 (2026-11-03).
  2. 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 Verification skips.
    • Record the Ext job count. Close the PR unmerged.
  3. 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.md outside ## 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.
  4. The next weekly cron (Sunday 00:00 UTC). Expect all six 🧪 Ext (…) jobs. Done: cron 42443026527 (2026-11-08) ran all six, all success.
  5. The next (build): deploy. Done: run 41677887088 (2026-11-03). Expect Changes output set to to name every extension with a non-media file in that push's diff, and no other. The diff is the range in Changes will be detected between <before> and main.
    • If the diff touches the three new _shared entries, expect _shared and all six names. deploy then waits for build (:427), as Summary says.

Accountability

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 of Changes output set to. Read the diff lines with the Verification grep.
  • The 🔎 Detect Changes step fails on the predicate-quantifier input.
  • 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 main with no inputs. FORCE_ALL runs 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 to main while 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:67 and .cursor/docs/scripts-naming-convention.md:178 stay true after Step 4.

Out of scope

Read first

  • AGENTS.md: §Git And Commits, §Test Policy, and line 222.
  • extensions/CLAUDE.md: the extension workflow and the docs:gif and docs:screenshots notes.
  • .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.sh and scripts/check-quickstart-example.ts.
  • .github/actions/build-extensions/action.yml.
  • dorny/paths-filter at ceb8a2b8f2d89434be7ff52d3de7ec3738c5cc9d: action.yml:47-55 and src/filter.ts:122-214.

Activity

  1. added this to the v2.3.0 milestone on Oct 20, 2026
  2. added
    Performance
    on Oct 20, 2026
  3. HMarzban commented on Oct 26, 2026

    @HMarzban
    CollaboratorAuthor

    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.

  4. HMarzban commented on Nov 3, 2026

    @HMarzban
    CollaboratorAuthor

    Status, 2026-11-03. 7b7e61a80 is pushed and deployed on 2026-11-03. The landing push shows some-with-excludes and all six extension names, and all six Ext jobs passed. df1a9d402 later removed README_MEDIA from scripts/check-ci.ts. That script now reads .github/filters/extensions.yaml directly.

    Left:

    • Builder: post the Filter simulation comment.
    • Maintainer: check one media-only change and one extension README change.
    • Builder: check the Sunday cron, then post the Measured comments.
  5. HMarzban commented on Nov 3, 2026

    @HMarzban
    CollaboratorAuthor

    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_cache input (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 _shared and all six extensions, and all six Ext jobs pass. M1 is "unchanged, except the Summary gain".
    Verdict: keep.

    🔎 Detect Changes on each run. Every run logs predicate-quantifier: some-with-excludes and no input error.

    Run Detect Changes job Diff Detected N changed files Changes output set to
    41608014517 125822714251 a9b0c69..main 675 ["_shared","extension-indent","extension-hyperlink","extension-hypermultimedia","extension-inline-code","extension-placeholder","extension-mermaid"]
    41626334830 125884571455 8e25e83..main 17 the same list
    41636667896 125919546741 3bcc821..main 6 the same list

    The two later deploys list all six because bun.lock is in each diff, and bun.lock is _shared. That matches Verification item 5.

    Ext job seconds (job duration), all success:

    Run indent hyperlink hypermultimedia inline-code placeholder mermaid
    41608014517 82 187 211 64 85 132
    41626334830 90 188 190 93 77 182
    41636667896 90 203 229 77 100 160

    M1 on each (build): deploy: 598 s (41608014517), 633 s (41626334830), 670 s (41636667896). Each read is from the 🚀 Deploy Production job.

    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.

  6. HMarzban commented on Nov 3, 2026

    @HMarzban
    CollaboratorAuthor

    Filter simulation, 2026-11-03.

    Base: main at fb6b55173. It holds 7b7e61a80 (the filter change) and df1a9d402 (scripts/check-ci.ts now reads .github/filters/extensions.yaml). Since 7b7e61a80, only the filter file's header comment changed.

    How I ran it:

    • dorny column. The Step 6 script, word for word. It ran from a scratch folder outside the repo, not /tmp/ext-filter-sim. Bun 1.4.4, with the repo's [email protected] (dorny v4.0.3 locks 2.3.1).
    • I read src/filter.ts at ceb8a2b8f. The script matches it: dot: true, and under some-with-excludes an exclusion is final. Keys that start with _ are dropped from the output.
    • check-ci.ts column. A copy of selects() and extensionsFor() from scripts/check-ci.ts at fb6b55173. The script itself runs every gate at import, so I did not run it.
    • ALL stands for ["extension-indent","extension-hyperlink","extension-hypermultimedia","extension-inline-code","extension-placeholder","extension-mermaid"].
    Line Filter, quantifier Input files Expected dorny check-ci.ts Result
    1 old (d0a53756f), some extensions/extension-hypermultimedia/assets/image-dark.png, …/image-light.png (run 34821528307) ["extension-hypermultimedia"] ["extension-hypermultimedia"] n/a PASS
    2 new, some-with-excludes the same two PNG files [] [] [] PASS
    3 new extensions/extension-mermaid/assets/demo-dark.gif [] [] [] PASS
    4 new extensions/extension-indent/preview.png [] [] [] PASS
    5 new extensions/extension-hyperlink/assets/demo-dark.gif [] [] [] PASS
    6 new extensions/extension-hypermultimedia/assets/readme-media/ATTRIBUTION.md [] [] [] PASS
    7 new extensions/extension-mermaid/README.md ["extension-mermaid"] ["extension-mermaid"] ["extension-mermaid"] PASS
    8 new extensions/extension-indent/CHANGELOG.md ["extension-indent"] ["extension-indent"] ["extension-indent"] PASS
    9 new extensions/extension-placeholder/package.json ["extension-placeholder"] ["extension-placeholder"] ["extension-placeholder"] PASS
    10 new the 17 files of commit 427c245c2 (push 39283678757): mermaid README.md, package.json, cypress/docs/**, 12 assets/ files, extensions/CLAUDE.md ["extension-mermaid"] ["extension-mermaid"] ["extension-mermaid"] PASS
    11 new extensions/extension-hypermultimedia/cypress/fixtures/x.png ["extension-hypermultimedia"] ["extension-hypermultimedia"] ["extension-hypermultimedia"] PASS
    12 new extensions/extension-mermaid/src/icons/a.png ["extension-mermaid"] ["extension-mermaid"] ["extension-mermaid"] PASS
    13 new extensions/extension-hyperlink/src/index.ts ["extension-hyperlink","extension-hypermultimedia"] the same the same PASS
    14 new scripts/check-quickstart-example.ts ALL ALL ALL PASS
    15 new .github/workflows/prod.docs.plus.yml ALL ALL ALL PASS
    16 new .github/filters/extensions.yaml ALL ALL ALL PASS
    17 new bun.lock ALL ALL ALL PASS
    18 new apps/webapp/src/pages/index.tsx [] [] [] PASS
    19 new, some (trap) apps/webapp/src/pages/index.tsx ALL ALL n/a PASS
    20 new, some (trap) extensions/extension-mermaid/assets/demo-dark.gif ALL ALL n/a PASS
    L new, some-with-excludes the landing push diff, a9b0c69e8..8e25e83df with --no-renames: 675 files, the same count as job 125822714251 ALL, plus _shared in the real log ALL ALL PASS
    X new, some-with-excludes extensions/extension-hyperlink/test/playground/icons/dark.png ["extension-hyperlink","extension-hypermultimedia"] the same the same PASS

    Lines 19 and 20 show why the step needs predicate-quantifier: 'some-with-excludes'. Under the default some, each ! rule matches every other file.

    Line X is new. Since e47494c69 (2026-10-26), four test PNG files sit in extensions/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:

    ["extension-hypermultimedia"]
    []
    []
    []
    []
    []
    ["extension-mermaid"]
    ["extension-indent"]
    ["extension-placeholder"]
    ["extension-mermaid"]
    ["extension-hypermultimedia"]
    ["extension-mermaid"]
    ["extension-hyperlink","extension-hypermultimedia"]
    ["extension-indent","extension-hyperlink","extension-hypermultimedia","extension-inline-code","extension-placeholder","extension-mermaid"]
    ["extension-indent","extension-hyperlink","extension-hypermultimedia","extension-inline-code","extension-placeholder","extension-mermaid"]
    ["extension-indent","extension-hyperlink","extension-hypermultimedia","extension-inline-code","extension-placeholder","extension-mermaid"]
    ["extension-indent","extension-hyperlink","extension-hypermultimedia","extension-inline-code","extension-placeholder","extension-mermaid"]
    []
    ["extension-indent","extension-hyperlink","extension-hypermultimedia","extension-inline-code","extension-placeholder","extension-mermaid"]
    ["extension-indent","extension-hyperlink","extension-hypermultimedia","extension-inline-code","extension-placeholder","extension-mermaid"]
    

    Proves: the "Filter simulation" acceptance item (all 20 lines match), and the rule that scripts/check-ci.ts picks the same suites for every row. df1a9d402 made the check-ci.ts checkbox 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 the Measured comments (builder).

  7. HMarzban commented on Nov 3, 2026

    @HMarzban
    CollaboratorAuthor

    Status, 2026-11-03 (after the 1b05cb2 deploy).

    Verification item 5 holds on run 41677887088 (🔎 Detect Changes, job 126063430598):

    • Detected 23 changed files, equal to git 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.md started no suite. Both Ext jobs passed, and no other Ext job ran.

    Left:

    • Maintainer: the media-only check (Verification 2) and the extension README check (Verification 3).
    • The 2026-11-08 cron must start all six Ext suites.
  8. modified the milestones: v2.3.0, v2.3.6 on Nov 9, 2026
  9. HMarzban commented on Nov 11, 2026

    @HMarzban
    CollaboratorAuthor

    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, head d31ed9033. The run ended success.
    Expected: all six 🧪 Ext (…) jobs run (Verification item 4).
    Verdict: keep. Item 4 is proven.

    Ext job seconds (job duration), all success:

    indent hyperlink hypermultimedia inline-code placeholder mermaid
    74 189 211 67 76 145
    • 🔒 Security Audit and 🔎 Detect Changes ran. Type Check, Webapp Unit Tests, Backend Validation, Build Verification and Deploy Production were skipped, as on every cron.

    Body edits, 2026-11-11:

    Left: Verification items 2 and 3 (maintainer, by 2026-11-18). Then one Measured comment per PR (agent in the repo).

  10. HMarzban commented on Nov 14, 2026

    @HMarzban
    CollaboratorAuthor

    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.

  11. modified the milestones: v2.3.6, v2.3.7 on Nov 14, 2026
  12. HMarzban commented on Nov 16, 2026

    @HMarzban
    CollaboratorAuthor

    Maintainer ruling, 2026-11-16

    Answered by the maintainer in the 2026-11-16 working session; posted by the agent.

    • Acceptance boxes 4 and 5: the amended text is accepted, dated 2026-11-11.
  13. HMarzban commented on Nov 16, 2026

    @HMarzban
    CollaboratorAuthor

    Review, 2026-11-16 (maintainer approved).

    • Items 2 and 3 now take 1 draft-PR run each, not 5. The PR diff fixes the paths-filter output, so 4 empty commits add no data.
    • Metrics 2 and 3 are cut. Metric 2 repeated metric 1, and the claim does not use M6. The n = 6 suite seconds stay as context for the claim's runner-minutes.
    • The three M6 rows in Accountability are cut. None had a use in the claim, and the PR-median row had no pass rule.
    • Acceptance boxes 1-5 are ticked. A read at 5aa56e1d1 confirms boxes 1-3. Boxes 4 and 5 carry the 2026-11-16 ruling.
    • Box 7 (the four Step 7 commands) stays open. No comment records those exits, so the fact is unclear.
    • The ledger agent sets the v2.3.7 benchmark ledger: every quotable claim, with n, range, condition and source #796 row to n = 1.
  14. HMarzban commented on Nov 17, 2026

    @HMarzban
    CollaboratorAuthor

    Rollback note, 2026-11-17 (#759 step 5). Scopes read before..after. Since #759 (58f22a844), a run after a cancelled push forces every scope.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    DevOpsExtensionPerformance

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions