-
Notifications
You must be signed in to change notification settings - Fork 292
CP-46060/feature/py3: Support running tests locally before pushing to GitHub #5622
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
CP-46060/feature/py3: Support running tests locally before pushing to GitHub #5622
Conversation
c1202cb
to
a7b83e7
Compare
Signed-off-by: Bernhard Kaindl <bernhard.kaindl@cloud.com>
Signed-off-by: Bernhard Kaindl <bernhard.kaindl@cloud.com>
Signed-off-by: Bernhard Kaindl <bernhard.kaindl@cloud.com>
Signed-off-by: Bernhard Kaindl <bernhard.kaindl@cloud.com>
Thanks a lot for Bernhard's work. I was doing similar work in my private repo trying to sync CI changes in the master to the feature branch. |
a7b83e7
to
b747121
Compare
I would prefer if master was merged to feature/py3, then add the necessary patches on top (like the pytype and pyright fixes) |
On a personal note:
I was hoping that the Python3 branch would be a branch that is rebased on top of master using But as branches that start with |
Unfortunately this won't work. Having merges is the only way we know all the commits in the feature branch have been double-reviewed when merging the feature branch into master. This is because github doesn't have an easy way to add the reviewed-by metadata to commits Otherwise maintainers are forced to re-review all the commit in a long branch, again, wasting quite a bit of time. |
I got out of sync, and did not know that master had many of those updates and that these weren't merged into feature/py3. I assumed that @stephenchengCloud would do regular merges of master into feature/py3. I could wait for that to be done, but I'd like to complete my assignment of finishing CA-390883, where I was asked to rebase this to feature/py3. |
My preference would be the responsibility to merge these changes to be transferred over to stephen and other working on the python3 feature so they can prioritise this to make it contributions easier as they see fit. From the maintenance point of view I merged the aspects of the CI that I thought were more pressing. I don't think it makes sense for you to wait on others and see when you can contribute this, I recommend you to close the ticket as done, as most of you contributions are already benefitting xen-api. |
Thanks, I gladly accept the recommended transfer of the responsibility to merge these changes to @stephenchengCloud so they can prioritise this to make it contributions easier as they see fit as preferred!
Thanks, I'm glad! I'll close CA-390883 that was about updating the old PRs as done as recommended! |
Thanks @bernhardkaindl and @psafont for the discussion. I will do the syncing and include changes of this PR. Updated: |
Thanks, merged with #5641. |
Hi,
this is the 2nd PR in this series for CP-46060 (Update Xapi GitHub CI & test to use py3 only):
feature/py3
:Summary:
Move the setup for running
pytest
from.github/workflows/main.yml
topyproject.toml
and.pre-commit-config.yaml
, to make it easy to run all tests locally using pre-commit (see below).Details:
pytest
from a.github/workflows
topyproject.toml
.pip install pre-commit;pre-commit run -av
.pylint
andpyright
warnings in python3/.mypy
and static analysis (only a few)Minor points also addressed:
expected_to_fail
as we are now focusing on thepython3/
tree infeature/py3
branch.