- Treat upgrades as full production releases rather than simple maintenance tasks.
- Audit your entire infrastructure and third party dependencies before touching Composer.
- Use a structured staging environment and Composer workflow to manage dependency updates safely.
- Test critical user journeys like checkout and payment processing thoroughly before launch.
- Prepare a robust rollback plan and validate security compliance immediately after deployment.
1. Start With a Pre-Upgrade Audit

- Current Magento 2 / Adobe Commerce version
- PHP compatibility, including PHP 8.3, 8.4, or future 8.5 requirements where applicable
- MySQL or MariaDB version support
- Composer version and locked dependencies
- Third-party extensions and custom modules
- Theme customizations
- Payment, tax, shipping, ERP, PIM, and OMS integrations
- Redis, Valkey, Elasticsearch, OpenSearch, RabbitMQ, Varnish, and cron setup
2. Use a Composer-Based Upgrade Workflow
For modern Magento 2 upgrades, Composer should be your control point. A typical workflow looks like this:- Create a full database, media, and code backup.
- Clone production into a staging environment.
- Put the new Magento version into composer.json.
- Run Composer update in staging.
- Apply database schema and data updates.
- Compile dependency injection.
- Deploy static content.
- Run automated and manual tests.
Adobe Commerce / Magento
Unlock the Full Power of Adobe Commerce
Custom Magento development built for your catalog, your pricing, and your workflows.
3. Plan Redis to Valkey and Elasticsearch to OpenSearch Changes
Many stores are also reviewing infrastructure dependencies during upgrades. If you move from Redis to Valkey, test session storage, full-page cache, and cache invalidation carefully. Valkey may be compatible in many Redis-style use cases, but you still need to validate connection settings, eviction policies, persistence, and failover behavior. For search, confirm whether your target Magento version and hosting stack support Elasticsearch, OpenSearch, or both. Then test:- Catalog search relevance
- Layered navigation
- Indexing speed
- Synonyms and stop words
- Large catalog reindexing
4. Build Automated Regression Testing Around Store Logic
Your test plan should cover more than “the homepage loads.” At minimum, automate:- Add to cart
- Checkout
- Customer login and registration
- Coupon rules
- Tax and shipping calculations
- Payment authorization
- Order confirmation emails
- Admin order creation
- Product imports
- Search and layered navigation
5. Tune Varnish and Cache After the Upgrade
After launch, performance tuning matters. New code, new PHP versions, and changed cache behavior can shift response times. Review:- Varnish hit rate
- Full-page cache behavior
- Block cache invalidation
- Redis or Valkey memory usage
- Static asset delivery
- Cron performance
- Indexer mode and backlog
6. Prepare a Zero-Downtime Rollback Plan
A rollback plan should be written before deployment. Include:- Immutable release artifacts
- Database backup timing
- Media backup confirmation
- Blue-green or maintenance-window strategy
- DNS or load balancer rollback steps
- Composer lock file restoration
- Clear go/no-go criteria
7. Validate Security and PCI DSS After Launch
After the upgrade, confirm:- Two-factor authentication is enabled
- Admin users and roles are reviewed
- Security patches are current
- Payment integrations still meet PCI DSS requirements
- HTTPS, CSP, and cookie settings behave correctly
- Logs show no upgrade-related errors
References
- Wiley Online Library: Large-scale semi-automated migration of legacy C/C++ test code
- Inria Hal Science: Generating regression tests for software migration
- ScienceDirect: Evaluating legacy system migration technologies through empirical studies
- ScienceDirect: Challenges in migrating legacy software systems to the cloud



