[PR #3990] [CLOSED] Release-train test: expect the launcher link of the repository being released #5339

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

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/3990
Author: @brosoll
Created: 10/29/2026
Status: ❌ Closed

Base: main ← Head: fix/release-train-fork-test


📝 Commits (1)

  • 944f878 Release-train test: expect the launcher link of the repository being released

📊 Changes

1 file changed (+1 additions, -1 deletions)

View changed files

📝 tests/test_release_train.py (+1 -1)

📄 Description

Summary

The offline research tooling tests can fail wherever GITHUB_REPOSITORY is not horizon-rust/horizon: in the verify job, step "Test offline research tooling", exactly one test fails (474 run, 473 pass):

  • tools/release_train.py derives the "get the launcher" blurb's GitHub link from REPO = os.environ.get("GITHUB_REPOSITORY", "horizon-rust/horizon").
  • tests/test_release_train.py hardcoded horizon-rust/horizon in the expected URL.
  • On any fork, GITHUB_REPOSITORY is the fork, so the generated link and the assertion disagreed, and that fork's checks workflow failed on every push regardless of content.

Change

One line in tests/test_release_train.py: assert against train.REPO (the same repository the release train has written into), instead of a hardcoded upstream name.

self.assertIn(f'href="https://github.com/{train.REPO}/releases?q=launcher&expanded=true"', body)

Testing

  • GITHUB_REPOSITORY=brosoll/horizon (the fork's CI) → OK, reproduces and fixes the failure
  • env unset (the default, and upstream's case) → OK
  • full tests.test_release_train: 25/25 OK
  • CI checks on this change: green (run 40958304271 on brosoll/horizon)

Coded and tested by Claude (AI-assisted).

Human review required

This PR's results in visual changes of the game's rendering have to be checked by humans. This change is test/tooling-only, so no rendering changes are expected — but should any result of it turn out to affect the game's rendering, those visual changes require human verification before merge.


🔄 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/3990 **Author:** [@brosoll](https://github.com/brosoll) **Created:** 10/29/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `fix/release-train-fork-test` --- ### 📝 Commits (1) - [`944f878`](https://github.com/horizon-rust/horizon/commit/944f878facf8d2bca569e06770b7e0d1cb725ec6) Release-train test: expect the launcher link of the repository being released ### 📊 Changes **1 file changed** (+1 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `tests/test_release_train.py` (+1 -1) </details> ### 📄 Description ## Summary The offline research tooling tests can fail wherever `GITHUB_REPOSITORY` is not `horizon-rust/horizon`: in the `verify` job, step "Test offline research tooling", exactly one test fails (474 run, 473 pass): - `tools/release_train.py` derives the "get the launcher" blurb's GitHub link from `REPO = os.environ.get("GITHUB_REPOSITORY", "horizon-rust/horizon")`. - `tests/test_release_train.py` hardcoded `horizon-rust/horizon` in the expected URL. - On any fork, `GITHUB_REPOSITORY` is the fork, so the generated link and the assertion disagreed, and that fork's `checks` workflow failed on every push regardless of content. ## Change One line in `tests/test_release_train.py`: assert against `train.REPO` (the same repository the release train has written into), instead of a hardcoded upstream name. ```python self.assertIn(f'href="https://github.com/{train.REPO}/releases?q=launcher&amp;expanded=true"', body) ``` ## Testing - `GITHUB_REPOSITORY=brosoll/horizon` (the fork's CI) → OK, reproduces and fixes the failure - env unset (the default, and upstream's case) → OK - full `tests.test_release_train`: 25/25 OK - CI `checks` on this change: green (run 40958304271 on brosoll/horizon) Coded and tested by Claude (AI-assisted). ## Human review required This PR's results in visual changes of the game's rendering have to be checked by humans. This change is test/tooling-only, so no rendering changes are expected — but should any result of it turn out to affect the game's rendering, those visual changes require human verification before merge. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 05:11:54 +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#5339
No description provided.