make docs-files silently skips regeneration when the generated files are newer than CHANGELOG.yml
Describe the bug
make docs-files regenerates docs/release-notes.md, docs/release-notes.mdx and docs/variables.yml from CHANGELOG.yml through ordinary make rules (build-aux/main.mk, the docs/release-notes.md: CHANGELOG.yml $(tools/relnotesgen) rule and its siblings). Make decides by file modification time, so whenever the generated files end up newer than CHANGELOG.yml the targets are considered up to date and nothing is regenerated. There is no message, the command exits 0, and the committed release notes are stale.
This happens after any git operation that writes the generated files later than the changelog: resolving a rebase or merge conflict with git checkout --ours docs/release-notes.md, cherry-picking, or checking out a branch and then editing CHANGELOG.yml in an editor that preserves timestamps. It bit the rebase of the Kafka intercepts branch on 2026-09-25: the changelog gained a 2.33.0 block, make docs-files ran clean, and the release notes were missing the entry until touch CHANGELOG.yml forced the rule. The Check dependency files are up-to-date CI step catches the drift later, but only after a push and a wasted CI cycle, and it reports a diff rather than the cause.
To Reproduce
git checkout release/v2
touch docs/release-notes.md docs/release-notes.mdx docs/variables.yml # simulate a merge/checkout that rewrote them
# add any note to CHANGELOG.yml with an editor that keeps the old mtime, or:
touch -d '1 hour ago' CHANGELOG.yml
make docs-files
git status --short docs/ # nothing regeneratedExpected behavior
make docs-files should regenerate the release-notes outputs from the current CHANGELOG.yml content regardless of timestamps, or at least fail loudly when the outputs would differ. Options:
- Make the three relnotesgen targets
.PHONY(or depend on aFORCEprerequisite) so they always run; relnotesgen takes well under a second. - Or compare content instead of mtime: run relnotesgen to a temp file and move it into place only when it differs, which also keeps
git addfrom staging an unchanged file.
docs/README.md and docs/helm/values.schema.json are generated the same way from docs/doc-links.yml and values.schema.yaml and share the problem.
Versions
release/v2 at bfc2e338e (v2.32.1).
Source: telepresenceio/telepresence