Skip to content

watch: open one pull request a week with the re-confirmed dates and new snapshots - #3

Merged
intikhab49 merged 2 commits into
mainfrom
archive-automation
Oct 13, 2026
Merged

intikhab49 merged 2 commits into
mainfrom
archive-automation

Conversation

@intikhab49

@intikhab49 intikhab49 commented Oct 13, 2026 •

Copy link
Copy Markdown
Owner

The archiving that tools/mark_checked.py did by hand now runs every Monday as part of the watch workflow.

What the weekly watch does now

  • verify (unchanged): a changed or removed page opens or updates the watch issue and fails the run.
  • archive (new): when no page changed or disappeared, it runs tools/mark_checked.py. Every page's checked date moves forward. Each page Microsoft has updated gets a new Wayback Machine snapshot, which is recorded only if the cited rows are in it. The job then rebuilds the site, runs the tests and opens one pull request from re-confirm/main. Later runs rebuild that same pull request from main until it is merged.
  • stale (unchanged): goes red when a page hasn't been re-confirmed for 90 days, which now means those pull requests stopped being merged.

tools/mark_checked.py

  • --summary FILE writes the pull request's description: the pages Microsoft updated, their new snapshots, and the pages left alone.
  • A page whose snapshot fails keeps its old page_updated, so the next run tries again. Before this change the date moved forward anyway and the retry was lost.
  • It stops asking the Wayback Machine after 3 failures in a row, since each try can take minutes.

The weekly commits are authored as intikhab49 and committed by github-actions[bot]. A pull request opened by a workflow doesn't start the ci workflow, so the archive job runs the tests itself and links that run in the description.

Tested

Repo setting changed: "Allow GitHub Actions to create and approve pull requests" is now on. The job can't open its pull request without it.

Merge the weekly pull requests with Rebase and merge. When a person squash-merges a pull request opened by github-actions[bot], GitHub credits the bot as the commit's author even when the commit inside is authored by that person (for example rh-gitops-midstream/release PR 1764 and j620656786206/vido PR 774). Rebase and merge keeps the commit authored as intikhab49. Each weekly pull request says this in its description.

…ew snapshots

After a clean verify, the watch workflow runs tools/mark_checked.py, rebuilds the site,
runs the tests and opens (or updates) one pull request from re-confirm/<branch>.
mark_checked gains --summary for that pull request's description, keeps a page's old
page_updated when its snapshot fails so the next run tries again, and stops asking the
Wayback Machine after 3 failures in a row.
@intikhab49
intikhab49 merged commit bb04e41 into main Oct 13, 2026
5 checks passed
@intikhab49
intikhab49 deleted the archive-automation branch October 13, 2026 11:14
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