ci: watch upstream Arti/tor-* releases daily and file an upgrade issue #42
Loading…
Reference in a new issue
No description provided.
Delete branch "wt/t_731235d4"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Automated warning when upstream Arti moves, plus a written upgrade procedure for the
in-process Tor stack (the largest attack surface here —
README.md:24calls Arti onionservices experimental).
.forgejo/workflows/arti-watch.yml— new workflow: daily cron (17 6 * * *UTC) +workflow_dispatch. Runsscripts/arti-watch.pyon thedockerPi runner (same jobimage as
ci.yml/release.yml; onlycurl+python3, no cargo, no docker).scripts/arti-watch.py— reads the[dependencies]table ofCargo.toml, takes thenewest stable version of every
tor-*/arti-*crate from crates.io, comparesmajor.minor against the pin, and files one Forgejo issue per distinct bump:
Arti upstream: <crate> <pin> → <new>. Reuses the existingFORGEJO_TOKENsecret(the name used by
release.yml) — no new secret.docs/ARTI_UPGRADE.md— the pinned set, the lockstep rule, the rustc 1.91 floor, thebump procedure, and the tests a bump must pass.
Idempotent by title, deduped over open and closed issues (
state=all, paginated), soa repeat run files nothing and comments nothing.
concurrency: onionwire-arti-watchprevents two simultaneous runs racing the "does an issue with this title exist yet" read.
The workflow changes no dependency:
Cargo.toml/Cargo.lockare untouched.Not covered, stated in both artefacts: no subscription to Tor Project security
announcements (a fix that ships with no crates.io version bump is invisible), no yank
detection (crates.io
max_stable_versionalready ignores yanks), and no vulnerability ina version that has not changed.
Pins found in
Cargo.toml(card said to report what is actually there)Four crates, all
0.46, all direct[dependencies]. Nothing else in the file is fromthe Arti repo.
rust-version = "1.91", edition 2024; CI imagerust:1.91-bookworm.Acceptance evidence (real runs, real API, no fabrication)
Upstream today is already 0.46 on crates.io for all four crates
(
arti-client/tor-cell/tor-hsservice/tor-rtcompatmax_stable_version = 0.46.0,published 2026-09-02; 0.45 was 2026-08-03), so there is no real upgrade to alert on
yet — the daily cadence is monthly, next one expected early October. The issue-filing
path was therefore exercised with the workflow's own documented test hook,
simulate_pin, which compares real crates.io data against a pretend pin and says soin the issue body. Runs are on
5dc6e78(wt/t_731235d4).Run 1 — real pins, files nothing (this is the case that will be green every day until
0.47 lands):
Run 2 —
simulate_pin=arti-client=0.45, files a real issue:Runs 3 and 4 — byte-identical input, must not produce a second issue:
Search used for the counts (the same call the script makes before filing):
Issue #40: #40 — filed by the
workflow through the API during run_141. It is a test-hook artefact (its body says the
pin came from
simulate_pin, not fromCargo.toml); I am closing it with a comment sonobody actions it. The watcher will file for real when 0.47 lands.
Local reproduction of the same run log (same code, real crates.io,
--dry-run):The run log on the runner prints the same four
pinned=/upstream_stable=/upstream_newest=/ upgrade=lines; open run_140/run_141 in the UI to see them (this Forgejo exposes noActions log API —
GET /actions/tasksis the only read endpoint on the instance).Notes / follow-ups (not in this PR)
docs/README.md(the docs index) does not listARTI_UPGRADE.md; that file is outsidethis card's allowed paths, so it is left alone. One-line addition when someone is in
there anyway.
--pinned-version/ GitLab advisory polling: out of scope per the card, and it wouldcontradict the documented "does not subscribe to Tor Project announcements" limitation.
README (deferred)
Exact wording for the PR that owns
README.md(#38), apply after it lands.## Releases (maintainers)(after line 296,before
## Troubleshooting):Commands run
No
Cargo.toml,Cargo.lock,src/**,README.md,docs/TUI.md,android/**, orexisting workflow file is touched.
ci.ymlis unchanged (it is path-gated and this PRtouches no path it watches — so no Rust suite run was triggered, as intended).
the daily
17 6 * * *(UTC) run starts after this merges.workflow_dispatchalreadyworks from a branch — that is how all four runs above were produced.
ci.ymlwatches (.forgejo/workflows/ci.ymlis itself in theallowlist but unchanged), so the path gate correctly ran no Rust suite: the only runs on
wt/t_731235d4are the fourarti-watchones.sirius referenced this pull request2026-09-12 16:58:40 +00:00
5dc6e78e23to6f96d19901Merge order 2 of 7: #38 -> #42 -> #41 -> #44 -> #43 -> #45 -> #46
Independent of every other PR in the queue: a new scheduled workflow plus new docs, no shared files.
Note: Forgejo refuses a formal approval from this token ("approve your own pull is not allowed" — the PRs were pushed by account
sirius, which is also the token's user). This review records the sign-off and the merge position; a human approval click is still needed. Rebased onto currentmainbefore this review, diff verified byte-identical.sirius referenced this pull request2026-09-12 18:36:03 +00:00