Skip to content

[Klaud Cold] Move infx tests from utils/ to infx/tests/ - #3486

Merged
functionstackx merged 5 commits into
mainfrom
klaud/move-infx-tests
Sep 26, 2026
Merged

functionstackx merged 5 commits into
mainfrom
klaud/move-infx-tests

Conversation

@functionstackx

@functionstackx functionstackx commented Sep 26, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Moves the tests for infx/ code out of utils/ into infx/tests/, mirroring the infx/ package layout (tests live beside the code they test). 45 files moved with git mv (history preserved).

New location Tests moved (subject)
infx/tests/results/power/ aggregate_power, aggregate_power_multinode, native_multinode_power, process_result
infx/tests/results/agentic/ power_adapter, process_agentic_result, server_log_metrics, validate_agentic_result
infx/tests/results/ collect_eval_results, generate_aiperf_plots
infx/tests/datasets/ build_weka_hf_dataset
infx/tests/workflows/ prepare_perf_changelog_merge, recover_failed_ingest, validate_perf_changelog, acknowledge_sweep_reuse, calc_success_rate, ci_priority, find_reusable_sweep_run, pareto_coverage, signoff_publish/resolve/scope, stage_results, validate_reusable_sweep_artifacts
infx/tests/evals/ batched_eval, bfcl_eval, eval_patches, kimi_vendor_eval, minimax_m3_full_eval, minimax_provider_eval, swebench_eval
infx/tests/matrix/ generate_sweep_configs, validation, process_changelog
infx/tests/bench_serving/ benchmark_serving, server_watch
infx/tests/srt_slurm/ srt_cluster_config, srt_single_node, synthetic_acceptance
infx/tests/klaud/ klaud_github
infx/tests/golden_al_distribution/ golden_al_distribution
infx/tests/ github, module_entrypoints, installed_package

Stayed in utils/ (their subject is not in infx/): test_amd_sglang_cli.py (benchmarks/multi_node/amd_utils), test_inject_srt_power_concurrencies.py (runners/), test_srt_fixed_sequence.py (benchmarks shell), changelog_gate_tests/test_merge_with_reuse.py (utils/merge_with_reuse.sh), agentic/aggregation/test_power_lifecycle.py and evals/test_run_eval_dispatch.py (benchmarks/benchmark_lib.sh).

Non-mechanical fixes

  • Repo-root depth (Path(__file__).parents[N]) adjusted for every moved file; test_generate_sweep_configs.py now locates the kept utils/matrix_logic/generate_sweep_configs.py shim by absolute path.
  • test_collect_eval_results.py imports infx.evals.{kimi_vendor_eval,minimax_provider_eval} instead of the bare evals.* shim modules; four eval tests drop their now-pointless sys.path.insert(utils/evals).
  • test_validate_perf_changelog.py patched the bare validate_perf_changelog module, which only resolved because utils/changelog_gate_tests/conftest.py put utils/ on sys.path for the whole session — running tests/ alone failed. It now patches infx.workflows.validate_perf_changelog.
  • infx/tests/pytest.ini mirrors utils/pytest.ini (pythonpath = ../..) so pytest infx/tests/... works standalone.
  • infx/ruff.toml excludes tests (the package's select = ["ALL"] ruleset is for library code), and pyproject.toml sets wheel-exclude = ["infx/tests"]: the built wheel ships 0 test files and still includes the 11 golden curves.
  • CI (ci.yml) now runs python -m pytest infx/tests/ utils/ runners/ ...; docs/testing*.md and docs/configuration-procedures*.md point at the new paths.

Test plan

  • CI command (infx/tests/ utils/ runners/ --ignore=utils/srt-slurm, CI extras): 1871 collected, 1851 passed, 6 skipped; the only 14 failures are test_pool_launcher_* (macOS bash 3 lacks mapfile) — identical to utils/ on origin/main (1851 passed, same 14).
  • pytest infx/tests/ alone: 1698 passed, same 14 macOS-only failures.
  • ruff check infx / ruff format --check infx clean; wheel contents checked; no stale references to old test paths outside perf-changelog.yaml.

🤖 Generated with Claude Code

functionstackx and others added 4 commits September 26, 2026 14:28
Removes the eight utils/ shims that nothing but their own legacy-entrypoint
tests and docs still used: aggregate_power, aggregate_power_multinode,
calc_success_rate, collect_eval_results, collect_results,
find_reusable_sweep_run, recover_failed_ingest and
validate_reusable_sweep_artifacts. Their tests now run the infx modules
directly, and docs point at python -m infx.<module>. Shims that workflows,
scripts, infx code or tests still use are kept.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Move 44 test files whose subject is an infx.* module from utils/ into a
top-level tests/ directory mirroring the infx package layout.  Tests
that exercise scripts/modules still in benchmarks/, runners/, or utils/
stay where they are.

Path fixes: parents[N] depth, with_name() shim reference, bare
evals.kimi_vendor_eval import -> infx.evals.kimi_vendor_eval, removed
stale sys.path.insert calls.

CI, docs/testing.md, docs/testing_zh.md, and
docs/configuration-procedures*.md updated to collect from tests/.

Co-Authored-By: Claude Opus 4.6 <[email protected]>
# Conflicts:
#	tests/results/power/test_aggregate_power.py
#	tests/results/test_collect_eval_results.py
#	tests/workflows/test_validate_reusable_sweep_artifacts.py
…ical name

tests/workflows/test_validate_perf_changelog.py monkeypatched the bare
validate_perf_changelog module, which only resolved while
utils/changelog_gate_tests/conftest.py put utils/ on sys.path; running
tests/ alone failed. Patch infx.workflows.validate_perf_changelog directly.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Tests of infx live beside the package. Repo-root depths gain one level,
ruff excludes infx/tests (tests keep the repository test style), and the
wheel excludes it via wheel-exclude so installs ship no test code.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
@functionstackx functionstackx changed the title [Klaud Cold] Move infx tests from utils/ to tests/ [Klaud Cold] Move infx tests from utils/ to infx/tests/ Sep 26, 2026
@functionstackx
functionstackx merged commit 1314bee into main Sep 26, 2026
4 checks passed
@functionstackx
functionstackx deleted the klaud/move-infx-tests branch September 26, 2026 19:10

@claude claude 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.

Looks good — this is a clean, well-executed test relocation with correctly adjusted path-depth logic and import fixes.

What was reviewed: the git-mv renames (verified several via git diff against old+new paths to confirm true renames, not new files), the non-mechanical fixes called out in the description (test_generate_sweep_configs.py's absolute-path shim lookup, test_collect_eval_results.py's infx.evals.* imports, test_validate_perf_changelog.py's patch target switched to infx.workflows.validate_perf_changelog), tests/pytest.ini vs utils/pytest.ini, and ci.yml's updated pytest invocation. Also checked for stray references to old test paths — none found outside the expected exception — and confirmed utils/changelog_gate_tests/conftest.py is still needed for the test that remains there.

Extended reasoning...

Pure test-relocation PR: 45 test files moved from utils/ to a new tests/ tree via git mv, plus small depth/import fixes, a new tests/pytest.ini, and doc/CI path updates. No production code paths (auth, crypto, data handling) are touched; the surface is entirely test infrastructure and CI config. Spot-checked several renamed files' actual diffs (not just the stat summary) and the described non-mechanical fixes, all matched the PR description exactly, and a repo-wide search found no leftover references to old test paths.

This review covers commit 729fb73, which is no longer the latest commit on this pull request; later commits are not covered by it.

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

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant