-
Notifications
You must be signed in to change notification settings - Fork 234
110353 add windows testing to python agent #726
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
110353 add windows testing to python agent #726
Conversation
|
Author of the following commits did not sign a Contributor Agreement: Please, read and sign the above mentioned agreement if you want to contribute to this project |
|
Author of the following commits did not sign a Contributor Agreement: Please, read and sign the above mentioned agreement if you want to contribute to this project |
|
Great stuff! This is in no way required, but would it be possible to always install the newest version of a certain I did a quick search for defining version ranges with Chocolatey, and from what I can tell it doesn't seem to be supported. So the answer to this might very well be "not possible" :) |
It is more a |
|
@kuisathaverat OK, thanks for the update. If it isn't easily solvable, I don't think it's worth the needed effort. Hardcoding the exact version numbers in |
…lls of python in logic
|
@beniwohli, @kuisathaverat and @ElWPenn , regarding installing the latest version for the given https://github.com/elastic/apm-agent-nodejs/pull/1393/files#diff-860c4fe077b91b560f207db63e491a6a I guess something like the above script could be modified potentially to search for I managed to create a PR with the proposal, see #730 |
|
@ElWPenn any chance you could set your git email to your elastic.co email to keep down the CLAchecker noise? Thanks :) |
…python2 vs python3
|
❌ Author of the following commits did not sign a Contributor Agreement: Please, read and sign the above mentioned agreement if you want to contribute to this project |
tests/scripts/install_modules.bat
Outdated
| @@ -0,0 +1,12 @@ | |||
| py -m pip install -U pytest | |||
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.
This list of install calls can be replaced by py -m pip install .\tests\requirements\requirements-base.txt I believe
| @@ -0,0 +1,10 @@ | |||
| call .\tests\scripts\install_chocolatey.bat | |||
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.
Will it be possible to add some docs/headers about how this particular script works, what arguments are required and what requirements are needed?
| @@ -0,0 +1,6 @@ | |||
| mkdir .\tests\tempFeatures | |||
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.
Will it be possible to add some docs/headers about how this particular script works, what arguments are required and what requirements are needed?
| @@ -0,0 +1,6 @@ | |||
| mkdir .\tests\tempFeatures | |||
| curl https://codeload.github.com/elastic/apm/zip/master -o .\tests\tempFeatures\features.zip | |||
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.
is codeload.github.com the official and supported URL?
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.
It's the URL they use when you click on the download button on the website. We use it for a long time already and never had problems (other than the occasional network glitch)
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 was not familiar with that particular entrypoint, then I searched and found that's not officially supported but some internal entrypoint which it could potentially be changed. The reference I found is below one:
We could potentially use curl -L https://github.com/elastic/apm/archive/master.zip to fetch the artifact, similar to what we do in the apm-integration-testing, what do you think?
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.
Sure, although I don't anticipate them changing those URLs anytime soon, they are mentioned in the docs, even if only as en example response: https://developer.github.com/v3/repos/contents/#get-archive-link
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.
It's not clear what they do support or not! Anyway, no strong opinion, up to @ElWPenn how to proceed then. I'm glad to know a bit more about this! Thanks Beni for the feedback
| @@ -0,0 +1 @@ | |||
| @"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command " [System.Net.ServicePointManager]::SecurityProtocol = 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))" && SET "PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin" No newline at end of file | |||
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.
Is this required? IIUC, the choco binary is available for the Windows CI Workers
tests/scripts/install_modules.bat
Outdated
| @@ -0,0 +1,12 @@ | |||
| %1 -m pip install -U pytest | |||
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.
Will it be possible to add some docs/headers about how this particular script works, what arguments are required and what requirements are needed?
| @@ -0,0 +1,8 @@ | |||
| SETLOCAL EnableDelayedExpansion | |||
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.
Will it be possible to add some docs/headers about how this particular script works, what arguments are required and what requirements are needed?
…llowing-downgrade suffices since we are renaming python to appropriate version
…t for executing pytest
… don't run or fail
…we are using 3.7.2 since it is already installed on the machine
…t losing error code from previous statement
|
This PR has been superseded with #746 |
What does this pull request do?
Adds additional tests for windows on different versions of python
Why is it important?
Resolves potential flakiness from Appveyor tests by deprecating them
Related issues
closes