fix(build): a translation with a zero byte is made again in the same build #2300

Merged
HumanBean merged 3 commits from pepe999/Longshot:fix/lift-zero-bytes into main 2026-11-23 16:07:55 +00:00
Contributor

Summary

A player's build stopped in Compile with 17 translated files refused for a zero byte (#2296), and an earlier one with a single one (#2150). The translation never writes one: the PC's memory or the drive changed the files.

make_game.py already checks the translation before the compile and makes it again once, but only by each file's last two bytes (lifted_cut_short). A zero byte inside a file is found only in the compile, where the build can only stop: the player has to start it again, and the error names one file with no count. With LONGSHOT_LIFT_STORE (development) such a translation is also saved for the other work folders and taken from there at every try, so "Build again: the file is made again" isn't true there.

Now the translation this build made or copied, and an older retained translation without a record of this check, is also looked through for zero bytes:

  • found: the game is translated again in the same build, once, as for a file cut short;
  • found again: the build stops with how many files have one and what to check (memory overclock, memory, drive);
  • such a translation isn't saved in the store, and one that is there is let go.

A retained translation with a record of a successful check isn't read again. An older retained translation without that record is checked once. The compile's refusal stays for a file damaged later.

It doesn't repair the PC: with memory as bad as #2296's log suggests, the second translation is likely damaged too, and what the player gets is the count and what to check. It also can't see a byte that changed into something other than zero.

Seen on main: zero one byte inside a code_*.c after the lift; the build goes on to the compile and stops there. Read first: lifted_zero_bytes and translate() in nx2/make_game.py.

See #2296.

Testing

Tested: Linux, no game run (this is the build; the compiled game is unchanged). make_game.py's own translate() with the real lift.py on the real game, one byte of 17 of its 88 files zeroed after the translation: zeroed once, it is translated again, comes out whole and the next build keeps it; zeroed twice, it stops with "damaged twice: 17 of 88 files have a zero byte" and the next build doesn't keep it. split_hot.py and the compile were not part of it.

tests/test_lift_zero_bytes.py (game-free: the real translate() and store, a stand-in lift) previously failed 6 of its 9 cases on main (3 are behaviour that stays) and passed here; six broken versions of the fix each failed it. The updated test includes a case for older retained translations; its run is pending.

tests/run_all.py --strict, what mise run test runs, in a container as ci.yml sets its job up (Ubuntu 24.04, clang 18.1.3, g++ 13.3, glslang 16.6.0, spirv-val, .NET 8; no network): 938 passed, 2 failed, 18 skipped. The 2 fail on main too (test_dev_packs, test_pipeline_state_computes; #2311 is for them).

On this PC, tests/run_all.py, not --strict: 873 passed, 13 failed, 72 skipped. The same 13 fail on main: nx2/test_mesh_first_types, test_audio_source, test_builtin_compute_unoptimized, test_dev_packs, test_discover, test_image_view_retry, test_lift_lookups, test_link_skip, test_make_game_cache, test_mise_build, test_pipeline_state_computes, test_thinlto_tls, test_walk. Four of them only lack Python packages there (test_discover, test_lift_lookups, test_make_game_cache, test_walk) and pass here and on main with a Python that has them.

Still to test:

  • Windows, a launcher build: a normal build from this PR translates once, compiles and links as before (by hand, or any nightly after merge)

Measurements

Verdict: the check costs 0.2-0.3 s of a 100 s translation; nothing else changes.

Setup: Linux, the real game's translation (88 files, 1,483 MB), the times the two runs above printed; the PC was not reserved for timing.

Before: main @ 753fb5af After: this PR @ dff34314
The check, on the files just written not made 0.21, 0.22, 0.25, 0.27 s
The translation not timed separately 84.7-101.2 s
A translation with a zero byte stops in the compile translated again, once

A build that skips the translation reads it if it has no record of a successful zero-byte check. The game's frame rate and memory can't change: nothing the game runs does.

Risks

A file the lift wrote a zero byte into on purpose would now be translated twice and refused: none exists (0 in 1,483 MB), and the compile refuses one already. Each file is read whole, one at a time (24 MB at most). A revert is enough. Players notice nothing unless a file is damaged.

Checklist

Ready for review

  • One topic, on current main; the title is a Conventional Commit.
  • Tested on my own PC, in the game for a change the game runs, as Testing says. (Not run in the game: the change is in the build, not the game; opened with --force at the request of the person I work for. The real translation ran, see Testing.)
  • mise run test passes (any failure that also fails on main is named). The run on the updated change is pending.
  • Measured against main, or Measurements says why there is nothing to measure.
  • No game files, build output or hand-edited generated files; third_party/ untouched; nothing GPL-incompatible.

When it applies

  • A fix: a game-free test that fails on main and passes here. The updated test run is pending.
  • AI assistance recorded with Assisted-by: / Co-Authored-By: trailers.

Ready to merge

  • Everything in Still to test has run, its results in Tested.
  • Tier 1 hardware it can affect is tested (docs/dev/standards.md, "Hardware tiers").
  • Approved in review, every comment answered.
  • CI passes on the head; on current main, measured again or a comment says why the numbers still hold.

🤖 Generated with Claude Code

## Summary A player's build stopped in Compile with 17 translated files refused for a zero byte (#2296), and an earlier one with a single one (#2150). The translation never writes one: the PC's memory or the drive changed the files. `make_game.py` already checks the translation before the compile and makes it again once, but only by each file's last two bytes (`lifted_cut_short`). A zero byte inside a file is found only in the compile, where the build can only stop: the player has to start it again, and the error names one file with no count. With `LONGSHOT_LIFT_STORE` (development) such a translation is also saved for the other work folders and taken from there at every try, so "Build again: the file is made again" isn't true there. Now the translation this build made or copied, and an older retained translation without a record of this check, is also looked through for zero bytes: - found: the game is translated again in the same build, once, as for a file cut short; - found again: the build stops with how many files have one and what to check (memory overclock, memory, drive); - such a translation isn't saved in the store, and one that is there is let go. A retained translation with a record of a successful check isn't read again. An older retained translation without that record is checked once. The compile's refusal stays for a file damaged later. It doesn't repair the PC: with memory as bad as #2296's log suggests, the second translation is likely damaged too, and what the player gets is the count and what to check. It also can't see a byte that changed into something other than zero. Seen on `main`: zero one byte inside a `code_*.c` after the lift; the build goes on to the compile and stops there. Read first: `lifted_zero_bytes` and `translate()` in `nx2/make_game.py`. See #2296. ## Testing **Tested:** Linux, no game run (this is the build; the compiled game is unchanged). `make_game.py`'s own `translate()` with the real `lift.py` on the real game, one byte of 17 of its 88 files zeroed after the translation: zeroed once, it is translated again, comes out whole and the next build keeps it; zeroed twice, it stops with "damaged twice: 17 of 88 files have a zero byte" and the next build doesn't keep it. `split_hot.py` and the compile were not part of it. `tests/test_lift_zero_bytes.py` (game-free: the real `translate()` and store, a stand-in lift) previously failed 6 of its 9 cases on `main` (3 are behaviour that stays) and passed here; six broken versions of the fix each failed it. The updated test includes a case for older retained translations; its run is pending. `tests/run_all.py --strict`, what `mise run test` runs, in a container as `ci.yml` sets its job up (Ubuntu 24.04, clang 18.1.3, g++ 13.3, glslang 16.6.0, spirv-val, .NET 8; no network): 938 passed, 2 failed, 18 skipped. The 2 fail on `main` too (test_dev_packs, test_pipeline_state_computes; #2311 is for them). On this PC, `tests/run_all.py`, not `--strict`: 873 passed, 13 failed, 72 skipped. The same 13 fail on `main`: nx2/test_mesh_first_types, test_audio_source, test_builtin_compute_unoptimized, test_dev_packs, test_discover, test_image_view_retry, test_lift_lookups, test_link_skip, test_make_game_cache, test_mise_build, test_pipeline_state_computes, test_thinlto_tls, test_walk. Four of them only lack Python packages there (test_discover, test_lift_lookups, test_make_game_cache, test_walk) and pass here and on `main` with a Python that has them. **Still to test:** - Windows, a launcher build: a normal build from this PR translates once, compiles and links as before (by hand, or any nightly after merge) ## Measurements **Verdict:** the check costs 0.2-0.3 s of a 100 s translation; nothing else changes. Setup: Linux, the real game's translation (88 files, 1,483 MB), the times the two runs above printed; the PC was not reserved for timing. | | Before: main @ 753fb5af | After: this PR @ dff34314 | |---|---|---| | The check, on the files just written | not made | 0.21, 0.22, 0.25, 0.27 s | | The translation | not timed separately | 84.7-101.2 s | | A translation with a zero byte | stops in the compile | translated again, once | A build that skips the translation reads it if it has no record of a successful zero-byte check. The game's frame rate and memory can't change: nothing the game runs does. ## Risks A file the lift wrote a zero byte into on purpose would now be translated twice and refused: none exists (0 in 1,483 MB), and the compile refuses one already. Each file is read whole, one at a time (24 MB at most). A revert is enough. Players notice nothing unless a file is damaged. ## Checklist ### Ready for review - [x] One topic, on current `main`; the title is a Conventional Commit. - [ ] Tested on my own PC, in the game for a change the game runs, as Testing says. (Not run in the game: the change is in the build, not the game; opened with --force at the request of the person I work for. The real translation ran, see Testing.) - [ ] `mise run test` passes (any failure that also fails on `main` is named). The run on the updated change is pending. - [x] Measured against `main`, or Measurements says why there is nothing to measure. - [x] No game files, build output or hand-edited generated files; `third_party/` untouched; nothing GPL-incompatible. ### When it applies - [ ] A fix: a game-free test that fails on `main` and passes here. The updated test run is pending. - [x] AI assistance recorded with `Assisted-by:` / `Co-Authored-By:` trailers. ### Ready to merge - [ ] Everything in Still to test has run, its results in Tested. - [ ] Tier 1 hardware it can affect is tested (docs/dev/standards.md, "Hardware tiers"). - [ ] Approved in review, every comment answered. - [ ] CI passes on the head; on current `main`, measured again or a comment says why the numbers still hold. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Fails on main: make_game.py's check of the translation reads each file's
last two bytes, so a zero byte inside a file is found only by the compile,
which can only stop, and with LONGSHOT_LIFT_STORE such a translation is kept
for the other work folders and taken from there at every try.

Assisted-by: Claude Code
Co-Authored-By: Claude Opus 5.5 <[email protected]>
fix(build): a translation with a zero byte is made again in the same build
Some checks failed
Website / Website on Cloudflare (pull_request_target) Has been skipped
PR description / Description follows the template (pull_request_target) Successful in 5s
CI / Conventional Commit title (pull_request) Has been cancelled
CI / Python source checks (ubuntu-24.04, part 1/2) (pull_request) Has been cancelled
CI / Python source checks (ubuntu-24.04, part 2/2) (pull_request) Has been cancelled
CI / SPIR-V fixtures (global narrow load/store, direct surface atomics, F2I immediate) (pull_request) Has been cancelled
CI / Workflow lint (actionlint) (pull_request) Has been cancelled
CI / Website build and checks (pull_request) Has been cancelled
Guide screenshots / Guide images and local UI source review (pull_request) Has been cancelled
Third-party parts / As their notes say (pull_request) Has been cancelled
Third-party parts / The same as upstream (pull_request) Has been cancelled
dff343147b
A player's build stopped in the compile with 17 translated files refused for
a zero byte (issue 2296), and an earlier one had a single one (#2150). The
check before the compile only read each file's end. It now also looks for
zero bytes in the translation this build made or copied: found, the game is
translated again, once; found again, the build stops with how many files
have one and what to check. Such a translation is no longer kept for other
work folders (LONGSHOT_LIFT_STORE), and one kept there is let go.

Assisted-by: Claude Code
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Author
Contributor

tests/run_all.py --strict ran in a container set up as ci.yml's job: 938 passed, 2 failed, 18 skipped; the 2 fail on main too (937, 2, 18) and #2311 is for them.

`tests/run_all.py --strict` ran in a container set up as `ci.yml`'s job: 938 passed, 2 failed, 18 skipped; the 2 fail on `main` too (937, 2, 18) and #2311 is for them.
Owner
@review
BeanBot left a comment

Recommendation: Approve. A translation kept from a build before this change can bypass the new check, so a damaged translation can still reach compile without the promised same-build retry. A Windows launcher build is also outstanding. Nothing blocking is left: what remains is for the author before merging (below). Recommend approval; not approved on the forge.

The build scans newly made or restored translated C for zero bytes, retries a damaged translation once, and reports a count and hardware checks if it is damaged again. This improves recovery at the cost of reading the translated files; the reported Linux scan took 0.21–0.27 seconds.

Should fix (1): not blocking, but worth doing before merging.

  • L1 nx2/make_game.py:3258: A retained translation is assumed to have passed the new zero-byte check, even when it was made by an older builder that had no such check. (more on the line) Do: Record that a translation passed the new check and scan retained translations that lack that record before treating them as checked. Add a test starting with a keyed translation created without the record.

Testing before merging (1) (runs on the systems it can change; it doesn't hold the recommendation)

  • L2: The Windows launcher build listed in Still to test has not yet run. When: Windows players use the changed translation and file-reading paths, but the reported real build exercise is Linux only. Do: Run a Windows launcher build and confirm that translation, compile and link complete, including a retry after injected damage if feasible.

@fix can do L1.

Checks: Still running: 9 checks.

More: does it help, other systems, switches, what was read

Does it help: Yes for the tested fresh-translation case: the author reports that one injected zero byte in each of 17 files caused a retry and a whole translation, while damage on both attempts stopped with the count. The game-free test is reported to fail on main and pass here. Existing translations from before this change are an exception.

Other systems: The change affects the build on Windows and Linux and the optional shared translation store, not the compiled game. Linux fresh translation and store behavior are covered by the reported runs and tests; a Windows launcher build remains untested.

Switches: No switches added, changed, or removed. The existing LONGSHOT_LIFT_STORE remains off by default; its restore and save paths now check for damage.

Reviewed: dff343147b against 753fb5af68: Read AGENTS.md, CONTRIBUTING.md, docs/dev/standards.md, the pull request template, both commits, the full diff, nx2/lift_store.py and tests/test_lift_zero_bytes.py. Read the changed portions of nx2/make_game.py and the lift-key, retained-translation and compiler paths; the full make_game.py output was truncated, so the rest was not fully reviewed. docs/review-checklist.md and ../Tooling/AGENTS.md were absent. No recorded runs, translations, or generated files were included in the diff.; nothing run (a code review).

Checked and fine:

  • The new test uses synthetic C and a stand-in lift; no game output appears in the diff.
  • Both commits record AI assistance.
  • No renderer API, generated shader, or switch table change is applicable.
  • The shared-store restore checks copied C before accepting it, and damaged snapshots are forgotten.

Testing: Read-only review; no code, scripts, builds, or tests were run. CI is still running; the author reports two strict-suite failures that also occur on main.

Overlaps and merge order: Not checked; network access is closed.


Automated code review by BeanBot (gpt-6.1-terra), asked for by HumanBean. Nothing was run; a maintainer decides.

**Recommendation: Approve.** A translation kept from a build before this change can bypass the new check, so a damaged translation can still reach compile without the promised same-build retry. A Windows launcher build is also outstanding. Nothing blocking is left: what remains is for the author before merging (below). Recommend approval; not approved on the forge. The build scans newly made or restored translated C for zero bytes, retries a damaged translation once, and reports a count and hardware checks if it is damaged again. This improves recovery at the cost of reading the translated files; the reported Linux scan took 0.21–0.27 seconds. **Should fix (1)**: not blocking, but worth doing before merging. - **L1** `nx2/make_game.py:3258`: A retained translation is assumed to have passed the new zero-byte check, even when it was made by an older builder that had no such check. (more on the line) **Do:** Record that a translation passed the new check and scan retained translations that lack that record before treating them as checked. Add a test starting with a keyed translation created without the record. **Testing before merging (1)** (runs on the systems it can change; it doesn't hold the recommendation) - **L2**: The Windows launcher build listed in Still to test has not yet run. *When:* Windows players use the changed translation and file-reading paths, but the reported real build exercise is Linux only. **Do:** Run a Windows launcher build and confirm that translation, compile and link complete, including a retry after injected damage if feasible. `@fix` can do L1. **Checks:** Still running: 9 checks. <details> <summary>More: does it help, other systems, switches, what was read</summary> **Does it help:** Yes for the tested fresh-translation case: the author reports that one injected zero byte in each of 17 files caused a retry and a whole translation, while damage on both attempts stopped with the count. The game-free test is reported to fail on main and pass here. Existing translations from before this change are an exception. **Other systems:** The change affects the build on Windows and Linux and the optional shared translation store, not the compiled game. Linux fresh translation and store behavior are covered by the reported runs and tests; a Windows launcher build remains untested. **Switches:** No switches added, changed, or removed. The existing LONGSHOT_LIFT_STORE remains off by default; its restore and save paths now check for damage. **Reviewed:** dff343147b34 against 753fb5af6860: Read AGENTS.md, CONTRIBUTING.md, docs/dev/standards.md, the pull request template, both commits, the full diff, nx2/lift_store.py and tests/test_lift_zero_bytes.py. Read the changed portions of nx2/make_game.py and the lift-key, retained-translation and compiler paths; the full make_game.py output was truncated, so the rest was not fully reviewed. docs/review-checklist.md and ../Tooling/AGENTS.md were absent. No recorded runs, translations, or generated files were included in the diff.; nothing run (a code review). **Checked and fine:** - The new test uses synthetic C and a stand-in lift; no game output appears in the diff. - Both commits record AI assistance. - No renderer API, generated shader, or switch table change is applicable. - The shared-store restore checks copied C before accepting it, and damaged snapshots are forgotten. **Testing:** Read-only review; no code, scripts, builds, or tests were run. CI is still running; the author reports two strict-suite failures that also occur on main. **Overlaps and merge order:** Not checked; network access is closed. </details> --- <sub>Automated code review by BeanBot (gpt-6.1-terra), asked for by HumanBean. Nothing was run; a maintainer decides.</sub>
nx2/make_game.py Outdated
@ -3230,2 +3255,4 @@
for _ in range(2):
kept = False
if lifted_before(work, key): # (never on the second pass: its key was taken away below)
kept = True
Member

L1 (should fix): A retained translation is assumed to have passed the new zero-byte check, even when it was made by an older builder that had no such check.

When: If a pre-update build wrote a zero-containing translation and its key, then stopped before compile removed that key, the updated builder accepts the unchanged key and skips the zero-byte scan. Compile then stops on the damaged file instead of retrying translation in the same build.

Do: Record that a translation passed the new check and scan retained translations that lack that record before treating them as checked. Add a test starting with a keyed translation created without the record.

**L1** (should fix): A retained translation is assumed to have passed the new zero-byte check, even when it was made by an older builder that had no such check. *When:* If a pre-update build wrote a zero-containing translation and its key, then stopped before compile removed that key, the updated builder accepts the unchanged key and skips the zero-byte scan. Compile then stops on the damaged file instead of retrying translation in the same build. **Do:** Record that a translation passed the new check and scan retained translations that lack that record before treating them as checked. Add a test starting with a keyed translation created without the record.
Owner
@fix
BeanBot force-pushed fix/lift-zero-bytes from dff343147b
Some checks failed
Website / Website on Cloudflare (pull_request_target) Has been skipped
PR description / Description follows the template (pull_request_target) Successful in 5s
CI / Conventional Commit title (pull_request) Has been cancelled
CI / Python source checks (ubuntu-24.04, part 1/2) (pull_request) Has been cancelled
CI / Python source checks (ubuntu-24.04, part 2/2) (pull_request) Has been cancelled
CI / SPIR-V fixtures (global narrow load/store, direct surface atomics, F2I immediate) (pull_request) Has been cancelled
CI / Workflow lint (actionlint) (pull_request) Has been cancelled
CI / Website build and checks (pull_request) Has been cancelled
Guide screenshots / Guide images and local UI source review (pull_request) Has been cancelled
Third-party parts / As their notes say (pull_request) Has been cancelled
Third-party parts / The same as upstream (pull_request) Has been cancelled
to 714854920c
Some checks failed
CI / Python source checks (ubuntu-24.04, part 1/2) (pull_request) Has been skipped
CI / Python source checks (ubuntu-24.04, part 2/2) (pull_request) Has been skipped
CI / SPIR-V fixtures (global narrow load/store, direct surface atomics, F2I immediate) (pull_request) Has been skipped
CI / Conventional Commit title (pull_request) Successful in 24s
Third-party parts / The same as upstream (pull_request) Has been skipped
CI / Workflow lint (actionlint) (pull_request) Successful in 48s
Website / Website on Cloudflare (pull_request) Has been skipped
Guide screenshots / Guide images and local UI source review (pull_request) Failing after 34s
Third-party parts / As their notes say (pull_request) Successful in 51s
PR description / Description follows the template (pull_request_target) Failing after 19s
CI / Website build and checks (pull_request) Failing after 20m2s
2026-11-23 16:02:59 +00:00
Compare
BeanBot left a comment

Recommendation: Approve. The code is ready: only testing is left. The reported Linux run shows the retry working, and the retained-translation fix preserves it. The Windows launcher build remains untested. Recommend approval; not approved on the forge.

What @fix changed
I changed this pull request: the new head is 714854920c. I rebased it onto main (6acae6aa87). I edited its description to match the change.

Changed

  • Check older retained translations: Recorded successful zero-byte checks in the lift key and scan older keyed translations before reuse in nx2/make_game.py:2451. Added regression coverage for damaged and clean older translations in tests/test_lift_zero_bytes.py:137. Tests were not run as instructed.

Nothing was built or run: the checks run again on the new head.

The builder checks translated C for zero bytes and retries a damaged translation once, reporting repeated damage and avoiding a damaged shared-store copy. Older retained translations are checked once; the scan adds a reported 0.21–0.27 seconds on the tested Linux PC.

Testing before merging (1) (runs on the systems it can change; it doesn't hold the recommendation)

  • L2: The Windows launcher build listed in Still to test has not yet run. When: Windows players use the changed translation and file-reading paths, but the reported real build exercise is Linux only. Do: Run a Windows launcher build and confirm that translation, compile and link complete, including a retry after injected damage if feasible.

Checks: they run again on this head; a failure shows on the pull request.

Also noticed (3; not asked for, not blocking)
  • The pull request description still says every translation kept from an earlier build was checked when made; older keyed translations are now scanned on first reuse.
  • The updated retained-translation test and checks are reported as pending.
  • The stated base diff includes many changes outside the three files listed in the pull request.
More: does it help, other systems, switches, what was read

Does it help: Yes: the reported Linux run retried successfully after 17 of 88 files were damaged once and stopped with the count when they were damaged twice. The updated retained-translation test has not yet been run.

Other systems: The change affects Linux and Windows builds and the optional shared translation store, not game execution. Windows launcher behavior remains unverified.

Switches: No switches added, changed or removed; the existing LONGSHOT_LIFT_STORE path is checked for damaged translations.

Reviewed: 714854920c against 6acae6aa87: Read AGENTS.md, CONTRIBUTING.md, the pull request template, the fix diff, the affected translation and key-handling paths, and tests/test_lift_zero_bytes.py. Skimmed the base diff and lift-store changes; the full large base diff and all changed files were not read. The review checklist and adjacent Tooling AGENTS.md were unavailable.; nothing run (a code review).

Checked and fine:

  • An older two-line lift key is scanned before reuse and a successful scan is recorded for later builds.
  • The compiled-object retention path remains separate from the retained C scan.
  • The fix retains the retry and shared-store damage checks.

Testing: No commands from the project were run. The author reports Linux translation tests and identifies baseline test failures; CI has not run on this head.

Overlaps and merge order: Not checked; the network is closed.


Automated code review by BeanBot (gpt-6.1-terra), asked for by BeanBot, after its fix. Nothing was run; a maintainer decides.

**Recommendation: Approve.** The code is ready: only testing is left. The reported Linux run shows the retry working, and the retained-translation fix preserves it. The Windows launcher build remains untested. Recommend approval; not approved on the forge. **What `@fix` changed** I changed this pull request: the new head is 714854920c47. I rebased it onto `main` (6acae6aa8752). I edited its description to match the change. **Changed** - **Check older retained translations**: Recorded successful zero-byte checks in the lift key and scan older keyed translations before reuse in nx2/make_game.py:2451. Added regression coverage for damaged and clean older translations in tests/test_lift_zero_bytes.py:137. Tests were not run as instructed. Nothing was built or run: the checks run again on the new head. The builder checks translated C for zero bytes and retries a damaged translation once, reporting repeated damage and avoiding a damaged shared-store copy. Older retained translations are checked once; the scan adds a reported 0.21–0.27 seconds on the tested Linux PC. **Testing before merging (1)** (runs on the systems it can change; it doesn't hold the recommendation) - **L2**: The Windows launcher build listed in Still to test has not yet run. *When:* Windows players use the changed translation and file-reading paths, but the reported real build exercise is Linux only. **Do:** Run a Windows launcher build and confirm that translation, compile and link complete, including a retry after injected damage if feasible. **Checks:** they run again on this head; a failure shows on the pull request. <details> <summary>Also noticed (3; not asked for, not blocking)</summary> - The pull request description still says every translation kept from an earlier build was checked when made; older keyed translations are now scanned on first reuse. - The updated retained-translation test and checks are reported as pending. - The stated base diff includes many changes outside the three files listed in the pull request. </details> <details> <summary>More: does it help, other systems, switches, what was read</summary> **Does it help:** Yes: the reported Linux run retried successfully after 17 of 88 files were damaged once and stopped with the count when they were damaged twice. The updated retained-translation test has not yet been run. **Other systems:** The change affects Linux and Windows builds and the optional shared translation store, not game execution. Windows launcher behavior remains unverified. **Switches:** No switches added, changed or removed; the existing LONGSHOT_LIFT_STORE path is checked for damaged translations. **Reviewed:** 714854920c47 against 6acae6aa8752: Read AGENTS.md, CONTRIBUTING.md, the pull request template, the fix diff, the affected translation and key-handling paths, and tests/test_lift_zero_bytes.py. Skimmed the base diff and lift-store changes; the full large base diff and all changed files were not read. The review checklist and adjacent Tooling AGENTS.md were unavailable.; nothing run (a code review). **Checked and fine:** - An older two-line lift key is scanned before reuse and a successful scan is recorded for later builds. - The compiled-object retention path remains separate from the retained C scan. - The fix retains the retry and shared-store damage checks. **Testing:** No commands from the project were run. The author reports Linux translation tests and identifies baseline test failures; CI has not run on this head. **Overlaps and merge order:** Not checked; the network is closed. </details> --- <sub>Automated code review by BeanBot (gpt-6.1-terra), asked for by BeanBot, after its fix. Nothing was run; a maintainer decides.</sub>
HumanBean changed title from WIP: fix(build): a translation with a zero byte is made again in the same build to fix(build): a translation with a zero byte is made again in the same build 2026-11-23 16:07:33 +00:00
HumanBean deleted branch fix/lift-zero-bytes 2026-11-23 16:07:58 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
3 participants
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
MagicBeanDev/Longshot!2300
No description provided.