Generalize product metapackage detection for alternate metapackages#196
Conversation
* Expand allowed versions of MySQL/MariaDB * Update MySQL version compatibility range to include 8.x up to 8.4
…so frontend area cache picks up compiled files instead of regenerating on the first request by @jakwinkler (mage-os#194) Co-authored-by: Jakub Winkler <jwinkler@qoliber.com>
The system package detection was previously hardcoded to only recognize packages matching `mage-os/product-*-edition`. This change generalizes the regex to match any `mage-os/product-*` package, enabling support for alternate product metapackages like `mage-os/product-minimal`. - Update isSystemPackage() regex to match any mage-os/product-* package - Update getRequiredPhpVersion() to use isSystemPackage() instead of hardcoded package name - Add unit tests for isSystemPackage() with various package patterns - Update ProductMetadataTest to use proper mage-os package names https://claude.ai/code/session_01KVLKuTyatjiMtYp2npbqgc
|
Tested, this works. I'm going to fix the fundamental issue by renaming |
marcelmtz
left a comment
There was a problem hiding this comment.
Seems that the integration test needs to get fixed, could be that we need to change the sort order of the constants in https://github.com/mage-os/mageos-magento2/blob/release/3.x/dev/tests/integration/testsuite/Magento/Framework/Interception/PluginListGeneratorTest.php
Something like (not tested, just throwing ideas):
const CACHE_ID_FRONTEND = 'frontend|global|primary|plugin-list'; const CACHE_ID_DUMMY = 'dummy|global|primary|plugin-list';
Thanks, good spot. That came from another recent PR #194 -- the test does need to be fixed to match the corrected behavior so we pass again. Functionally it's fine. |
|
Thanks! We need to get you added to the review groups in Terraform so that actually counts. 😄 |
The system package detection was previously hardcoded to only recognize packages matching
mage-os/product-*-edition. This change generalizes the regex to match anymage-os/product-*package, enabling support for alternate product metapackages likemage-os/product-minimal.Description (*)
Improves flexibility of product version loading for different product package names
Related Pull Requests
#115
Fixed Issues (if relevant)
Manual testing scenarios (*)
Questions or comments
Contribution checklist (*)