-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Add marketing site deployment quality gate rules #10950
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
Review completed. No issues found. The new rule for Marketing Site Deployment Quality Gates is well-structured and all referenced files and commands have been verified to exist.
Mention @roomote in a comment to request specific changes to this pull request or fix all unresolved issues. |
.roo/rules/rules.md
Outdated
| - All user-facing strings must be internationalized using the `t()` function from `src/i18n` | ||
| - Import the translation function: `import { t } from "../i18n"` | ||
| - Add translation keys to all language files in `src/i18n/locales/[lang]/[namespace].json` | ||
| - Supported languages: ca, de, es, fr, hi, id, it, ja, ko, nl, pl, pt-BR, ru, tr, vi, zh-CN, zh-TW |
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.
The supported languages list is missing "en" (English). The src/i18n/locales/ directory includes 18 languages, and English is the base language that translation keys must also be added to. Without it in the list, developers might incorrectly skip adding keys to the English locale.
| - Supported languages: ca, de, es, fr, hi, id, it, ja, ko, nl, pl, pt-BR, ru, tr, vi, zh-CN, zh-TW | |
| - Supported languages: ca, de, en, es, fr, hi, id, it, ja, ko, nl, pl, pt-BR, ru, tr, vi, zh-CN, zh-TW |
Fix it with Roo Code or mention @roomote and request a fix.
ea05a8e to
f8a050a
Compare
🔗 Implementation PR CreatedPR #10959 implements the quality gates defined in this rules PR. What it does:
These PRs should be reviewed and merged together, with this rules PR (#10950) merged first, followed by the implementation PR (#10959). |
f8a050a to
ca65b79
Compare
Review completed. No issues found. The new rules for Marketing Site Deployment Quality Gates are well-structured and all referenced files and scripts have been verified:
Mention @roomote in a comment to request specific changes to this pull request or fix all unresolved issues. |
Add Marketing Site Deployment Quality Gate Rules
Problem
After a comprehensive review of the CI/CD workflow for the marketing site (
apps/web-roo-code), including Vercel integration, branch protection, and the complete development-to-deployment pipeline, I identified 7 critical and medium severity issues:🔴 Critical Issues
Issue #1: No Quality Checks Before Deployment
website-deploy.ymlandwebsite-preview.ymldeploy directly to Vercel without running any quality checksIssue #2: No Required Status Checks
"required_status_checks": {"enforcement_level": "off", "contexts": [], "checks": []}code-qaworkflow failsIssue #3: Race Condition in PR Workflow
website-previewandcode-qaworkflows run in parallel when a PR is created/updated🟡 Medium Issues
Issue #4: No Workflow Dependencies
code-qa.ymlworkflow runs quality checks, but website deployments don't require it to pass firstIssue #5: No Deployment Concurrency Controls
Issue #6: Using Unstable Vercel CLI
vercel@canary(bleeding-edge, unstable releases)Issue #7: Missing Test Coverage
web-roo-code/package.jsonhas no test scripts (deferred to future iteration)💥 Worst-Case Scenario
The current setup allows this catastrophic sequence:
website-previewdeploys to Vercel ✅ (no quality checks)code-qaruns in parallel and FAILS ❌website-deploydeploys broken code to production ✅ (no quality checks)Solution
Added comprehensive rules (Section 4) to
.roo/rules/rules.mdthat require:Quality checks before deployment:
pnpm --filter @roo-code/web-roo-code lintpnpm --filter @roo-code/web-roo-code check-typespnpm --filter @roo-code/web-roo-code buildIntegration via workflow dependencies:
needs:dependency oncode-qaworkflow, ORquality-checksjob before deployment jobsBranch protection requirement:
Deployment concurrency controls:
concurrencygroup to prevent multiple deployments from running simultaneouslycancel-in-progress: trueto cancel older deployments when new ones startVercel CLI version stability:
vercel@latestinstead ofvercel@canaryfor stable, production deploymentsClear directive: Never deploy broken code to production
Implementation
See PR #10959 for the workflow implementation of these rules.
Impact
These rules will:
Testing
.roo/rules/rules.mdapps/web-roo-code/package.jsonImportant
Add quality gate rules for marketing site deployment to ensure code quality and stability in
.roo/rules/rules.md..roo/rules/rules.mdforwebsite-deploy.ymlandwebsite-preview.ymlto include linting, type-checking, and build validation before deploying to Vercel.needs:dependency oncode-qaworkflow or a dedicatedquality-checksjob before deployment.concurrencygroup to prevent simultaneous deployments and setcancel-in-progress: trueto avoid race conditions.vercel@latestinstead ofvercel@canaryfor stable deployments and pin versions for critical workflows.This description was created by
for ca65b79. You can customize this summary. It will automatically update as commits are pushed.