Skip to content

2nd take: Add weekly GitHub action cron job to check for new PHP versions - #4052

Merged
bcotrim merged 28 commits into
trunkfrom
codex/add-php-version-cron-check
Jul 14, 2026
Merged

2nd take: Add weekly GitHub action cron job to check for new PHP versions#4052
bcotrim merged 28 commits into
trunkfrom
codex/add-php-version-cron-check

Conversation

@fredrikekelund

Copy link
Copy Markdown
Contributor

Related issues

  • Fixes RSM-4591

How AI was used in this PR

Codex executed the implementation with iterative driving instructions from me.

Proposed Changes

See description in #4026. I mistakenly merged that PR to the base branch codex/remove-tsx-from-scripts before #4021 has been merged to trunk (which is the workflow I want).

This PR applies the changes from #4026 again, and it'll be merged after the base PR.

Testing Instructions

See #4026

Pre-merge Checklist

  • Have you checked for TypeScript, React or other console errors?
fredrikekelund and others added 19 commits July 1, 2026 11:17
## Related issues

<!--
Link a related issue to this PR. If the PR does not immediately resolve
the issue,
for example, it requires a separate deployment to production, avoid
using the "Fixes" keyword and use "Related to" instead.
-->

- Fixes RSM-4591

## How AI was used in this PR

<!--
Help reviewers understand what to look for and verify that you've
reviewed the code yourself.
-->

Codex executed the implementation with iterative driving instructions
from me.

## Proposed Changes

<!--
Explain the intent of this PR:
- What problem does it solve, or what need does it address?
- How does it affect the user (new capability, fix, performance,
accessibility, etc.)?
- Note any user-visible behavior changes or trade-offs.

Focus on the "why" and the user impact. Avoid listing modified files or
describing implementation mechanics — the diff already shows that.
-->

The `Build PHP CLI Binaries` GitHub Actions workflow gives us a really
smooth way of building new PHP binaries for all platforms. Input a PHP
version and set `apps_cdn_visibility` to `external`, and you get a PR
back that modifies the `php-binary-cdn-metadata.mjs` file. The missing
piece is automation that looks for new PHP versions and automatically
triggers those builds. This PR adds it as a weekly GitHub Actions cron
job.

For added safety, I've changed the `error_on_duplicate` parameter in the
`Build PHP CLI Binaries` job to true. Overwriting existing appscdn
packages would lead to errors in some local Studio CLI installations. We
should only do that if we really know what we're doing.

## Testing Instructions

<!--
Add as many details as possible to help others reproduce the issue and
test the fix.
"Before / After" screenshots can also be very helpful when the change is
visual.
-->

1. Generate a GitHub access token:
https://github.com/settings/personal-access-tokens
2. Run `GH_TOKEN=xxxxxx node scripts/check-php-cli-versions.mjs` (this
will only generate output and not trigger a CI workflow run)
3. Ensure that the script runs successfully (right now, you'll see that
there are new PHP versions available)

## Pre-merge Checklist

<!--
Complete applicable items on this checklist **before** merging into
trunk. Inapplicable items can be left unchecked.

Both the PR author and reviewer are responsible for ensuring the
checklist is completed.
-->

- [ ] Have you checked for TypeScript, React or other console errors?
…ns" (#4051)

Temporarily reverts #4026, as I mistakenly merged that
PR onto a feature branch, while I actually wanted to wait and merge it
to trunk when #4021 has been
merged
@fredrikekelund fredrikekelund self-assigned this Jul 2, 2026
@fredrikekelund
fredrikekelund requested a review from a team as a code owner July 2, 2026 10:49
@fredrikekelund

Copy link
Copy Markdown
Contributor Author

@bcotrim already approved #4026, but this deserves a quick second look once #4021 has landed (that's the base branch for this PR because it changes the PHP metadata file from a JSON file to a JS file)

@wojtekn

wojtekn commented Jul 14, 2026

Copy link
Copy Markdown
Contributor

@bcotrim, please help to bring this one to the finish line.

Base automatically changed from codex/remove-tsx-from-scripts to trunk July 14, 2026 08:05
@wpmobilebot

wpmobilebot commented Jul 14, 2026

Copy link
Copy Markdown
Collaborator

📊 Performance Test Results

Comparing bde9b92 vs trunk

app-size

Metric trunk bde9b92 Diff Change
App Size (Mac) 1350.36 MB 1350.34 MB 0.02 MB ⚪ 0.0%

site-editor

Metric trunk bde9b92 Diff Change
load 1039 ms 1062 ms +23 ms ⚪ 0.0%

site-startup

Metric trunk bde9b92 Diff Change
siteCreation 6999 ms 6984 ms 15 ms ⚪ 0.0%
siteStartup 2362 ms 2357 ms 5 ms ⚪ 0.0%

Results are median values from multiple test runs.

Legend: 🟢 Improvement (faster) | 🔴 Regression (slower) | ⚪ No change (<50ms diff)

@bcotrim
bcotrim enabled auto-merge (squash) July 14, 2026 10:14
@bcotrim
bcotrim merged commit 8dea144 into trunk Jul 14, 2026
11 checks passed
@bcotrim
bcotrim deleted the codex/add-php-version-cron-check branch July 14, 2026 10:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

4 participants