test_cpf_cache: stage exited 1 once after check found the form (in-image sweep)

Open
#263 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
30/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
docker, python
Domain
testing

Research direction

Start from tests/test_cpf_cache.py and the stage entry point the failing test exercises, then read the open items in containers/images/judge-agent-amd/README.md to see what the sweep already ruled out. Reproduce by looping the file under pytest -n 16 --dist loadgroup; use the stderr assert_staged prints since aa06dfae3 to name the miss. Done means the non---cache input — env var, working directory, shared lock or xdist race — is identified and made deterministic.

Written by the indexing model from the issue text.

Description

tests/test_cpf_cache.py::test_check_and_stage_strip_the_kernel_names_the_render_and_verify_commands_strip failed once in the AMD image test sweep of job 758901 (pytest -n 16, --dist loadgroup): check found the gemm form, and stage exited 1 right after. It did not recur in rounds 16 and 17, and it passes in CI.

The test uses its own tmp_path, so the cause is something stage reads outside --cache, such as an environment variable, the working directory, a shared lock or cache directory, or a race with another xdist worker.

Since aa06dfae3, assert_staged prints what stage wrote to stderr, so the next failure names the miss. Documented under "open items" in containers/images/judge-agent-amd/README.md.

🤖 Generated with Claude Code

Dominant language
Python
Stars
9
Forks
9
Avg merge
3h 5m
Merged PRs (30d)
123

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from spcl/HPCAgent-Bench

All issues in spcl/HPCAgent-Bench

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.