Skip to content

create github action for windows#6271

Merged
thedrow merged 22 commits intocelery:masterfrom
graingert:create-github-action-for-windows
Jul 22, 2021
Merged

create github action for windows#6271
thedrow merged 22 commits intocelery:masterfrom
graingert:create-github-action-for-windows

Conversation

@graingert
Copy link
Copy Markdown
Contributor

an action to potentially replace appveyor, which seems a bit unreliable on cloning

Note: Before submitting this pull request, please review our contributing
guidelines
.

Description

@graingert
Copy link
Copy Markdown
Contributor Author

@auvipy sadly I think it needs merging into the default branch before it will run the actions on PRs

@graingert graingert force-pushed the create-github-action-for-windows branch from 4a3c620 to eaee165 Compare August 1, 2020 16:23
@graingert
Copy link
Copy Markdown
Contributor Author

ah you can see the windows status here: https://github.com/graingert/celery/pull/1/checks?check_run_id=935657081

@auvipy
Copy link
Copy Markdown
Member

auvipy commented Aug 1, 2020

this is better than appveyor

@graingert graingert force-pushed the create-github-action-for-windows branch 2 times, most recently from 4454dbb to 94148d7 Compare August 1, 2020 17:15
@graingert
Copy link
Copy Markdown
Contributor Author

this is better than appveyor

Yeah, I think so

@graingert
Copy link
Copy Markdown
Contributor Author

@auvipy I can remove appveyor in a follow-up

- name: Build
run: python setup.py bdist_wheel

- uses: actions/upload-artifact@v2
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@auvipy do we need this step? celery ships universal wheels so it seems redundant

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

seems redundant

@codecov
Copy link
Copy Markdown

codecov bot commented Aug 1, 2020

Codecov Report

Merging #6271 (c1fb8eb) into master (59d8832) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #6271   +/-   ##
=======================================
  Coverage   79.23%   79.23%           
=======================================
  Files         138      138           
  Lines       16616    16616           
  Branches     2098     2098           
=======================================
  Hits        13165    13165           
  Misses       3227     3227           
  Partials      224      224           
Flag Coverage Δ
unittests 79.23% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
celery/backends/asynchronous.py 60.64% <0.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 59d8832...c1fb8eb. Read the comment docs.

@graingert graingert force-pushed the create-github-action-for-windows branch from 94148d7 to b774139 Compare August 1, 2020 17:59
@graingert graingert force-pushed the create-github-action-for-windows branch from b774139 to 81d3184 Compare August 2, 2020 10:35
@graingert
Copy link
Copy Markdown
Contributor Author

graingert commented Aug 2, 2020

@auvipy also you get 4020 concurrent builds on decent hardware, rather than 4 potatoes

@graingert
Copy link
Copy Markdown
Contributor Author

@thedrow it feels like Github Actions is the spiritual successor to azure pipelines: https://docs.github.com/en/actions/migrating-to-github-actions/migrating-from-azure-pipelines-to-github-actions

@graingert
Copy link
Copy Markdown
Contributor Author

but to make this permanent in all of our repositories we need a CEP.

I've only made this a Windows job to celery/celery because only the AppVeyor celery/celery job is impacting me directly - I do think it's worth switching wholesale but I think this PR is a step forward either way.

auvipy
auvipy previously requested changes Nov 10, 2020
Copy link
Copy Markdown
Member

@auvipy auvipy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we try this as test purpose?

- name: Build
run: python setup.py bdist_wheel

- uses: actions/upload-artifact@v2
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

seems redundant

@auvipy auvipy self-assigned this Feb 6, 2021
@auvipy auvipy added this to the 5.2 milestone Feb 6, 2021
@graingert graingert closed this Jul 21, 2021
@graingert graingert reopened this Jul 21, 2021
@graingert
Copy link
Copy Markdown
Contributor Author

@graingert Would you mind setting it up so that if a wheel is not present in CI, it will still build the extension?

looks like a huge pain to do. I think removing pycurl and using a modern async client (httpx) is the only way here

@lgtm-com
Copy link
Copy Markdown

lgtm-com bot commented Jul 21, 2021

This pull request introduces 2 alerts and fixes 3 when merging bf8c2ff into c557c75 - view on LGTM.com

new alerts:

  • 1 for Non-exception in 'except' clause
  • 1 for Module is imported with 'import' and 'import from'

fixed alerts:

  • 2 for Missing call to `__init__` during object initialization
  • 1 for Unused import

@graingert
Copy link
Copy Markdown
Contributor Author

I'll xfail all these remaining failures and rebase away my mistakes shortly

@graingert graingert requested a review from auvipy July 21, 2021 12:19
@lgtm-com
Copy link
Copy Markdown

lgtm-com bot commented Jul 21, 2021

This pull request introduces 2 alerts and fixes 3 when merging 8b37458 into c557c75 - view on LGTM.com

new alerts:

  • 1 for Non-exception in 'except' clause
  • 1 for Module is imported with 'import' and 'import from'

fixed alerts:

  • 2 for Missing call to `__init__` during object initialization
  • 1 for Unused import

@graingert graingert force-pushed the create-github-action-for-windows branch from e99e39c to 8b37458 Compare July 21, 2021 16:00
@graingert
Copy link
Copy Markdown
Contributor Author

@auvipy I made an attempt to work around pycurl here and support py3.9, but it drifted too much from the original scope/goal of this PR.

This PR is actually ready for review and I don't plan to touch it again unless you request changes.

I'm continuing the py3.9+ work here: #6868

@lgtm-com
Copy link
Copy Markdown

lgtm-com bot commented Jul 22, 2021

This pull request introduces 2 alerts when merging c1fb8eb into 59d8832 - view on LGTM.com

new alerts:

  • 2 for Wrong name for an argument in a call

@thedrow thedrow merged commit bb80305 into celery:master Jul 22, 2021
@graingert graingert deleted the create-github-action-for-windows branch July 22, 2021 09:30
jeyrce pushed a commit to jeyrce/celery that referenced this pull request Aug 25, 2021
* create github action for windows

* increase tox verbosity

* configure pip caching/requirements

* Update .github/workflows/windows.yml

* define kombu sqs passthrough dep

* drop 3.9 from windows due to pycurl

* skip test_check_privileges_suspicious_platform[accept_content0] on win32, py38+

* fails on py38+ win32

* bump the maxfail a bit to get more error context

* xfail all py3.8+ windows tests

* re-enable -v

* pytest.raises does not raise AssertionError

pytest-dev/pytest#8928

* more xfails

* merge windows workflow into python-package

* only install apt packages on ubuntu-*

* bust pip cache with matrix.os

* step.if doesn't need {{

* Update python-package.yml

* Windows is never considerred a sus platform

this is because Microsft is beyond reproach

* fix merge resolution error
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.

2 participants