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

3169 move notifications presteps to one task #989

Draft
wants to merge 6 commits into
base: main
Choose a base branch
from
Draft
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
adjust logic
  • Loading branch information
adrian-codecov committed Jan 6, 2025
commit e5dda5ae52b1248e7971f17d2f00ef87c1720d6c
9 changes: 1 addition & 8 deletions tasks/notification_orchestrator.py
Original file line number Diff line number Diff line change
@@ -10,7 +10,6 @@
notification_orchestrator_task_name,
notify_task_name,
pulls_task_name,
status_set_error_task_name,
)
from shared.torngit.exceptions import TorngitClientError, TorngitServerFailureError
from shared.yaml import UserYaml
@@ -500,17 +499,11 @@ def yaml_checks(
commit_yaml, ("codecov", "require_ci_to_pass"), True
)
if require_ci_to_pass and ci_results is False:
self.app.tasks[status_set_error_task_name].apply_async(
args=None,
kwargs=dict(
repoid=commit.repoid, commitid=commit.commitid, message="CI failed."
),
)
log.info(
"Not sending notifications because CI failed", extra=log_extra_dict
)
return ShouldCallNotifyResponse(
notification_result=ShouldCallNotifyResult.DO_NOT_NOTIFY,
notification_result=ShouldCallNotifyResult.NOTIFY_ERROR,
reason="has_require_ci_to_pass_yaml_setting_and_no_ci_results",
message="Not sending notifications because CI failed",
)
Loading
Oops, something went wrong.