Skip to content

fix: pin the third-party WordPress plugins and prorate subscription upgrades - #28

Merged
YvesCesar merged 7 commits into
mainfrom
fix/pin-cloned-sources
Nov 16, 2026
Merged

YvesCesar merged 7 commits into
mainfrom
fix/pin-cloned-sources

Conversation

@YvesCesar

@YvesCesar YvesCesar commented Nov 14, 2026 •

Copy link
Copy Markdown
Member

Third-party plugins pinned to a commit

Polylang Pro and WooCommerce Subscriptions are cloned from third-party mirrors (gitlab.com/wordpress-premium/polylang-pro and pronamic/woocommerce-subscriptions), so every start of the local and E2E stores ran whatever those mirrors had at the time. Their post_install_commands now check out a fixed commit, the release each mirror's default branch points to today (Polylang Pro 3.7.6, WooCommerce Subscriptions 9.4.1).

The command fetches only when the plugin is not already at that commit, so restarts work offline. If the fetch fails, it prints a warning and keeps the current commit instead of failing: the wordpress-docker entrypoint runs with set -e, so a failing command would stop it before PHP-FPM starts and leave the container restarting.

Each pin line carries the release tag, the commit and the mirror URL. .github/renovate.json5 enables only custom.regex (Dependabot keeps the submodules, npm, Compose images and Actions) and follows the mirrors' tags with the git-tags datasource, so a new release becomes a PR that bumps the tag and the commit together, on Mondays.

The site, the Nextcloud apps and the LibreSign WordPress plugins and theme keep following main, since they only change through reviewed PRs. The README says which components are pinned and how they are updated.

Prorated subscription upgrades (#29)

The local and E2E stores now set woocommerce_subscriptions_apportion_recurring_price to yes-upgrade, as in production, and the plan change E2E test checks the prorated order total.

Verification

  • The pin command was run with the wordpress-docker entrypoint functions inside the published image, with set -e: it checks out the pinned commit, does nothing when already there with the remote unreachable, and warns and keeps the current commit when the fetch fails, reaching the PHP-FPM start in every case.
  • renovate-config-validator accepts the config. renovate --platform=local --dry-run=lookup, with Polylang Pro set back to v3.7.3, proposes v3.7.6 with its commit, and reports WooCommerce Subscriptions as up to date.
  • make test-config passes.

The Renovate app needs access to this repository for the PRs to be opened.

Signed-off-by: YvesCesar <yvesamorim73@gmail.com>
Signed-off-by: YvesCesar <yvesamorim73@gmail.com>
vitormattos and others added 3 commits November 14, 2026 13:32
fix: prorate subscription upgrades in the local and e2e stores
Signed-off-by: YvesCesar <yvesamorim73@gmail.com>
Signed-off-by: YvesCesar <yvesamorim73@gmail.com>
…d-party plugins

Signed-off-by: YvesCesar <yvesamorim73@gmail.com>
@YvesCesar YvesCesar changed the title fix: pin every component cloned at runtime to a commit fix: pin the third-party WordPress plugins and prorate subscription upgrades Nov 16, 2026
Signed-off-by: YvesCesar <yvesamorim73@gmail.com>
@YvesCesar
YvesCesar merged commit 03e910a into main Nov 16, 2026
4 checks passed
@YvesCesar
YvesCesar deleted the fix/pin-cloned-sources branch November 16, 2026 16:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants