Skip to content

Parallelised execution of static content deploy is broken on 2.3-develop #22563

@hostep

Description

@hostep

Preconditions (*)

  1. Tested on Magento 2.3-develop branch (works fine on version 2.3.1 btw)
  2. PHP 7.1.27 with pcntl extension enabled

Steps to reproduce (*)

  1. Checkout the 2.3-develop branch from Magento 2 repo (I've used commit 93a8162)
  2. Run composer install
  3. Run bin/magento setup:install ...
  4. Run bin/magento setup:static-content:deploy -f --jobs=2

Expected result (*)

  1. SCD runs without errors

Actual result (*)

$ bin/magento setup:static-content:deploy -f --jobs=2

Deploy using quick strategy
PHP Fatal error:  Uncaught TypeError: pcntl_waitpid() expects parameter 1 to be integer, boolean given in app/code/Magento/Deploy/Process/Queue.php:342
Stack trace:
#0 app/code/Magento/Deploy/Process/Queue.php(342): pcntl_waitpid(false, NULL, 1)
#1 app/code/Magento/Deploy/Process/Queue.php(234): Magento\Deploy\Process\Queue->isDeployed(Object(Magento\Deploy\Package\Package))
#2 app/code/Magento/Deploy/Process/Queue.php(215): Magento\Deploy\Process\Queue->executePackage(Object(Magento\Deploy\Package\Package), 'frontend/Magent...', Array, false)
#3 app/code/Magento/Deploy/Process/Queue.php(168): Magento\Deploy\Process\Queue->assertAndExecute('frontend/Magent...', Array, Array)
#4 app/code/Magento/Deploy/Strategy/QuickDeploy.php(76): Magento\Deploy\Process\Queue->process()
#5  in app/code/Magento/Deploy/Process/Queue.php on line 342

Fatal error: Uncaught TypeError: pcntl_waitpid() expects parameter 1 to be integer, boolean given in app/code/Magento/Deploy/Process/Queue.php:342
Stack trace:
#0 app/code/Magento/Deploy/Process/Queue.php(342): pcntl_waitpid(false, NULL, 1)
#1 app/code/Magento/Deploy/Process/Queue.php(234): Magento\Deploy\Process\Queue->isDeployed(Object(Magento\Deploy\Package\Package))
#2 app/code/Magento/Deploy/Process/Queue.php(215): Magento\Deploy\Process\Queue->executePackage(Object(Magento\Deploy\Package\Package), 'frontend/Magent...', Array, false)
#3 app/code/Magento/Deploy/Process/Queue.php(168): Magento\Deploy\Process\Queue->assertAndExecute('frontend/Magent...', Array, Array)
#4 app/code/Magento/Deploy/Strategy/QuickDeploy.php(76): Magento\Deploy\Process\Queue->process()
#5  in app/code/Magento/Deploy/Process/Queue.php on line 342

Discussion

Issue was probably introduced in 7421dfb#diff-415a71577d8921cc45d695471db3a36fL340 (not verified yet)

Metadata

Metadata

Assignees

Labels

Component: DeployFixed in 2.2.xThe issue has been fixed in 2.2 release lineFixed in 2.3.xThe issue has been fixed in 2.3 release lineIssue: Clear DescriptionGate 2 Passed. Manual verification of the issue description passedIssue: Format is validGate 1 Passed. Automatic verification of issue format passedReproduced on 2.3.xThe issue has been reproduced on latest 2.3 release

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions