-
-
Notifications
You must be signed in to change notification settings - Fork 47
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
Importlib-resources 6.2.0 and 6.3.0 break pytest_rewrite with jsonschema and likely other packages #299
Labels
duplicate
This issue or pull request already exists
Comments
potiuk
added a commit
to apache/airflow
that referenced
this issue
Mar 13, 2024
New version of importlib_resources released today - 6.2.0 but also 6.3.0 released few hours later, break pytest_rewrite feature in rather unexpected ways. Until the problem is diagnosed and solved we should limit it. The issue is tracked in python/importlib_resources#299
We were just hit by that on the GDAL project: OSGeo/gdal@6703d30 |
Same with the Prefect project: https://github.com/PrefectHQ/prefect/actions/runs/8257621747/job/22588504279 |
2 tasks
drajguru
pushed a commit
to drajguru/airflow
that referenced
this issue
Mar 14, 2024
New version of importlib_resources released today - 6.2.0 but also 6.3.0 released few hours later, break pytest_rewrite feature in rather unexpected ways. Until the problem is diagnosed and solved we should limit it. The issue is tracked in python/importlib_resources#299
This issue is likely a duplicate of #298. |
potiuk
added a commit
to apache/airflow
that referenced
this issue
Mar 19, 2024
New version of importlib_resources released today - 6.2.0 but also 6.3.0 released few hours later, break pytest_rewrite feature in rather unexpected ways. Until the problem is diagnosed and solved we should limit it. The issue is tracked in python/importlib_resources#299 (cherry picked from commit 7ec2407)
kosteev
pushed a commit
to GoogleCloudPlatform/composer-airflow
that referenced
this issue
Jul 19, 2024
New version of importlib_resources released today - 6.2.0 but also 6.3.0 released few hours later, break pytest_rewrite feature in rather unexpected ways. Until the problem is diagnosed and solved we should limit it. The issue is tracked in python/importlib_resources#299 GitOrigin-RevId: 7ec2407e7f50251fff4359ffe7109dd8dc360f24
kosteev
pushed a commit
to GoogleCloudPlatform/composer-airflow
that referenced
this issue
Sep 20, 2024
New version of importlib_resources released today - 6.2.0 but also 6.3.0 released few hours later, break pytest_rewrite feature in rather unexpected ways. Until the problem is diagnosed and solved we should limit it. The issue is tracked in python/importlib_resources#299 GitOrigin-RevId: 7ec2407e7f50251fff4359ffe7109dd8dc360f24
kosteev
pushed a commit
to GoogleCloudPlatform/composer-airflow
that referenced
this issue
Nov 9, 2024
New version of importlib_resources released today - 6.2.0 but also 6.3.0 released few hours later, break pytest_rewrite feature in rather unexpected ways. Until the problem is diagnosed and solved we should limit it. The issue is tracked in python/importlib_resources#299 GitOrigin-RevId: 7ec2407e7f50251fff4359ffe7109dd8dc360f24
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Not sure exactly how to reproduce it, but I thought I should report it.
Importlb-resources 6.2.0 and 6.3.0 break how pytest_rewrite works in case of some asserts. I have a fully reproducible way of triggering it, though it's not a "minmum reproducible" case. The issue started to happen today after 6.2.0 release in Airflow CI and I narrowed it down and reproduced it, but I am not sure how to reproduce it "easily".
The steps I have now:
> git clone git@github.com:apache/airflow.git
> git checkout 72d19565d84744b59f3d22b32c09ab5fc553b779
breeze
sub-project (develipment environment of Airflow). Make sure to install latest versions of packages> pip install -e ./dev/breeze --uppgrade --upgrade-strategy eager
Check importlib_resources version:
Observe many tests failing (stack trace below)
Running
pytest test
produces the same errorRunning
pytest test
succeeds.It looks like some changes in importlib_resources interfere with some of the assert-rewrite mechanims that pytest uses.
Example stack trace:
The text was updated successfully, but these errors were encountered: