Testing in production with feature flags, canary deployments, synthetic monitoring, and chaos engineering. Use when implementing production observability or progressive delivery.
يبقى الأمر في سطر واحد. مرّر أفقيًا لمراجعته كاملًا قبل النسخ.
تفضّل نسخة محلية؟ نزّل الملفات المتاحة حاليًا لدى SkillsMP.
عرض SKILL.md
SKILL.md
تعليمات المصدر · معاينة للقراءة فقط
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.