generated from thoth-station/template-project
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
Introduce Pillow380NewArraySieve prescription #49
Closed
pacospace
wants to merge
1
commit into
thoth-station:master
from
pacospace:introduce-prescriptionPillow380NewArraySieve
Closed
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
units: | ||
sieves: | ||
- name: Pillow380NewArraySieve | ||
type: sieve | ||
should_include: | ||
adviser_pipeline: true | ||
dependency_monkey_pipeline: true | ||
recommendation_types: | ||
- performance | ||
- security | ||
- stable | ||
- latest | ||
- test | ||
match: | ||
- package_version: | ||
name: pillow | ||
version: "3.8.0" | ||
index_url: "https://pypi.org/simple" | ||
run: | ||
log: | ||
message: "Pillow in version 3.8.0 introduced a new array that did not match all numpy array parameters." | ||
type: WARNING | ||
stack_info: | ||
- type: WARNING | ||
message: "Pillow in version 3.8.0 filtered out" | ||
link: pillow_380 |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we want to filter out
pillow==3.8.0
for all stacks or only for those that are running with specific numpy versions?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we run DM with a new script, to discover which versions are affected by the error
TypeError: __array__() takes 1 positional argument but 2 were given
? It seems the issue was introduced by Pillow, the logic in Numpy was there, but don't know since when.Maybe we can ask the community from Pillow. cc @t-vi @hugovk :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Any and all numpy versions.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thank you very much @t-vi!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As the issue is dependent on
numpy
presence, this should be turned into a step pipeline unit and corresponding pillow version should be filtered only based on numpy presence.https://thoth-station.ninja/docs/developers/adviser/prescription.html#steps
Otherwise, resolver will filter out all the pillow==3.8.0 versions, even for stacks that do not have the issue stated.