Skip to content

πŸ› fix(refresh-release-lock): drop stale exceptions - #69

Merged
gaborbernat merged 2 commits into
mainfrom
drop-redundant-nab-exceptions
Nov 16, 2026
Merged

gaborbernat merged 2 commits into
mainfrom
drop-redundant-nab-exceptions

Conversation

@gaborbernat

@gaborbernat gaborbernat commented Nov 16, 2026 •

Copy link
Copy Markdown
Member

On 2026-11-10 the scheduled upgrade-release-tools run failed in every caller whose release-creator cutoff exception carried # expires 2026-11-09. Deleting the exception did not work either. nab counts a relative cutoff from the lock's created-at (reproducibility docs), every caller's lock was anchored on 2026-11-03, and release-creator 4.4.0 (uploaded 2026-11-02) still needed the exception. πŸ”’ Only a refresh moves the anchor, and the expiry check ran before it, so the check blocked the one run that would have made the exception redundant.

Architecture

The refresh step can now delete the cutoff exceptions that the new anchor no longer needs, and the expiry check runs after the refresh instead of before it. The deletion is opt-in, so update-python-dependencies keeps its behavior. The step removes only exceptions it can prove redundant, and it leaves relative, time-zone-less and inline forms, and cutoffs other than P<n>D or a date, alone. When it drops an exception, the refresh pull request also edits pyproject.toml or nab.toml, and the lock keeps its new created-at, since that anchor is what still keeps the pinned releases under the cutoff.

A warning in upgrade-release-tools would not work alone. The refresh pull request changes the lock, so validate-news runs the hard check on it and fails on the same expired exception. Per-package cutoffs also replace the global one (package policy), so an exception kept after the refresh would hold the package at its old date.

Rollout

Callers get this by bumping their pin. A scheduled run still fails on an undated exception, or on an expired one that the new anchor needs.

Callers also need the 6.5.0 change, because github-workflows 6.5.0 no longer declares commit-message. A caller that still passes it ends in startup_failure with Invalid input, commit-message is not defined in the referenced workflow. That stopped the 2026-11-10 scheduled run of 15 callers (example). For the current incident, callers extend the expiries by hand in their own pull requests, such as tox-dev/tox#4437.

upgrade-release-tools checked cutoff exception expiry before it
refreshed the lock. Nab counts a relative cutoff from the committed
lock's created-at, so an exception stays needed until a refresh
re-anchors the lock; the expiry check therefore blocked the one run
that would have made the exception redundant. On 2026-11-10 that
failed the scheduled run of every caller whose release-creator
exception expired on 2026-11-09.

refresh-release-lock gains drop-redundant-exceptions. In refresh mode
it deletes each packages.<name>.uploaded-prior-to exception dated at or
before the cutoff counted from now, keeps the lock's new created-at,
and adds the edited pyproject.toml or nab.toml to the patch.
upgrade-release-tools turns it on, allows those paths in the
maintenance pull request, and runs the expiry check afterwards, so it
still fails on an undated exception or an expired one the new lock
needs.

Also record in the 6.5.0 changelog that upgrade-release-tools dropped
commit-message, add the matching startup failure to troubleshooting,
and fix the expiry guidance and example date.
shellcheck SC2153 flagged the array dropped next to the environment
variable DROPPED, which differs only in case.
@gaborbernat
gaborbernat merged commit 44e75b8 into main Nov 16, 2026
12 checks passed
@gaborbernat
gaborbernat deleted the drop-redundant-nab-exceptions branch November 16, 2026 07:39
This was referenced Nov 16, 2026
gaborbernat added a commit to gaborbernat/gaborbernat that referenced this pull request Nov 16, 2026
The shared workflows move to [github-workflows
6.8.3](https://github.com/tox-dev/github-workflows/releases/tag/6.8.3).
πŸ”§ The weekly lock refresh now deletes cutoff exceptions that its own
refresh makes redundant, instead of failing on them once they expire
([#69](tox-dev/github-workflows#69)). Exceptions
whose upload date the seven-day window already covers go away in the
next refresh pull request, before their 2026-11-24 expiry would block
every change to `pyproject.toml`.

The same release names that pull request `πŸ”§ build(deps): refresh project
lock` by default
([#72](tox-dev/github-workflows#72)), so any
per-repository `pull-request-title` override goes and the refresh reads
the same across all projects.
gaborbernat added a commit to gaborbernat/mdformat-hugo that referenced this pull request Nov 16, 2026
The shared workflows move to [github-workflows
6.8.3](https://github.com/tox-dev/github-workflows/releases/tag/6.8.3).
πŸ”§ The weekly lock refresh now deletes cutoff exceptions that its own
refresh makes redundant, instead of failing on them once they expire
([#69](tox-dev/github-workflows#69)). Exceptions
whose upload date the seven-day window already covers go away in the
next refresh pull request, before their 2026-11-24 expiry would block
every change to `pyproject.toml`.

The same release names that pull request `πŸ”§ build(deps): refresh project
lock` by default
([#72](tox-dev/github-workflows#72)), so any
per-repository `pull-request-title` override goes and the refresh reads
the same across all projects.
gaborbernat added a commit to gaborbernat/pypi-changes that referenced this pull request Nov 16, 2026
The shared workflows move to [github-workflows
6.8.3](https://github.com/tox-dev/github-workflows/releases/tag/6.8.3).
πŸ”§ The weekly lock refresh now deletes cutoff exceptions that its own
refresh makes redundant, instead of failing on them once they expire
([#69](tox-dev/github-workflows#69)). Exceptions
whose upload date the seven-day window already covers go away in the
next refresh pull request, before their 2026-11-24 expiry would block
every change to `pyproject.toml`.

The same release names that pull request `πŸ”§ build(deps): refresh project
lock` by default
([#72](tox-dev/github-workflows#72)), so any
per-repository `pull-request-title` override goes and the refresh reads
the same across all projects.
gaborbernat added a commit to gaborbernat/simplint that referenced this pull request Nov 16, 2026
The shared workflows move to [github-workflows
6.8.3](https://github.com/tox-dev/github-workflows/releases/tag/6.8.3).
πŸ”§ The weekly lock refresh now deletes cutoff exceptions that its own
refresh makes redundant, instead of failing on them once they expire
([#69](tox-dev/github-workflows#69)). Exceptions
whose upload date the seven-day window already covers go away in the
next refresh pull request, before their 2026-11-24 expiry would block
every change to `pyproject.toml`.

The same release names that pull request `πŸ”§ build(deps): refresh project
lock` by default
([#72](tox-dev/github-workflows#72)), so any
per-repository `pull-request-title` override goes and the refresh reads
the same across all projects.
gaborbernat added a commit to pypa/get-virtualenv that referenced this pull request Nov 16, 2026
The shared workflows move to [github-workflows
6.8.3](https://github.com/tox-dev/github-workflows/releases/tag/6.8.3).
πŸ”§ The weekly lock refresh now deletes cutoff exceptions that its own
refresh makes redundant, instead of failing on them once they expire
([#69](tox-dev/github-workflows#69)). Exceptions
whose upload date the seven-day window already covers go away in the
next refresh pull request, before their 2026-11-24 expiry would block
every change to `pyproject.toml`.

The same release names that pull request `πŸ”§ build(deps): refresh project
lock` by default
([#72](tox-dev/github-workflows#72)), so any
per-repository `pull-request-title` override goes and the refresh reads
the same across all projects.
gaborbernat added a commit to pypa/pipx that referenced this pull request Nov 16, 2026
The shared workflows move to [github-workflows
6.8.3](https://github.com/tox-dev/github-workflows/releases/tag/6.8.3).
πŸ”§ The weekly lock refresh now deletes cutoff exceptions that its own
refresh makes redundant, instead of failing on them once they expire
([#69](tox-dev/github-workflows#69)). Exceptions
whose upload date the seven-day window already covers go away in the
next refresh pull request, before their 2026-11-24 expiry would block
every change to `pyproject.toml`.

The same release names that pull request `πŸ”§ build(deps): refresh project
lock` by default
([#72](tox-dev/github-workflows#72)), so any
per-repository `pull-request-title` override goes and the refresh reads
the same across all projects.
gaborbernat added a commit to pypa/virtualenv that referenced this pull request Nov 16, 2026
The shared workflows move to [github-workflows
6.8.3](https://github.com/tox-dev/github-workflows/releases/tag/6.8.3).
πŸ”§ The weekly lock refresh now deletes cutoff exceptions that its own
refresh makes redundant, instead of failing on them once they expire
([#69](tox-dev/github-workflows#69)). Exceptions
whose upload date the seven-day window already covers go away in the
next refresh pull request, before their 2026-11-24 expiry would block
every change to `pyproject.toml`.

The same release names that pull request `πŸ”§ build(deps): refresh project
lock` by default
([#72](tox-dev/github-workflows#72)), so any
per-repository `pull-request-title` override goes and the refresh reads
the same across all projects.
gaborbernat added a commit to pytest-dev/pytest-env that referenced this pull request Nov 16, 2026
The shared workflows move to [github-workflows
6.8.3](https://github.com/tox-dev/github-workflows/releases/tag/6.8.3).
πŸ”§ The weekly lock refresh now deletes cutoff exceptions that its own
refresh makes redundant, instead of failing on them once they expire
([#69](tox-dev/github-workflows#69)). Exceptions
whose upload date the seven-day window already covers go away in the
next refresh pull request, before their 2026-11-24 expiry would block
every change to `pyproject.toml`.

The same release names that pull request `πŸ”§ build(deps): refresh project
lock` by default
([#72](tox-dev/github-workflows#72)), so any
per-repository `pull-request-title` override goes and the refresh reads
the same across all projects.
gaborbernat added a commit to pytest-dev/pytest-print that referenced this pull request Nov 16, 2026
The shared workflows move to [github-workflows
6.8.3](https://github.com/tox-dev/github-workflows/releases/tag/6.8.3).
πŸ”§ The weekly lock refresh now deletes cutoff exceptions that its own
refresh makes redundant, instead of failing on them once they expire
([#69](tox-dev/github-workflows#69)). Exceptions
whose upload date the seven-day window already covers go away in the
next refresh pull request, before their 2026-11-24 expiry would block
every change to `pyproject.toml`.

The same release names that pull request `πŸ”§ build(deps): refresh project
lock` by default
([#72](tox-dev/github-workflows#72)), so any
per-repository `pull-request-title` override goes and the refresh reads
the same across all projects.
gaborbernat added a commit to tox-dev/action-pre-commit-uv that referenced this pull request Nov 16, 2026
The shared workflows move to [github-workflows
6.8.3](https://github.com/tox-dev/github-workflows/releases/tag/6.8.3).
πŸ”§ The weekly lock refresh now deletes cutoff exceptions that its own
refresh makes redundant, instead of failing on them once they expire
([#69](tox-dev/github-workflows#69)). Exceptions
whose upload date the seven-day window already covers go away in the
next refresh pull request, before their 2026-11-24 expiry would block
every change to `pyproject.toml`.

The same release names that pull request `πŸ”§ build(deps): refresh project
lock` by default
([#72](tox-dev/github-workflows#72)), so any
per-repository `pull-request-title` override goes and the refresh reads
the same across all projects.
gaborbernat added a commit to tox-dev/devpi-process that referenced this pull request Nov 16, 2026
The shared workflows move to [github-workflows
6.8.3](https://github.com/tox-dev/github-workflows/releases/tag/6.8.3).
πŸ”§ The weekly lock refresh now deletes cutoff exceptions that its own
refresh makes redundant, instead of failing on them once they expire
([#69](tox-dev/github-workflows#69)). Exceptions
whose upload date the seven-day window already covers go away in the
next refresh pull request, before their 2026-11-24 expiry would block
every change to `pyproject.toml`.

The same release names that pull request `πŸ”§ build(deps): refresh project
lock` by default
([#72](tox-dev/github-workflows#72)), so any
per-repository `pull-request-title` override goes and the refresh reads
the same across all projects.
gaborbernat added a commit to tox-dev/filelock that referenced this pull request Nov 16, 2026
The shared workflows move to [github-workflows
6.8.3](https://github.com/tox-dev/github-workflows/releases/tag/6.8.3).
πŸ”§ The weekly lock refresh now deletes cutoff exceptions that its own
refresh makes redundant, instead of failing on them once they expire
([#69](tox-dev/github-workflows#69)). Exceptions
whose upload date the seven-day window already covers go away in the
next refresh pull request, before their 2026-11-24 expiry would block
every change to `pyproject.toml`.

The same release names that pull request `πŸ”§ build(deps): refresh project
lock` by default
([#72](tox-dev/github-workflows#72)), so any
per-repository `pull-request-title` override goes and the refresh reads
the same across all projects.
gaborbernat added a commit to tox-dev/jetbrains-fish that referenced this pull request Nov 16, 2026
The shared workflows move to [github-workflows
6.8.3](https://github.com/tox-dev/github-workflows/releases/tag/6.8.3).
πŸ”§ The weekly lock refresh now deletes cutoff exceptions that its own
refresh makes redundant, instead of failing on them once they expire
([#69](tox-dev/github-workflows#69)). Exceptions
whose upload date the seven-day window already covers go away in the
next refresh pull request, before their 2026-11-24 expiry would block
every change to `pyproject.toml`.

The same release names that pull request `πŸ”§ build(deps): refresh project
lock` by default
([#72](tox-dev/github-workflows#72)), so any
per-repository `pull-request-title` override goes and the refresh reads
the same across all projects.
gaborbernat added a commit to tox-dev/mdformat-zola that referenced this pull request Nov 16, 2026
The shared workflows move to [github-workflows
6.8.3](https://github.com/tox-dev/github-workflows/releases/tag/6.8.3).
πŸ”§ The weekly lock refresh now deletes cutoff exceptions that its own
refresh makes redundant, instead of failing on them once they expire
([#69](tox-dev/github-workflows#69)). Exceptions
whose upload date the seven-day window already covers go away in the
next refresh pull request, before their 2026-11-24 expiry would block
every change to `pyproject.toml`.

The same release names that pull request `πŸ”§ build(deps): refresh project
lock` by default
([#72](tox-dev/github-workflows#72)), so any
per-repository `pull-request-title` override goes and the refresh reads
the same across all projects.
gaborbernat added a commit to tox-dev/pipdeptree that referenced this pull request Nov 16, 2026
The shared workflows move to [github-workflows
6.8.3](https://github.com/tox-dev/github-workflows/releases/tag/6.8.3).
πŸ”§ The release-tools refresh deletes an expired cutoff exception that its
own refresh makes redundant, instead of failing on it
([#69](tox-dev/github-workflows#69)), and its
pull request takes the default title `πŸ”§ build(deps): refresh project
lock` ([#72](tox-dev/github-workflows#72)), so
this repository's title override is removed and the title stays the
same.
@gaborbernat gaborbernat added the bug Something isn't working label Nov 16, 2026
gaborbernat added a commit to tox-dev/platformdirs that referenced this pull request Nov 16, 2026
The shared workflows move to [github-workflows
6.8.3](https://github.com/tox-dev/github-workflows/releases/tag/6.8.3).
πŸ”§ The release-tools refresh deletes an expired cutoff exception that its
own refresh makes redundant, instead of failing on it
([#69](tox-dev/github-workflows#69)), and its
pull request takes the default title `πŸ”§ build(deps): refresh project
lock` ([#72](tox-dev/github-workflows#72)), so
this repository's title override is removed and the title stays the
same.
gaborbernat added a commit to tox-dev/pre-commit-uv that referenced this pull request Nov 16, 2026
The shared workflows move to [github-workflows
6.8.3](https://github.com/tox-dev/github-workflows/releases/tag/6.8.3).
πŸ”§ The release-tools refresh deletes an expired cutoff exception that its
own refresh makes redundant, instead of failing on it
([#69](tox-dev/github-workflows#69)).
gaborbernat added a commit to tox-dev/pyproject-api that referenced this pull request Nov 16, 2026
The shared workflows move to [github-workflows
6.8.3](https://github.com/tox-dev/github-workflows/releases/tag/6.8.3).
πŸ”§ The release-tools refresh deletes an expired cutoff exception that its
own refresh makes redundant, instead of failing on it
([#69](tox-dev/github-workflows#69)), and its
pull request takes the default title `πŸ”§ build(deps): refresh project
lock` ([#72](tox-dev/github-workflows#72)), so
this repository's title override is removed and the title stays the
same.
gaborbernat added a commit to tox-dev/python-discovery that referenced this pull request Nov 16, 2026
The shared workflows move to [github-workflows
6.8.3](https://github.com/tox-dev/github-workflows/releases/tag/6.8.3).
πŸ”§ The release-tools refresh deletes an expired cutoff exception that its
own refresh makes redundant, instead of failing on it
([#69](tox-dev/github-workflows#69)), and its
pull request takes the default title `πŸ”§ build(deps): refresh project
lock` ([#72](tox-dev/github-workflows#72)), so
this repository's title override is removed and the title stays the
same.
gaborbernat added a commit to tox-dev/python-sbom that referenced this pull request Nov 16, 2026
The shared workflows move to [github-workflows
6.8.3](https://github.com/tox-dev/github-workflows/releases/tag/6.8.3).
πŸ”§ The release-tools refresh deletes an expired cutoff exception that its
own refresh makes redundant, instead of failing on it
([#69](tox-dev/github-workflows#69)).
gaborbernat added a commit to tox-dev/PyVenvManage that referenced this pull request Nov 16, 2026
The shared workflows move to [github-workflows
6.8.3](https://github.com/tox-dev/github-workflows/releases/tag/6.8.3).
πŸ”§ The release-tools refresh deletes an expired cutoff exception that its
own refresh makes redundant, instead of failing on it
([#69](tox-dev/github-workflows#69)), and its
pull request takes the default title `πŸ”§ build(deps): refresh project
lock` ([#72](tox-dev/github-workflows#72)), so
this repository's title override is removed and the title stays the
same.
gaborbernat added a commit to tox-dev/sphinx-argparse-cli that referenced this pull request Nov 16, 2026
The shared workflows move to [github-workflows
6.8.3](https://github.com/tox-dev/github-workflows/releases/tag/6.8.3).
πŸ”§ The release-tools refresh deletes an expired cutoff exception that its
own refresh makes redundant, instead of failing on it
([#69](tox-dev/github-workflows#69)).
gaborbernat added a commit to tox-dev/sphinx-autodoc-typehints that referenced this pull request Nov 16, 2026
The shared workflows move to [github-workflows
6.8.3](https://github.com/tox-dev/github-workflows/releases/tag/6.8.3).
πŸ”§ The release-tools refresh deletes an expired cutoff exception that its
own refresh makes redundant, instead of failing on it
([#69](tox-dev/github-workflows#69)), and its
pull request takes the default title `πŸ”§ build(deps): refresh project
lock` ([#72](tox-dev/github-workflows#72)), so
this repository's title override is removed and the title stays the
same.
gaborbernat added a commit to tox-dev/tox that referenced this pull request Nov 16, 2026
The shared workflows move to [github-workflows
6.8.3](https://github.com/tox-dev/github-workflows/releases/tag/6.8.3).
πŸ”§ The release-tools refresh deletes an expired cutoff exception that its
own refresh makes redundant, instead of failing on it
([#69](tox-dev/github-workflows#69)), and its
pull request takes the default title `πŸ”§ build(deps): refresh project
lock` ([#72](tox-dev/github-workflows#72)), so
this repository's title override is removed and the title stays the
same.
gaborbernat added a commit to tox-dev/tox-gh that referenced this pull request Nov 16, 2026
The shared workflows move to [github-workflows
6.8.3](https://github.com/tox-dev/github-workflows/releases/tag/6.8.3).
πŸ”§ The release-tools refresh deletes an expired cutoff exception that its
own refresh makes redundant, instead of failing on it
([#69](tox-dev/github-workflows#69)).
gaborbernat added a commit to tox-dev/tox-ini-fmt that referenced this pull request Nov 16, 2026
The shared workflows move to [github-workflows
6.8.3](https://github.com/tox-dev/github-workflows/releases/tag/6.8.3).
πŸ”§ The release-tools refresh deletes an expired cutoff exception that its
own refresh makes redundant, instead of failing on it
([#69](tox-dev/github-workflows#69)).
gaborbernat added a commit to tox-dev/tox-uv that referenced this pull request Nov 16, 2026
The shared workflows move to [github-workflows
6.8.3](https://github.com/tox-dev/github-workflows/releases/tag/6.8.3).
πŸ”§ The release-tools refresh deletes an expired cutoff exception that its
own refresh makes redundant, instead of failing on it
([#69](tox-dev/github-workflows#69)), and its
pull request takes the default title `πŸ”§ build(deps): refresh project
lock` ([#72](tox-dev/github-workflows#72)), so
this repository's title override is removed and the title stays the
same.
gaborbernat added a commit to tox-dev/xml-fmt that referenced this pull request Nov 16, 2026
The shared workflows move to [github-workflows
6.8.3](https://github.com/tox-dev/github-workflows/releases/tag/6.8.3).
πŸ”§ The release-tools refresh deletes an expired cutoff exception that its
own refresh makes redundant, instead of failing on it
([#69](tox-dev/github-workflows#69)), and its
pull request takes the default title `πŸ”§ build(deps): refresh project
lock` ([#72](tox-dev/github-workflows#72)), so
this repository's title override is removed and the title stays the
same.
gaborbernat added a commit to quotaline/quotaline that referenced this pull request Nov 16, 2026
The shared workflows move to [github-workflows
6.8.3](https://github.com/tox-dev/github-workflows/releases/tag/6.8.3).
πŸ”§ The release-tools refresh deletes an expired cutoff exception that its
own refresh makes redundant, instead of failing on it
([#69](tox-dev/github-workflows#69)), and its
pull request takes the default title `πŸ”§ build(deps): refresh project
lock` ([#72](tox-dev/github-workflows#72)), so
this repository's title override is removed and the title gains the πŸ”§
prefix.

Releases no longer fail with `Resource not accessible by integration`
when a pull request that changes a workflow merges while the release
builds, since the GitHub release is now drafted on the existing tag
([#68](tox-dev/github-workflows#68),
[6.8.0...6.8.3](tox-dev/github-workflows@6.8.0...6.8.3)).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant