[PR #1384] [CLOSED] test: fix narrowing byte fixtures in Windows conversation test #3421

Closed
opened 2026-11-07 14:41:22 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Niko1221/Strata/pull/1384
Author: @midhatn
Created: 10/7/2026
Status: ❌ Closed

Base: main ← Head: fix/windows-checkpoint-byte-fixtures


📝 Commits (1)

  • e13099e test: make checkpoint byte fixtures valid under MSVC

📊 Changes

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

View changed files

📝 src/core/conversation_split_failure_test.cpp (+1 -1)

📄 Description

The conversation split failure test initializes uint8_t vectors with runtime int expressions. MSVC rejects that list initialization as narrowing, which prevents the conversation test targets from building on Windows.

Cast the two generated fixture values to uint8_t explicitly. The loop only generates small representable values; the fault-injection coverage and engine code are unchanged.

Validation: built with MSVC 19.51 and ran all six conversation tests successfully on Windows, including the GPU snapshot test. The change is limited to the test fixture.


🔄 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/1384 **Author:** [@midhatn](https://github.com/midhatn) **Created:** 10/7/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `fix/windows-checkpoint-byte-fixtures` --- ### 📝 Commits (1) - [`e13099e`](https://github.com/Niko1221/Strata/commit/e13099efe34711c271e97b79d9002db4083245e2) test: make checkpoint byte fixtures valid under MSVC ### 📊 Changes **1 file changed** (+1 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `src/core/conversation_split_failure_test.cpp` (+1 -1) </details> ### 📄 Description The conversation split failure test initializes uint8_t vectors with runtime int expressions. MSVC rejects that list initialization as narrowing, which prevents the conversation test targets from building on Windows. Cast the two generated fixture values to uint8_t explicitly. The loop only generates small representable values; the fault-injection coverage and engine code are unchanged. Validation: built with MSVC 19.51 and ran all six conversation tests successfully on Windows, including the GPU snapshot test. The change is limited to the test fixture. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-07 14:41:22 +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#3421
No description provided.