UPDATED: February 29, 2019
This article provides a fix for when deployment fails because the Fastly module is incompatible with your current Adobe Commerce version.
Problem: Deployment fails after a new commit and push, with the error message similar to the following:
[Exception] Warning: Missing argument 3 for Fastly\Cdn\Plugin\…, called in /app/vendor/magento/framework/Interception/Interceptor.php … and defined in /app/vendor/fastly/magento2/Plugin/ExcludeFilesFromMinification.php …
Cause: backward incompatible changes in the Fastly module v1.2.79.
Solution (temporary): upgrade the Fastly module to version 1.2.82 or higher and upload a new VCL in the Commerce Admin. Then, commit and push your changes to trigger a successful deployment.
When you commit and push your changes to the Integration, Production, or Staging environment, usually the next step is triggering the deployment process. This is done automatically in Adobe Commerce on cloud infrastructure edition and manually in Adobe Commerce on-premises.
The deployment might fail with the following error messages:
If you are using Adobe Commerce on cloud infrastructure solution, you will see this error message in the deploy log. For the Adobe Commerce on-premises, you will see the error in the command line.
The issue is caused by the backward incompatible changes in the Fastly module v1.2.79.
Upgrade the Fastly module to version 1.2.82 or higher.
To do this, take the following steps:
composer update magento/magento-cloud-metapackage
composer update fastly/magento2