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 for automation checks #134

Merged
merged 2 commits into from
Jan 18, 2024
Merged

Conversation

maxfischer2781
Copy link
Member

This PR makes two automation related changes:

  • The linter flake8-bugbear recently added B036: "Don't except BaseException unless you plan to re-raise it." This triggered at two points in COBalD's runners which catch all exceptions from running user-specified functions. This PR ignores both reported instances, since we do re-raise the exception eventually.
  • The unittest and static test now also trigger on the merge_group event. This is required to run these tests when using a merge queue and ensure changes broken by other PRs are not merged.

@maxfischer2781 maxfischer2781 requested review from a team, mschnepf and RHofsaess and removed request for a team January 17, 2024 16:12
Copy link

codecov bot commented Jan 17, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (d72f0b1) 92.68% compared to head (a970d72) 92.68%.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #134   +/-   ##
=======================================
  Coverage   92.68%   92.68%           
=======================================
  Files          33       33           
  Lines        1108     1108           
  Branches      206      206           
=======================================
  Hits         1027     1027           
  Misses         59       59           
  Partials       22       22           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@@ -39,7 +39,7 @@
result = await payload()
except (asyncio.CancelledError, KeyboardInterrupt):
raise
except BaseException as e:
except BaseException as e: # noqa: B036

Check notice

Code scanning / CodeQL

Except block handles 'BaseException' Note

Except block directly handles BaseException.
@@ -36,7 +36,7 @@
def _monitor_payload(self, payload):
try:
result = payload()
except BaseException as e:
except BaseException as e: # noqa: B036

Check notice

Code scanning / CodeQL

Except block handles 'BaseException' Note

Except block directly handles BaseException.
Copy link
Member

@eileen-kuehn eileen-kuehn left a comment

Choose a reason for hiding this comment

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

Busy busy 🐝 Go for it!

Copy link
Member

@giffels giffels left a comment

Choose a reason for hiding this comment

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

LGTM!

Copy link
Member

@mschnepf mschnepf left a comment

Choose a reason for hiding this comment

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

Looks good to me. 👍 Make it so

@maxfischer2781 maxfischer2781 merged commit ff1d810 into master Jan 18, 2024
20 checks passed
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.

4 participants