Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[don't merge] Dummy PR raising pandas min version to v2 to test v2 in pathogen ci #1672

Closed
wants to merge 11 commits into from

Conversation

corneliusroemer
Copy link
Member

  • tests: add wrapper script parallel_cram.sh for parallel execution of cram tests
  • Allow iqtree tests to run in parallel by copying input data to each test's temp folder
  • Try running tests in parallel in ci to see if we get speedup
  • Fail more reliably
  • add changelog
  • chore(deps): make parse.fix_dates work with pandas >=2.2
  • remove debug prints
  • Support pandas v2 as well
  • Bump minimum pandas requirement to v2 to test v2 in CI

Description of proposed changes

Related issue(s)

Checklist

  • Automated checks pass
  • Check if you need to add a changelog message
  • Check if you need to add tests
  • Check if you need to update docs

…f cram tests

Cram tests are perfect for parallelization. Each test is independend and
we have 178 of them. The wrapper script allows to run tests in parallel.

In my experiments, on an M1 Pro, total test time was reduced
from 7m30s to 1m23s, a more than 5x speedup. I got best results
with `-j8` (instead of all 10).

The wrapper takes many of cram's options, one can still run tests of
a single directory, for example `./parallel_cram.sh tests/functional/tree`.

One caveat: it seems that iqtree creates files in the _input_ file directory.
So we should copy the input files to a temporary directory before running.
Copy link

codecov bot commented Nov 10, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 72.28%. Comparing base (2e993df) to head (9b3247b).
Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1672      +/-   ##
==========================================
+ Coverage   72.25%   72.28%   +0.02%     
==========================================
  Files          79       79              
  Lines        8276     8276              
  Branches     1691     1691              
==========================================
+ Hits         5980     5982       +2     
+ Misses       2011     2009       -2     
  Partials      285      285              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@corneliusroemer
Copy link
Member Author

Pathogen CI passes with v2.2.3 of pandas, nice!

Successfully installed cvxopt-1.3.2 nextstrain-augur-26.0.0 pandas-2.2.3 tzdata-2024.2

https://github.com/nextstrain/augur/actions/runs/11768011018/job/32777345497?pr=1672#step:5:76

@corneliusroemer corneliusroemer mentioned this pull request Nov 10, 2024
5 tasks
@corneliusroemer
Copy link
Member Author

This was really just to allow doing pathogen ci with pandas v2 @victorlin - and it passed 🎉

@corneliusroemer corneliusroemer mentioned this pull request Nov 12, 2024
4 tasks
@victorlin victorlin deleted the force-pandas-2-for-ci branch November 12, 2024 19:11
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