← 输入框|github.com|刷新
Skip to content

fix(validate): TF804 reads the two-column renames table - #16

Merged
oesteban merged 1 commit into
masterfrom
fix/renames-format
Dec 3, 2026
Merged

oesteban merged 1 commit into
masterfrom
fix/renames-format

Conversation

@oesteban

@oesteban oesteban commented Dec 3, 2026

Copy link
Copy Markdown
Member

Summary

The Archive validation on templateflow/templateflow master has failed since the first canary merged: TF804 rejects all 23 rows of renames.tsv. TF804 was written in rc1 for an earlier design with a date column. The template action (templateflow/actions-template#7) writes two columns.

 renames.tsv
-old_path  new_path  date
+old_path  new_path          # new_path: current path | n/a | purge
 check_renames (TF804)
-  every row needs old_path, new_path and date
-  chains resolved; cycles reported
+  header is exactly old_path<TAB>new_path
+  two non-empty cells per row; old_path listed once
+  old_path starts with tpl-X/; new_path is a path in tpl-X/, n/a or purge
+  if tpl-X is installed: old_path absent, new_path present
+  no old_path points at another old_path (rows point at current names)
 check_renamed (TF112)
-  "Renamed to n/a."
+  "Renamed to <path>." | "Recorded as removed." | "Recorded as purged."

Also names the 26.0.0rc3 heading in CHANGES.rst, and pins the 278 TF117 warnings in the legacy snapshot test.

Evidence

  • Before (26.0.0rc3 on the Archive at master, templates checked out at the canary commits): exit 1, 23 errors, all TF804 renames-table: row N: incomplete.; the same as ci(validate): pin tfmanager 26.0.0rc4 templateflow#216's CI.
  • After (this branch, same checkout): exit 0, 0 errors.
  • Tests: python -m pytest -o addopts="" --doctest-modules tfmanager: 178 passed. The new cases cover a valid table with a rename, n/a and purge, the old three-column header, and each error.

Merge Danger

Door: two-way

Blast Radius: validation reports

Nothing reads the date column. Master turns green only once a tag with this fix (26.0.0rc4) is pinned in validate.yml; I will move templateflow/templateflow#216 to that tag.

The template action (templateflow/actions-template#7) writes renames.tsv
with old_path and new_path, where new_path is a path, n/a or purge.
TF804 still required a date column from an earlier design, so every row
of the Archive's table failed. Check the header, duplicates, paths
outside the template, old paths that exist, new paths that do not, and
old paths that point at other old paths. TF112 says whether a file was
renamed, removed or purged. Names the 26.0.0rc3 heading in CHANGES.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@oesteban
oesteban marked this pull request as ready for review December 3, 2026 09:28
@oesteban
oesteban merged commit db1153a into master Dec 3, 2026
6 checks passed
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Dec 3, 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-03T09:29:49.104205Z 7aefdf9 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.

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