generated from shayancoin/aieng-template-mvp
-
Notifications
You must be signed in to change notification settings - Fork 0
Add CI performance budgets and observability checks #84
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
Merged
shayancoin
merged 3 commits into
main
from
codex/extend-ci-pipeline-for-performance-budgets
Oct 17, 2025
Merged
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,39 @@ | ||
| # Release Checklist | ||
|
|
||
| This checklist ties together continuous integration signal, Grafana alerting, and the on-call rotation so that preview deployments are gated on healthy performance and reliability metrics. | ||
|
|
||
| ## 1. Verify CI Observability Gates | ||
|
|
||
| - Check the **performance-budget** job in GitHub Actions CI. This job runs the Playwright-based budget defined in `perf-budget.yml` and publishes a JUnit report that Grafana can ingest. If it fails, fix the regression before proceeding. | ||
| - Confirm that the **observability-budgets** job has passed. It queries Prometheus and Tempo spanmetrics using `observability-budgets.yml` and fails when P95 latency or error-rate thresholds are exceeded compared to the previous day. | ||
| - Export any new failure signatures into the on-call runbook. | ||
|
|
||
| ## 2. Review Grafana Dashboards | ||
|
|
||
| - Open the "Configurator Experience" dashboard and confirm the panels for: | ||
| - `ci_perf_budget_value` vs `ci_perf_budget_threshold` (pushed from the Playwright budget run). | ||
| - Prometheus latency and error-rate panels that use the same queries as the CI job. | ||
| - Ensure alert rules are configured to page the on-call engineer whenever the CI metrics breach thresholds for two consecutive runs or when runtime metrics cross the defined budgets. | ||
|
|
||
| ## 3. Coordinate On-call Notifications | ||
|
|
||
| - Tag the current on-call engineer in the release Slack channel with a summary of CI and Grafana status. | ||
| - Verify PagerDuty (or the configured paging tool) has matching alerts for the Grafana rules referenced above. | ||
| - Record the acknowledgement in the release ticket. | ||
|
|
||
| ## 4. Gate Preview Environments | ||
|
|
||
| - Do not promote a preview environment until: | ||
| - All CI jobs, including `performance-budget` and `observability-budgets`, pass. | ||
| - Grafana dashboards show no active alerts for the release window. | ||
| - The on-call engineer confirms readiness. | ||
| - If any alert is firing, pause the release and create an incident in the on-call tracking tool. | ||
|
|
||
| ## 5. Final Release Sign-off | ||
|
|
||
| - Update the release ticket with links to: | ||
| - The successful CI run. | ||
| - Grafana dashboard screenshots showing green status. | ||
| - PagerDuty acknowledgement (or equivalent) from the on-call engineer. | ||
| - Archive the Grafana dashboard snapshot for auditability. | ||
| - Communicate the release completion to stakeholders. |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Make readiness waits fail when services never come up
Both wait loops (
Wait for APIandWait for Frontend) end withcurl … && break || sleep 2. If the service never becomes ready, the finalsleepreturns exit code 0, so the whole step passes and the pipeline moves on with an unhealthy stack. Please fail fast once the retries are exhausted.- name: Wait for API run: | - for i in {1..60}; do curl -sf http://localhost:8000/healthcheck && break || sleep 2; done + for i in {1..60}; do + if curl -sf http://localhost:8000/healthcheck; then + exit 0 + fi + sleep 2 + done + echo "API did not become ready in time" >&2 + exit 1 @@ - name: Wait for Frontend run: | - for i in {1..60}; do curl -sf http://localhost:3000/models/manifest.json && break || sleep 2; done + for i in {1..60}; do + if curl -sf http://localhost:3000/models/manifest.json; then + exit 0 + fi + sleep 2 + done + echo "Frontend did not become ready in time" >&2 + exit 1📝 Committable suggestion
🤖 Prompt for AI Agents