-
Notifications
You must be signed in to change notification settings - Fork 7.8k
ci: Improve Slack notifications for nightly build status #10244
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
base: main
Are you sure you want to change the base?
Conversation
…frontend and backend test results in the notification logic.
Important Review skippedAuto incremental reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the WalkthroughUpdates the GitHub Actions nightly workflow to adjust the Slack notification job: expands its dependencies to include frontend and backend tests, refines the job-level condition using always(), and updates success/failure step conditions to account for outcomes across the three prerequisite jobs. Changes
Sequence Diagram(s)sequenceDiagram
autonumber
actor GH as GitHub Actions Runner
participant FE as frontend-tests
participant BE as backend-unit-tests
participant REL as release-nightly-build
participant SLK as slack-notification
GH->>FE: Run job
GH->>BE: Run job
GH->>REL: Run job
Note over SLK: needs: FE, BE, REL<br/>if: always() with combined checks
FE-->>GH: result (success/failure/skipped)
BE-->>GH: result (success/failure/skipped)
REL-->>GH: result (success/failure)
GH->>SLK: Evaluate job condition
alt Any failure among FE/BE/REL
SLK->>Slack: Send failure notification
else REL success AND FE, BE are success or skipped
SLK->>Slack: Send success notification
else Other outcomes
SLK->>Slack: No notification sent
end
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Suggested labels
Suggested reviewers
Pre-merge checks and finishing touches✅ Passed checks (7 passed)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
…tter assertion capabilities 💡 (Basic Prompting.spec.ts): add a temporary test to check assertion functionality
… on specific job results
…ertion to improve test readability and maintainability
…d improve test stability 📝 (actionsMainPage-shard-1.spec.ts): Add expect statement to intentionally fail a test for demonstration purposes
Codecov Report✅ All modified and coverable lines are covered by tests. ❌ Your project check has failed because the head coverage (48.71%) is below the target coverage (55.00%). You can increase the head coverage or adjust the target coverage. Additional details and impacted files@@ Coverage Diff @@
## main #10244 +/- ##
=======================================
Coverage 24.76% 24.76%
=======================================
Files 1090 1090
Lines 40108 40108
Branches 5550 5550
=======================================
Hits 9934 9934
Misses 30003 30003
Partials 171 171
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
… on CI environment ♻️ (actionsMainPage-shard-1.spec.ts): remove unnecessary import and assertion in test case
…y depend on the release-nightly-build job result
|
* 🔧 (nightly_build.yml): Update Slack notification workflow to include frontend and backend test results in the notification logic. * ✅ (Basic Prompting.spec.ts): add expect function to test suite for better assertion capabilities 💡 (Basic Prompting.spec.ts): add a temporary test to check assertion functionality * 🔧 (nightly_build.yml): update Slack notification condition to trigger on specific job results * ✨ (Basic Prompting.spec.ts): remove unnecessary expect import and assertion to improve test readability and maintainability * ✨ (playwright.config.ts): Set retries to 0 to disable test retries and improve test stability 📝 (actionsMainPage-shard-1.spec.ts): Add expect statement to intentionally fail a test for demonstration purposes * 🔧 (playwright.config.ts): update retries configuration to retry tests on CI environment ♻️ (actionsMainPage-shard-1.spec.ts): remove unnecessary import and assertion in test case * 🔧 (nightly_build.yml): Simplify success notification condition to only depend on the release-nightly-build job result
This pull request updates the Slack notification logic in the nightly build workflow to provide more accurate reporting of build status. Notifications will now consider the results of both frontend and backend tests, in addition to the release build, ensuring that failures and successes are communicated only when all relevant jobs have completed.
Workflow notification improvements:
slack-notification
job now depends onfrontend-tests
andbackend-unit-tests
jobs, in addition torelease-nightly-build
, so notifications reflect the status of all critical jobs.release-nightly-build
,frontend-tests
, orbackend-unit-tests
) fail, rather than only the release build.Summary by CodeRabbit