Skip to content

Commit

Permalink
test: a label that will cause a deep celery crash
Browse files Browse the repository at this point in the history
  • Loading branch information
Ned Batchelder committed Oct 19, 2023
1 parent 66e8c41 commit 476d3b8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions openedx_webhooks/tasks/pr_tracking.py
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,10 @@ def desired_support_state(pr: PrDict) -> PrDesiredInfo:
label_names = set(lbl["name"] for lbl in pr["labels"])
desired.jira_nicks = {name.partition(":")[-1] for name in label_names if name.startswith("jira:")}

if "crash!123" in label_names:
# Low-tech backdoor way to test error handling and reporting.
raise Exception(f"A crash label was applied by {user}")

desired.jira_title = pr["title"]
desired.jira_description = pr["body"] or ""

Expand Down

0 comments on commit 476d3b8

Please sign in to comment.