You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
promote: --dry-run reports lectures whose pool text would not change as promoted #37
A dry run reports every lecture it plans as promoted, and always 0 unchanged, so its summary overstates what a real run would write. The real run counts a lecture whose pool text is already byte-identical as unchanged. Found while preparing step 2 of QuantEcon/project-monorepo#24, measured on 2026-11-04 in a scratch copy at that night's pins:
tools/promote --toc
--dry-run
Real run
intro
53 promoted, 0 unchanged
51 promoted, 2 unchanged
programming
24 promoted, 0 unchanged
24 promoted, 0 unchanged
intermediate
149 promoted, 0 unchanged
118 promoted, 31 unchanged
advanced
71 promoted, 0 unchanged
51 promoted, 20 unchanged
jax
28 promoted, 0 unchanged
27 promoted, 1 unchanged
The skips and failures agree between the two.
The cause is in phase 5 of tools/promote (lines 1554–1585): the byte comparison that fills unchanged runs only in the branch that writes, so under --dry-run the list stays empty and the summary counts every planned lecture as promoted.
The change: compare each plan's pool text with the pool file before branching, so a dry run reports the same promoted and unchanged split as the real run and marks the unchanged lectures in its plan lines, with a test that the two summaries agree.
It does not block that step, whose counts come from real runs in a scratch copy.
Activity