Skip to content

Unit tests failing since Jan 6th #2750

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

Closed
jonwzheng opened this issue Jan 14, 2025 · 7 comments
Closed

Unit tests failing since Jan 6th #2750

jonwzheng opened this issue Jan 14, 2025 · 7 comments

Comments

@jonwzheng
Copy link
Contributor

jonwzheng commented Jan 14, 2025

Description

Unit tests have been failing since January 6th. Notably, neither RMG-Py and RMG-database have had recent new commits - the last ones were in December.
Last successful CI: https://github.com/ReactionMechanismGenerator/RMG-Py/actions/runs/12617937457

First failing CI: https://github.com/ReactionMechanismGenerator/RMG-Py/actions/runs/12629122576

Edit: Chemprop is also having failures since Jan 6th (chemprop/chemprop#1145) so more likely than not it is related to the runners or some meta-aspect of how we are conducting the CI. turns out this was something completely unrelated

3 tests are failing:

FAILED test/rmgpy/molecule/groupTest.py::TestGroup::test_repr_png - AssertionError: 1
FAILED test/rmgpy/tools/fluxdiagramTest.py::FluxDiagramTest::test_avi_simple - AssertionError: 1
FAILED test/rmgpy/tools/fluxdiagramTest.py::FluxDiagramTest::test_avi_liquid - AssertionError: 1

apparently all due to a graphviz failure, traceback:

Warning: Could not load "/home/runner/miniconda3/envs/rmg_env/lib/graphviz/libgvplugin_pango.so.6" - file not found
Warning: Could not load "/home/runner/miniconda3/envs/rmg_env/lib/graphviz/libgvplugin_pango.so.6" - file not found
Format: "png" not recognized. Use one of: bmp canon cmap cmapx cmapx_np dot eps fig gtk gv ico imap imap_np ismap jpe jpeg jpg pdf pic plain plain-ext png pov ps ps2 svg svgz tif tiff tk vml vmlz x11 xdot xdot1.2 xdot1.4 xlib

Troubleshooting steps so far

  • I verified that the mamba environments for both of the fail and success runs were the same. The runners were slightly different:
    Success run:
__glibc=2.35=0
__linux=6.5.0=0
Linux/6.5.0-1025-azure ubuntu/22.04.5 glibc/2.35

Fail run:

__glibc=2.39=0
__linux=6.8.0=0
Linux/6.8.0-1017-azure ubuntu/24.04.1 glibc/2.39

Could these subtle variations in runner be making a difference?

What to do next?

if anyone has any better ideas, please comment below.

  • Test manual run of unit-tests
  • investigate whether different runners could be causing this issue? maybe force runner type in CI?
@JacksonBurns
Copy link
Contributor

I ran into something similar to the 'pnbg' unit test failure while working on #2741 which I resolved by specifying - conda-forge::graphviz >=12 in the environment file. Notably the CI is still working in that PR. I will try adding this to that branch.

@JacksonBurns
Copy link
Contributor

Note that the version of graphviz we are using is from the rmg channel - it is 10+ major versions out of date, and presumably likely to have issues such as this one.

@JacksonBurns
Copy link
Contributor

@jonwzheng
Copy link
Contributor Author

jonwzheng commented Jan 15, 2025

I see, thanks Jackson this is helpful!
So the interesting thing was that the mamba environments in the past successful and failing runs are the exact same. Meaning something else about the CI changed.

I think the runners were updated on Jan 6th to use slightly different defaults and that might be causing the issues. For example the CI run you just linked has issues with libglib, and the Jan 6th++ runners use glibc/2.39 while the old ones use glibc/2.35 which might be the source of the issue. I guess we can either try to enforce the runner defaults as a stopgap, or try to use a newer graphviz version (hopefully doable...)

@JacksonBurns
Copy link
Contributor

Thanks for pointing that out - a likely culprit.

I have loosened the version requirement for graphviz in the hope that we can find a version which is compatible with our gblibc limits and still supports the PNG-related features: https://github.com/ReactionMechanismGenerator/RMG-Py/actions/runs/12793885598/job/35667738025

@JacksonBurns
Copy link
Contributor

Thanks for pointing that out - a likely culprit.

I have loosened the version requirement for graphviz in the hope that we can find a version which is compatible with our gblibc limits and still supports the PNG-related features: https://github.com/ReactionMechanismGenerator/RMG-Py/actions/runs/12793885598/job/35667738025

@jonwzheng this run hasn't completed yet, but passed the unit tests, so it seems like this fixes the issue 🤞

Can you clean up the commits and open a PR? Or maybe just tack it on to #2748 ?

@jonwzheng
Copy link
Contributor Author

@JacksonBurns nice work! I'll tack this onto #2748 and delete the fix_failing_ci branch. Thanks for the patch.

jonwzheng added a commit that referenced this issue Jan 15, 2025
see issue #2750. rmg channel for graphviz can lead to errors on some
configurations, which was previously causing CI/run failures
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

No branches or pull requests

2 participants