-
Notifications
You must be signed in to change notification settings - Fork 19
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
add integration tests for pip wheels #504
add integration tests for pip wheels #504
Conversation
c93baf4
to
f67d006
Compare
43a709f
to
fdfa3b6
Compare
I am not sure about e2e test. The build uses wheels from Should I remove |
fdfa3b6
to
17128ac
Compare
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.
I'm okay with the change with a small nitpick and a question on the e2e test.
Also, we should probably include an update to the existing references to the now-nonexistent https://github.com/cachito-testing/cachito-pip-without-metadata.git repository.
I think this is the wrong way to think about this. If we purposefully leave out build requirements then it's IMO not a valid e2e test. Instead, I think we need an e2e test that requires |
17128ac
to
34d7bb3
Compare
34d7bb3
to
f028743
Compare
I updated the test data so it reflects #508 |
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.
Have we covered all of the test cases listed in the story description? Specifically the ones related to hashes and the one about testing a build that requires wheels?
about testing a build that requires wheels
I thought the e2e test might cover this, but it appears to pass with or without allow_binary
tests/integration/test_data/pip_no_sdists/fetch_deps_sha256sums.json
Outdated
Show resolved
Hide resolved
0a6bc82
to
1d75567
Compare
I think so, except hash checking is/isn't used. I just can't find a distribution package, that does not report hashes. |
1d75567
to
a41cdd7
Compare
Yep, agreed. AFAUI, it's a baked-in part of the PyPi API - the only way you'd get a request reply without a checksum would be someone spoofing you (or maybe if you're not talking to PyPi but rather some other index, but even then I'm not certain).
This should read "we should NOT download the package" - no hashes at all = no download. |
a41cdd7
to
b0c3239
Compare
@slimreaper35 I don't see any update to the e2e tests really, so what is your stance on #504 (comment) as you haven't replied there really whether you agree or disagree with that argument and this PR then got stuck. From my POV in this case it makes sense having a single e2e test that would test both wheels and sdists at the same time, why? Because fetching is what we really only care about and since we've taken care of testing fetches in different scenarios now we just need to make sure that whatever we fetched can be built with. |
ce01911
to
06d216f
Compare
Update (finally):
|
Yes we should have such a test. In fact, you had two in earlier revisions, but for some reason you dropped it here: https://github.com/containerbuildsystem/cachi2/compare/ce01911eb42de201fd4d9507ad9d3a46114c23ba..06d216f8de883042e36bbbe47f29a0e452ccf5f8#diff-e4d828af95a3a935bef8644268aee7ff4190648a95b7a401e91a65dbebb9a206L99, any particular reason for that? IIRC I even emphasized the importance of those isolated fail cases here: #504 (comment) |
06d216f
to
f79e928
Compare
testing repository: https://github.com/cachito-testing/cachi2-pip-wheels Signed-off-by: Michal Šoltis <msoltis@redhat.com>
f79e928
to
e02e0e7
Compare
0258190
testing repository:
https://github.com/cachito-testing/cachi2-pip-wheels
Maintainers will complete the following section
Note: if the contribution is external (not from an organization member), the CI
pipeline will not run automatically. After verifying that the CI is safe to run:
/ok-to-test
(as is the standard for Pipelines as Code)