Skip to content
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

Merged
merged 9 commits into from Jul 25, 2021
Merged

Update Cirrus Configs #450

merged 9 commits into from Jul 25, 2021

Conversation

abravalheri
Copy link
Collaborator

@abravalheri abravalheri commented Jun 2, 2021

This PR started as an experiment regarding #449, but evolved to some general CirrusCI config updates.


Original issue:

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.

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

@abravalheri

This comment has been minimized.

@coveralls
Copy link

coveralls commented Jun 3, 2021

Pull Request Test Coverage Report for Build 5826022579896320

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 97.281%

Totals Coverage Status
Change from base Build #650: 0.0%
Covered Lines: 1630
Relevant Lines: 1662

💛 - Coveralls

@abravalheri abravalheri added the waiting external dependency Blocked since it requires changes/information from external dependencies label Jun 4, 2021
@abravalheri abravalheri force-pushed the issue-449 branch 2 times, most recently from 91110f8 to 07ca37e Compare July 22, 2021 20:28
@abravalheri abravalheri force-pushed the issue-449 branch 3 times, most recently from 8c7839f to 8d4da86 Compare July 23, 2021 01:18
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)
Copy link
Collaborator Author

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}
Copy link
Collaborator Author

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%
Copy link
Collaborator Author

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"
Copy link
Collaborator Author

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"}
Copy link
Collaborator Author

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"}
Copy link
Collaborator Author

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
Copy link
Collaborator Author

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
Copy link
Collaborator Author

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

Copy link
Collaborator Author

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.

@abravalheri abravalheri changed the title [WIP] Attempt to fix #449 Update Cirrus Configs Jul 24, 2021
@abravalheri abravalheri marked this pull request as ready for review July 24, 2021 19:50
abravalheri added a commit to pyscaffold/ci-tester that referenced this pull request Jul 25, 2021
@abravalheri
Copy link
Collaborator Author

Changes in the generated project are verified in pyscaffold/ci-tester#2

@FlorianWilhelm
Copy link
Member

Looks really good and thanks for all the comments in this PR.

@abravalheri abravalheri removed the waiting external dependency Blocked since it requires changes/information from external dependencies label Jul 25, 2021
@abravalheri abravalheri merged commit c77dbf7 into master Jul 25, 2021
@abravalheri abravalheri deleted the issue-449 branch July 25, 2021 20:58
@abravalheri
Copy link
Collaborator Author

Thank you very much @FlorianWilhelm

abravalheri added a commit to pyscaffold/ci-tester that referenced this pull request Jul 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants