Skip to content

Static content deploy - Parallel execution - Not fails in case of exception #22883

Open
@ihor-sviziev

Description

@ihor-sviziev

Preconditions (*)

  1. Magento 2.2.7
  2. Configured Build system according to technical details.

Steps to reproduce (*)

  1. Emulate exception that happened in Static content deploy - Randomly css files not generated #22880 by adding above this line
    $this->tmpDirectory->delete($this->lockFilePath);

    throwing exception:
throw new FileSystemException(__('Test'));
  1. Run php bin/magento setup:static-content:deploy -f --theme Magento/blank
  2. Run $? - it shows 1 - that's expected
  3. Run php bin/magento setup:static-content:deploy -f -j 2 --theme Magento/blank
  4. Run $? - it shows 0 - that's NOT expected

Expected result (*)

  1. In case of any errors - CLI should return error status code

Actual result (*)

  1. In case of any errors - CLI should return 0 status code (success), but writes error messages above

This issue was discovered during testing #22607
and working on reporting #22880

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area: ContentComponent: OtherIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedPriority: P2A defect with this priority could have functionality issues which are not to expectations.Progress: ready for devReproduced on 2.2.xThe issue has been reproduced on latest 2.2 releaseReproduced on 2.3.xThe issue has been reproduced on latest 2.3 releaseSeverity: S2Major restrictions or short-term circumventions are required until a fix is available.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions