Description
Preconditions (*)
- Magento 2.3.x(2.3-develop too)
- Configured Build system according to technical details.
- Create own theme that extends from Magento/luma
- Magento mode is default OR developer
Steps to reproduce (*)
- Run
php bin/magento setup:static-content:deploy -f -j $(nproc)
(-j 8
in my case) with 6 different locales on build system
Expected result (*)
- We should NOT have any errors/exceptions during SCD
Actual result (*)
- Randomly we have following issue (sometimes from 4-5th time):
- Some CSS files are missing in pub/static directory
- Exception somewhere in the middle of SCD
This happening really randomly, sometimes with Magento/luma theme, sometimes with our own
File with errors:
errors.txt
Technical details
During SCD - it tries to compile LESS -> CSS files. During working on it - it tries to create lock, add some files and then unlock:
Details of these locks:
magento2/lib/internal/Magento/Framework/View/Asset/LockerProcess.php
Lines 63 to 77 in 15e3c07
and
magento2/lib/internal/Magento/Framework/View/Asset/LockerProcess.php
Lines 83 to 90 in 15e3c07
As you can see above - locking process doesn't work in production mode, but static contend deploy we're running when env.php file is not present, so by fallback it runs in "default" magento mode.
Also that's not expected to have some lock when we're running SCD in parallel, it might significantly slow down this process.
This issue was discovered during testing #22607
Activity
m2-assistant commentedon May 14, 2019
Hi @ihor-sviziev. Thank you for your report.
To help us process this issue please make sure that you provided the following information:
Please make sure that the issue is reproducible on the vanilla Magento instance following Steps to reproduce. To deploy vanilla Magento instance on our environment, please, add a comment to the issue:
@magento-engcom-team give me 2.3-develop instance
- upcoming 2.3.x releaseFor more details, please, review the Magento Contributor Assistant documentation.
@ihor-sviziev do you confirm that you were able to reproduce the issue on vanilla Magento instance following steps to reproduce?
[-]Static content deploy - Randomly less files not generated[/-][+]Static content deploy - Randomly css files not generated[/+]magento#22880 Fix random fails during parallel SCD execution
magento#22880 Fix random fails during parallel SCD execution
m2-assistant commentedon Aug 23, 2019
Hi @engcom-Charlie. Thank you for working on this issue.
In order to make sure that issue has enough information and ready for development, please read and check the following instruction: 👇
1. Verify that issue has all the required information. (Preconditions, Steps to reproduce, Expected result, Actual result).
Details
If the issue has a valid description, the labelIssue: Format is valid
will be added to the issue automatically. Please, edit issue description if needed, until labelIssue: Format is valid
appears.2. Verify that issue has a meaningful description and provides enough information to reproduce the issue. If the report is valid, add
Issue: Clear Description
label to the issue by yourself.3. Add
Component: XXXXX
label(s) to the ticket, indicating the components it may be related to.4. Verify that the issue is reproducible on
2.3-develop
branchDetails
- Add the comment@magento give me 2.3-develop instance
to deploy test instance on Magento infrastructure.- If the issue is reproducible on
2.3-develop
branch, please, add the labelReproduced on 2.3.x
.- If the issue is not reproducible, add your comment that issue is not reproducible and close the issue and stop verification process here!
5. Add label
Issue: Confirmed
once verification is complete.6. Make sure that automatic system confirms that report has been added to the backlog.
11 remaining items