Skip to content

.github/workflows/ci.yml defines a CPU job (Python 3.12, ffmpeg, libsndfile) that installs the package and runs the fast - #3

Open
unohee wants to merge 1 commit into
mainfrom
goal/02-github-workflows-ci-yml-define
Open

unohee wants to merge 1 commit into
mainfrom
goal/02-github-workflows-ci-yml-define

Conversation

@unohee

@unohee unohee commented Nov 2, 2026

Copy link
Copy Markdown
Contributor

Milestone of an auto-claude run.

Check: ~/RTX_ENV/bin/python -c "import yaml; w=yaml.safe_load(open('.github/workflows/ci.yml')); s=open('.github/workflows/ci.yml').read(); assert 'pull_request' in s and 'push' in s and 'not slow' in s and 'ffmpeg' in s" && systemd-run --user --scope -q -p MemoryMax=6G ~/RTX_ENV/bin/python -m pytest -m "not slow" -q -p no:cacheprovider

Plan: .claude/auto-plan.md (local to the run).

GitHub Actions job on ubuntu-24.04 with Python 3.12, ffmpeg and libsndfile1.
Installs CPU-only torch/torchaudio, then the package with a new [test] extra
(pytest, librosa, onnx), and runs pytest -m "not slow".

Assumptions:
- push is limited to main; pull_request covers branch review, so PR branches
  are not tested twice.
- librosa and onnx go in a test extra rather than core dependencies: they are
  needed only by v1.2 diagnostic modules and their tests, not by the runner.
- Verified in a clean Python 3.12 venv with only these installs:
  325 passed, 4 skipped.
unohee added a commit that referenced this pull request Nov 2, 2026
… the CPU job (Python 3.12, ffmpeg, libsndfile1, lib (#6)

* ci: add CPU fast-suite workflow on push and pull_request

GitHub Actions job on ubuntu-24.04 with Python 3.12, ffmpeg and libsndfile1.
Installs CPU-only torch/torchaudio, then the package with a new [test] extra
(pytest, librosa, onnx), and runs pytest -m "not slow".

Assumptions:
- push is limited to main; pull_request covers branch review, so PR branches
  are not tested twice.
- librosa and onnx go in a test extra rather than core dependencies: they are
  needed only by v1.2 diagnostic modules and their tests, not by the runner.
- Verified in a clean Python 3.12 venv with only these installs:
  325 passed, 4 skipped.

* ci: install libchromaprint-tools so validate_audio finds fpcalc

PR #3 CI failed one test: tests/test_v12_audio.py::test_validator_reads_real_pcm
raised FileNotFoundError for 'fpcalc'. artifactbench/v12/validate_audio.py shells
out to fpcalc for Chromaprint fingerprints; on Ubuntu it ships in
libchromaprint-tools.

Assumption: install the tool rather than skip the test, since the validator
genuinely requires fpcalc.

* ci: make apt step non-interactive and bounded

Run 41477730145 sat in the apt install step for over 10 minutes (the earlier
run finished it in under a minute). Pass DEBIAN_FRONTEND=noninteractive to
apt-get explicitly and cap the step at 10 minutes so a hang fails fast.

Assumption: the stall was an interactive prompt or slow mirror, not a
missing package; libchromaprint-tools exists in Ubuntu 24.04 universe.

* ci: check documentation links and CLI flags after the fast suite

Runs scripts/check_docs.py (merged in #5) in CI so README/docs commands and
relative links stay in sync with the code.

Context: this branch re-delivers the CI workflow from PRs #3/#4 (cherry-picked
21b1f4e, 6b13cbb, 4b7685c onto origin/main) because ci.yml never reached main.
Assumption: check_docs runs after the suite, in the same job, since it needs the
installed package to run each documented program's --help.
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