Skip to content

rel(26.0.0rc5): the migration documented code by code; docs build fails on warnings - #28

Merged
oesteban merged 5 commits into
masterfrom
rel/26.0.0rc5
Dec 6, 2026
Merged

oesteban merged 5 commits into
masterfrom
rel/26.0.0rc5

Conversation

@oesteban

@oesteban oesteban commented Dec 5, 2026 •

Copy link
Copy Markdown
Member

Summary

Stacked on #27 (base feat/migrate-apply). WP4 PR 7: the documentation of the migration, a docs build that fails on warnings, and the CHANGES of 26.0.0rc5. The tag waits for the maintainer's go, after #25, #26, #27 and this PR merge.

 docs/
 ├── index.rst          # toctree: usage, migration, api
+├── migration.rst      # Migration to TemplateFlow 2.0
 ├── conf.py            # language "en", no mocks, builtins in annotations link to Python
 └── requirements.txt   # sphinx, sphinx-click, theme, apidoc >= 0.6, packaging
 tfmanager/tests/
+└── test_migrate_docs.py
 .github/workflows/build_docs.yaml   # 3.12 -> 3.13; pip install ".[content]"; -W --keep-going
 CHANGES.rst                         # Unreleased -> 26.0.0rc5 (December 5, 2026)

docs/migration.rst:

  • What users see: rename rows, n/a rows, files changed in place, files only the v2 skeleton lists. It also warns that a later edit of a file with a rename row changes what its old name serves.
  • Migrating a template: facts, plan, review, apply, pull request with the compatibility replay, verify.
  • When a template moves to 2.0, and the sections of the config.
  • Every code (R01 to R22 and R99, T01 to T11, M101 to M301), each with an example from the golden renames where it renames.

The test checks that every code of the registries (names.RULES, names.OTHER_RULES, res.RULES, content.TRANSFORMS, findings.CODES) has one entry, in order, and that the page names no other code.

Evidence

Docs: the current build has 14 warnings; on this branch it has none, built as the workflow does (Python 3.13, pip install ".[content]" -r docs/requirements.txt, then make -C docs/ html SPHINXOPTS="-W --keep-going"):

before (a2a2c25, Python 3.13):
  10x more than one target found for cross-reference 'set' (config Edit.set, Participants.set, Rename.set)
   1x more than one target found for cross-reference 'atlases'
   1x autodoc: failed to import 'images' (nibabel under the numpy mock)
   1x Invalid configuration value found: 'language = None'
   1x while setting up extension sphinxcontrib.apidoc: Failed to convert [[<class 'str'>]] to a frozenset
  build succeeded, 14 warnings.
after (69aa5c5, -W --keep-going):
  build succeeded.

set[str] in signatures now links to Python's set.

The docs test catches drift:

  • an entry renamed to M2100 fails test_every_code_has_an_entry;
  • a mention of R23 fails test_no_unknown_code.

After Codex's review (69aa5c5), step 1 runs migrate labels --needs as well as migrate headers --needs, since the label facts read other files. The M301 entry now matches fe29a21 on #27: without the zip, the gate checks every name the skeleton may list.

Pilot replay: the end-to-end check before rc5. The pilot's rows (tpl-MNI152NLin2009cSym: CerebA table n/a, res-iso4mm to res-4, CerebrA entity order) went through templateflow/python-client tests/compat, with the skeleton scripts of templateflow/templateflow#219 (now merged):

master harness:  7 failed, 9 passed, 2 xfailed
patched harness: 16 passed, 2 xfailed   (clients 25.0.4, 25.1.2 and 26.0)

The 7 failures come from the harness, not from the client. The CerebA table is the first text file any replay has had:

  • the scenario reads 200 bytes and compares them with the whole file;
  • the DataLad fixture writes made-up bytes where S3 serves the real table.

The harness fix is draft templateflow/python-client#167.

Local CI (stacked PR, so no GitHub CI), a mirror of pythonapp.yml on a clean worktree of a scratch merge of the stack (this PR at 69aa5c5, #27 at fe29a21, #25 at 2f17daf; it merges without conflicts):

== test (3.13)   All checks passed!   417 passed
== test (3.15)   All checks passed!   417 passed
== annex (3.13)  git-annex 10.20220504   1 passed, 382 deselected
== build (3.13)  twine check PASSED (sdist, wheel)
tar.gz: 26.0.0rc5.dev42+g64c56fd6e
whl: 26.0.0rc5.dev42+g64c56fd6e

Merge Danger

Door: two-way

Documentation, the docs workflow, and the doc extra. One code change: the content module's docstring names its submodules in full.

Blast Radius: documentation

The docs workflow now fails on any Sphinx warning, so a new docstring with an ambiguous reference fails a PR. The doc extra drops nbsphinx, pydot, pydotplus and sphinx-argparse, which the build never used, and adds content (numpy, nibabel).

oesteban and others added 4 commits December 5, 2026 22:40
…e build

The workflow installs tfmanager with its content extra (numpy and nibabel are
no longer mocked, so the API pages of modules that import them build) and
builds with -W --keep-going. The 14 warnings of the current build are fixed:
builtins in annotations (set[str]) link to Python instead of the set
attributes of the migration config, the content module names its submodules
in full, sphinxcontrib-apidoc 0.6 takes its options, and language is "en".
docs/requirements.txt and the doc extra keep only what the build uses.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
docs/migration.rst says what users see (rename and n/a rows, the legacy
skeleton, the caveat on later edits of renamed files), the steps of a
template's migration, when a template moves to 2.0, the sections of the
config, and every rename rule, content transform and finding, with examples
from the Archive. A test checks that every code of the registries has one
entry, in order, and that the page names no other code.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The Unreleased section becomes 26.0.0rc5, with a summary line, and lists the
documentation page and the documentation build.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@oesteban
oesteban marked this pull request as ready for review December 6, 2026 08:31
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Dec 6, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-12-06T08:33:51.118603Z b8e5d4a Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: b8e5d4a3ad

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread docs/migration.rst Resolved
…e zip

The facts step listed only the files that `migrate headers` reads, while
`migrate labels` reads others (dseg volumes and .label.gii files) and
stops when their data are absent: run its --needs too before fetching.
The M301 entry follows the gate of the PR below this one: without
--legacy-skeleton, it checks every name the legacy skeleton may list.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Base automatically changed from feat/migrate-apply to master December 6, 2026 09:09
@oesteban
oesteban merged commit d4aa1eb into master Dec 6, 2026
@oesteban
oesteban deleted the rel/26.0.0rc5 branch December 6, 2026 09:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant