Skip to content

Track the Newest Upstream Line of Each Pinned Host Tool - #4412

Merged
ptr727 merged 3 commits into
developfrom
burndown/host-tool-line-tracker
Nov 24, 2026
Merged

ptr727 merged 3 commits into
developfrom
burndown/host-tool-line-tracker

Conversation

@ptr727

@ptr727 ptr727 commented Nov 24, 2026 •

Copy link
Copy Markdown
Owner

Summary

The hub pins one version line per host tool, and nothing told anyone when upstream shipped a later line. This adds one scheduled tracker that does. It follows the maintainer's answer of 2026-11-01 on the issue, option 1. That means one tracker, one key per pinned tool holding the newest upstream line, and auto-merge: false. The reusable check-upstream-version-task.yml is not changed.

  • .github/workflows/check-host-tool-lines.yml is a thin scheduled caller of the hub's own check-upstream-version-task.yml. It runs weekly and on workflow_dispatch. It targets develop only, since the pins live there and reach main by promotion. It passes auto-merge: false, so the bump pull request waits for a human (D8.3). Its head is no-auto-merge-host-tool-lines-develop, which no merge-bot rule matches. Concurrency is keyed on the workflow alone with cancel-in-progress: true, per "Workflow YAML Conventions" Concurrency exception (5). It sets permissions: {}, since every write in the task uses the App token.
  • .github/actions/resolve-upstream/action.yml is the hook the task requires. It reads two upstream release documents, Python's release-cycle data from peps.python.org and the .NET release index. It reports the newest released line of each, such as {"dotnet":"10","python":"3.14"}.
  • .github/actions/resolve-upstream/python.jq and dotnet.jq pick the newest released line. A preview line does not count as released: Python's feature and prerelease, and .NET's preview and go-live. A status or support phase outside the known set fails the run rather than being guessed, and so does a malformed line.
  • host-tool-lines.json is the committed state file. It is seeded at the current pins, python 3.13 and dotnet 10. So the first run opens one pull request naming the lines that have already moved, rather than recording them silently. Merging that pull request records the new lines and closes the signal, so merging it is the human's decision on each line, including a decision to stay. A pin that moves goes in a pull request of its own, since the next run regenerates the bump branch and would drop a commit pushed onto it. The file is deliberately not named upstream-version.json, since that name is an upstream-wrapper detect hint in spec/project-types.json.
  • spec/divergences.json gains one accepted gap row for .github/actions/resolve-upstream/action.yml, modelled on the .github/actions/validate/action.yml row. Without it the audit's hub-only check reports ESPHome-NonRoot's own required hook as undeclared hub content to triage. Running that check against ESPHome-NonRoot's and NxWitness's live trees, on main and develop, flagged that one path and nothing else. So python.jq and dotnet.jq take no row.
  • tests/test_resolve_upstream.py runs both filters on constructed data. It runs the hook's step whole under bash with a stub curl serving constructed files, so no case reaches the network. The hook-step cases run on POSIX only, since the hook runs on a Linux runner and jq ends its lines in CRLF on Windows. It also reads the caller and the state file for the shape the task diffs. Finally, it runs the audit's hub-only check on a constructed carrier tree, and that case fails without the new gap row.

Notes for the reviewer

  • Detection. The hub already holds check-upstream-version-task.yml itself as a hosted task, so that filename hint already matched the hub before this change. This change adds no upstream-version.json, and the hub's build does not read the state file for a tag. So the hub does not newly read as an upstream-wrapper repository.
  • No declaration is needed. The hub's other hub-only scheduled workflow, canonical-review-sweep.yml, is declared in neither spec/files.json nor the prose gate's hub_hosted list, and the repo gate passes with this one added.
  • The resolver is bash plus jq, not a Python script. A new Python entry point would have to be declared in tests/test_cli_usage.py, a file outside this change's scope. The hook's logic is two jq filters, and jq is the maintained parser for this JSON.
  • The bump pull request names keys only. The task's body lists each moved key and its new line. Naming the settings that move with each pin would need a change to the task, which the decision keeps unchanged. That stays a follow-on design point.

Owed to the maintainer

  • A live run. No run was triggered and the App secrets were not used, since a run opens a real pull request. Scheduled runs start only once this reaches main, since a schedule runs on the default branch. A workflow_dispatch from develop after this merges would prove it sooner. Expect its first pull request to name dotnet to 11, python to 3.15, the lines released as of this writing.

Verification

  • python3 -m unittest discover -s tests passes, including the 23 new resolver and tracker cases and the 2 hub-only cases.
  • spec/validate.py passes, and so do the spec, audit, and fidelity test modules.
  • scripts/docker_lint.py passes for actionlint, editorconfig-checker, and shellcheck.
  • repo_gate.py passes every check, including composite-actions and sha-pin.
  • ruff format, ruff check, and mypy pass.
  • The prose gate passes with --allow-comments. This pull request carries the comments label, since the workflow's concurrency citation is a comment a rule requires.
  • The task's own Compute upstream version diff step was run by hand against the seeded state file. It produced the expected head, title, and body, and it rewrote the file in the same form this change commits.

Closes on promotion: #1170

🤖 Generated with Claude Code

ptr727 and others added 3 commits November 24, 2026 00:42
A scheduled caller points the hub's own check-upstream-version-task.yml at
the hub, with a resolve-upstream hook reading Python's release-cycle data and
the .NET release index. The state file is seeded at the current pins, so the
first run names the lines that have already moved. The bump pull request sets
auto-merge false, so a human decides whether each pin moves.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
jq already fails on each shape the removed checks named, and the step turns
any jq failure into its own error. The hook header's pin list named a file
the hub does not hold and missed others, so it goes. The hook-step tests run
on POSIX only, since the hook runs on a Linux runner.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The task requires every caller to carry its own hook at this path, so the
audit's hub-only check would otherwise report a carrier's required hook as
undeclared hub content. A test runs that check on a constructed carrier tree.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@ptr727 ptr727 added the comments Permits the comment lines the pull request adds or edits, which the prose gate otherwise refuses label Nov 24, 2026
Copilot AI lite review requested due to automatic review settings November 24, 2026 09:08
@ptr727 ptr727 added the comments Permits the comment lines the pull request adds or edits, which the prose gate otherwise refuses label Nov 24, 2026
@ptr727

ptr727 commented Nov 24, 2026

Copy link
Copy Markdown
Owner Author

A recorded local strict-review pass covers head 3c27ac070e15bba7dbdcc447c8fa02a0066665fe, the content this pull request carries at that commit against develop, and it recorded 0 findings.

@coderabbitai

coderabbitai Bot commented Nov 24, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

Run configuration

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

Approval is blocked by active critical issues in tracker pin-change handling and accepted-gap scoping, plus a test that does not verify the seeded values explicitly.

3 open issues
What changed in this PR

Adds a scheduled tracker that detects newer released Python and .NET host-tool lines and opens human-reviewed pull requests.

Changes:

  • Adds a weekly and manual workflow targeting develop.
  • Resolves upstream release lines through a composite action and jq filters.
  • Adds seeded state, audit metadata, and tests for resolver and workflow behavior.
File Description
tests/​test_resolve_upstream.py Tests the resolver filters, composite action execution, workflow configuration, tracker state format, and audit behavior.
spec/​divergences.json Records the repository-owned upstream resolver hook as an accepted divergence.
host-tool-lines.json Stores the seeded Python and .NET upstream line observations.
.github/​workflows/​check-host-tool-lines.yml Schedules the host-tool line tracker and routes updates to human review without automatic merging.
.github/​actions/​resolve-upstream/​python.jq Selects the newest released Python minor line from upstream release metadata.
.github/​actions/​resolve-upstream/​dotnet.jq Selects the newest released .NET major line from upstream release metadata.
.github/​actions/​resolve-upstream/​action.yml Fetches upstream Python and .NET release metadata and emits their resolved lines.

Review effort: Lite

Comment thread spec/divergences.json Resolved
Comment thread tests/test_resolve_upstream.py Resolved
@codecov

codecov Bot commented Nov 24, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 79.53%. Comparing base (b38e084) to head (3c27ac0).
⚠️ Report is 330 commits behind head on develop.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #4412      +/-   ##
===========================================
- Coverage    81.60%   79.53%   -2.08%     
===========================================
  Files           26       47      +21     
  Lines         9070    16183    +7113     
