Skip to content

Fix failing CI tests#140

Merged
ammarcsj merged 1 commit into
mainfrom
fix_failing_ci_tests
May 25, 2026
Merged

Fix failing CI tests#140
ammarcsj merged 1 commit into
mainfrom
fix_failing_ci_tests

Conversation

@ammarcsj

Copy link
Copy Markdown
Member

Summary

  • requirements: add # test: tolerate_version comment to pandas<3 in requirements_loose.txt so the requirements test accepts the intentional upper-bound pin
  • test_cluster_missingval: update 5 tests to call the private _determine_missingval_test_level (renamed in an earlier PR) and assert its return value instead of the module global (global mutation was also removed)
  • test_diff_analysis: replace condbg.backgrounds[idx] (old list API) with condbg.ion2background[ions[idx]] (current dict API) in 2 tests
  • test_intensity_summarization: correct the test_asymmetric_conditions expectation — the implementation filters groups to ions present in both conditions, so Y4 (absent from c2) is excluded and c1 sums to log2(100) not log2(150)
  • test_residual_decorrelation: add import pytest and a pytest.skip guard in _load_reference_module when the local sandbox file is not available (file only exists in certain dev environments, not CI)

Test plan

  • All 10 previously failing tests now pass (9 pass, 1 skipped for the sandbox-only reference test)
  • No other tests regressed

🤖 Generated with Claude Code

- requirements_loose.txt: add test:tolerate_version comment to pandas<3
- test_cluster_missingval: call private _determine_missingval_test_level and
  assert its return value (function was made private and no longer sets global)
- test_diff_analysis: replace removed backgrounds[] list with ion2background dict
- test_intensity_summarization: update asymmetric_conditions expectation to
  log2(100) — implementation filters to ions present in both conditions
- test_residual_decorrelation: import pytest and skip when sandbox reference
  file is absent (not available in CI)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@ammarcsj ammarcsj changed the title Fix 10 failing CI tests Fix failing CI tests May 25, 2026
@ammarcsj ammarcsj merged commit c51c146 into main May 25, 2026
4 checks passed
@ammarcsj ammarcsj deleted the fix_failing_ci_tests branch May 25, 2026 11:43
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