perf(test): move ContentTypeResourceTests to template postman group (#36914) - #36915
perf(test): move ContentTypeResourceTests to template postman group (#36914)#36915wezell wants to merge 3 commits into
Conversation
…36914) Category Content ran ~40m with ContentTypeResourceTests alone taking 14m37s of it, while the Template job finished in ~10m (mostly boot overhead). Rebalancing the collection across existing groups cuts the Postman critical path ~15m without adding a job or paying another ~12m dotCMS boot. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
|
Claude finished @wezell's task in 2m 44s —— View job Code Review: Postman group rebalance
FindingsNo blocking issues. The change does what the description claims, and the reasoning holds up against the code. What I verified:
Minor (non-blocking)
Only real residual risk is the one the author already called out: an unmeasured runtime split. CI on this PR is the authority on both the timing win and the ordering assumption. |
…ained (#36914) The 'ensure' tests assert a Video content type exists, but nothing creates it eagerly at startup — it only existed because collections that previously ran before this one in the category-content group created it indirectly. Moving the collection to the template group exposed this (Video missing, dotAsset present). Add a create-if-missing setup request so the collection passes regardless of group placement or ordering. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
|
First run failed — root-caused and fixed in The Template job failed first (everything else was fail-fast cancellation):
Fix: added a create-if-missing setup request ( CI re-running now. |
|
Tick the box to add this pull request to the merge queue (same as
|
Proposed Changes
Config-only rebalance of Postman collection groups (
dotcms-postman/config.json): moveContentTypeResourceTestsfromcategory-contenttotemplate.Measured on run 31054926456: Category Content ≈ 40 min, of which ContentTypeResourceTests alone is 14m37s; the Template job is ~10 min (mostly the ~12 min shared boot overhead every Postman job pays). After the move both jobs land ≈ 25 min, cutting ~15 min off the Postman critical path with no new job and no extra dotCMS boot.
The
defaultgroup is computed as "all collections not in any named group" (dotcms-postman/index.js), so the collection still runs exactly once. Each Postman job boots its own dotCMS, so the only behavioral risk is an undiscovered ordering dependency of ContentTypeResourceTests on the two collections that previously ran before it in its old group — CI on this PR answers that.Related: #36910 / #36911 / #36913 (test speed initiative).
Checklist
🤖 Generated with Claude Code
This PR fixes: #36914