[PR #3174] [MERGED] Nightly: publish the exact source, and tag its commit for good #4832

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

📋 Pull Request Information

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

Base: main ← Head: ci/nightly-source


📝 Commits (1)

  • 5ded675 Nightly: publish the exact source, and tag its commit for good

📊 Changes

4 files changed (+89 additions, -5 deletions)

View changed files

📝 .github/workflows/nightly-build.yml (+20 -1)
📝 docs/release-flow.md (+6 -0)
📝 tests/test_nightly.py (+24 -0)
📝 tools/ci/nightly.py (+39 -4)

📄 Description

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

levzzz5154 asked (Discord, 2026-10-28) that each nightly be published with its source. Native mods pin a Nightly's commit (Veinminer pins 83f15fa, nightly-2026-10-28), and the launcher downloads that commit's source to build them. Today the nightly names its commit, but nothing keeps that commit: the nightly-<date> release and tag and the nightly/build-* branch are all deleted after 7 days.

What changes

  • pick writes horizon-source.tar.gz, the git archive of the exact commit (git objects only, nothing from the pull requests runs), as the horizon-source artifact.
  • sign signs it with the builds: it is a line of the nightly's SHA256SUMS.
  • publish attaches it to the nightly pre-release and runs nightly.py keep-source, which tags the commit nightly-source/<date>-<short>. Neither prune (it deletes nightly-<date> only) nor prune-builds (it counts nightly and nightly-<date> only) touches that tag. A rerun of the same build finds the tag already there.
  • The notes say Source: commit <sha>, kept for good as the tag nightly-source/<date>-<short>.
  • docs/release-flow.md "Nightly channel" says so.

The launcher fetches a pinned revision's source by commit from GitHub, which works for any commit a ref keeps, so it doesn't depend on the release asset. The asset is there for people and for checking against the signed sums.

Tests

  • tests/test_nightly.py: the notes name the commit and tag; the tag survives stale/DATED; the workflow archives from git, signs, attaches and tags (new tests), plus the existing ones. python3 -m unittest discover -s tests: OK.
  • Dry run of the workflow from this branch: see the comment below.

Needs Ludovic

.github/ and tools/ci/ are yours (CODEOWNERS): a review.

🤖 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/3174 **Author:** [@ludovic111](https://github.com/ludovic111) **Created:** 10/28/2026 **Status:** ✅ Merged **Merged:** 10/28/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `ci/nightly-source` --- ### 📝 Commits (1) - [`5ded675`](https://github.com/horizon-rust/horizon/commit/5ded675a7d5bb1d0f01b8a8e6e68143a8a3f0f45) Nightly: publish the exact source, and tag its commit for good ### 📊 Changes **4 files changed** (+89 additions, -5 deletions) <details> <summary>View changed files</summary> 📝 `.github/workflows/nightly-build.yml` (+20 -1) 📝 `docs/release-flow.md` (+6 -0) 📝 `tests/test_nightly.py` (+24 -0) 📝 `tools/ci/nightly.py` (+39 -4) </details> ### 📄 Description > 🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself. levzzz5154 asked (Discord, 2026-10-28) that each nightly be published with its source. Native mods pin a Nightly's commit (Veinminer pins `83f15fa`, nightly-2026-10-28), and the launcher downloads that commit's source to build them. Today the nightly names its commit, but nothing keeps that commit: the `nightly-<date>` release and tag and the `nightly/build-*` branch are all deleted after 7 days. ## What changes - `pick` writes `horizon-source.tar.gz`, the `git archive` of the exact commit (git objects only, nothing from the pull requests runs), as the `horizon-source` artifact. - `sign` signs it with the builds: it is a line of the nightly's `SHA256SUMS`. - `publish` attaches it to the `nightly` pre-release and runs `nightly.py keep-source`, which tags the commit `nightly-source/<date>-<short>`. Neither `prune` (it deletes `nightly-<date>` only) nor `prune-builds` (it counts `nightly` and `nightly-<date>` only) touches that tag. A rerun of the same build finds the tag already there. - The notes say `Source: commit <sha>, kept for good as the tag nightly-source/<date>-<short>`. - docs/release-flow.md "Nightly channel" says so. The launcher fetches a pinned revision's source by commit from GitHub, which works for any commit a ref keeps, so it doesn't depend on the release asset. The asset is there for people and for checking against the signed sums. ## Tests - `tests/test_nightly.py`: the notes name the commit and tag; the tag survives `stale`/`DATED`; the workflow archives from git, signs, attaches and tags (new tests), plus the existing ones. `python3 -m unittest discover -s tests`: OK. - Dry run of the workflow from this branch: see the comment below. ## Needs Ludovic `.github/` and `tools/ci/` are yours (CODEOWNERS): a review. 🤖 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:08:16 +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#4832
No description provided.