ci(deploy): annotate production deploys in Axiom#4610
Merged
Conversation
Add a best-effort Axiom annotation step to the shared promote workflow so production deploys of kilocode-app show up alongside metrics/traces. - Adds axiom_annotation_dataset input (opt-in per caller) and axiom_expected_project input to keep the reusable workflow generic. - Wires deploy-production.yml and redeploy-web.yml to pass axiom_annotation_dataset: kilocode-app for the app promotion job. - Verifies the promoted deployment matches the expected project/target/ READY state before annotating, retrying briefly to absorb Vercel API propagation lag. - Marked continue-on-error so a flaky Axiom/Vercel call never fails a promotion that already succeeded.
Contributor
Code Review SummaryStatus: No Issues Found | Recommendation: Merge Executive SummaryBoth previously flagged issues (hardcoded Files Reviewed (2 files)
Previous Review Summary (commit 4cf9a82)Current summary above is authoritative. Previous snapshots are kept for context only. Previous review (commit 4cf9a82)Status: 2 Issues Found | Recommendation: Address before merge Executive SummaryThe new Axiom annotation step hardcodes Overview
Issue Details (click to expand)WARNING
SUGGESTION
Files Reviewed (3 files)
Reviewed by claude-sonnet-5 · Input: 28 · Output: 3.1K · Cached: 765.3K Review guidance: REVIEW.md from base branch |
…kip trailing retry sleep - Build the Axiom deployment link, title, and type from $project instead of hardcoding kilocode-app, so the annotation stays correct if a future caller passes a different axiom_expected_project. - Skip the retry sleep on the last loop attempt since it just delays the promotion job with no further use. - Run pnpm format to fix YAML quote-style formatting.
jeanduplessis
enabled auto-merge (squash)
July 17, 2026 09:02
pandemicsyn
approved these changes
Jul 17, 2026
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
Adds a best-effort Axiom annotation step to the shared Vercel promote workflow so production deploys of
kilocode-appshow up alongside metrics and traces.Why this change is needed
Production incidents and metric anomalies are hard to correlate with deploys without a shared timeline marker in Axiom. There was previously no automated link between a Vercel production promotion and Axiom's observability data.
How this is addressed
axiom_annotation_datasetinput to the reusablepromote-vercel-deployment.ymlworkflow; only wired up fordeploy-production.ymlandredeploy-web.yml's app promotion job (notglobal-app).productiontarget, andREADYstate, retrying briefly to absorb Vercel API propagation lag aftervercel promote.continue-on-error: trueand treats missing tokens or an unexpected deployment as warnings, not failures — so a flaky Axiom/Vercel call or eventual-consistency lag never fails a promotion that already succeeded.axiom_expected_projectinput (defaultkilocode-app) instead of hardcoding the project name, so the reusable workflow stays generic for future callers.Human Verification
Reviewer Notes
Human Reviewer Flags
secrets: inheritand readsAXIOM_ANNOTATION_TOKEN/VERCEL_TOKENfrom theproductionenvironment; confirmAXIOM_ANNOTATION_TOKENis configured there (or annotation is skipped with a warning).promote-global-appintentionally does not passaxiom_annotation_dataset, so no annotation happens for that promotion path — confirm that scoping is correct.Code Reviewer Agent
Code Reviewer Notes
vercel inspect/vercel apiuntilreadyState == READYbefore validating project/target.::warning::with the raw API response instead of silently swallowing stderr, to keep debugging tractable.jq -n --arg(not string interpolation) to avoid injection via commit metadata.