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
Update Cirrus Configs #450
Conversation
This comment has been minimized.
This comment has been minimized.
Pull Request Test Coverage Report for Build 5826022579896320
💛 - Coveralls |
91110f8
to
07ca37e
Compare
This is an attempt to fix #449 According to https://docs.coveralls.io/supported-ci-services There is a list of env variables that, when set, are supposed to add support to any arbitrary CI.
8c7839f
to
8d4da86
Compare
REQUESTS_CA_BUNDLE: '' | ||
CURL_CA_BUNDLE: '' | ||
# REQUESTS_CA_BUNDLE: '' | ||
# CURL_CA_BUNDLE: '' | ||
# ^ deactivate SSL checking to avoid error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:661) |
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.
For the time being this problem is problem is gone, so let's not bypass security verifications if we absolutely don't need to (I am leaving the code commented in the case we face the issue again in the future).
CI_BRANCH: ${CIRRUS_BRANCH} | ||
CI_PULL_REQUEST: ${CIRRUS_PR} | ||
CI_BUILD_NUMBER: ${CIRRUS_BUILD_ID} | ||
CI_BUILD_URL: https://cirrus-ci.com/build/${CIRRUS_BUILD_ID} |
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.
New feature I contributed to coveralls-python improving the quality of the reports.
(I also think this allows coveralls github bot to post a comment in the PR with coverage changes).
git reset --hard %CIRRUS_CHANGE_IN_REPO% | ||
git clone --recursive https://x-access-token:%CIRRUS_REPO_CLONE_TOKEN%@github.com/%CIRRUS_REPO_FULL_NAME%.git %CIRRUS_WORKING_DIR% & | ||
git fetch origin pull/%CIRRUS_PR%/head:pull/%CIRRUS_PR% & | ||
git reset --hard %CIRRUS_CHANGE_IN_REPO% |
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.
Added indentation to make it easer to spot the conditional
@@ -117,24 +124,24 @@ windows_task: | |||
tools_cache: | |||
folder: 'C:\tools' | |||
fingerprint_script: | |||
- ps: echo "$env:CIRRUS_OS - nuget v5.6.0 - git v2.27.0" | |||
- ps: echo "$env:CIRRUS_OS - nuget v5.10.0 - git 2.32.0.2" |
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.
Updated version of windows tools
- name: test (OS X) | ||
osx_instance: {image: "catalina-xcode"} | ||
macos_instance: {image: "big-sur-xcode"} |
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.
Updated version of OSX image
- name: test (Linux - Anaconda) | ||
container: {image: "continuumio/anaconda3:2019.03"} | ||
container: {image: "continuumio/anaconda3:2021.05"} |
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.
Updated conda version
name: typecheck (Linux - 3.8) | ||
container: {image: "python:3.8-buster"} # most recent => better type support | ||
name: typecheck (Linux - 3.9) | ||
container: {image: "python:3.9-buster"} # most recent => better type support |
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.
The most recent the version, the better type checking support 🤷♂️
- name: test (Linux - 3.10) | ||
allow_failures: true # Python version is not stable | ||
container: {image: "python:3.10-rc-buster"} | ||
install_script: *debian-install |
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.
3.10 is around the corner, so let's check it also.
) | ||
else: | ||
raise | ||
|
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.
As always, creating venvs inside virtualenvs inside conda envs is tricky... And when conda updates things break...
I think failures in this test case are acceptable. If the users has PyScaffold installed with conda, chances are they prefer to use conda envs instead of virtualenvs anyway.
Changes in the generated project are verified in pyscaffold/ci-tester#2 |
Looks really good and thanks for all the comments in this PR. |
Thank you very much @FlorianWilhelm |
This PR started as an experiment regarding #449, but evolved to some general CirrusCI config updates.
Original issue:
I have added these env vars to the cirrus config. They do improve the reports, but not remove the need for the token.
I have a workaround in mind that I will propose by commenting #449