Skip to content

[5.x] Prepare Commerce development environment for Amp orbs - #4394

Merged
lukeholder merged 1 commit into
5.xfrom
orb-setup
Oct 30, 2026
Merged

lukeholder merged 1 commit into
5.xfrom
orb-setup

Conversation

@riasvdv

@riasvdv riasvdv commented Oct 28, 2026 •

Copy link
Copy Markdown
Contributor

Summary

+ .agents/setup       # PHP 8.2, Composer, pinned Node, locked dependencies, test database
+ .agents/resume      # Ensure PostgreSQL is available without reinstalling dependencies
+ .amp/services.yaml  # Supervised, loopback-only PostgreSQL
+ .gitignore          # Ignore generated portal state

Setup preserves existing environment files, checks installed system packages before invoking apt, verifies the Node download checksum, and makes the pinned toolchain available to non-interactive login shells. PostgreSQL uses disposable-test settings with durability disabled.

Evidence

  • Before: This orb had no PHP, Composer, or test database. Node was v26.12.1 rather than the repository's v16.13.0 pin.
    After: composer check-platform-reqs passes; a clean login shell finds PHP 8.2.35, Node v16.13.0, and npm 8.1.0, and connects to PostgreSQL through PDO.
  • Before: No lifecycle scripts prepared or repaired the environment.
    After: Repeated .agents/setup runs succeed. The final warm run took 4.96 seconds, preserved both environment files, and added no duplicate profile hook. .agents/resume started PostgreSQL in 0.24 seconds; its warm run took under 0.01 seconds.
  • vendor/bin/codecept run unit --fail-fast passed: 699 tests, 2,201 assertions.
  • Production webpack verification found an existing case-sensitive entry mismatch: the purchasable price field config requests purchasablepricefield.js, but the source is PurchasablePriceField.js. Other bundles compiled. Left unchanged as unrelated.

Orb setup becomes available to future orbs after this PR merges into 5.x.

@riasvdv
riasvdv requested a review from a team as a code owner October 28, 2026 15:36
@riasvdv riasvdv changed the title Prepare Commerce development environment for Amp orbs [5.x] Prepare Commerce development environment for Amp orbs Oct 28, 2026
@riasvdv
riasvdv requested a review from brandonkelly October 28, 2026 15:36
@lukeholder
lukeholder merged commit 3d10f63 into 5.x Oct 30, 2026
14 checks passed
@lukeholder
lukeholder deleted the orb-setup branch October 30, 2026 04:12
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