Skip to content

grp is no longer imported unconditionally#6804

Merged
auvipy merged 2 commits into
masterfrom
fix-check-platform-on-nonunix
Jun 9, 2021
Merged

grp is no longer imported unconditionally#6804
auvipy merged 2 commits into
masterfrom
fix-check-platform-on-nonunix

Conversation

@thedrow

@thedrow thedrow commented Jun 6, 2021

Copy link
Copy Markdown
Contributor

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

Description

This fixes a regression introduced in #6600 which caused an import error on non-Unix platforms.

Fixes #6797.

This fixes a regression introduced in #6600 which caused an import error on non-unix platforms.

Fixes #6797.
@thedrow

thedrow commented Jun 6, 2021

Copy link
Copy Markdown
Contributor Author

@voegtlel Could you please verify this patch works for you?

@codecov

codecov Bot commented Jun 6, 2021

Copy link
Copy Markdown

Codecov Report

Merging #6804 (e92bd07) into master (799f839) will increase coverage by 0.00%.
The diff coverage is 100.00%.

❗ Current head e92bd07 differs from pull request most recent head 6b31c52. Consider uploading reports for the commit 6b31c52 to get more accurate results
Impacted file tree graph

@@           Coverage Diff           @@
##           master    #6804   +/-   ##
=======================================
  Coverage   70.69%   70.70%           
=======================================
  Files         138      138           
  Lines       16602    16603    +1     
  Branches     2091     2092    +1     
=======================================
+ Hits        11737    11739    +2     
+ Misses       4669     4668    -1     
  Partials      196      196           
Flag Coverage Δ
unittests 70.70% <100.00%> (+<0.01%) ⬆️

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

Impacted Files Coverage Δ
celery/platforms.py 68.97% <100.00%> (+0.33%) ⬆️

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 799f839...6b31c52. Read the comment docs.

@thedrow

thedrow commented Jun 6, 2021

Copy link
Copy Markdown
Contributor Author

The test doesn't seem to cover our new code branch.
Any suggestions on how to make the modules disappear?

@lgtm-com

lgtm-com Bot commented Jun 6, 2021

Copy link
Copy Markdown

This pull request introduces 1 alert and fixes 1 when merging 03c58fe into 799f839 - view on LGTM.com

new alerts:

  • 1 for Unused import

fixed alerts:

  • 1 for Module is imported with 'import' and 'import from'

Comment thread t/unit/utils/test_platforms.py Outdated
@maybe-sybr

Copy link
Copy Markdown
Contributor

The change itself lgtm

@thedrow
thedrow force-pushed the fix-check-platform-on-nonunix branch from e92bd07 to 6b31c52 Compare June 8, 2021 13:29
@thedrow
thedrow requested a review from maybe-sybr June 8, 2021 13:41
@lgtm-com

lgtm-com Bot commented Jun 8, 2021

Copy link
Copy Markdown

This pull request introduces 1 alert and fixes 2 when merging 6b31c52 into 51634c3 - view on LGTM.com

new alerts:

  • 1 for Unused import

fixed alerts:

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

@maybe-sybr maybe-sybr left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

lgtm - not sure on milestone so I'll leave it for one of you to merge for now

@auvipy
auvipy merged commit d9d8250 into master Jun 9, 2021
@auvipy

auvipy commented Jun 9, 2021

Copy link
Copy Markdown
Member

should be on 5.1.1 as it fixes a regression O:)

