Open Source
Shaping the tools I use every day, one pull request at a time
A hand-picked selection: only the contributions worth reading about, not every merged pull request. Articles about Magento and Adobe Commerce are on the blog.
Add Magento compatibility checks with GitHub Actions — on GitHub
One GitHub Actions workflow checks every pull request and push: Composer validation, PHP lint, the Magento coding standard, setup:di:compile, static content deployment, the unit tests and PHPStan, on the latest patch of each supported Magento Open Source release at its lowest and highest PHP version. The release list refreshes on every run, so a new Magento or PHP version is tested without a workflow change.
Add Magento compatibility checks with GitHub Actions — on GitHub
One GitHub Actions workflow checks every pull request and push: Composer validation, PHP lint, the Magento coding standard, setup:di:compile, static content deployment, the unit tests and PHPStan, on the latest patch of each supported Magento Open Source release at its lowest and highest PHP version. The release list refreshes on every run, so a new Magento or PHP version is tested without a workflow change.
Regenerate the admin session ID before storing the user on login — on GitHub
Auth::login() stored the authenticated user in the admin session before processLogin() called regenerateId(). PHP writes the current session data under the old ID before switching, so the pre-login session ID stayed authenticated after login. processLogin() now takes the user out of the session before regenerating the ID and sets it again afterwards.
Make the tax rates check cron schedule configurable — on GitHub
The check ran every three minutes, downloading the rates feed each time and sending an email whenever it had output. A new taxratesmanager/settings/cron_schedule setting now drives the schedule through <config_path>, and the default is daily at 03:00.
Cache checker configuration separately for each module — on GitHub
Scanning several modules reused the first module’s ignore configuration for all the others, so later modules reported findings they had explicitly ignored. The existing configuration cache is now keyed by module name, with a regression test.
Open large category selectors faster after cache invalidation — on GitHub
Building an uncached category selection tree scanned the whole category list for every node, which is N × (N + 1) parent comparisons on a large catalogue. The builder now groups categories by parent ID once and recurses through each parent’s children in their original order, keeping levels, ancestor IDs, active flags and the serialized tree unchanged.
Expand the Varnish tracking parameter strip list — on GitHub
Marketing and tracking query parameters do not change page content, but each value created its own full page cache entry, which lowered the hit ratio. This backport of magento/magento2#40656 adds more parameters to the vcl_recv strip list in the varnish4.vcl to varnish7.vcl templates and to Identifier::getMarketingParameterPatterns(), so the PHP cache strips the same list.
Add Magento compatibility checks with GitHub Actions — on GitHub
One GitHub Actions workflow checks every pull request and push: Composer validation, PHP lint, the Magento coding standard, setup:di:compile, static content deployment, the unit tests and PHPStan, on the latest patch of each supported Magento Open Source release at its lowest and highest PHP version. The release list refreshes on every run, so a new Magento or PHP version is tested without a workflow change.
Add the CSP nonce only to the opening script tag — on GitHub
ReplaceInlineScripts::addCspNonce() ran str_replace('<script', ...) over the whole element, so every <script inside the JavaScript body, for example in document.write() or a template string, received the nonce and the inline code changed. Only the leading <script is replaced now.
Only merged work is listed here, and only the parts worth a comment — the full history, including everything still in review, lives on GitHub .
One GitHub Actions workflow checks every pull request and push: Composer validation, PHP lint, the Magento coding standard,
setup:di:compile, static content deployment, the unit tests and PHPStan, on the latest patch of each supported Magento Open Source release at its lowest and highest PHP version. The release list refreshes on every run, so a new Magento or PHP version is tested without a workflow change.