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

test: Improve use of test fixtures in integration tests #6773

Closed
wants to merge 12 commits into from

Conversation

maybe-sybr
Copy link
Contributor

@maybe-sybr maybe-sybr commented May 18, 2021

Description

Test suite improvements based on the time I spent in the canvas tests for #6770 . This
changeset is based on that PR but could be separated if necessary - TBH I think it's
easiest to just block merge of this on that one.

@maybe-sybr maybe-sybr added this to the 5.2 milestone May 18, 2021
@maybe-sybr maybe-sybr requested a review from auvipy May 18, 2021 04:25
@maybe-sybr maybe-sybr marked this pull request as draft May 18, 2021 04:25
@maybe-sybr
Copy link
Contributor Author

maybe-sybr commented May 18, 2021

Marking this as a draft to ensure we don't merge it prior to #6770 going in. The substantive diff is 1095f05...dfae402

@maybe-sybr
Copy link
Contributor Author

I've merged in the ci branch from #6649 to see if it runs these tests happily or not.

@maybe-sybr maybe-sybr self-assigned this May 18, 2021
@@ -71,3 +72,71 @@ jobs:
flags: unittests # optional
fail_ci_if_error: true # optional (default = false)
verbose: true # optional (default = false)


Integration:
Copy link
Member

Choose a reason for hiding this comment

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

this might need some adjustment, I will try to push them this week After my Eid vacation ends

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No rush, this won't go anywhere until after 5.1 anyway

@lgtm-com
Copy link

lgtm-com bot commented May 18, 2021

This pull request introduces 1 alert and fixes 1 when merging 7ff79f6 into 2411504 - view on LGTM.com

new alerts:

  • 1 for Unused import

fixed alerts:

  • 1 for Non-exception in 'except' clause

@@ -1,5 +1,4 @@
pytest-cov
pytest-travis-fold
Copy link
Member

Choose a reason for hiding this comment

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

Good idea.

@maybe-sybr
Copy link
Contributor Author

@thedrow - those diffs are from #6649 rather than my own changes. Probably best to transplant those comments over there for @auvipy / whoever picks that works up. My diff is just 1095f05...dfae402. Don't stress too much about this PR for the moment, I'll re-request review when it's cleaner and has a working base for integration tests in CI.

maybe-sybr and others added 6 commits June 16, 2021 14:15
This fixes some issues with worker shutdown taking too long when subsets
of the tests are run. There's probably a better way to do this but at
least this stops the errors.
These wouldn't be run because the class name was bad. Fixing that
exposed some breakage in the tests themselves which needed to be fixed.
Co-authored-by: Omer Katz <omer.drow@gmail.com>
@maybe-sybr maybe-sybr force-pushed the test/better-canvas-integration-fixtures branch from 0f38b75 to 64ee882 Compare June 16, 2021 04:15
@maybe-sybr
Copy link
Contributor Author

This has been rebased on top of current master but still merges in an old version of the ci branch up for merge in #6649

@codecov
Copy link

codecov bot commented Jun 16, 2021

Codecov Report

Merging #6773 (64ee882) into master (5d72aee) will increase coverage by 4.93%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #6773      +/-   ##
==========================================
+ Coverage   70.73%   75.66%   +4.93%     
==========================================
  Files         138      138              
  Lines       16605    16605              
  Branches     2094     2094              
==========================================
+ Hits        11745    12565     +820     
+ Misses       4663     3824     -839     
- Partials      197      216      +19     
Flag Coverage Δ
unittests 75.66% <ø> (+4.93%) ⬆️

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

Impacted Files Coverage Δ
celery/app/trace.py 98.60% <0.00%> (+0.27%) ⬆️
celery/result.py 58.01% <0.00%> (+0.40%) ⬆️
celery/platforms.py 69.48% <0.00%> (+0.51%) ⬆️
celery/app/utils.py 48.14% <0.00%> (+0.52%) ⬆️
celery/app/amqp.py 94.75% <0.00%> (+0.65%) ⬆️
celery/backends/base.py 93.35% <0.00%> (+0.68%) ⬆️
celery/utils/term.py 47.22% <0.00%> (+2.77%) ⬆️
celery/app/log.py 67.69% <0.00%> (+3.07%) ⬆️
celery/__init__.py 84.48% <0.00%> (+8.62%) ⬆️
celery/backends/redis.py 92.17% <0.00%> (+8.93%) ⬆️
... and 13 more

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 5d72aee...64ee882. Read the comment docs.

@lgtm-com
Copy link

lgtm-com bot commented Jun 16, 2021

This pull request introduces 1 alert when merging 64ee882 into 5d72aee - view on LGTM.com

new alerts:

  • 1 for Unused import

@auvipy auvipy modified the milestones: 5.2, 5.2.x Nov 4, 2021
@auvipy auvipy self-assigned this Nov 4, 2021
@naomielst naomielst mentioned this pull request Dec 6, 2021
4 tasks
@auvipy auvipy modified the milestones: 5.2.x, 5.3.x Apr 23, 2022
@auvipy auvipy closed this Jun 2, 2023
@auvipy auvipy modified the milestones: 5.3.x, 5.3 Jun 7, 2023
@auvipy auvipy deleted the test/better-canvas-integration-fixtures branch June 7, 2023 07:24
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.

None yet

3 participants