Skip to content

feat(vercel): add App Availability check#2481

Merged
tofikwest merged 6 commits intomainfrom
feat/vercel-app-availability
Apr 7, 2026
Merged

feat(vercel): add App Availability check#2481
tofikwest merged 6 commits intomainfrom
feat/vercel-app-availability

Conversation

@tofikwest
Copy link
Copy Markdown
Contributor

Summary

Adds an App Availability check to the Vercel code-based integration that verifies projects have active, healthy production deployments.

What it does

  • Fetches all Vercel projects for the connected account/team
  • For each project, checks the latest production deployment status
  • Reports PASS if deployment state is READY, FAIL if unhealthy or missing
  • Maps to the appAvailability task template

Changes

  • New: checks/app-availability.ts - the check implementation
  • Modified: checks/index.ts - exports the new check
  • Modified: index.ts - registers the check in the manifest

Context

Customer requested App Availability monitoring for their Vercel deployments.

@vercel
Copy link
Copy Markdown

vercel bot commented Apr 7, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
app Ready Ready Preview, Comment Apr 7, 2026 7:48pm
comp-framework-editor Ready Ready Preview, Comment Apr 7, 2026 7:48pm
1 Skipped Deployment
Project Deployment Actions Updated (UTC)
portal Skipped Skipped Apr 7, 2026 7:48pm

Request Review

@cursor
Copy link
Copy Markdown

cursor bot commented Apr 7, 2026

PR Summary

Low Risk
Low risk: adds a new read-only check that calls Vercel project/deployment APIs and reports pass/fail without changing auth, writes, or shared core logic.

Overview
Adds a new Vercel App Availability check (mapped to TASK_TEMPLATES.appAvailability) that fetches projects and inspects each project’s latest production deployment, emitting pass for READY/in-progress states and fail for canceled/unhealthy/missing deployments.

Exports the new check from checks/index.ts and registers it in vercelManifest.checks alongside the existing monitoring check.

Reviewed by Cursor Bugbot for commit 662ad72. Bugbot is set up for automated code reviews on this repo. Configure here.

- Treat BUILDING/QUEUED/INITIALIZING as transitional (pass, not fail)
  since Vercel keeps the previous READY deployment serving traffic
- Emit ctx.fail() in per-project catch blocks instead of just logging,
  so failures are never silently swallowed as success
- Add post-loop fallback for zero checked projects
- Cap iteration to first 10 projects to match monitoring-alerting check
  and avoid Vercel rate limits
- Remove unused VercelDeployment import

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
CANCELED deployments don't take down the app — Vercel keeps serving
the previous READY deployment. Also removed unreachable checkedCount
guard since the loop always executes at least once (projects is
guaranteed non-empty at that point).

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Copy link
Copy Markdown

@cursor cursor bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 265a5e4. Configure here.

…onal

CANCELED is a terminal state, not in-progress. Remove from
transitionalStates and handle as its own branch with medium severity,
consistent with monitoring-alerting.ts treating it as a failure.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@vercel vercel bot temporarily deployed to Preview – portal April 7, 2026 19:46 Inactive
@tofikwest tofikwest merged commit fe3c497 into main Apr 7, 2026
11 checks passed
@tofikwest tofikwest deleted the feat/vercel-app-availability branch April 7, 2026 19:55
@claudfuen
Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 3.18.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants