-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Reduce python APIv2 test net dependency #23538
Reduce python APIv2 test net dependency #23538
Conversation
Note to me: |
d2f757d
to
8cd4172
Compare
It looks to me we are running the docker-py tests (test/python/docker) twice. Once as separate task docker-py compat |
|
||
with open(os.path.join(reg_conf_source_path)) as file: | ||
conf = file.read() + reg_conf_sfx | ||
|
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.
if you feel like it below there is a bunch of CNI references that are not used at all anymore and could be dropped
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.
Okay, ya I was scratching my head on that. Maybe it's best done as a followup PR.
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.
agree, I found some other cni references as well so if I find some free time I might get around to nuke that stuff finally.
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.
Oh okay, thanks. I started on #23552 but it can't move forward until this merges (b/c of changesInclude()
updates). I have no close attachment to that PR if you have a mind to take on this effort, otherwise I'll continue as best I can after this merges.
8cd4172
to
6bb713b
Compare
Previously, if anyone touched these files no extra testing would trigger. However, basically all testing depends on them. Update the condition and test that verifies it. Signed-off-by: Chris Evich <[email protected]>
Previously these tests pulled some test images from quay, opening them up to networking-flake induced failures. As has already been done for other tests, update to utilize the locally running registry server. Also: Add `test/python/**` into the apiv2 task conditions as referenced by the `Makefile` `localapiv2-python` target. Signed-off-by: Chris Evich <[email protected]>
6bb713b
to
7936809
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.
LGTM
It looks to me we are running the docker-py tests (test/python/docker) twice. Once as separate task docker-py compat
make run-docker-py-tests and it also part of apiv2 test via make localapiv2-python.
This point is still open, I think we should just drop the docker-py task but that can happen in a another PR.
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: cevich, Luap99 The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
I think they're different:
One is testing the REST API the other is testing the interface used by docker-py IIRC. It's been a really long time since I worked on this setup w/ Jhon. Maybe he remembers better? |
/lgtm |
They are identical calls other than the versbose option which should not make difference
|
Ooohhhh, that's the one you were referring to. I thought it was the two items under |
Previously these tests pulled some test images from quay, opening them up to networking-flake induced failures. As has already been done for other tests, update to utilize the locally running registry server.
Also: Add
test/python/**
into the apiv2 task conditions as referencedby the
Makefile
localapiv2-python
target.This is a guess at fixing flakes like https://api.cirrus-ci.com/v1/artifact/task/6485548934627328/html/apiv2-podman-fedora-40-root-host-sqlite.log.html
But also an update these tests should receive regardless.
Does this PR introduce a user-facing change?