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

Added configuration option to skip invalid packages #1705

Conversation

isohedronpipeline
Copy link
Contributor

This PR adds a configuration option to continue solving if an invalid or missing package file is found within a package folder.

Missing package files can happen if the package file itself is in git and the branch is changed. Changing branches does not remove empty directories without a clean operation. This can cause rez to break for any resolve.

Similarly, if any package file contains syntax that is not parseable by your version of python, rez will not resolve any environment at all. This can happen if your package files have f strings and you try to do a resolve in a python 2 environment, for example.

@isohedronpipeline isohedronpipeline force-pushed the ignore_invalid_packages branch from 9d793f6 to 6e68a26 Compare April 1, 2024 12:49
Copy link

codecov bot commented Apr 1, 2024

Codecov Report

Attention: Patch coverage is 42.85714% with 8 lines in your changes are missing coverage. Please review.

Project coverage is 58.23%. Comparing base (3c75a19) to head (6e68a26).

Files Patch % Lines
src/rez/package_resources.py 33.33% 4 Missing ⚠️
src/rez/packages.py 57.14% 3 Missing ⚠️
src/rez/rezconfig.py 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1705      +/-   ##
==========================================
- Coverage   58.25%   58.23%   -0.02%     
==========================================
  Files         126      126              
  Lines       17157    17168      +11     
  Branches     3504     3506       +2     
==========================================
+ Hits         9995     9998       +3     
- Misses       6496     6504       +8     
  Partials      666      666              

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

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