===========================================
+ Hits          7402    12871    +5469     
- Misses        1668     3312    +1644     
Flag Coverage Δ
python-3.13 79.53% <ø> (-2.08%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@ptr727
ptr727 merged commit 36189e8 into develop Nov 24, 2026
14 of 15 checks passed
@ptr727
ptr727 deleted the burndown/host-tool-line-tracker branch November 24, 2026 09:51
ptr727 added a commit that referenced this pull request Nov 24, 2026
…lts, Secret Sync Fields, and Audit Account Fixes (#4428)

Promotes the 28 pull requests that landed on develop since the last
promotion (#4388), from the away-mode backlog burndown run.

- #4391: Drop the false XML comment suppression claim from the .NET
conventions.
- #4390: Blank quotations after a heredoc label on its opening line in
the paste-safe rule.
- #4392: Carry attention lists, cut lists, and opt-in billing in the
`backlog_metrics.py` JSON.
- #4393: Gate `configure.sh apply`'s interaction limit on a committed
bot verification record.
- #4394: Make the gh and node report note say a one-line vendor source
is configured.
- #4395: Add ShellCheck and shfmt lint tasks to the VS Code task
snippets.
- #4396: Count a CodeRabbit clean pass on the head in the digest's
`other_reviewed`.
- #4401: Date the line-ending intentRefs by the skill and trim advisory
restatements.
- #4399: Share one any-level heading region primitive between
`heading_body` and `extract_anchored`.
- #4398: Name the hub pull requests a standup lands through, and add
HACS first-run guidance.
- #4404: Add a PowerShell section to CODESTYLE.md and narrow the shell
rule.
- #4405: Close AUDIT.md section 10's convergence loop and fix three
skill pointers.
- #4409: Route CODESTYLE.md's General section to the language skills
(part of #1153, which stays open).
- #4410: Detect a C# test project by its own text rather than its file
name.
- #4411: Drop the unruled "working gate is not drift" sentence from
CODESTYLE.md.
- #4412: Track the newest upstream line of each pinned host tool.
- #4413: Correct AUDIT.md section 0's account of what the audit checks.
- #4416: Add a required coverage shield class to the README audit.
- #4414: Tie drive-pr's merge to its authorization and align the pass
moments.
- #4417: Pass over a second SIGTERM in `pr_review.py` so an interrupt
prints one line.
- #4418: Point the report-path placeholder at AUDIT.md section 8.
- #4419: Correct the audit account copies outside AUDIT.md section 0.
- #4422: Drop the archived DevKitCIoT from the rollout checklists.
- #4423: Report a stale `pullRequestCheck: false` and correct AUDIT.md
section 6.
- #4424: Add a `prune` subcommand to retire orphaned canonical review
passes.
- #4425: Drop the archived DevKitCIoT from the reusable-workflows
checklists and fix a normalization docstring.
- #4427: Store secret sync metadata in item fields, not 1Password tags.
- #4426: Declare and apply the Actions workflow token defaults through
`configure.sh` (the `configure.sh` part of #1783, which stays open).

## Owed by the maintainer

- #4412: A live run of the new host-tool line tracker. Scheduled runs
start only once this reaches `main`, and a `workflow_dispatch` would
prove it sooner.
- #4426: A fleet `configure.sh apply` for the workflow token defaults,
after the per-repository read the 2026-11-01 answer requires. Please
also confirm the new `--lower-workflow-token` option, which a `write`
repository needs for the apply to lower its default.
- #4427: Run `python3 scripts/secrets_sync.py selftest`, then the
cleanup script in that pull request's body (`move_sync_tags.py`, dry run
first, then `--apply`). Until that runs, every un-migrated secret item
refuses to sync.
- #4393: The pilot's first interaction limit is set by hand in its
settings and its bots verified there. The verification record is
committed afterwards through a hub pull request, and only then does
`apply` set the limit fleet-wide.
- A fleet resync is owed, because carried text changed: AGENTS.md,
GOVERNANCE.md, CODESTYLE.md, and several skills.

Fixes #4387
Fixes #4383
Fixes #4284
Fixes #1095
Fixes #4299
Fixes #4370
Fixes #4364
Fixes #4173
Fixes #4064
Fixes #3536
Fixes #3929
Fixes #3808
Fixes #3812
Fixes #3810
Fixes #4320
Fixes #4232
Fixes #1748
Fixes #1607
Fixes #1270
Fixes #1170
Fixes #3692
Fixes #4415
Fixes #3908
Fixes #1648
Fixes #4276

🤖 Generated with [Claude Code](https://claude.com/claude-code)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comments Permits the comment lines the pull request adds or edits, which the prose gate otherwise refuses

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants