Fix Slack channel to use saas configured channel#3148
Fix Slack channel to use saas configured channel#3148openshift-merge-bot[bot] merged 2 commits intoopenshift:mainfrom
Conversation
|
There are test jobs defined for this repository which are not configured to run automatically. Comment |
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Repository YAML (base), Central YAML (inherited) Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
📝 Coding Plan
Comment Tip CodeRabbit can enforce grammar and style rules using `languagetool`.Configure the |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: YiqinZhang The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
69ebda8 to
cf88553
Compare
|
/pipeline required |
|
Scheduling required tests: |
pkg/e2e/e2e.go
Outdated
There was a problem hiding this comment.
Keeping parity with original logic in this prior to separating slack from log analysis:
Do we need one more conditional here so we skip this for suite level errors?
viper.GetString(config.Tests.TestSuites) == "" && viper.GetString(config.Tests.AdHocTestImages) == ""
There was a problem hiding this comment.
This case is handled in sendDeferredNotifications().
| Scenario | Per-suite notification | Global notification |
|---|---|---|
| No suites configured, test failed | None (queue empty) → false | Sent |
| No suites configured, test passed | None → false | Skipped (ExitCode == Success) |
| Suites configured, tests ran and failed | Sent → true | Skipped (deferredSent=true) |
| Suites configured, tests ran and passed | Sent → true | Skipped |
| Provision failed, suites configured | None (tests never ran) → false | Sent (fallback) |
cf88553 to
43ebf04
Compare
|
/test hypershift-pr-check |
|
I think this update is not fixing the issue of suite level slacks not going out. The pending collection of notifications is staying empty, because it's still dependent on llm enabled flag, and it's set to false. This is why test suite notifications(deferred) aren't going out. Slack should be independent of log analysis per https://issues.redhat.com/browse/SDCICD-1767. Continuing discussion in slack |
| if viper.GetBool(config.LogAnalysis.EnableAnalysis) { | ||
| runLogAnalysisForAdHocTestImage(ctx, logger, testSuite, combinedErr, exeConfig.OutputDir) | ||
| } else { | ||
| queueNotification(testSuite, "") | ||
| } |
There was a problem hiding this comment.
| if viper.GetBool(config.LogAnalysis.EnableAnalysis) { | |
| runLogAnalysisForAdHocTestImage(ctx, logger, testSuite, combinedErr, exeConfig.OutputDir) | |
| } else { | |
| queueNotification(testSuite, "") | |
| } | |
| // is this possible? | |
| additionalContent := "" | |
| if viper.GetBool(config.LogAnalysis.EnableAnalysis) { | |
| // get this returned from function | |
| additionalContent = runLogAnalysisForAdHocTestImage(ctx, logger, testSuite, combinedErr, exeConfig.OutputDir) | |
| } | |
| queueNotification(testSuite, additionalContent) | |
There was a problem hiding this comment.
This approach will work, with one suggestion for more concise flow.
481c386 to
f518093
Compare
f518093 to
c1963c5
Compare
|
/override ci/prow/hypershift-pr-check |
|
@ritmun: Overrode contexts on behalf of ritmun: ci/prow/hypershift-pr-check DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
|
@YiqinZhang: all tests passed! Full PR test history. Your PR dashboard. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
|
/lgtm |
|
related to SDCICD-1767 |
Fixes Slack notifications not being sent for ad-hoc test suite failures when LLM log analysis is disabled.
Decouple notification queueing from EnableAnalysis flag — queueNotification is always called on failure
sendFailureNotification uses SLACK_CHANNEL (SaaS parameter) directly for channel resolution
Per-suite and global notifications are mutually exclusive to prevent duplicates
Notification paths
SDCICD-1758