Skip to content

🧪 Add smoke tests to CI pipeline#6

Merged
dariocazzani merged 6 commits into
masterfrom
feat/smoke_test
Jan 6, 2026
Merged

🧪 Add smoke tests to CI pipeline#6
dariocazzani merged 6 commits into
masterfrom
feat/smoke_test

Conversation

@dariocazzani
Copy link
Copy Markdown
Contributor

What does this PR do?

Adds robust smoke tests to the CI pipeline that verify the diffusion evolution algorithm is working correctly. The tests measure improvement ratio (how much closer the population gets to peaks) rather than using overly strict statistical checks that would make CI flaky.

Details

  • Simplify n_peaks.py smoke test by removing chi-square fairness check (too strict for CI)
  • Keep improvement ratio as the primary correctness gate (must achieve 2x improvement)
  • Migrate CI workflow from pip to uv for faster, reproducible builds
  • Add smoke test steps for 3-peak and 7-peak scenarios to CI pipeline
  • Clean up unused CLI arguments and helper functions

ayeganov and others added 6 commits November 21, 2025 14:40
- Remove chi-square fairness check that was too strict for CI purposes
- Keep improvement ratio as the primary correctness gate (start/end distance)
- Remove unused functions: nearest_peak_stats, chi_square_p_value, estimate_expected_peak_probs
- Clean up CLI args: remove --alpha, --min-expected, --fair-samples
- Replace pip with uv for faster, reproducible dependency management
- Add astral-sh/setup-uv@v4 action for uv installation
- Add smoke test steps for 3-peak and 7-peak scenarios
- Use uv run for pytest and smoke test execution
- Delete test_setup.py, test_day2.py, test_day3.py from repo root
- These were ad-hoc verification scripts, now superseded by proper tests
Copy link
Copy Markdown
Contributor

@ayeganov ayeganov left a comment

Choose a reason for hiding this comment

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

LGTM!

@dariocazzani dariocazzani merged commit d380d66 into master Jan 6, 2026
1 check passed
@ayeganov ayeganov deleted the feat/smoke_test branch January 7, 2026 01:39
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