[{"data":1,"prerenderedAt":1811},["ShallowReactive",2],{"navigation":3,"\u002Fdeployment\u002Ffaster-behat-tests":409,"\u002Fdeployment\u002Ffaster-behat-tests-surround":1808},[4,14,36,69,144,384],{"title":5,"path":6,"stem":7,"children":8},"Introduction","\u002Fgetting-started","1.getting-started\u002F1.index",[9,10],{"title":5,"path":6,"stem":7},{"title":11,"path":12,"stem":13},"Installation","\u002Fgetting-started\u002Finstallation","1.getting-started\u002F2.installation",{"title":15,"path":16,"stem":17,"children":18,"page":35},"Guides","\u002Fguides","2.guides",[19,23,27,31],{"title":20,"path":21,"stem":22},"Your First Layout","\u002Fguides\u002Fyour-first-layout","2.guides\u002F1.your-first-layout",{"title":24,"path":25,"stem":26},"Your First Page Template","\u002Fguides\u002Fyour-first-page-template","2.guides\u002F2.your-first-page-template",{"title":28,"path":29,"stem":30},"Your First Component","\u002Fguides\u002Fyour-first-component","2.guides\u002F3.your-first-component",{"title":32,"path":33,"stem":34},"Alternative UI Variants","\u002Fguides\u002Falternative-ui-variants","2.guides\u002F4.alternative-ui-variants",false,{"title":37,"path":38,"stem":39,"children":40,"page":35},"Core Concepts","\u002Fcore-concepts","3.core-concepts",[41,45,49,53,57,61,65],{"title":42,"path":43,"stem":44},"How It All Works","\u002Fcore-concepts\u002Farchitecture","3.core-concepts\u002F1.architecture",{"title":46,"path":47,"stem":48},"The Data Model","\u002Fcore-concepts\u002Fthe-data-model","3.core-concepts\u002F2.the-data-model",{"title":50,"path":51,"stem":52},"Layouts & Pages","\u002Fcore-concepts\u002Flayouts-and-pages","3.core-concepts\u002F3.layouts-and-pages",{"title":54,"path":55,"stem":56},"Dynamic Pages","\u002Fcore-concepts\u002Fdynamic-pages","3.core-concepts\u002F4.dynamic-pages",{"title":58,"path":59,"stem":60},"Components","\u002Fcore-concepts\u002Fcomponents","3.core-concepts\u002F5.components",{"title":62,"path":63,"stem":64},"Draft & Publish Workflow","\u002Fcore-concepts\u002Fdraft-and-publish","3.core-concepts\u002F6.draft-and-publish",{"title":66,"path":67,"stem":68},"The Admin Panel","\u002Fcore-concepts\u002Fadmin-panel","3.core-concepts\u002F7.admin-panel",{"title":70,"path":71,"stem":72,"children":73,"page":35},"Api","\u002Fapi","4.api",[74,78,120,124,128,132,136,140],{"title":75,"path":76,"stem":77},"Bundle Setup","\u002Fapi\u002Fbundle-setup","4.api\u002F1.bundle-setup",{"title":58,"path":79,"stem":80,"children":81,"page":35},"\u002Fapi\u002Fcomponents","4.api\u002F2.components",[82,86,107],{"title":83,"path":84,"stem":85},"Creating Components","\u002Fapi\u002Fcomponents\u002Fcreating-components","4.api\u002F2.components\u002F1.creating-components",{"title":87,"path":88,"stem":89,"children":90,"page":35},"Annotations","\u002Fapi\u002Fcomponents\u002Fannotations","4.api\u002F2.components\u002F2.annotations",[91,95,99,103],{"title":92,"path":93,"stem":94},"Publishable","\u002Fapi\u002Fcomponents\u002Fannotations\u002Fpublishable","4.api\u002F2.components\u002F2.annotations\u002F1.publishable",{"title":96,"path":97,"stem":98},"Uploadable","\u002Fapi\u002Fcomponents\u002Fannotations\u002Fuploadable","4.api\u002F2.components\u002F2.annotations\u002F2.uploadable",{"title":100,"path":101,"stem":102},"Timestamped","\u002Fapi\u002Fcomponents\u002Fannotations\u002Ftimestamped","4.api\u002F2.components\u002F2.annotations\u002F3.timestamped",{"title":104,"path":105,"stem":106},"Explicit Allow Only","\u002Fapi\u002Fcomponents\u002Fannotations\u002Fexplicit-allow-only","4.api\u002F2.components\u002F2.annotations\u002F4.explicit-allow-only",{"title":108,"path":109,"stem":110,"children":111,"page":35},"Built Ins","\u002Fapi\u002Fcomponents\u002Fbuilt-ins","4.api\u002F2.components\u002F3.built-ins",[112,116],{"title":113,"path":114,"stem":115},"Collection Component","\u002Fapi\u002Fcomponents\u002Fbuilt-ins\u002Fcollection-component","4.api\u002F2.components\u002F3.built-ins\u002F1.collection-component",{"title":117,"path":118,"stem":119},"Form Component","\u002Fapi\u002Fcomponents\u002Fbuilt-ins\u002Fform-component","4.api\u002F2.components\u002F3.built-ins\u002F2.form-component",{"title":121,"path":122,"stem":123},"Dynamic & Nested Pages","\u002Fapi\u002Fdynamic-pages","4.api\u002F3.dynamic-pages",{"title":125,"path":126,"stem":127},"Users & Security","\u002Fapi\u002Fusers-and-security","4.api\u002F4.users-and-security",{"title":129,"path":130,"stem":131},"Data Fixtures","\u002Fapi\u002Fdata-fixtures","4.api\u002F5.data-fixtures",{"title":133,"path":134,"stem":135},"Configuration Reference","\u002Fapi\u002Fconfiguration","4.api\u002F6.configuration",{"title":137,"path":138,"stem":139},"Console Commands","\u002Fapi\u002Fconsole-commands","4.api\u002F7.console-commands",{"title":141,"path":142,"stem":143},"Debugging & Profiler","\u002Fapi\u002Fdebugging","4.api\u002F8.debugging",{"title":145,"path":146,"stem":147,"children":148,"page":35},"Nuxt Module","\u002Fnuxt-module","5.nuxt-module",[149,153,157,161,174,194,215,248,332,356,360],{"title":150,"path":151,"stem":152},"Module Setup","\u002Fnuxt-module\u002Fmodule-setup","5.nuxt-module\u002F1.module-setup",{"title":154,"path":155,"stem":156},"PWA & Offline","\u002Fnuxt-module\u002Fpwa","5.nuxt-module\u002F10.pwa",{"title":158,"path":159,"stem":160},"Page Caching","\u002Fnuxt-module\u002Fpage-caching","5.nuxt-module\u002F11.page-caching",{"title":162,"path":163,"stem":164,"children":165,"page":35},"Configuration","\u002Fnuxt-module\u002Fconfiguration","5.nuxt-module\u002F2.configuration",[166,170],{"title":167,"path":168,"stem":169},"Nuxt Config","\u002Fnuxt-module\u002Fconfiguration\u002Fnuxt-config","5.nuxt-module\u002F2.configuration\u002F1.nuxt-config",{"title":171,"path":172,"stem":173},"Site Config & SEO","\u002Fnuxt-module\u002Fconfiguration\u002Fsite-config-and-seo","5.nuxt-module\u002F2.configuration\u002F2.site-config-and-seo",{"title":175,"path":176,"stem":177,"children":178,"page":35},"Building Your Ui","\u002Fnuxt-module\u002Fbuilding-your-ui","5.nuxt-module\u002F3.building-your-ui",[179,183,187,190],{"title":180,"path":181,"stem":182},"Layouts","\u002Fnuxt-module\u002Fbuilding-your-ui\u002Fcreating-layouts","5.nuxt-module\u002F3.building-your-ui\u002F1.creating-layouts",{"title":184,"path":185,"stem":186},"Page Templates","\u002Fnuxt-module\u002Fbuilding-your-ui\u002Fcreating-page-templates","5.nuxt-module\u002F3.building-your-ui\u002F2.creating-page-templates",{"title":83,"path":188,"stem":189},"\u002Fnuxt-module\u002Fbuilding-your-ui\u002Fcreating-components","5.nuxt-module\u002F3.building-your-ui\u002F3.creating-components",{"title":191,"path":192,"stem":193},"CLI Generator","\u002Fnuxt-module\u002Fbuilding-your-ui\u002Fcwa-cli","5.nuxt-module\u002F3.building-your-ui\u002F4.cwa-cli",{"title":195,"path":196,"stem":197,"children":198,"page":35},"Cwa Components","\u002Fnuxt-module\u002Fcwa-components","5.nuxt-module\u002F4.cwa-components",[199,203,207,211],{"title":200,"path":201,"stem":202},"\u003CCwaComponentGroup \u002F>","\u002Fnuxt-module\u002Fcwa-components\u002Fcwa-component-group","5.nuxt-module\u002F4.cwa-components\u002F1.cwa-component-group",{"title":204,"path":205,"stem":206},"\u003CCwaPage \u002F>","\u002Fnuxt-module\u002Fcwa-components\u002Fcwa-page","5.nuxt-module\u002F4.cwa-components\u002F2.cwa-page",{"title":208,"path":209,"stem":210},"\u003CCwaLink \u002F>","\u002Fnuxt-module\u002Fcwa-components\u002Fcwa-link","5.nuxt-module\u002F4.cwa-components\u002F3.cwa-link",{"title":212,"path":213,"stem":214},"\u003CCwaDefaultLayout \u002F>","\u002Fnuxt-module\u002Fcwa-components\u002Fcwa-default-layout","5.nuxt-module\u002F4.cwa-components\u002F5.cwa-default-layout",{"title":216,"path":217,"stem":218,"children":219,"page":35},"Cwa Api","\u002Fnuxt-module\u002Fcwa-api","5.nuxt-module\u002F5.cwa-api",[220,224,228,232,236,240,244],{"title":221,"path":222,"stem":223},"Overview","\u002Fnuxt-module\u002Fcwa-api\u002Foverview","5.nuxt-module\u002F5.cwa-api\u002F1.overview",{"title":225,"path":226,"stem":227},"Resources","\u002Fnuxt-module\u002Fcwa-api\u002Fresources","5.nuxt-module\u002F5.cwa-api\u002F2.resources",{"title":229,"path":230,"stem":231},"Resources Manager","\u002Fnuxt-module\u002Fcwa-api\u002Fresources-manager","5.nuxt-module\u002F5.cwa-api\u002F3.resources-manager",{"title":233,"path":234,"stem":235},"Auth","\u002Fnuxt-module\u002Fcwa-api\u002Fauth","5.nuxt-module\u002F5.cwa-api\u002F4.auth",{"title":237,"path":238,"stem":239},"Forms","\u002Fnuxt-module\u002Fcwa-api\u002Fforms","5.nuxt-module\u002F5.cwa-api\u002F5.forms",{"title":241,"path":242,"stem":243},"Admin","\u002Fnuxt-module\u002Fcwa-api\u002Fadmin","5.nuxt-module\u002F5.cwa-api\u002F6.admin",{"title":245,"path":246,"stem":247},"Site Config","\u002Fnuxt-module\u002Fcwa-api\u002Fsite-config","5.nuxt-module\u002F5.cwa-api\u002F7.site-config",{"title":249,"path":250,"stem":251,"children":252,"page":35},"Composables","\u002Fnuxt-module\u002Fcomposables","5.nuxt-module\u002F6.composables",[253,261,298,315],{"title":254,"path":255,"stem":256,"children":257,"page":35},"Layout","\u002Fnuxt-module\u002Fcomposables\u002Flayout","5.nuxt-module\u002F6.composables\u002F0.layout",[258],{"title":254,"path":259,"stem":260},"\u002Fnuxt-module\u002Fcomposables\u002Flayout\u002Fuse-cwa-layout","5.nuxt-module\u002F6.composables\u002F0.layout\u002F1.use-cwa-layout",{"title":262,"path":263,"stem":264,"children":265,"page":35},"Component","\u002Fnuxt-module\u002Fcomposables\u002Fcomponent","5.nuxt-module\u002F6.composables\u002F1.component",[266,270,274,278,282,286,290,294],{"title":267,"path":268,"stem":269},"Component (recommended)","\u002Fnuxt-module\u002Fcomposables\u002Fcomponent\u002Fuse-cwa-component","5.nuxt-module\u002F6.composables\u002F1.component\u002F0.use-cwa-component",{"title":271,"path":272,"stem":273},"Resource","\u002Fnuxt-module\u002Fcomposables\u002Fcomponent\u002Fuse-cwa-resource","5.nuxt-module\u002F6.composables\u002F1.component\u002F1.use-cwa-resource",{"title":275,"path":276,"stem":277},"Collection Resource","\u002Fnuxt-module\u002Fcomposables\u002Fcomponent\u002Fuse-cwa-collection-resource","5.nuxt-module\u002F6.composables\u002F1.component\u002F2.use-cwa-collection-resource",{"title":279,"path":280,"stem":281},"File Field","\u002Fnuxt-module\u002Fcomposables\u002Fcomponent\u002Fuse-cwa-file-field","5.nuxt-module\u002F6.composables\u002F1.component\u002F3.use-cwa-file-field",{"title":283,"path":284,"stem":285},"Form","\u002Fnuxt-module\u002Fcomposables\u002Fcomponent\u002Fuse-cwa-form","5.nuxt-module\u002F6.composables\u002F1.component\u002F4.use-cwa-form",{"title":287,"path":288,"stem":289},"Form Input","\u002Fnuxt-module\u002Fcomposables\u002Fcomponent\u002Fuse-cwa-form-input","5.nuxt-module\u002F6.composables\u002F1.component\u002F5.use-cwa-form-input",{"title":291,"path":292,"stem":293},"Form Repeated","\u002Fnuxt-module\u002Fcomposables\u002Fcomponent\u002Fuse-cwa-form-repeated","5.nuxt-module\u002F6.composables\u002F1.component\u002F6.use-cwa-form-repeated",{"title":295,"path":296,"stem":297},"Form Collection","\u002Fnuxt-module\u002Fcomposables\u002Fcomponent\u002Fuse-cwa-form-collection","5.nuxt-module\u002F6.composables\u002F1.component\u002F7.use-cwa-form-collection",{"title":299,"path":300,"stem":301,"children":302,"page":35},"Admin Manager","\u002Fnuxt-module\u002Fcomposables\u002Fadmin-manager","5.nuxt-module\u002F6.composables\u002F2.admin-manager",[303,307,311],{"title":304,"path":305,"stem":306},"Manager Tab","\u002Fnuxt-module\u002Fcomposables\u002Fadmin-manager\u002Fuse-cwa-resource-manager-tab","5.nuxt-module\u002F6.composables\u002F2.admin-manager\u002F1.use-cwa-resource-manager-tab",{"title":308,"path":309,"stem":310},"Resource Model","\u002Fnuxt-module\u002Fcomposables\u002Fadmin-manager\u002Fuse-cwa-resource-model","5.nuxt-module\u002F6.composables\u002F2.admin-manager\u002F2.use-cwa-resource-model",{"title":312,"path":313,"stem":314},"Resource Upload","\u002Fnuxt-module\u002Fcomposables\u002Fadmin-manager\u002Fuse-cwa-resource-upload","5.nuxt-module\u002F6.composables\u002F2.admin-manager\u002F3.use-cwa-resource-upload",{"title":316,"path":317,"stem":318,"children":319,"page":35},"Utilities","\u002Fnuxt-module\u002Fcomposables\u002Futilities","5.nuxt-module\u002F6.composables\u002F3.utilities",[320,324,328],{"title":321,"path":322,"stem":323},"Resource Endpoint","\u002Fnuxt-module\u002Fcomposables\u002Futilities\u002Fuse-cwa-resource-endpoint","5.nuxt-module\u002F6.composables\u002F3.utilities\u002F1.use-cwa-resource-endpoint",{"title":325,"path":326,"stem":327},"Query Model","\u002Fnuxt-module\u002Fcomposables\u002Futilities\u002Fuse-query-bound-model","5.nuxt-module\u002F6.composables\u002F3.utilities\u002F2.use-query-bound-model",{"title":329,"path":330,"stem":331},"Resource Route","\u002Fnuxt-module\u002Fcomposables\u002Futilities\u002Fuse-cwa-resource-route","5.nuxt-module\u002F6.composables\u002F3.utilities\u002F3.use-cwa-resource-route",{"title":333,"path":334,"stem":335,"children":336,"page":35},"Component Helpers","\u002Fnuxt-module\u002Fcomponent-helpers","5.nuxt-module\u002F7.component-helpers",[337,341,345,349,353],{"title":338,"path":339,"stem":340},"Images & Media","\u002Fnuxt-module\u002Fcomponent-helpers\u002Fimages-and-uploads","5.nuxt-module\u002F7.component-helpers\u002F1.images-and-uploads",{"title":342,"path":343,"stem":344},"Collections & Pagination","\u002Fnuxt-module\u002Fcomponent-helpers\u002Fcollections-and-pagination","5.nuxt-module\u002F7.component-helpers\u002F2.collections-and-pagination",{"title":346,"path":347,"stem":348},"HTML Content","\u002Fnuxt-module\u002Fcomponent-helpers\u002Fhtml-content","5.nuxt-module\u002F7.component-helpers\u002F3.html-content",{"title":350,"path":351,"stem":352},"Real-Time Updates","\u002Fnuxt-module\u002Fcomponent-helpers\u002Freal-time-updates","5.nuxt-module\u002F7.component-helpers\u002F4.real-time-updates",{"title":237,"path":354,"stem":355},"\u002Fnuxt-module\u002Fcomponent-helpers\u002Fforms","5.nuxt-module\u002F7.component-helpers\u002F5.forms",{"title":357,"path":358,"stem":359},"Authentication","\u002Fnuxt-module\u002Fauthentication","5.nuxt-module\u002F8.authentication",{"title":361,"path":362,"stem":363,"children":364,"page":35},"Cwa Layer","\u002Fnuxt-module\u002Fcwa-layer","5.nuxt-module\u002F9.cwa-layer",[365,368,372,376,380],{"title":221,"path":366,"stem":367},"\u002Fnuxt-module\u002Fcwa-layer\u002Foverview","5.nuxt-module\u002F9.cwa-layer\u002F1.overview",{"title":369,"path":370,"stem":371},"Auth Pages","\u002Fnuxt-module\u002Fcwa-layer\u002Fauth-pages","5.nuxt-module\u002F9.cwa-layer\u002F2.auth-pages",{"title":373,"path":374,"stem":375},"Admin Panel","\u002Fnuxt-module\u002Fcwa-layer\u002Fadmin-panel","5.nuxt-module\u002F9.cwa-layer\u002F3.admin-panel",{"title":377,"path":378,"stem":379},"Styling","\u002Fnuxt-module\u002Fcwa-layer\u002Fstyling","5.nuxt-module\u002F9.cwa-layer\u002F4.styling",{"title":381,"path":382,"stem":383},"Date Pickers","\u002Fnuxt-module\u002Fcwa-layer\u002Fdate-pickers","5.nuxt-module\u002F9.cwa-layer\u002F5.date-pickers",{"title":385,"path":386,"stem":387,"children":388,"page":35},"Deployment","\u002Fdeployment","6.deployment",[389,393,397,401,405],{"title":390,"path":391,"stem":392},"Docker","\u002Fdeployment\u002Fdocker","6.deployment\u002F1.docker",{"title":394,"path":395,"stem":396},"Kubernetes & Helm","\u002Fdeployment\u002Fkubernetes","6.deployment\u002F2.kubernetes",{"title":398,"path":399,"stem":400},"CI\u002FCD","\u002Fdeployment\u002Fci-cd","6.deployment\u002F3.ci-cd",{"title":402,"path":403,"stem":404},"Load Testing","\u002Fdeployment\u002Fload-testing","6.deployment\u002F4.load-testing",{"title":406,"path":407,"stem":408},"Faster Behat Tests","\u002Fdeployment\u002Ffaster-behat-tests","6.deployment\u002F5.faster-behat-tests",{"id":410,"title":406,"badge":411,"body":412,"description":1803,"extension":1804,"links":411,"meta":1805,"navigation":637,"path":407,"seo":1806,"stem":408,"__hash__":1807},"docs\u002F6.deployment\u002F5.faster-behat-tests.md",null,{"type":413,"value":414,"toc":1795},"minimark",[415,424,436,447,452,455,503,507,513,593,607,610,1453,1456,1463,1469,1473,1480,1504,1507,1511,1530,1579,1595,1695,1698,1702,1705,1716,1727,1731,1781,1784,1791],[416,417,418,419,423],"p",{},"The template's ",[420,421,422],"code",{},"behat tests"," job runs one scenario. Almost all of its time is spent starting the container and Postgres, so there is nothing here to speed up. This page is for a project whose own suite has grown to hundreds of scenarios.",[416,425,426,427,431,432,435],{},"It is ",[428,429,430],"strong",{},"guidance, not a template default",". Sharding a small suite only adds runner cost, and GitLab's ",[420,433,434],{},"parallel:"," count is fixed in the YAML, so it can't size itself to the suite.",[437,438,440],"callout",{"icon":439},"i-heroicons-information-circle",[416,441,442,443,446],{},"The numbers on this page come from another CWA-based project with 211 scenarios, where the job went from about ",[428,444,445],{},"568s to 81s",". Measure your own suite before you copy anything: the right fix depends on where your time goes.",[448,449,451],"h2",{"id":450},"measure-first","Measure first",[416,453,454],{},"Two numbers tell you which fix you need:",[456,457,458,477],"ul",{},[459,460,461,464,465,468,469,472,473,476],"li",{},[428,462,463],{},"The reset's share of the run."," Time the ",[420,466,467],{},"@BeforeScenario"," hook in ",[420,470,471],{},"api\u002Ffeatures\u002Fbootstrap\u002FDoctrineContext.php"," and compare it with the whole suite. In that project, rebuilding the schema was ",[428,474,475],{},"66%"," of the run time, spread evenly across scenarios.",[459,478,479,482,483,486,487,490,491,494,495,498,499,502],{},[428,480,481],{},"The per-file distribution."," ",[420,484,485],{},"run_test_behat"," writes JUnit XML to ",[420,488,489],{},"api\u002Fbuild\u002Flogs\u002Fbehat\u002Fjunit\u002F",". Each feature file is a ",[420,492,493],{},"\u003Ctestsuite>"," and each scenario a ",[420,496,497],{},"\u003Ctestcase>",", both with a ",[420,500,501],{},"time"," attribute. If a few files take most of the time, fix those files instead.",[448,504,506],{"id":505},"reset-the-database-without-rebuilding-the-schema","Reset the database without rebuilding the schema",[416,508,418,509,512],{},[420,510,511],{},"DoctrineContext"," drops and recreates the whole schema before every scenario. That project measured four ways to reset:",[514,515,516,530],"table",{},[517,518,519],"thead",{},[520,521,522,526],"tr",{},[523,524,525],"th",{},"Reset",[523,527,529],{"align":528},"right","ms per scenario",[531,532,533,549,560,576],"tbody",{},[520,534,535,546],{},[536,537,538,541,542,545],"td",{},[420,539,540],{},"dropSchema"," + ",[420,543,544],{},"createSchema"," (the template)",[536,547,548],{"align":528},"756",[520,550,551,557],{},[536,552,553,554],{},"One ",[420,555,556],{},"TRUNCATE … RESTART IDENTITY CASCADE",[536,558,559],{"align":528},"185",[520,561,562,571],{},[536,563,564,567,568],{},[420,565,566],{},"ORMPurger"," in ",[420,569,570],{},"PURGE_MODE_TRUNCATE",[536,572,573],{"align":528},[428,574,575],{},"6,193",[520,577,578,588],{},[536,579,580],{},[428,581,582,567,584,587],{},[420,583,566],{},[420,585,586],{},"PURGE_MODE_DELETE",", plus a sequence reset",[536,589,590],{"align":528},[428,591,592],{},"22",[416,594,595,596,598,599,602,603,606],{},"Truncate mode is a trap: the purger runs one statement per table, and each is its own transaction. Delete mode deletes in Doctrine's commit order, so foreign keys need no special handling. ",[420,597,566],{}," comes from ",[420,600,601],{},"doctrine\u002Fdata-fixtures",", which the template already installs through ",[420,604,605],{},"doctrine\u002Fdoctrine-fixtures-bundle",".",[416,608,609],{},"Build the schema once, for the first scenario, then purge:",[611,612,617],"pre",{"className":613,"code":614,"filename":471,"language":615,"meta":616,"style":616},"language-php shiki shiki-themes github-light github-dark material-theme-palenight has-focused","\u003C?php\n\ndeclare(strict_types=1);\n\nnamespace App\\Features\\Bootstrap;\n\nuse Behat\\Behat\\Context\\Context;\nuse Doctrine\\Common\\DataFixtures\\Purger\\ORMPurger;\nuse Doctrine\\ORM\\EntityManagerInterface;\nuse Doctrine\\ORM\\Tools\\SchemaTool;\nuse Doctrine\\Persistence\\ManagerRegistry;\n\nclass DoctrineContext implements Context\n{\n    private static bool $schemaCreated = false; \u002F\u002F [!code focus]\n    private EntityManagerInterface $manager;\n\n    public function __construct(ManagerRegistry $doctrine)\n    {\n        $this->manager = $doctrine->getManager();\n    }\n\n    \u002F**\n     * @BeforeScenario\n     *\u002F\n    public function resetDatabase(): void\n    {\n        if (!self::$schemaCreated) { \u002F\u002F [!code focus]\n            $classes = $this->manager->getMetadataFactory()->getAllMetadata();\n            $schemaTool = new SchemaTool($this->manager);\n            $schemaTool->dropSchema($classes);\n            $schemaTool->createSchema($classes);\n            self::$schemaCreated = true;\n        } else {\n            (new ORMPurger($this->manager))->purge(); \u002F\u002F PURGE_MODE_DELETE is the default \u002F\u002F [!code focus]\n            $this->restartSequences(); \u002F\u002F [!code focus]\n        }\n        $this->manager->clear();\n    }\n\n    private function restartSequences(): void\n    {\n        $connection = $this->manager->getConnection();\n        $sequences = $connection->fetchFirstColumn(\n            \"SELECT quote_ident(sequence_schema) || '.' || quote_ident(sequence_name)\n             FROM information_schema.sequences WHERE sequence_schema = current_schema()\"\n        );\n        foreach ($sequences as $sequence) {\n            $connection->executeStatement('ALTER SEQUENCE '.$sequence.' RESTART');\n        }\n    }\n}\n","php","",[420,618,619,632,639,663,668,694,699,725,754,773,796,815,820,836,842,871,887,892,917,923,950,956,961,968,974,980,999,1004,1035,1067,1094,1114,1131,1150,1162,1197,1211,1217,1233,1238,1243,1259,1264,1288,1311,1336,1365,1371,1394,1437,1442,1447],{"__ignoreMap":616},[620,621,624,628],"span",{"class":622,"line":623},"line",1,[620,625,627],{"class":626},"sVlFx","\u003C?",[620,629,631],{"class":630},"sc2zw","php\n",[620,633,635],{"class":622,"line":634},2,[620,636,638],{"emptyLinePlaceholder":637},true,"\n",[620,640,642,646,650,653,656,660],{"class":622,"line":641},3,[620,643,645],{"class":644},"sm4w6","declare",[620,647,649],{"class":648},"sOvfz","(",[620,651,652],{"class":630},"strict_types",[620,654,655],{"class":626},"=",[620,657,659],{"class":658},"scSvc","1",[620,661,662],{"class":648},");\n",[620,664,666],{"class":622,"line":665},4,[620,667,638],{"emptyLinePlaceholder":637},[620,669,671,675,679,683,686,688,691],{"class":622,"line":670},5,[620,672,674],{"class":673},"stmX-","namespace",[620,676,678],{"class":677},"sRCss"," App",[620,680,682],{"class":681},"sn4go","\\",[620,684,685],{"class":677},"Features",[620,687,682],{"class":681},[620,689,690],{"class":677},"Bootstrap",[620,692,693],{"class":648},";\n",[620,695,697],{"class":622,"line":696},6,[620,698,638],{"emptyLinePlaceholder":637},[620,700,702,705,708,711,714,716,719,721,723],{"class":622,"line":701},7,[620,703,704],{"class":673},"use",[620,706,707],{"class":630}," Behat",[620,709,682],{"class":710},"sBtbT",[620,712,713],{"class":630},"Behat",[620,715,682],{"class":710},[620,717,718],{"class":630},"Context",[620,720,682],{"class":710},[620,722,718],{"class":630},[620,724,693],{"class":648},[620,726,728,730,733,735,738,740,743,745,748,750,752],{"class":622,"line":727},8,[620,729,704],{"class":673},[620,731,732],{"class":630}," Doctrine",[620,734,682],{"class":710},[620,736,737],{"class":630},"Common",[620,739,682],{"class":710},[620,741,742],{"class":630},"DataFixtures",[620,744,682],{"class":710},[620,746,747],{"class":630},"Purger",[620,749,682],{"class":710},[620,751,566],{"class":630},[620,753,693],{"class":648},[620,755,757,759,761,763,766,768,771],{"class":622,"line":756},9,[620,758,704],{"class":673},[620,760,732],{"class":630},[620,762,682],{"class":710},[620,764,765],{"class":630},"ORM",[620,767,682],{"class":710},[620,769,770],{"class":630},"EntityManagerInterface",[620,772,693],{"class":648},[620,774,776,778,780,782,784,786,789,791,794],{"class":622,"line":775},10,[620,777,704],{"class":673},[620,779,732],{"class":630},[620,781,682],{"class":710},[620,783,765],{"class":630},[620,785,682],{"class":710},[620,787,788],{"class":630},"Tools",[620,790,682],{"class":710},[620,792,793],{"class":630},"SchemaTool",[620,795,693],{"class":648},[620,797,799,801,803,805,808,810,813],{"class":622,"line":798},11,[620,800,704],{"class":673},[620,802,732],{"class":630},[620,804,682],{"class":710},[620,806,807],{"class":630},"Persistence",[620,809,682],{"class":710},[620,811,812],{"class":630},"ManagerRegistry",[620,814,693],{"class":648},[620,816,818],{"class":622,"line":817},12,[620,819,638],{"emptyLinePlaceholder":637},[620,821,823,827,830,833],{"class":622,"line":822},13,[620,824,826],{"class":825},"swB56","class",[620,828,829],{"class":677}," DoctrineContext",[620,831,832],{"class":825}," implements",[620,834,835],{"class":677}," Context\n",[620,837,839],{"class":622,"line":838},14,[620,840,841],{"class":648},"{\n",[620,843,847,850,853,856,859,863,865,868],{"class":844,"line":846},[622,845],"focused",15,[620,848,849],{"class":825},"    private",[620,851,852],{"class":825}," static",[620,854,855],{"class":673}," bool",[620,857,858],{"class":648}," $",[620,860,862],{"class":861},"sPB8G","schemaCreated ",[620,864,655],{"class":626},[620,866,867],{"class":710}," false",[620,869,870],{"class":648},";",[620,872,874,876,880,882,885],{"class":622,"line":873},16,[620,875,849],{"class":825},[620,877,879],{"class":878},"sbW4m"," EntityManagerInterface",[620,881,858],{"class":648},[620,883,884],{"class":861},"manager",[620,886,693],{"class":648},[620,888,890],{"class":622,"line":889},17,[620,891,638],{"emptyLinePlaceholder":637},[620,893,895,898,901,905,907,909,911,914],{"class":622,"line":894},18,[620,896,897],{"class":825},"    public",[620,899,900],{"class":825}," function",[620,902,904],{"class":903},"s3Ny6"," __construct",[620,906,649],{"class":648},[620,908,812],{"class":878},[620,910,858],{"class":648},[620,912,913],{"class":861},"doctrine",[620,915,916],{"class":648},")\n",[620,918,920],{"class":622,"line":919},19,[620,921,922],{"class":648},"    {\n",[620,924,926,929,932,935,937,939,941,943,947],{"class":622,"line":925},20,[620,927,928],{"class":710},"        $this",[620,930,931],{"class":626},"->",[620,933,934],{"class":861},"manager ",[620,936,655],{"class":626},[620,938,858],{"class":648},[620,940,913],{"class":861},[620,942,931],{"class":626},[620,944,946],{"class":945},"sKpYG","getManager",[620,948,949],{"class":648},"();\n",[620,951,953],{"class":622,"line":952},21,[620,954,955],{"class":648},"    }\n",[620,957,959],{"class":622,"line":958},22,[620,960,638],{"emptyLinePlaceholder":637},[620,962,964],{"class":622,"line":963},23,[620,965,967],{"class":966},"sTBSN","    \u002F**\n",[620,969,971],{"class":622,"line":970},24,[620,972,973],{"class":966},"     * @BeforeScenario\n",[620,975,977],{"class":622,"line":976},25,[620,978,979],{"class":966},"     *\u002F\n",[620,981,983,985,987,990,993,996],{"class":622,"line":982},26,[620,984,897],{"class":825},[620,986,900],{"class":825},[620,988,989],{"class":945}," resetDatabase",[620,991,992],{"class":648},"()",[620,994,995],{"class":626},":",[620,997,998],{"class":673}," void\n",[620,1000,1002],{"class":622,"line":1001},27,[620,1003,922],{"class":648},[620,1005,1008,1011,1014,1017,1020,1023,1026,1029,1032],{"class":1006,"line":1007},[622,845],28,[620,1009,1010],{"class":644},"        if",[620,1012,1013],{"class":648}," (",[620,1015,1016],{"class":626},"!",[620,1018,1019],{"class":825},"self",[620,1021,1022],{"class":626},"::",[620,1024,1025],{"class":648},"$",[620,1027,1028],{"class":861},"schemaCreated",[620,1030,1031],{"class":648},")",[620,1033,1034],{"class":648}," {",[620,1036,1038,1041,1044,1046,1049,1051,1053,1055,1058,1060,1062,1065],{"class":622,"line":1037},29,[620,1039,1040],{"class":648},"            $",[620,1042,1043],{"class":861},"classes ",[620,1045,655],{"class":626},[620,1047,1048],{"class":710}," $this",[620,1050,931],{"class":626},[620,1052,884],{"class":861},[620,1054,931],{"class":626},[620,1056,1057],{"class":945},"getMetadataFactory",[620,1059,992],{"class":648},[620,1061,931],{"class":626},[620,1063,1064],{"class":945},"getAllMetadata",[620,1066,949],{"class":648},[620,1068,1070,1072,1075,1077,1080,1083,1085,1088,1090,1092],{"class":622,"line":1069},30,[620,1071,1040],{"class":648},[620,1073,1074],{"class":861},"schemaTool ",[620,1076,655],{"class":626},[620,1078,1079],{"class":673}," new",[620,1081,1082],{"class":878}," SchemaTool",[620,1084,649],{"class":648},[620,1086,1087],{"class":710},"$this",[620,1089,931],{"class":626},[620,1091,884],{"class":861},[620,1093,662],{"class":648},[620,1095,1097,1099,1102,1104,1106,1109,1112],{"class":622,"line":1096},31,[620,1098,1040],{"class":648},[620,1100,1101],{"class":861},"schemaTool",[620,1103,931],{"class":626},[620,1105,540],{"class":945},[620,1107,1108],{"class":648},"($",[620,1110,1111],{"class":861},"classes",[620,1113,662],{"class":648},[620,1115,1117,1119,1121,1123,1125,1127,1129],{"class":622,"line":1116},32,[620,1118,1040],{"class":648},[620,1120,1101],{"class":861},[620,1122,931],{"class":626},[620,1124,544],{"class":945},[620,1126,1108],{"class":648},[620,1128,1111],{"class":861},[620,1130,662],{"class":648},[620,1132,1134,1137,1139,1141,1143,1145,1148],{"class":622,"line":1133},33,[620,1135,1136],{"class":825},"            self",[620,1138,1022],{"class":626},[620,1140,1025],{"class":648},[620,1142,862],{"class":861},[620,1144,655],{"class":626},[620,1146,1147],{"class":710}," true",[620,1149,693],{"class":648},[620,1151,1153,1156,1159],{"class":622,"line":1152},34,[620,1154,1155],{"class":648},"        }",[620,1157,1158],{"class":644}," else",[620,1160,1161],{"class":648}," {\n",[620,1163,1166,1169,1172,1175,1177,1179,1181,1183,1186,1188,1191,1194],{"class":1164,"line":1165},[622,845],35,[620,1167,1168],{"class":648},"            (",[620,1170,1171],{"class":673},"new",[620,1173,1174],{"class":878}," ORMPurger",[620,1176,649],{"class":648},[620,1178,1087],{"class":710},[620,1180,931],{"class":626},[620,1182,884],{"class":861},[620,1184,1185],{"class":648},"))",[620,1187,931],{"class":626},[620,1189,1190],{"class":945},"purge",[620,1192,1193],{"class":648},"();",[620,1195,1196],{"class":966}," \u002F\u002F PURGE_MODE_DELETE is the default",[620,1198,1201,1204,1206,1209],{"class":1199,"line":1200},[622,845],36,[620,1202,1203],{"class":710},"            $this",[620,1205,931],{"class":626},[620,1207,1208],{"class":945},"restartSequences",[620,1210,1193],{"class":648},[620,1212,1214],{"class":622,"line":1213},37,[620,1215,1216],{"class":648},"        }\n",[620,1218,1220,1222,1224,1226,1228,1231],{"class":622,"line":1219},38,[620,1221,928],{"class":710},[620,1223,931],{"class":626},[620,1225,884],{"class":861},[620,1227,931],{"class":626},[620,1229,1230],{"class":945},"clear",[620,1232,949],{"class":648},[620,1234,1236],{"class":622,"line":1235},39,[620,1237,955],{"class":648},[620,1239,1241],{"class":622,"line":1240},40,[620,1242,638],{"emptyLinePlaceholder":637},[620,1244,1246,1248,1250,1253,1255,1257],{"class":622,"line":1245},41,[620,1247,849],{"class":825},[620,1249,900],{"class":825},[620,1251,1252],{"class":945}," restartSequences",[620,1254,992],{"class":648},[620,1256,995],{"class":626},[620,1258,998],{"class":673},[620,1260,1262],{"class":622,"line":1261},42,[620,1263,922],{"class":648},[620,1265,1267,1270,1273,1275,1277,1279,1281,1283,1286],{"class":622,"line":1266},43,[620,1268,1269],{"class":648},"        $",[620,1271,1272],{"class":861},"connection ",[620,1274,655],{"class":626},[620,1276,1048],{"class":710},[620,1278,931],{"class":626},[620,1280,884],{"class":861},[620,1282,931],{"class":626},[620,1284,1285],{"class":945},"getConnection",[620,1287,949],{"class":648},[620,1289,1291,1293,1296,1298,1300,1303,1305,1308],{"class":622,"line":1290},44,[620,1292,1269],{"class":648},[620,1294,1295],{"class":861},"sequences ",[620,1297,655],{"class":626},[620,1299,858],{"class":648},[620,1301,1302],{"class":861},"connection",[620,1304,931],{"class":626},[620,1306,1307],{"class":945},"fetchFirstColumn",[620,1309,1310],{"class":648},"(\n",[620,1312,1314,1318,1321,1325,1328,1331,1333],{"class":622,"line":1313},45,[620,1315,1317],{"class":1316},"seSrl","            \"",[620,1319,1320],{"class":673},"SELECT",[620,1322,1324],{"class":1323},"sLL54"," quote_ident(sequence_schema) ",[620,1326,1327],{"class":626},"||",[620,1329,1330],{"class":1323}," '.' ",[620,1332,1327],{"class":626},[620,1334,1335],{"class":1323}," quote_ident(sequence_name)\n",[620,1337,1339,1342,1346,1348,1351,1354,1357,1359,1362],{"class":622,"line":1338},46,[620,1340,1341],{"class":673},"             FROM",[620,1343,1345],{"class":1344},"szhYu"," information_schema",[620,1347,606],{"class":1323},[620,1349,1350],{"class":1344},"sequences",[620,1352,1353],{"class":673}," WHERE",[620,1355,1356],{"class":1323}," sequence_schema ",[620,1358,655],{"class":626},[620,1360,1361],{"class":1323}," current_schema",[620,1363,1364],{"class":1316},"()\"\n",[620,1366,1368],{"class":622,"line":1367},47,[620,1369,1370],{"class":648},"        );\n",[620,1372,1374,1377,1380,1382,1385,1387,1390,1392],{"class":622,"line":1373},48,[620,1375,1376],{"class":644},"        foreach",[620,1378,1379],{"class":648}," ($",[620,1381,1295],{"class":861},[620,1383,1384],{"class":626},"as",[620,1386,858],{"class":648},[620,1388,1389],{"class":861},"sequence",[620,1391,1031],{"class":648},[620,1393,1161],{"class":648},[620,1395,1397,1399,1401,1403,1406,1408,1411,1414,1417,1420,1422,1424,1426,1428,1430,1433,1435],{"class":622,"line":1396},49,[620,1398,1040],{"class":648},[620,1400,1302],{"class":861},[620,1402,931],{"class":626},[620,1404,1405],{"class":945},"executeStatement",[620,1407,649],{"class":648},[620,1409,1410],{"class":1316},"'",[620,1412,1413],{"class":673},"ALTER",[620,1415,1416],{"class":673}," SEQUENCE",[620,1418,1419],{"class":1316}," '",[620,1421,606],{"class":626},[620,1423,1025],{"class":648},[620,1425,1389],{"class":861},[620,1427,606],{"class":626},[620,1429,1410],{"class":1316},[620,1431,1432],{"class":1323}," RESTART",[620,1434,1410],{"class":1316},[620,1436,662],{"class":648},[620,1438,1440],{"class":622,"line":1439},50,[620,1441,1216],{"class":648},[620,1443,1445],{"class":622,"line":1444},51,[620,1446,955],{"class":648},[620,1448,1450],{"class":622,"line":1449},52,[620,1451,1452],{"class":648},"}\n",[416,1454,1455],{},"The static flag lives for the whole Behat process, so each run (and each shard) builds the schema exactly once.",[416,1457,1458,1459,1462],{},"That project also tried ",[420,1460,1461],{},"DAMA\\DoctrineTestBundle",", which wraps each scenario in a rolled-back transaction. It was a new dependency for about 3% more, and it doesn't roll back sequences.",[437,1464,1466],{"icon":1465},"i-heroicons-photo",[416,1467,1468],{},"Image placeholder: a bar chart of the four reset strategies in ms per scenario, with the truncate-mode purger standing out.",[448,1470,1472],{"id":1471},"the-sequence-trap","The sequence trap",[416,1474,1475,1476,1479],{},"A delete leaves sequences where they were, so a purged database hands out new ids. Any feature that asserts an IRI such as ",[420,1477,1478],{},"\u002F_api\u002F…\u002F1"," then fails, depending on which scenarios ran before it.",[456,1481,1482,1493],{},[459,1483,1484,1485,1488,1489,1492],{},"A sequence that Doctrine creates for the ",[420,1486,1487],{},"SEQUENCE"," id strategy is a standalone sequence that no column owns. ",[420,1490,1491],{},"TRUNCATE … RESTART IDENTITY"," only restarts sequences owned by the truncated tables' columns, so it leaves these alone and the ids drift. That project hit exactly this.",[459,1494,1495,1496,1499,1500,1503],{},"Only an explicit ",[420,1497,1498],{},"ALTER SEQUENCE … RESTART"," for each sequence, as in ",[420,1501,1502],{},"restartSequences()"," above, keeps ids stable with either reset.",[416,1505,1506],{},"CWA's own entities use UUIDs, and the template's entities do too, so a project with no integer ids has no sequences to restart.",[448,1508,1510],{"id":1509},"shard-the-job-by-scenario","Shard the job by scenario",[416,1512,1513,1514,1517,1518,1521,1522,1525,1526,1529],{},"Once the reset is cheap, the fixed cost of each job dominates. At that point, split the suite across parallel jobs with GitLab's ",[420,1515,1516],{},"parallel: N",". Each copy of the job gets its own ",[420,1519,1520],{},"postgres"," service, and ",[420,1523,1524],{},"CI_NODE_INDEX"," (from 1) and ",[420,1527,1528],{},"CI_NODE_TOTAL"," tell it which share to run:",[611,1531,1536],{"className":1532,"code":1533,"filename":1534,"language":1535,"meta":616,"style":616},"language-yaml shiki shiki-themes github-light github-dark material-theme-palenight has-focused","behat tests:\n  parallel: 4 # [!code focus]\n  script:\n    - setup_test_db_environment\n    - run_test_behat\n",".gitlab-ci.yml","yaml",[420,1537,1538,1546,1557,1564,1572],{"__ignoreMap":616},[620,1539,1540,1543],{"class":622,"line":623},[620,1541,422],{"class":1542},"s-h7I",[620,1544,1545],{"class":648},":\n",[620,1547,1549,1552,1554],{"class":1548,"line":634},[622,845],[620,1550,1551],{"class":1542},"  parallel",[620,1553,995],{"class":648},[620,1555,1556],{"class":658}," 4",[620,1558,1559,1562],{"class":622,"line":641},[620,1560,1561],{"class":1542},"  script",[620,1563,1545],{"class":648},[620,1565,1566,1569],{"class":622,"line":665},[620,1567,1568],{"class":648},"    -",[620,1570,1571],{"class":1323}," setup_test_db_environment\n",[620,1573,1574,1576],{"class":622,"line":670},[620,1575,1568],{"class":648},[620,1577,1578],{"class":1323}," run_test_behat\n",[416,1580,1581,1583,1584,1587,1588,1590,1591,1594],{},[420,1582,485],{}," passes Behat no paths, so change it to pass this shard's share. Behat takes several paths and runs only those, and a path can name one scenario as ",[420,1585,1586],{},"features\u002Fsome.feature:LINE",". Your shard script picks this job's list, and ",[420,1589,485],{}," adds it to the ",[420,1592,1593],{},"behat"," command.",[456,1596,1597,1603,1672,1678],{},[459,1598,1599,1602],{},[428,1600,1601],{},"Shard by scenario, not by feature file."," In that project one file held 100 of the 211 scenarios, so no split by file could balance it. Weight each scenario by how many it runs (a Scenario Outline counts each Examples row), and assign the heaviest first, each to the lightest shard so far.",[459,1604,1605,1608,1609,1613,1614],{},[428,1606,1607],{},"An empty shard must exit 0 without starting Behat."," Behat with no paths runs the ",[1610,1611,1612],"em",{},"whole"," suite, so a shard that got nothing would run everything:",[611,1615,1619],{"className":1616,"code":1617,"language":1618,"meta":616,"style":616},"language-sh shiki shiki-themes github-light github-dark material-theme-palenight","[ -z \"$SHARD_PATHS\" ] && { echo \"No scenarios for shard $CI_NODE_INDEX\"; exit 0; }\n","sh",[420,1620,1621],{"__ignoreMap":616},[620,1622,1623,1626,1629,1632,1635,1638,1641,1644,1646,1649,1651,1654,1657,1659,1661,1664,1667,1669],{"class":622,"line":623},[620,1624,1625],{"class":648},"[",[620,1627,1628],{"class":626}," -z",[620,1630,1631],{"class":1316}," \"",[620,1633,1634],{"class":861},"$SHARD_PATHS",[620,1636,1637],{"class":1316},"\"",[620,1639,1640],{"class":648}," ]",[620,1642,1643],{"class":648}," &&",[620,1645,1034],{"class":648},[620,1647,1648],{"class":903}," echo",[620,1650,1631],{"class":1316},[620,1652,1653],{"class":1323},"No scenarios for shard ",[620,1655,1656],{"class":861},"$CI_NODE_INDEX",[620,1658,1637],{"class":1316},[620,1660,870],{"class":648},[620,1662,1663],{"class":903}," exit",[620,1665,1666],{"class":658}," 0",[620,1668,870],{"class":648},[620,1670,1671],{"class":648}," }\n",[459,1673,1674,1677],{},[428,1675,1676],{},"Choose N from the fixed cost per job."," It was about 81s there, so extra shards soon cost more runner minutes than they save. N=4 was the sweet spot. N=8 doubled the runner minutes to save about 55s.",[459,1679,1680,1683,1684,1686,1687,1690,1691,1694],{},[428,1681,1682],{},"Share one vendor cache across shards."," The template's ",[420,1685,422],{}," job runs ",[420,1688,1689],{},"composer install"," and has no cache. If you add one, key it on ",[420,1692,1693],{},"api\u002Fcomposer.lock",". A key that includes the job name or branch makes every shard of a new branch start cold.",[416,1696,1697],{},"Each shard writes its own JUnit file, and GitLab merges the reports of parallel jobs in the test report.",[448,1699,1701],{"id":1700},"prove-the-order-doesnt-matter","Prove the order doesn't matter",[416,1703,1704],{},"A reset that leaves anything behind makes a scenario depend on the ones before it. Sharding changes that order, so check it before you trust the shards.",[416,1706,1707,1708,1711,1712,1715],{},"Behat's ",[420,1709,1710],{},"--order=random"," and ",[420,1713,1714],{},"--order=reverse"," only reorder whole feature files. The scenarios inside a file keep their order. Build the orders yourself from the list of scenarios instead, pass each as paths, and run the full suite:",[456,1717,1718,1721,1724],{},[459,1719,1720],{},"in its default order,",[459,1722,1723],{},"fully reversed,",[459,1725,1726],{},"under several random seeds.",[448,1728,1730],{"id":1729},"results-in-that-project","Results in that project",[514,1732,1733,1743],{},[517,1734,1735],{},[520,1736,1737,1740],{},[523,1738,1739],{},"Change",[523,1741,1742],{"align":528},"Job time",[531,1744,1745,1753,1761,1769],{},[520,1746,1747,1750],{},[536,1748,1749],{},"Before",[536,1751,1752],{"align":528},"about 568s",[520,1754,1755,1758],{},[536,1756,1757],{},"Sharding alone",[536,1759,1760],{"align":528},"191s",[520,1762,1763,1766],{},[536,1764,1765],{},"The reset alone",[536,1767,1768],{"align":528},"181s",[520,1770,1771,1776],{},[536,1772,1773],{},[428,1774,1775],{},"Both",[536,1777,1778],{"align":528},[428,1779,1780],{},"81s",[416,1782,1783],{},"The runner minutes roughly halved as well.",[416,1785,1786,1787,1790],{},"See ",[1788,1789,398],"a",{"href":399}," for the rest of the pipeline.",[1792,1793,1794],"style",{},"html pre.shiki code .sVlFx, html code.shiki .sVlFx{--shiki-light:#D73A49;--shiki-default:#F97583;--shiki-dark:#89DDFF}html pre.shiki code .sc2zw, html code.shiki .sc2zw{--shiki-light:#005CC5;--shiki-default:#79B8FF;--shiki-dark:#BABED8}html pre.shiki code .sm4w6, html code.shiki .sm4w6{--shiki-light:#D73A49;--shiki-light-font-style:inherit;--shiki-default:#F97583;--shiki-default-font-style:inherit;--shiki-dark:#89DDFF;--shiki-dark-font-style:italic}html pre.shiki code .sOvfz, html code.shiki .sOvfz{--shiki-light:#24292E;--shiki-default:#E1E4E8;--shiki-dark:#89DDFF}html pre.shiki code .scSvc, html code.shiki .scSvc{--shiki-light:#005CC5;--shiki-default:#79B8FF;--shiki-dark:#F78C6C}html pre.shiki code .stmX-, html code.shiki .stmX-{--shiki-light:#D73A49;--shiki-default:#F97583;--shiki-dark:#F78C6C}html pre.shiki code .sRCss, html code.shiki .sRCss{--shiki-light:#6F42C1;--shiki-default:#B392F0;--shiki-dark:#FFCB6B}html pre.shiki code .sn4go, html code.shiki .sn4go{--shiki-light:#6F42C1;--shiki-default:#B392F0;--shiki-dark:#89DDFF}html pre.shiki code .sBtbT, html code.shiki .sBtbT{--shiki-light:#005CC5;--shiki-default:#79B8FF;--shiki-dark:#89DDFF}html pre.shiki code .swB56, html code.shiki .swB56{--shiki-light:#D73A49;--shiki-default:#F97583;--shiki-dark:#C792EA}html pre.shiki code .sPB8G, html code.shiki .sPB8G{--shiki-light:#24292E;--shiki-default:#E1E4E8;--shiki-dark:#BABED8}html pre.shiki code .sbW4m, html code.shiki .sbW4m{--shiki-light:#005CC5;--shiki-default:#79B8FF;--shiki-dark:#FFCB6B}html pre.shiki code .s3Ny6, html code.shiki .s3Ny6{--shiki-light:#005CC5;--shiki-default:#79B8FF;--shiki-dark:#82AAFF}html pre.shiki code .sKpYG, html code.shiki .sKpYG{--shiki-light:#6F42C1;--shiki-default:#B392F0;--shiki-dark:#82AAFF}html pre.shiki code .sTBSN, html code.shiki .sTBSN{--shiki-light:#6A737D;--shiki-light-font-style:inherit;--shiki-default:#6A737D;--shiki-default-font-style:inherit;--shiki-dark:#676E95;--shiki-dark-font-style:italic}html pre.shiki code .seSrl, html code.shiki .seSrl{--shiki-light:#032F62;--shiki-default:#9ECBFF;--shiki-dark:#89DDFF}html pre.shiki code .sLL54, html code.shiki .sLL54{--shiki-light:#032F62;--shiki-default:#9ECBFF;--shiki-dark:#C3E88D}html pre.shiki code .szhYu, html code.shiki .szhYu{--shiki-light:#005CC5;--shiki-default:#79B8FF;--shiki-dark:#C3E88D}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html pre.shiki code .s-h7I, html code.shiki .s-h7I{--shiki-light:#22863A;--shiki-default:#85E89D;--shiki-dark:#F07178}",{"title":616,"searchDepth":634,"depth":634,"links":1796},[1797,1798,1799,1800,1801,1802],{"id":450,"depth":634,"text":451},{"id":505,"depth":634,"text":506},{"id":1471,"depth":634,"text":1472},{"id":1509,"depth":634,"text":1510},{"id":1700,"depth":634,"text":1701},{"id":1729,"depth":634,"text":1730},"When a project's Behat suite slows CI down — measure where the time goes, reset the database without rebuilding the schema, and shard the job by scenario.","md",{},{"title":406,"description":1803},"FMRu_FgRM1H1_6pxIcSZaykWWPbIrbED89eCwdY6Tls",[1809,411],{"title":402,"path":403,"stem":404,"description":1810,"children":-1},"Stress test a CWA site with the template's k6 script — how many visitors it serves, how quickly, and whether they got the page cache or a server-side render.",1790419987290]