maybe-sybr added a commit to mjhoffman65/celery that referenced this pull request Jun 9, 2021
Also fix some flakes which may have been added by some other
autoformatter in celery#6804. The 4 space non-visual-indentation should keep
most formatters fairly happy.
maybe-sybr added a commit to mjhoffman65/celery that referenced this pull request Jun 9, 2021
Also fix some flakes which may have been added by some other
autoformatter in celery#6804. The 4 space non-visual-indentation should keep
most formatters fairly happy.
maybe-sybr added a commit to mjhoffman65/celery that referenced this pull request Jun 9, 2021
Also fix some flakes which may have been added by some other
autoformatter in celery#6804. The 4 space non-visual-indentation should keep
most formatters fairly happy.
@thedrow
thedrow deleted the fix-check-platform-on-nonunix branch June 9, 2021 11:17
@auvipy auvipy added this to the 5.1.x milestone Jun 15, 2021
thedrow pushed a commit that referenced this pull request Jun 27, 2021
* installs packages the same way docker does

* removes couchbase dependency for PyPy

* removes ephem dependency for PyPy

* fixes mongo unit tests for PyPy3

Mocking `datetime.datetime` was causing an issue with
`datetime.utcnow()`.  This mock doesn't appear to be needed.
See https://github.com/celery/celery/pull/6635/checks?check_run_id=1944166896.

* fix: Avoid shadowing `Thread` attributes

Fixes #6489

* ci: Install default deps for pypy3 toxenvs

* ci: Run unit tests with `tox`

* ci: Lint source in separate action using `tox`

* ci: Redent codecov action

* test: Rework some mocking in `test_platforms.py`

Also fix some flakes which may have been added by some other
autoformatter in #6804. The 4 space non-visual-indentation should keep
most formatters fairly happy.

* style: Fix some flakes

Co-authored-by: maybe-sybr <[email protected]>
thedrow added a commit that referenced this pull request Jun 27, 2021
* grp is no longer imported unconditionally.

This fixes a regression introduced in #6600 which caused an import error on non-unix platforms.

Fixes #6797.

* Adjust tests to cover the new code paths.
thedrow pushed a commit that referenced this pull request Jun 27, 2021
* installs packages the same way docker does

* removes couchbase dependency for PyPy

* removes ephem dependency for PyPy

* fixes mongo unit tests for PyPy3

Mocking `datetime.datetime` was causing an issue with
`datetime.utcnow()`.  This mock doesn't appear to be needed.
See https://github.com/celery/celery/pull/6635/checks?check_run_id=1944166896.

* fix: Avoid shadowing `Thread` attributes

Fixes #6489

* ci: Install default deps for pypy3 toxenvs

* ci: Run unit tests with `tox`

* ci: Lint source in separate action using `tox`

* ci: Redent codecov action

* test: Rework some mocking in `test_platforms.py`

Also fix some flakes which may have been added by some other
autoformatter in #6804. The 4 space non-visual-indentation should keep
most formatters fairly happy.

* style: Fix some flakes

Co-authored-by: maybe-sybr <[email protected]>
jeyrce pushed a commit to jeyrce/celery that referenced this pull request Aug 25, 2021
* grp is no longer imported unconditionally.

This fixes a regression introduced in celery#6600 which caused an import error on non-unix platforms.

Fixes celery#6797.

* Adjust tests to cover the new code paths.
jeyrce pushed a commit to jeyrce/celery that referenced this pull request Aug 25, 2021
* installs packages the same way docker does

* removes couchbase dependency for PyPy

* removes ephem dependency for PyPy

* fixes mongo unit tests for PyPy3

Mocking `datetime.datetime` was causing an issue with
`datetime.utcnow()`.  This mock doesn't appear to be needed.
See https://github.com/celery/celery/pull/6635/checks?check_run_id=1944166896.

* fix: Avoid shadowing `Thread` attributes

Fixes celery#6489

* ci: Install default deps for pypy3 toxenvs

* ci: Run unit tests with `tox`

* ci: Lint source in separate action using `tox`

* ci: Redent codecov action

* test: Rework some mocking in `test_platforms.py`

Also fix some flakes which may have been added by some other
autoformatter in celery#6804. The 4 space non-visual-indentation should keep
most formatters fairly happy.

* style: Fix some flakes

Co-authored-by: maybe-sybr <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ModuleNotFoundError: No module named 'grp'

3 participants