[PR #3414] [CLOSED] [Benchmark] Fix startup crashes and Windows version detection #4624

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

📋 Pull Request Information

Original PR: https://github.com/Niko1221/Strata/pull/3414
Author: @saruiwa
Created: 10/20/2026
Status: ❌ Closed

Base: main ← Head: fix/bench-windows-encoding


📝 Commits (2)

  • 75a46b3 [Benchmark] Fix UTF-8 decoding of CMakeLists.txt on Windows
  • 09cc45f [Benchmark] Fix undefined port when starting benchmark server

📊 Changes

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

View changed files

📝 tools/strata_bench.py (+3 -2)

📄 Description

Fix two crashes when running BENCH.bat:

  • Define port before using it to start the server, preventing a NameError.
  • Read CMakeLists.txt explicitly as UTF-8 with BOM support, preventing a UnicodeDecodeError on Windows systems using CP932.

Validation:

  • All 17 existing benchmark tests passed.
  • Checked default, configured, overridden, and occupied port paths with mocks.
  • Checked UTF-8 and UTF-8 BOM files with a simulated CP932 default.

🔄 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/Niko1221/Strata/pull/3414 **Author:** [@saruiwa](https://github.com/saruiwa) **Created:** 10/20/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `fix/bench-windows-encoding` --- ### 📝 Commits (2) - [`75a46b3`](https://github.com/Niko1221/Strata/commit/75a46b363f4bc3339f33ae43088c49a303427991) [Benchmark] Fix UTF-8 decoding of CMakeLists.txt on Windows - [`09cc45f`](https://github.com/Niko1221/Strata/commit/09cc45f3ce56c87fe717b36a4c5027c9a0340ca8) [Benchmark] Fix undefined port when starting benchmark server ### 📊 Changes **1 file changed** (+3 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `tools/strata_bench.py` (+3 -2) </details> ### 📄 Description Fix two crashes when running `BENCH.bat`: - Define `port` before using it to start the server, preventing a `NameError`. - Read `CMakeLists.txt` explicitly as UTF-8 with BOM support, preventing a `UnicodeDecodeError` on Windows systems using CP932. Validation: - All 17 existing benchmark tests passed. - Checked default, configured, overridden, and occupied port paths with mocks. - Checked UTF-8 and UTF-8 BOM files with a simulated CP932 default. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-07 15:37: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
Niko1221/Strata#4624
No description provided.