Testing in production with feature flags, canary deployments, synthetic monitoring, and chaos engineering. Use when implementing production observability or progressive delivery.
Instalar com Codex ou Claude Copie este prompt, cole no Codex, Claude ou outro assistente e deixe que ele revise a página da skill e instale para você.
Um comando direto ignora o prompt de revisão. Verifique a origem antes de executá-lo.
Instruções da origem · Visualização somente leitura
name
shift-right-testing
description
Testing in production with feature flags, canary deployments, synthetic monitoring, and chaos engineering. Use when implementing production observability or progressive delivery.
// Progressive rollout with LaunchDarkly/Unleash patternconst newCheckout = featureFlags.isEnabled('new-checkout', {
userId: user.id,
percentage: 10, // 10% of usersallowlist: ['beta-testers']
});
if (newCheckout) {
return<NewCheckoutFlow />;
} else {
return<LegacyCheckoutFlow />;
}
// Instant rollback on issuesawait featureFlags.disable('new-checkout');
Canary Deployment
# Flagger canary configapiVersion:flagger.app/v1beta1kind:Canaryspec:targetRef:apiVersion:apps/v1kind:Deploymentname:checkout-serviceprogressDeadlineSeconds:60analysis:interval:1mthreshold:5# Max failed checksmaxWeight:50# Max traffic to canarystepWeight:10# Increment per intervalmetrics:-name:request-success-ratethreshold:99-name:request-durationthreshold:500
Production is the ultimate test environment. Feature flags enable instant rollback. Canary catches issues before 100% rollout. Synthetic monitoring detects problems before users. Chaos engineering builds resilience. RUM shows real user experience.
With Agents: Agents monitor production, replay incidents as tests, run chaos experiments, and convert production insights to pre-production tests. Use agents to maintain continuous production quality.