-
Notifications
You must be signed in to change notification settings - Fork 43
Open
Labels
Description
When running the testsuite, it sometimes fails to error like this:
ERROR: output differs from what is expected:
- EXPECTED
+ ACTUAL
↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓
Scanning packages for orphan patches
Validation completed successfully
Processing patches configuration
- - Installing vaimo/composer-patches-target2 (1.2.0): Mirroring from modules/composer-patches-target2
- Installing vaimo/composer-patches-target3 (1.2.3): Mirroring from modules/composer-patches-target3
+ - Installing vaimo/composer-patches-target2 (1.2.0): Mirroring from modules/composer-patches-target2
- Applying patches for vaimo/composer-patches-sandbox (1)
~ vaimo/composer-patches-sandbox: patches/multiple-packages-single-file.patch [NEW]
Change: value17 => valueB; value5 => valueA
↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑
It's not always, but it does happen randomly, requiring you to rerun the tests. This can be also a little annoying with Github workflows, even with fast fail strategy turned on.
Pre-requisites
- Version 5.4.0 or above of vaimo/composer-patches
- Any PHP version and any Composer version above 1
To Reproduce
No known steps yet
Expected
Even if a patch involves reinstalling multiple packages, the order of those should be irrelevant during the test.
Actual
When a patch involves reinstalling multiple packages, the order of installing those appears to randomly change, causing the tests to break.
Notes
This issue report is mainly a note to myself, but also a public notice that there can be this sort of issue when running the tests.