Skip to content

Avoid depending on the order of the configured project in a unit test#3023

Merged
bouweandela merged 9 commits intomainfrom
fix_test_recipe
Mar 25, 2026
Merged

Avoid depending on the order of the configured project in a unit test#3023
bouweandela merged 9 commits intomainfrom
fix_test_recipe

Conversation

@valeriupredoi
Copy link
Copy Markdown
Contributor

@valeriupredoi valeriupredoi commented Mar 20, 2026

Description

Order got mangled for some reason - you know why @bouweandela ?


Before you get started

Checklist

It is the responsibility of the author to make sure the pull request is ready to review. The icons indicate whether the item will be subject to the 🛠 Technical or 🧪 Scientific review.


To help with the number pull requests:

@bouweandela
Copy link
Copy Markdown
Member

Based on which tests are failing here: https://app.circleci.com/pipelines/github/ESMValGroup/ESMValCore?branch=main, it looks like something changed in a dependency. That test is a pain anyway, I've had to update it several times already. Maybe you could change it so it doesn't depend on the order of the projects and doesn't fail again when we add a another project?

@valeriupredoi
Copy link
Copy Markdown
Contributor Author

Based on which tests are failing here: https://app.circleci.com/pipelines/github/ESMValGroup/ESMValCore?branch=main, it looks like something changed in a dependency. That test is a pain anyway, I've had to update it several times already. Maybe you could change it so it doesn't depend on the order of the projects and doesn't fail again when we add a another project?

ah! Good call - I was suspecting it's a dependency, since we've not changed anything since yesterday 😁 Yes, let me have a closer look at it then

@valeriupredoi
Copy link
Copy Markdown
Contributor Author

@bouweandela ut's blithering Dask!

  - dask         2026.3.0  pyhc364b38_0  conda-forge     Cached
  + dask         2026.1.2  pyhcf101f3_1  conda-forge     Cached
  - dask-core    2026.3.0  pyhc364b38_0  conda-forge     Cached
  + dask-core    2026.1.2  pyhcf101f3_0  conda-forge     Cached
  - distributed  2026.3.0  pyhc364b38_0  conda-forge     Cached
  + distributed  2026.1.2  pyhcf101f3_1  conda-forge     Cached

aghh!

@valeriupredoi
Copy link
Copy Markdown
Contributor Author

OK @bouweandela the test is now dask-agnostic 🍺

@codecov
Copy link
Copy Markdown

codecov bot commented Mar 23, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 95.70%. Comparing base (69f2019) to head (ed0e567).
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #3023   +/-   ##
=======================================
  Coverage   95.70%   95.70%           
=======================================
  Files         267      267           
  Lines       15768    15768           
=======================================
  Hits        15090    15090           
  Misses        678      678           

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copy link
Copy Markdown
Member

@bouweandela bouweandela left a comment

Choose a reason for hiding this comment

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

Thanks V! Some suggestions to make this more future-proof

valeriupredoi and others added 2 commits March 24, 2026 12:11
Copy link
Copy Markdown
Member

@bouweandela bouweandela left a comment

Choose a reason for hiding this comment

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

Thanks V!

@bouweandela bouweandela merged commit 3730d98 into main Mar 25, 2026
4 checks passed
@bouweandela bouweandela deleted the fix_test_recipe branch March 25, 2026 09:41
@bouweandela bouweandela changed the title Fix order of available projects in test_recipe Avoid depending on the order of the configured project in a unit test Mar 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants