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

Dynamic generate unit test matrix and add cache option #6043

Merged
merged 10 commits into from
Dec 22, 2023
Merged

Conversation

hoxbro
Copy link
Member

@hoxbro hoxbro commented Dec 21, 2023

This PR makes it possible to generate the test matrix based on inputs. The options are default, full, and downstream. The main pain point this is trying to solve is to reduce the load on our CI when a package is released by only running one OS and Python version in the unit test suite. This will need holoviz-dev/holoviz_tasks#31 to be merged and similar changes in our other repos.

Another problem is, as far as I can see, we also have a problem with downstream tests in general, where it would use the cache packages if the main branch had run before a release/dev-release from that day and, therefore, not install the latest package, making the downstream tests a bit inconsequential.

Example of downstream dispatch run (only 1 unit test suite is run):

image

Inspiration: https://iscinumpy.dev/post/cibuildwheel-2-10-0/#only

Note: In #6042, I wrongly assumed I needed to merge it into the main before I could test dispatch. The problem was missing inputs in workflow dispatch. I have reverted the change on the main branch and pushed it here for completeness' sake.

@hoxbro hoxbro added the type: maintenance infrastructure and maintenance of CI label Dec 21, 2023
@codecov-commenter
Copy link

codecov-commenter commented Dec 21, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (03eeb82) 88.65% compared to head (2fc9aa5) 88.65%.
Report is 2 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #6043   +/-   ##
=======================================
  Coverage   88.65%   88.65%           
=======================================
  Files         314      314           
  Lines       65688    65688           
=======================================
  Hits        58234    58234           
  Misses       7454     7454           
Flag Coverage Δ
ui-tests 23.67% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

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

@hoxbro hoxbro enabled auto-merge (squash) December 21, 2023 08:02
@hoxbro hoxbro disabled auto-merge December 21, 2023 08:09
@hoxbro hoxbro force-pushed the infrastructure2 branch 2 times, most recently from f459009 to c9d0164 Compare December 21, 2023 08:27
@hoxbro hoxbro changed the title Dynamic generate unit test matrix (2) Dynamic generate unit test matrix and add cache option Dec 21, 2023
@hoxbro hoxbro force-pushed the infrastructure2 branch 4 times, most recently from 187aa2f to 9e123a3 Compare December 21, 2023 11:29
Copy link

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 23, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type: maintenance infrastructure and maintenance of CI
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants