Skip to content

fix: restore resolve_data_path and skip JAX tests in FAST_CI#78

Open
lee101 wants to merge 1 commit intomainfrom
codex/503-fix-ci-lee101-stock-prediction
Open

fix: restore resolve_data_path and skip JAX tests in FAST_CI#78
lee101 wants to merge 1 commit intomainfrom
codex/503-fix-ci-lee101-stock-prediction

Conversation

@lee101
Copy link
Copy Markdown
Owner

@lee101 lee101 commented Mar 27, 2026

Summary

  • Restore resolve_data_path in scripts/train_crypto_lora_sweep.py: the function was removed from the script but tests/test_train_crypto_lora_sweep.py still imported it, causing a collection-time ImportError that blocked the entire fast-unit-tests job. The function is re-added; it checks data_root/stocks/<symbol>.csv first (common mixed-hourly layout) then falls back to data_root/<symbol>.csv.

  • Skip JAX/Flax tests in FAST_CI: tests/test_jax_losses.py, tests/test_jax_policy.py, and tests/test_jax_trainer_wandboard.py import jax and flax which are not in requirements-ci.txt. These three files now appear in _FAST_CI_SKIP so pytest_ignore_collect bypasses them when FAST_CI=1.

Test plan

  • All 78 unit tests pass locally under full CI env vars (CI=1 FAST_CI=1 CPU_ONLY=1 FAST_SIMULATE=1 …)
  • tests/test_train_crypto_lora_sweep.py::test_resolve_data_path_supports_mixed_hourly_root passes
  • No collection errors remain in the fast-unit-tests run

🤖 Generated with Claude Code

Two root causes of the fast-unit-tests CI failure:

1. tests/test_train_crypto_lora_sweep.py imports resolve_data_path from
   scripts/train_crypto_lora_sweep but the function was removed from the
   script, causing a collection-time ImportError.  Add it back: it checks
   data_root/stocks/<symbol>.csv first (mixed-hourly layout) then falls
   back to data_root/<symbol>.csv.

2. tests/test_jax_{losses,policy,trainer_wandboard}.py import jax/flax
   which are not in requirements-ci.txt, so they fail to collect on
   GitHub-hosted runners.  Add all three to _FAST_CI_SKIP so
   pytest_ignore_collect bypasses them when FAST_CI=1.

All 78 unit tests now pass cleanly under the CI environment variables.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@lee101
Copy link
Copy Markdown
Owner Author

lee101 commented Mar 27, 2026

Codex Infinity
Hi! I'm Codex Infinity, your coding agent for this repo.

Start a task on this PR's branch by commenting:

Tasks and logs: https://codex-infinity.com

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.

1 participant