-
-
Notifications
You must be signed in to change notification settings - Fork 198
Set up CI with Azure Pipelines #70
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
Conversation
|
I fixed 2to3 benchmark differently: Can you please rebase on top of that? |
|
I'm not sure that redirecting the output to "/dev/null" ("NUL" on Windows) has the same performance than using a pipe with Popen.communicate(). |
|
Note: bm_2to3.py used open(os.devnull, "wb") whereas pyperf uses open(os.devnull, 'w+', 0) (on Python 2). "w+" is needed because the same file is used to stdin and stdout.
What is the problem of the "b" in open(os.devnull, "wb")? |
070aa29 to
e29da37
Compare
Good question :/ I assumed some encoding issue and piping fixed it, but I tried locally now and I can't reproduce the error. The error though is still there in azure-pipelines with the rebase on top of your commit: https://dev.azure.com/lazka/pyperformance/_build/results?buildId=115 I'm a bit out of ideas. Should I drop testing with Python 2? |
Adds a job for Python 3.6/x86 and 3.7/x64 on Windows Server 2016.
Gave up on Python 2 and added a py3.6/x86 job instead -> https://dev.azure.com/lazka/pyperformance/_build/results?buildId=127 |
|
Oh, maybe the bench_command() method pyperf.Runner is simply broken on Windows with Python 2? I rarely do benchmarks on Windows. I'm fine with only starting with Python 3, it's better than having no test on Windows. Now I have another question: how can we get the CI integrated into GitHub? I don't see the Azure job in "All checks have passed" of this PR? |
|
@lazka: I added (invited) you as a collaborator to the project, since you seems to be eager to fix pyperformance issues :-) |
|
Thanks! As far as I see I can only add a pipeline once it finds a config in a branch of the repo. And even then I'm not sure if it doesn't require setting up from a repo owner, but it doesn't show me in the wizard right now (appveyor is a lot more flexible there.. but slower) I'll go ahead and merge this and try to register the repo with azure pipelines. |
|
Sadly it fails after trying to register it: So an owner of the repo needs to create a project on azure and add a build pipeline. |
|
@zooba can you register a CI pipeline on azure pipelines for this repo? |
How can I do that? |
|
https://www.azuredevopslabs.com/labs/azuredevops/github-integration During "Choose template" there should be an option to use the existing .yaml file in the repo instead. |
|
I've pushed an AppVeyor config to master, in case that is easier for you. |
|
FYI I still don't see any Windows CI on a new PR: #72 (if you click on Details, there is only Travis CI) |
|
I'm not a repo owner, so I can't connect it to appveyor. You'd have to do that. |
I changed your permissions to "Admins". Would you mind to try to enable the AppVeyor integration? |
Adds a job for Python 3.6/x86 and 3.7/x64 on Windows Server 2016.