[PR #2858] [MERGED] nightly_set.py: trusted reviewers' picks for the Nightly (library) #4657

Closed
opened 2026-11-03 05:06:58 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

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

Base: main ← Head: feat/nightly-set


📝 Commits (3)

  • 0ff1df5 nightly_set.py: trusted reviewers' picks for the Nightly (library)
  • c9990e4 nightly_set tests: the scheduled refresh and the notes move with nightly.py (next PR)
  • 6c0e262 nightly_set tests: the repo's list file is checked with it (next PR)

📊 Changes

2 files changed (+794 additions, -0 deletions)

View changed files

➕ tests/test_nightly_set.py (+266 -0)
➕ tools/ci/nightly_set.py (+528 -0)

📄 Description

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

Part 1 of 2 of nightly-2. Ludovic's decision (2026-10-27), from kacpherek's proposal under #2779: trusted reviewers pick the pull requests the Nightly holds, with /nightly 2640 2642. This PR is the library, with its tests. Nothing calls it yet; part 2 (stacked on this one) wires it into the workflows.

tools/ci/nightly_set.py:

  • Commands: /nightly 2640 2642 (replace the set), add, remove, clear, status, and dry-run (build these, publish nothing, the set stays). Only the comment's first line counts. Answers never quote markdown or mentions back.
  • Who may pick: Ludovic always. Otherwise a login listed in .github/nightly-reviewers.txt, one per line; a lone paused line stops every reviewer, but not Ludovic. No repository role is needed: the file is the whole allow list.
  • Refused:
    • a pull request that changes any path CODEOWNERS gives to Ludovic, plus the brief's list even if CODEOWNERS moves;
    • a closed or merged one, or one not based on main;
    • more than 30 in a set;
    • more than 6 builds a day.
  • Ludovic wins: after his remove, reviewers can't add that pull request back until he adds it.
  • The set: set.json on a nightly-state branch, each pull request at the head it had when asked for, plus a log of the commands. builds.jsonl records each build's set for the stats. Commits are made in a private index and pushed; when another run pushed first, the change is read and applied again.
  • Assembly: each head is merged onto main in order with git merge-tree --write-tree. That writes only git objects, never a working tree, so no file, hook, filter or attribute driver of a pull request reaches the runner. Commit dates are fixed, so the same inputs give the same commit, and an unchanged set publishes nothing new. On a conflict it names the two pull requests (or main) and the paths.

Tried on real data: main plus #2838, #2834 and #2817 (three forks) fetched by SHA, merged in order, and built the same commit twice.

Tests (tests/test_nightly_set.py, 21):

  • parsing;
  • the allow list and paused;
  • refusals against the real CODEOWNERS;
  • set, add, remove and clear; Ludovic's remove;
  • status and dry runs changing nothing;
  • a fixture repo for a clean assembly (working tree untouched, a hostile .gitattributes ignored), a conflict between two pull requests, and a conflict with main;
  • the state branch against a bare "origin", including a concurrent save.
python3 tools/pr_ready.py --quick
Python tests ✅ 360 passed · no Rust change · Public tree ✅

tools/ci/ is Ludovic's under CODEOWNERS: merged by hand.

🤖 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/2858 **Author:** [@ludovic111](https://github.com/ludovic111) **Created:** 10/27/2026 **Status:** ✅ Merged **Merged:** 10/27/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `feat/nightly-set` --- ### 📝 Commits (3) - [`0ff1df5`](https://github.com/horizon-rust/horizon/commit/0ff1df58a2f2684b9c52320ab9a32e05076e32d9) nightly_set.py: trusted reviewers' picks for the Nightly (library) - [`c9990e4`](https://github.com/horizon-rust/horizon/commit/c9990e43e958f7f8717252e4c9ea7245b890465a) nightly_set tests: the scheduled refresh and the notes move with nightly.py (next PR) - [`6c0e262`](https://github.com/horizon-rust/horizon/commit/6c0e262aa070d0e34006049c62379057f8405bb2) nightly_set tests: the repo's list file is checked with it (next PR) ### 📊 Changes **2 files changed** (+794 additions, -0 deletions) <details> <summary>View changed files</summary> ➕ `tests/test_nightly_set.py` (+266 -0) ➕ `tools/ci/nightly_set.py` (+528 -0) </details> ### 📄 Description > 🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself. Part 1 of 2 of nightly-2. Ludovic's decision (2026-10-27), from kacpherek's proposal under #2779: trusted reviewers pick the pull requests the Nightly holds, with `/nightly 2640 2642`. This PR is the library, with its tests. Nothing calls it yet; part 2 (stacked on this one) wires it into the workflows. `tools/ci/nightly_set.py`: - **Commands:** `/nightly 2640 2642` (replace the set), `add`, `remove`, `clear`, `status`, and `dry-run` (build these, publish nothing, the set stays). Only the comment's first line counts. Answers never quote markdown or mentions back. - **Who may pick:** Ludovic always. Otherwise a login listed in `.github/nightly-reviewers.txt`, one per line; a lone `paused` line stops every reviewer, but not Ludovic. No repository role is needed: the file is the whole allow list. - **Refused:** - a pull request that changes any path CODEOWNERS gives to Ludovic, plus the brief's list even if CODEOWNERS moves; - a closed or merged one, or one not based on main; - more than 30 in a set; - more than 6 builds a day. - **Ludovic wins:** after his `remove`, reviewers can't add that pull request back until he adds it. - **The set:** `set.json` on a `nightly-state` branch, each pull request at the head it had when asked for, plus a log of the commands. `builds.jsonl` records each build's set for the stats. Commits are made in a private index and pushed; when another run pushed first, the change is read and applied again. - **Assembly:** each head is merged onto main in order with `git merge-tree --write-tree`. That writes only git objects, never a working tree, so no file, hook, filter or attribute driver of a pull request reaches the runner. Commit dates are fixed, so the same inputs give the same commit, and an unchanged set publishes nothing new. On a conflict it names the two pull requests (or main) and the paths. Tried on real data: main plus #2838, #2834 and #2817 (three forks) fetched by SHA, merged in order, and built the same commit twice. Tests (`tests/test_nightly_set.py`, 21): - parsing; - the allow list and `paused`; - refusals against the real CODEOWNERS; - set, add, remove and clear; Ludovic's remove; - status and dry runs changing nothing; - a fixture repo for a clean assembly (working tree untouched, a hostile `.gitattributes` ignored), a conflict between two pull requests, and a conflict with main; - the state branch against a bare "origin", including a concurrent save. ``` python3 tools/pr_ready.py --quick Python tests ✅ 360 passed · no Rust change · Public tree ✅ ``` `tools/ci/` is Ludovic's under CODEOWNERS: merged by hand. 🤖 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-03 05:06:58 +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#4657
No description provided.