Skip to content

Conversation

@mp-roocode
Copy link
Collaborator

@mp-roocode mp-roocode commented Jan 25, 2026

Related GitHub Issue

Closes: # #10950

Roo Code Task Context (Optional)

Description

Test Procedure

Pre-Submission Checklist

  • Issue Linked: This PR is linked to an approved GitHub Issue (see "Related GitHub Issue" above).
  • Scope: My changes are focused on the linked issue (one major feature/fix per PR).
  • Self-Review: I have performed a thorough self-review of my code.
  • Testing: New and/or updated tests have been added to cover my changes (if applicable).
  • Documentation Impact: I have considered if my changes require documentation updates (see "Documentation Updates" section below).
  • Contribution Guidelines: I have read and agree to the Contributor Guidelines.

Screenshots / Videos

Documentation Updates

Additional Notes

Get in Touch


Important

Add quality checks to deployment workflows and update Vercel CLI version in website-deploy.yml and website-preview.yml.

  • Workflows:
    • Add quality-checks job to website-deploy.yml and website-preview.yml for linting, type checking, and building.
    • Update Vercel CLI installation to vercel@latest in both workflows.
    • Add concurrency control to cancel in-progress runs for both workflows.
  • Deployment:
    • deploy job in website-deploy.yml now depends on quality-checks.
    • preview job in website-preview.yml now depends on quality-checks.
  • Misc:
    • Add PR comment with preview link in website-preview.yml.

This description was created by Ellipsis for e52a743. You can customize this summary. It will automatically update as commits are pushed.


Note

Adds pre-deploy quality gates and improves workflow robustness for roocode.com deployments.

  • Introduces concurrency groups in website-deploy.yml and website-preview.yml to cancel in-progress runs
  • Adds pnpm lint, pnpm check-types, and pnpm build steps to both deploy and preview jobs in apps/web-roo-code
  • Updates Vercel CLI installation from vercel@canary to vercel@latest
  • website-preview.yml: posts/updates a PR comment with the Vercel preview URL after deployment

Written by Cursor Bugbot for commit 7ea11dd. This will update automatically on new commits. Configure here.

@mp-roocode mp-roocode self-assigned this Jan 25, 2026
@mp-roocode mp-roocode requested review from cte, jr and mrubens as code owners January 25, 2026 19:52
@dosubot dosubot bot added size:M This PR changes 30-99 lines, ignoring generated files. Enhancement New feature or request labels Jan 25, 2026
@roomote
Copy link
Contributor

roomote bot commented Jan 25, 2026

Rooviewer Clock   See task on Roo Cloud

Review complete. No issues found. The latest commit simplifies the workflow structure by consolidating quality checks directly into the deploy/preview jobs, reducing job overhead while maintaining the same pre-deployment validation guarantees.

Previous reviews

Mention @roomote in a comment to request specific changes to this pull request or fix all unresolved issues.

@roomote
Copy link
Contributor

roomote bot commented Jan 25, 2026

📋 Related to Rules PR

This PR implements the quality gates defined in PR #10950.

Relationship:

Recommended merge order:

  1. Merge PR Add marketing site deployment quality gate rules #10950 first (establishes the rules)
  2. Merge this PR (10959) second (implements the rules)

What this PR fixes:

  • 🔴 Prevents broken code from being deployed to production/preview
  • 🔴 Eliminates race condition between quality checks and deployment
  • 🟡 Ensures quality checks run before deployment (not in parallel)

See PR #10950 for the complete analysis of issues found.

@roomote
Copy link
Contributor

roomote bot commented Jan 25, 2026

🚀 Updated Implementation Instructions

After deeper analysis, I found 2 additional critical issues that should be fixed in this PR:

Additional Issues Found

🟡 Issue #6: No Deployment Concurrency Controls

  • Multiple deployments can run in parallel if commits are pushed quickly
  • Last deployment to finish wins - could deploy older code over newer code
  • Example: Commit A (takes 3min) starts, then Commit B (takes 2min) starts. B finishes first, then A overwrites it with stale code.

🟡 Issue #7: Using Unstable Vercel CLI (vercel@canary)

  • Both workflows use vercel@canary (bleeding-edge, unstable releases)
  • Could introduce breaking changes unexpectedly
  • Should use vercel@latest for stable deployments

Complete Changes Needed

See /tmp/workflow-changes-complete.md in the worker for the complete file examples that include:

  1. ✅ Quality checks job (already in this PR)
  2. ✅ Concurrency controls (NEW)
  3. ✅ Stable Vercel CLI version (NEW)

Quick Summary of Additional Changes

For both files, add at the top (after on:, before env:):

concurrency:
    group: deploy-roocode-com  # Use preview-roocode-com-${{ github.ref }} for preview
    cancel-in-progress: true

For both files, change:

run: npm install --global vercel@latest  # Changed from vercel@canary

Updated Rules

The rules in PR #10950 have been updated to include requirements for:

  • Deployment concurrency controls
  • Vercel CLI version stability

These changes ensure:

  • ✅ No deployment race conditions
  • ✅ Stable, deterministic deployments
  • ✅ Newer code always wins over stale code

@mp-roocode mp-roocode force-pushed the fix/add-website-quality-checks branch from f61f76a to e52a743 Compare January 25, 2026 20:07
@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Jan 27, 2026
@cte
Copy link
Collaborator

cte commented Jan 27, 2026

Thanks @mp-roocode!

@cte cte merged commit 5100d15 into main Jan 27, 2026
12 checks passed
@cte cte deleted the fix/add-website-quality-checks branch January 27, 2026 08:56
@github-project-automation github-project-automation bot moved this from Triage to Done in Roo Code Roadmap Jan 27, 2026
@github-project-automation github-project-automation bot moved this from New to Done in Roo Code Roadmap Jan 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Enhancement New feature or request lgtm This PR has been approved by a maintainer size:M This PR changes 30-99 lines, ignoring generated files.

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants