Skip to content

chore(harness): remove legacy harness directory - #1131

Open
Graffioh wants to merge 1 commit into
mainfrom
chore/remove-harness
Open

Graffioh wants to merge 1 commit into
mainfrom
chore/remove-harness

Conversation

@Graffioh

@Graffioh Graffioh commented Dec 2, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

  • Remove the top-level harness/ directory (benchmarks and qualification scripts belong in lucebox_bench under luce_box, HTTP protocol coverage already lives in server/test/python/, and the remaining client_test_runner.py sweep profiles and Qwen3.6/RTX 3090 client launchers are stale).
  • Relocate harness/math_scoring.py -> server/scripts/math_scoring.py (still imported by server/scripts/bench_llm.py and server/scripts/bench_server.py) along with its regression test server/test/python/test_math_scoring.py.
  • Clean up harness/ references across CI (.github/ci/ci_plan.py, .github/workflows/ci.yml, .github/workflows/docker.yml, .githooks/pre-push), server/CMakeLists.txt CTest entries, pyproject.toml, .gitignore, Dockerfile, and documentation (README.md, server/README.md, server/docs/DS4.md, optimizations/kvflash/RESULTS.md, variables.md).

Verification

  • python3 -m unittest server/test/python/test_math_scoring.py (15 tests OK)
  • Verified bench_llm and bench_server imports
  • Verified .github/ci/test_docs_paths.py, .github/ci/test_ci_plan.py, .github/ci/check_commit_messages.py, and workflow YAML parsing

View guided diff

Benchmarks and hardware qualification scripts are moving to lucebox_bench in luce_box, protocol coverage already lives under server/test/python/, and the remaining client_test_runner.py sweep profiles and Qwen3.6/RTX 3090 launchers are stale.

Remove harness/ along with its CI rules, CTest entries, ruff/pytest paths, and doc links. Relocate the shared math_scoring helper still imported by server/scripts/bench_llm.py (and bench_server.py) to server/scripts/math_scoring.py with its regression test in server/test/python/test_math_scoring.py.
@Graffioh
Graffioh marked this pull request as ready for review December 2, 2026 08:07

@davide221 davide221 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code review

No issues found. Checked for bugs and logic errors in the changed code.

Reviewed 79c54deb · 1 candidate issue checked, kept at ≥70% confidence · add the code-review label to review again

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

2 issues found across 77 files

Prompt for AI agents (unresolved issues)

Check if these issues are valid — if so, understand the root cause of each and fix them. When an issue isn't valid or won't be fixed in this PR, reply in its thread with the reason and then resolve the thread. If appropriate, use sub-agents to investigate and fix each issue separately.


<file name="pyproject.toml">

<violation number="1" location="pyproject.toml:25">
P3: Moving `math_scoring.py` into `server/scripts` drops it out of the ruff gate, since `server/scripts` is not in `include`. Either add that file to `include`, or accept that this module is no longer linted.</violation>
</file>

<file name="server/docs/DS4.md">

<violation number="1" location="server/docs/DS4.md:898">
P3: These settings use the deleted wrapper's shell variable names, not the `LUCE_*` environment variables documented above and in the knobs table. Use the real env var names so readers can map the burn-in settings to the variables they set.</violation>
</file>

Heads up: you’re close to your included review allowance. Set a flex budget so reviews don’t pause.

View guided diff | Re-trigger cubic

Comment thread pyproject.toml
# carries pre-existing style debt and is added to `include` as it is cleaned
# up. Vendored deps stay excluded permanently (extend-exclude below).
include = ["harness/**/*.py", "scripts/**/*.py", "conftest.py", "server/test/python/**/*.py"]
include = ["scripts/**/*.py", "conftest.py", "server/test/python/**/*.py"]

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P3: Moving math_scoring.py into server/scripts drops it out of the ruff gate, since server/scripts is not in include. Either add that file to include, or accept that this module is no longer linted.

Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. When an issue isn't valid or won't be fixed in this PR, reply in its thread with the reason and then resolve the thread. At pyproject.toml, line 25:

<comment>Moving `math_scoring.py` into `server/scripts` drops it out of the ruff gate, since `server/scripts` is not in `include`. Either add that file to `include`, or accept that this module is no longer linted.</comment>

<file context>
@@ -18,11 +18,11 @@ dev = ["pytest>=8", "mypy>=1.10,<2", "ruff>=0.14,<1"]
 # carries pre-existing style debt and is added to `include` as it is cleaned
 # up. Vendored deps stay excluded permanently (extend-exclude below).
-include = ["harness/**/*.py", "scripts/**/*.py", "conftest.py", "server/test/python/**/*.py"]
+include = ["scripts/**/*.py", "conftest.py", "server/test/python/**/*.py"]
 extend-exclude = [
     "server/deps",
</file context>

Comment thread server/docs/DS4.md
Comment on lines +898 to +899
was collected with `CRITICAL_PATH_PLACEMENT=1`, `MAIN_TO_PEER_RATE=4.4`,
`BALANCE_MIN_HOT=0`, `EXPERT_BUDGET_MB=14350`, and automatic q=5 MMVQ/cache/kernel

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P3: These settings use the deleted wrapper's shell variable names, not the LUCE_* environment variables documented above and in the knobs table. Use the real env var names so readers can map the burn-in settings to the variables they set.

Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. When an issue isn't valid or won't be fixed in this PR, reply in its thread with the reason and then resolve the thread. At server/docs/DS4.md, line 898:

<comment>These settings use the deleted wrapper's shell variable names, not the `LUCE_*` environment variables documented above and in the knobs table. Use the real env var names so readers can map the burn-in settings to the variables they set.</comment>

<file context>
@@ -894,25 +894,11 @@ export LUCE_DS4_TP_MAIN_TO_PEER_RATE=4.4
-qualified deterministic-workload hash when intentionally testing another
-compatible artifact.
+The historical August 2026 exact-context burn-in (`2K -> 4K -> 8K -> 16K -> 2K`)
+was collected with `CRITICAL_PATH_PLACEMENT=1`, `MAIN_TO_PEER_RATE=4.4`,
+`BALANCE_MIN_HOT=0`, `EXPERT_BUDGET_MB=14350`, and automatic q=5 MMVQ/cache/kernel
+defaults (the standalone qualification and `rocprofv3` overlap scripts were later
</file context>
Suggested change
was collected with `CRITICAL_PATH_PLACEMENT=1`, `MAIN_TO_PEER_RATE=4.4`,
`BALANCE_MIN_HOT=0`, `EXPERT_BUDGET_MB=14350`, and automatic q=5 MMVQ/cache/kernel
was collected with `LUCE_DS4_TP_CRITICAL_PATH_PLACEMENT=1`, `LUCE_DS4_TP_MAIN_TO_PEER_RATE=4.4`,
`LUCE_DS4_TP_BALANCE_MIN_HOT=0`, `LUCE_EXPERT_BUDGET_MB=14350`, and automatic q=5 MMVQ/cache/kernel

@davide221

Copy link
Copy Markdown
Contributor

CI failed on 79c54deb

GPU CI never ran: the self-hosted box's GPU was busy with a developer's server for over 2 hours

The failed job never executed a single GPU test. Before starting, CI waits for the shared GPU box to be idle, but a developer's inference server (user berto, running a Qwen model) kept the GPU occupied, so the job gave up after its two-hour limit. The pull request itself only deletes the old harness directory and is not at fault.

How to fix: Free the GPU on lucebox3 (stop berto's luce_server if stale) and re-run the failed job.

  1. On lucebox3, check whether berto's luce_server (/home/berto/lucebox-engine-deepseek/server/build-hip-dual/luce_server) is still needed; if not, stop it, e.g. ssh lucebox3 'pkill -f lucebox-engine-deepseek/server/build-hip-dual/luce_server' (coordinate with berto first).
  2. Re-run only the failed job from the Actions page ("Re-run failed jobs") or with gh run rerun <run-id> --failed.
  3. If the GPU is still busy with active work, simply retry the re-run later; no code change is required.

gpu runner busy timeout · high confidence · run

Details and evidence

Failed: GPU tests (Radeon AI PRO R9700, gfx1201 / ROCm) › Run HIP vector-add on Radeon AI PRO R9700

Job GPU tests (Radeon AI PRO R9700, gfx1201 / ROCm), step Run HIP vector-add on Radeon AI PRO R9700. That step runs under .github/ci/box_step.sh, a wrapper that yields the shared lucebox3 box to development work: it polls /sys/class/kfd/kfd/proc for other GPU users and waits up to BOX_WAIT_MINUTES (120, set in .github/workflows/ci.yml:471) for the GPUs to stay free, then fails (.github/ci/box_step.sh:119-122). The log shows the wrapper's wait path exactly: ::notice::Waiting until lucebox3's GPUs stay free for 120 s. In use by: berto 12:25 /home/berto/lucebox-engine-deepseek/server/build-hip-dual/luce_server ... --target-device hip:0 ... followed by ::error::lucebox3's GPUs stayed in use; this job waited 120 min for them. and exit code 1. The ROCm health checks earlier in the job passed (KFD healthy, gfx1201 present), so the hardware and toolchain are fine; the smoke binary even compiled. The PR changes only harness/docs/CI-config files and cannot cause a GPU-busy wait.

Other things to try

  • If berto's dev/benchmark sessions on lucebox3 regularly exceed 2 hours, raise BOX_WAIT_MINUTES for the GPU jobs in .github/workflows/ci.yml or agree on a CI-priority window for the box.
  • To reproduce the wait behavior offline, see the wrapper's tests: python3 -m pytest .github/ci/test_box_step.py.
Prompt for a coding agent
A GitHub Actions run failed in Luce-Org/lucebox. Please fix it.

- Pull request #1131 (branch `chore/remove-harness`), commit 79c54deb19f32a661c651ab0d1557a65c4ffe538
- Workflow: CI (https://github.com/Luce-Org/lucebox/actions/runs/46837850377)
- Failed: GPU tests (Radeon AI PRO R9700, gfx1201 / ROCm) › Run HIP vector-add on Radeon AI PRO R9700

Diagnosis:
Job `GPU tests (Radeon AI PRO R9700, gfx1201 / ROCm)`, step `Run HIP vector-add on Radeon AI PRO R9700`. That step runs under `.github/ci/box_step.sh`, a wrapper that yields the shared lucebox3 box to development work: it polls `/sys/class/kfd/kfd/proc` for other GPU users and waits up to `BOX_WAIT_MINUTES` (120, set in `.github/workflows/ci.yml:471`) for the GPUs to stay free, then fails (`.github/ci/box_step.sh:119-122`). The log shows the wrapper's wait path exactly: `::notice::Waiting until lucebox3's GPUs stay free for 120 s. In use by: berto 12:25 /home/berto/lucebox-engine-deepseek/server/build-hip-dual/luce_server ... --target-device hip:0 ...` followed by `::error::lucebox3's GPUs stayed in use; this job waited 120 min for them.` and exit code 1. The ROCm health checks earlier in the job passed (`KFD healthy`, `gfx1201` present), so the hardware and toolchain are fine; the smoke binary even compiled. The PR changes only harness/docs/CI-config files and cannot cause a GPU-busy wait.

Proposed fix: Free the GPU on lucebox3 (stop berto's luce_server if stale) and re-run the failed job.
1. On lucebox3, check whether berto's `luce_server` (`/home/berto/lucebox-engine-deepseek/server/build-hip-dual/luce_server`) is still needed; if not, stop it, e.g. `ssh lucebox3 'pkill -f lucebox-engine-deepseek/server/build-hip-dual/luce_server'` (coordinate with berto first).
2. Re-run only the failed job from the Actions page ("Re-run failed jobs") or with `gh run rerun <run-id> --failed`.
3. If the GPU is still busy with active work, simply retry the re-run later; no code change is required.

Check out that commit, confirm the diagnosis, make the fix (adjust it if the diagnosis is wrong), and re-run the failing step locally before pushing.

Reply with /ci-fix and what to change to get a revised diagnosis.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants