-
-
Notifications
You must be signed in to change notification settings - Fork 3.8k
[5.4] Exclude Symfony HTTP client test folders from release packages #46765
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
This is not the correct way to do it. see this example https://github.com/joomla/joomla-cms/blob/5.4-dev/build/build.php#L129-L130 |
|
Thanks for the guidance. I’ve updated the build cleanup rules to follow the existing pattern as suggested. |
|
I think you will find it better to make the change here https://github.com/joomla/joomla-cms/blob/5.4-dev/build/build.php#L169-L173
That way it will also pick up |
|
Thanks for the suggestion. I’ve updated the build cleanup to use a wildcard removal for Symfony Test directories, following the existing cleanup pattern. |
|
Thanks for the guidance. I’ve updated the cleanup section so the Symfony */Test directories are removed before the */Tests rule, and I’ve removed the extra comment as suggested. Please let me know if anything else needs adjusting. |
…ild.php Reordered Symfony vendor cleanup rules to match existing grouping as suggested in PR review. Co-authored-by: Brian Teeman <[email protected]>
|
I’ve applied your suggested change and committed the updated ordering. Thanks for the review! |
|
Fixed formatting as requested (tab restored, empty line removed). |
|
I have tested this item ✅ successfully on 2798e8e This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/46765. |
|
Thanks for testing and confirming. Ready for merge when convenient. |
|
I have tested this item ✅ successfully on 2798e8e This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/46765. |
|
I have tested this item ✅ successfully on 2798e8e This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/46765. |
|
Thanks for testing and the suggestion 👍 The directory libraries/vendor/symfony/http-client-contracts/Test is already covered by the existing wildcard cleanup: libraries/vendor/symfony/*/Test This was added intentionally to handle current and future Symfony packages consistently, so no additional command should be required. |
|
RTC This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/46765. |
|
Thanks everyone. Marking as ready for merge. |
|
✅ Final test before merge with JBT
Note: Checked also for Test/Tests/test/tests
|
|
Thank you @sathwikre for your contribution. Thank you @brianteeman for support. Thank you @465645, @ompatwa000-svg and @brianteeman for testing., |

Fixes #46764
The Symfony HttpClient packages currently include Test directories in Joomla release archives. These folders contain test-only classes and are not required in production distributions.
This change updates the build system to exclude:
As a result, release packages no longer ship unnecessary test files, reducing package size and avoiding unintended exposure of test code.