[PR #4647] [Other] ab_engine.py: truncate engine logs between runs instead of appending (#4545) #5127

Open
opened 2026-11-07 16:32:55 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Niko1221/Strata/pull/4647
Author: @ctr-137
Created: 10/29/2026
Status: 🔄 Open

Base: main ← Head: ab-engine-truncate-engine-logs


📝 Commits (3)

  • 14f9391 [SYCL] preserve STRATA_* environment values of 0 in strata-sycl.sh (#4546)
  • f08ba0d [Other] setup --update: read engine version from engine-sycl/BUILD.json for SYCL installs (#4544)
  • 92a0563 [Other] ab_engine.py: start engine logs empty instead of appending (#4545)

📊 Changes

3 files changed (+10 additions, -3 deletions)

View changed files

📝 setup.py (+6 -1)
📝 sycl/serve/strata-sycl.sh (+3 -2)
📝 tools/ab_engine.py (+1 -0)

📄 Description

Fixes #4545.

Problem

tools/ab_engine.py gave every arm a fixed engine log name in the temporary directory (ab_<arm>_r<n>.log) and the server opens engine logs in append mode, so repeated A/B sessions with the same arm letters appended their engine output to the files of an earlier run. A grep for a feature or status line could then match an old engine.

Result

Before each arm starts, the fixed log file is truncated to empty, so a run of the tool begins with fresh engine logs. The log path and ab_<arm>.json location are unchanged.

Validation

Environment: Windows Git Bash / local Python; syntax only.

Passed:

  • py -m py_compile tools/ab_engine.py
  • git diff --check

Not run:

  • an actual A/B run, because that needs an Intel SYCL/CUDA/HIP engine and models in this environment.

🔄 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/4647 **Author:** [@ctr-137](https://github.com/ctr-137) **Created:** 10/29/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `ab-engine-truncate-engine-logs` --- ### 📝 Commits (3) - [`14f9391`](https://github.com/Niko1221/Strata/commit/14f9391b781a2a29191638d4f24bda8833e3b86a) [SYCL] preserve STRATA_* environment values of 0 in strata-sycl.sh (#4546) - [`f08ba0d`](https://github.com/Niko1221/Strata/commit/f08ba0d1a13e05c8eba956af221a47f04f038dcb) [Other] setup --update: read engine version from engine-sycl/BUILD.json for SYCL installs (#4544) - [`92a0563`](https://github.com/Niko1221/Strata/commit/92a0563b929a06a607e2e0f9e742213b93c28401) [Other] ab_engine.py: start engine logs empty instead of appending (#4545) ### 📊 Changes **3 files changed** (+10 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `setup.py` (+6 -1) 📝 `sycl/serve/strata-sycl.sh` (+3 -2) 📝 `tools/ab_engine.py` (+1 -0) </details> ### 📄 Description Fixes #4545. ## Problem `tools/ab_engine.py` gave every arm a fixed engine log name in the temporary directory (`ab_<arm>_r<n>.log`) and the server opens engine logs in append mode, so repeated A/B sessions with the same arm letters appended their engine output to the files of an earlier run. A grep for a feature or status line could then match an old engine. ## Result Before each arm starts, the fixed log file is truncated to empty, so a run of the tool begins with fresh engine logs. The log path and `ab_<arm>.json` location are unchanged. ## Validation Environment: Windows Git Bash / local Python; syntax only. Passed: - `py -m py_compile tools/ab_engine.py` - `git diff --check` Not run: - an actual A/B run, because that needs an Intel SYCL/CUDA/HIP engine and models in this environment. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
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#5127
No description provided.