[PR #389] [MERGED] version_port.py publish: the port report's work items as GitHub issues, a dry run unless --yes #2527

Closed
opened 2026-11-02 15:56:56 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/389
Author: @ludovic111
Created: 10/15/2026
Status: ✅ Merged
Merged: 10/21/2026
Merged by: @ludovic111

Base: main ← Head: feat/version-port-publish


📝 Commits (1)

  • 70e0581 version_port.py publish: the report's work items as GitHub issues, a dry run unless --yes

📊 Changes

4 files changed (+414 additions, -8 deletions)

View changed files

📝 docs/version-ports.md (+24 -6)
➕ tests/test_port_publish.py (+98 -0)
➕ tools/port_publish.py (+251 -0)
📝 tools/version_port.py (+41 -2)

📄 Description

🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself.

Slice 3 of the port pipeline (docs/version-ports.md, "The port report" → publish). Stacked on #388 (harnesses).

What

tools/version_port.py publish OLD NEW [--yes] [--check-github] [--show N], in tools/port_publish.py. A dry run by default: it prints the issues it would create or update; --yes does it.

  • One issue per work item that needs work: rank 1; rank 2 when a harness newly fails; rank 3 when Horizon's comments name a changed method. Titled [NEW] …, labelled version-port and port-NEW. An open issue with the same title is updated: only the generated part of its body (between markers) is replaced, so what people wrote stays.
  • One tracking issue, [NEW] Port to Minecraft NEW, listing those issues (real numbers, filled after they exist) and every other item.
  • One Kira card for the port, linking the tracking issue (Kira mirrors the open issues as cards on its own).
  • Bodies hold names and signatures only: class names, JVM descriptors, fields, registry entries, packets, harness names, javac's one-line errors about Horizon's oracles, Horizon paths and the local path of the diff. assert_no_code refuses a body with a code block, a quoted span that reads like source, or a prose line that reads like Java.

Why

So the port's work lands where contributors and agents claim work, without anyone copying the report by hand, and without ever publishing vanilla code.

How tested

  • tests/test_port_publish.py: what gets an issue, bodies, the no-code guard (descriptors pass, statements are refused), merging into an edited body, and apply against a mocked gh (labels, item issues, then the tracking issue with their numbers).
  • Dry run of the 26.2 → 26.3 report: 49 issues (5 rank 1, 43 rank 3, the tracking issue); labels version-port and port-26.3 would be created. Never run with --yes.

pr_ready (tools/pr_ready.py --quick --base feat/version-port-harnesses on ludovics-mac-mini, against feat/version-port-harnesses at 878fb272b, 40 s)

Check Result
Scope ✅ 4 files, +414 −8
Cargo.lock ✅ unchanged
Public tree ✅
Python tests ❌ 256 run, FAILED (errors=2) (23 s)
rustfmt ➖ no Rust change
clippy ➖ no Rust change
tests ➖ no crate touched
tokens.css up to date ➖ theme untouched
launcher rustfmt ➖ launcher untouched
launcher clippy ➖ launcher untouched
launcher tests ➖ launcher untouched
Parity ➖ no harness affected
Label skip-release

The two Python test errors (test_parity_runner OracleReuse, test_rust_parity source hashes) fail the same way on plain origin/main on macOS (/private/var vs /var temp paths, a stubbed java exiting 127); CI runs them on Linux.

What needs Ludovic

The first publish --yes and the version-port label (the daily agent, #390, documents both).

🤖 Generated with Claude Code


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/horizon-rust/horizon/pull/389 **Author:** [@ludovic111](https://github.com/ludovic111) **Created:** 10/15/2026 **Status:** ✅ Merged **Merged:** 10/21/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `feat/version-port-publish` --- ### 📝 Commits (1) - [`70e0581`](https://github.com/horizon-rust/horizon/commit/70e058142c79f0e06628f806c66118c8f51201f0) version_port.py publish: the report's work items as GitHub issues, a dry run unless --yes ### 📊 Changes **4 files changed** (+414 additions, -8 deletions) <details> <summary>View changed files</summary> 📝 `docs/version-ports.md` (+24 -6) ➕ `tests/test_port_publish.py` (+98 -0) ➕ `tools/port_publish.py` (+251 -0) 📝 `tools/version_port.py` (+41 -2) </details> ### 📄 Description > 🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself. Slice 3 of the port pipeline (docs/version-ports.md, "The port report" → publish). Stacked on #388 (harnesses). ## What `tools/version_port.py publish OLD NEW [--yes] [--check-github] [--show N]`, in `tools/port_publish.py`. **A dry run by default**: it prints the issues it would create or update; `--yes` does it. - One issue per work item that needs work: rank 1; rank 2 when a harness newly fails; rank 3 when Horizon's comments name a changed method. Titled `[NEW] …`, labelled `version-port` and `port-NEW`. An open issue with the same title is updated: only the generated part of its body (between markers) is replaced, so what people wrote stays. - One tracking issue, `[NEW] Port to Minecraft NEW`, listing those issues (real numbers, filled after they exist) and every other item. - One Kira card for the port, linking the tracking issue (Kira mirrors the open issues as cards on its own). - Bodies hold **names and signatures only**: class names, JVM descriptors, fields, registry entries, packets, harness names, javac's one-line errors about Horizon's oracles, Horizon paths and the local path of the diff. `assert_no_code` refuses a body with a code block, a quoted span that reads like source, or a prose line that reads like Java. ## Why So the port's work lands where contributors and agents claim work, without anyone copying the report by hand, and without ever publishing vanilla code. ## How tested - `tests/test_port_publish.py`: what gets an issue, bodies, the no-code guard (descriptors pass, statements are refused), merging into an edited body, and `apply` against a mocked `gh` (labels, item issues, then the tracking issue with their numbers). - Dry run of the 26.2 → 26.3 report: 49 issues (5 rank 1, 43 rank 3, the tracking issue); labels `version-port` and `port-26.3` would be created. **Never run with `--yes`.** **pr_ready** (`tools/pr_ready.py --quick --base feat/version-port-harnesses` on ludovics-mac-mini, against feat/version-port-harnesses at 878fb272b, 40 s) | Check | Result | | --- | --- | | Scope | ✅ 4 files, +414 −8 | | Cargo.lock | ✅ unchanged | | Public tree | ✅ | | Python tests | ❌ 256 run, FAILED (errors=2) (23 s) | | rustfmt | ➖ no Rust change | | clippy | ➖ no Rust change | | tests | ➖ no crate touched | | tokens.css up to date | ➖ theme untouched | | launcher rustfmt | ➖ launcher untouched | | launcher clippy | ➖ launcher untouched | | launcher tests | ➖ launcher untouched | | Parity | ➖ no harness affected | | Label | `skip-release` | The two Python test errors (`test_parity_runner` OracleReuse, `test_rust_parity` source hashes) fail the same way on plain `origin/main` on macOS (`/private/var` vs `/var` temp paths, a stubbed `java` exiting 127); CI runs them on Linux. ## What needs Ludovic The first `publish --yes` and the `version-port` label (the daily agent, #390, documents both). 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-02 15:56:56 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
horizon-rust/horizon#2527
No description provided.