Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: tox-dev/github-workflows
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 6.8.2
Choose a base ref
...
head repository: tox-dev/github-workflows
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 6.8.3
Choose a head ref
  • 4 commits
  • 14 files changed
  • 2 contributors

Commits on Nov 16, 2026

  1. 🔧 build(deps): extend release-creator exception (#70)

    This repository's own `release-creator` cutoff exception has `# expires
    2026-11-09`, so `validate-news` fails on any pull request that changes
    `pyproject.toml` or `pylock.toml`.
    
    It can't be deleted yet. `pylock.toml` has `created-at = 2026-11-03
    17:04:01Z`, and Nab counts the `P7D` cutoff from that time, which puts
    the cutoff at 2026-10-27. The lock pins release-creator 4.4.0, which was
    uploaded on 2026-11-02T21:44Z, so it needs the exception until a refresh
    moves the lock's `created-at` past 2026-11-09. This PR extends the
    expiry to 2026-11-24, the same date the caller repositories use.
    
    Checked locally:
    
    - `tools/check_nab_exceptions.py pyproject.toml` passes.
    - Relocking with the recorded Nab 0.0.23 (`nab lock --all-groups
    --all-extras --no-cache`), the way check mode does, gives `regenerated
    pylock.toml matches the committed lock`.
    gaborbernat authored Nov 16, 2026
    Configuration menu
    Copy the full SHA
    40e7a87 View commit details
    Browse the repository at this point in the history
  2. 🐛 fix(refresh-release-lock): drop stale exceptions (#69)

    On 2026-11-10 the scheduled `upgrade-release-tools` run failed in every
    caller whose `release-creator` exception carried `# expires 2026-11-09`,
    with `packages.release-creator uploaded-prior-to exception expired on
    2026-11-09; remove it or extend its expiry`. Deleting the exception was
    not a way out. Nab counts a relative cutoff such as `P7D` from the
    committed lock's `created-at` ([nab reproducibility
    docs](https://github.com/notatallshaw/nab/blob/v0.0.23/docs/reference/reproducibility.md#relative-upload-cutoffs)),
    and every caller's lock was anchored on 2026-11-03. Against that anchor,
    release-creator 4.4.0 (uploaded 2026-11-02T21:44Z) still needs the
    exception, so a pull request removing it fails `validate-news` check
    mode. Only a refresh moves the anchor, and the expiry check ran before
    the refresh. The check blocked the one run that would have made the
    exception redundant.
    
    ### Choice
    
    I let the refresh delete exceptions the new anchor no longer needs, and
    moved the expiry check after it. The other option, reporting expiry as a
    warning in `upgrade-release-tools`, does not work alone. The refresh
    pull request changes `pylock.toml`, so `validate-news` runs the hard
    check on it and fails on the same expired exception. A per-package
    `uploaded-prior-to` also replaces the global cutoff ([package
    policy](https://github.com/notatallshaw/nab/blob/v0.0.23/docs/reference/package-policy.md)),
    so an exception left in place after the refresh would hold the package
    back at its old date.
    
    - `refresh-release-lock` gains `drop-redundant-exceptions` (default
    `false`). In refresh mode, `tools/drop_nab_exceptions.py` deletes each
    `packages.<name>.uploaded-prior-to` in `pyproject.toml` and `nab.toml`
    dated at or before the cutoff counted from now, with the comment block
    above it. When the package table holds other settings, it deletes only
    the value and its `# expires` line. When it drops anything, the lock
    keeps its new `created-at` (normally a `created-at`-only change is
    restored), and the edited file joins the patch. Without the exception,
    only that anchor keeps the pinned releases under the cutoff.
    - It deletes only what it can prove redundant. A date without a time
    counts as admitting that whole day. It leaves alone a datetime without a
    time zone, a relative exception, a global cutoff other than `P<n>D` or a
    date, and an inline table.
    - `upgrade-release-tools.yaml` turns the input on, adds `pyproject.toml`
    and `nab.toml` to `allowed-paths`, and runs `check-nab-exceptions` after
    the refresh. A scheduled run still fails on an undated exception or an
    expired one the new anchor needs. The hard check in `validate-news` is
    unchanged.
    - The input defaults to off, so `update-python-dependencies` behaves as
    before. Its staging step restores `created-at`-only locks itself and
    would undo the anchor a dropped exception needs.
    - `check_nab_exceptions.py` exports its config and line lookup helpers
    so both scripts locate an exception the same way.
    
    ### Docs
    
    - 6.5.0 changelog: `upgrade-release-tools` dropped `commit-message`, and
    callers must remove it. A caller still passing it ends in
    `startup_failure` with `Invalid input, commit-message is not defined in
    the referenced workflow`. That hit 15 callers that bumped from 6.2.1 to
    6.8.0.
    - Troubleshooting: a new entry for that startup failure, and the
    expired-exception entry no longer says to delete an exception once the
    package is a week old.
    - `docs/locked-tools.md`: the expiry must outlive the next weekly
    refresh and its merge, and the example date moves from 2026-11-09 to
    2026-11-17.
    
    ### Tests
    
    - `tests/refresh_release_lock/test_drop_nab_exceptions.py` runs the
    script on dotted keys, tables, tables with other settings, `nab.toml`,
    an exception on the first line, date values and an absolute cutoff. It
    covers each case left alone, the printed file list, unreadable files,
    and import without side effects.
    - `test_refresh.py` runs the whole Action with a real Nab, with the
    input on and off.
    - `test_upgrade.py` covers the step order, `allowed-paths`, and the
    anchor being kept or restored.
    
    `tox run -e test,type`: 744 passed, coverage 100%, `ty` clean, and `prek
    run --all-files` passes.
    
    Callers get this only by bumping their pin. For the current incident
    they still need to extend the expiries by hand, which is under way
    separately.
    gaborbernat authored Nov 16, 2026
    Configuration menu
    Copy the full SHA
    44e75b8 View commit details
    Browse the repository at this point in the history
  3. 🔧 build(deps): title lock refresh PRs as project lock (#72)

    The weekly lock refresh opens its pull request under five different
    titles across the fleet: the shared default `🔧 build(deps): refresh
    release tools`, and per-repository overrides `refresh release tool
    lock`, `refresh project lock`, `refresh full project lock`, and an
    emoji-less `refresh release tools`. 🔧 The run regenerates the whole
    project lock, which the default body already says (`Refresh the project
    lock.`), so the "release tools" wording undersells what changes.
    
    The default title becomes `🔧 build(deps): refresh project lock`, and
    this repository's own caller drops its override to use it. Once callers
    move to the release carrying this change, their `pull-request-title`
    overrides can go, and every refresh pull request reads the same.
    gaborbernat authored Nov 16, 2026
    Configuration menu
    Copy the full SHA
    9b854e8 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    ef0cd88 View commit details
    Browse the repository at this point in the history
Loading