[{"data":1,"prerenderedAt":1055},["ShallowReactive",2],{"/blog/how-to-avoid-broken-master-with-pipelines-for-merge-requests":3,"navigation-en-us":304,"banner-en-us":741,"footer-en-us":749,"blog-post-authors-en-us-Shinya Maeda":996,"blog-related-posts-en-us-how-to-avoid-broken-master-with-pipelines-for-merge-requests":1010,"blog-share-wrapper-en-us":1035,"next-steps-en-us":1045},{"id":4,"title":5,"authors":6,"body":8,"category":280,"date":281,"description":282,"extension":283,"externalUrl":284,"faq":284,"featured":285,"heroImage":286,"hidePromo":285,"meta":287,"navigation":288,"path":289,"seo":290,"slug":295,"stem":296,"tags":297,"template":302,"updatedDate":284,"__hash__":303},"blogPosts/en-us/blog/how-to-avoid-broken-master-with-pipelines-for-merge-requests.md","How to avoid broken master with Pipelines for Merged Results and Merge Trains",[7],"Shinya Maeda",{"type":9,"value":10,"toc":266},"minimark",[11,15,18,23,33,36,39,43,51,60,68,81,84,103,106,109,114,117,133,148,152,155,164,167,176,196,203,207,210,214,217,228,232,235,238,252],[12,13,14],"p",{},"Broken master. This can happen when CI pipelines run on the master branch (or default branch), but don't\npass all tests. A red cross mark is shown in the project's top page, signalling unstable source\ncode and eroding the trust of users. Broken master could also be a blocker against\na continuous deployment/delivery stream line in which deployment jobs\nare executed after the test stage passed in master pipelines.",[12,16,17],{},"All maintainers want to avoid this critical state,\nbut how can we prevent it?",[19,20,22],"h2",{"id":21},"lets-look-at-how-master-is-broken-in-the-first-place","Let's look at how master is broken in the first place",[12,24,25,26,32],{},"Let's say you're one of the maintainers of a project. It's a busy repository with hundreds of merges\nto master every day. A developer assigns a merge request (MR) to you. The MR passed all of the tests in the CI pipelines,\nhas been reviewed thoroughly by code reviewers, all open discussions have been resolved, and the MR has been\napproved by the relevant ",[27,28,31],"a",{"href":29,"rel":30},"https://docs.gitlab.com/user/project/codeowners/",[],"code owners",".",[12,34,35],{},"You would press the \"Merge\" button without a second thought, but how are you confident that\na pipeline running on master branch after the merge will pass all tests again?\nIf your answer is \"It might break the master branch,\" then\nyou're right. This could happen, for example, if master has advanced by some\nnew commits, and one of them changed a lint rule. The MR in question\nstill contains an invalid coding style, but the latest pipeline on the MR passes,\nbecause the feature branch is based on an old version of master.",[12,37,38],{},"Enter two new GitLab features: Pipelines for Merged Results\nand Merge Trains.\nLet me show you how they works and how to enable them.",[19,40,42],{"id":41},"how-to-continually-run-ci-pipelines-on-the-merge-commit","How to continually run CI pipelines on the merge commit",[12,44,45,46,50],{},"Let's break down what went wrong in the scenario above. Even though the pipeline on the\nmerge request passed all the tests, it ran on a source (feature) branch\nwhich could be based on an outdated version of master. In such a case,\nthe result of pipeline is considered as ",[47,48,49],"em",{},"untrusted",", because there may be a huge difference\nbetween an actual-and-future merge commit and the commit in question.",[12,52,53,54,59],{},"As a ",[27,55,58],{"href":56,"rel":57},"https://handbook.gitlab.com/handbook/values/#boring-solutions",[],"boring solution",", developers can continually rebase their MR\non the latest master, but this is annoying and inefficient, given the speed of\ngrowth of the master branch.\nIt causes a lot of friction between developers and maintainers, slowing down the development cycle.",[12,61,62,63,32],{},"To address this problem, we introduced Pipelines for Merged Results\nin ",[27,64,67],{"href":65,"rel":66},"https://docs.gitlab.com/releases/#pipelines-for-merged-results",[],"GitLab 11.10",[12,69,70,71,75,76,80],{},"Simply put, the main difference between pipelines for merged results and normal pipelines is that\n",[72,73,74],"strong",{},"pipelines run on merge commits, instead of source branches, before the actual merge happens",".\nThis merge commit is generated from the latest commits of target branch and\nsource branch and written in a temporary place (",[77,78,79],"code",{},"refs/merge-requests/:iid/merge",").\nTherefore, we can run a pipeline on it without interfering with master.",[12,82,83],{},"Here is a sample workflow with the above scenario:",[85,86,87,91,97,100],"ol",{},[88,89,90],"li",{},"A developer pushes a new commit to a merge request.",[88,92,93,94,96],{},"GitLab creates a merge commit from the HEAD of the source branch and HEAD of the target branch.\nThis merge commit is written in ",[77,95,79],{}," and does not change commit history of master branch.",[88,98,99],{},"GitLab creates a pipeline on the merge commit, but this pipeline fails because the latest master changed a lint rule.",[88,101,102],{},"A maintainer sees a failed pipeline in the merge request.",[12,104,105],{},"As you can see, the maintainer was able to hold off merging the dangerous MR\nbecause the latest pipeline on the MR didn't pass. The feature actually saved\nmaster from a broken state.",[12,107,108],{},"As a bonus, this workflow freeds developers from continual\nrebasing of their merge requests.\nAll they need to do is develop features with Pipelines for Merged Results.\nGitLab automatically creates an expected merge commit and validates the merge request prior to\nan actual merge.",[110,111,113],"h3",{"id":112},"how-to-get-started-with-pipelines-for-merged-results","How to get started with Pipelines for Merged Results",[12,115,116],{},"You can start using this feature\ntoday, with just two steps:",[85,118,119,126],{},[88,120,121,122,125],{},"Edit the ",[77,123,124],{},".gitlab-ci.yml"," config file to enable pipelines for merge requests / merge request pipelines.",[88,127,128,129,132],{},"Enable the \"Merge pipelines will try to validate the post-merge result prior to merging\" option at ",[72,130,131],{},"Settings > General > Merge requests"," in your project.",[12,134,135,138,139,141,142,147],{},[72,136,137],{},"Note:"," If the configurations in your ",[77,140,124],{}," file are too complex, you might stumble at the first point.\nWe're currently working on ",[27,143,146],{"href":144,"rel":145},"https://gitlab.com/gitlab-org/gitlab-ce/issues/60085",[],"improving the usability of pipelines for merge requests / merge request pipelines",".\nPlease leave your feedback in the issue if that's the case.",[19,149,151],{"id":150},"how-to-avoid-race-condition-of-concurrent-merges","How to avoid race condition of concurrent merges",[12,153,154],{},"With Pipelines for Merged Results,\nwe can confidently say that MRs are continually tested against the latest master branch.\nHowever, what if multiple MRs have been merged at the same time?\nFor example:",[156,157,158,161],"ul",{},[88,159,160],{},"There are two merge requests: MR-1 and MR-2. The latest pipelines have already passed in both MRs.",[88,162,163],{},"John (maintainer) and Cathy (maintainer) merge MR-1 and MR-2 at the same time, respectively.",[12,165,166],{},"Later on, it turns out that MR-2 contains a coding offence which has just been introduced by MR-1.\nMaintainers hit merge without knowing that, and\nneedless to say, this will result in broken master. How can we handle this race condition properly?",[12,168,169,170,175],{},"In ",[27,171,174],{"href":172,"rel":173},"https://docs.gitlab.com/releases/#parallel-execution-strategy-for-merge-trains",[],"GitLab 12.1",", we introduced a new feature,\nMerge Trains.\nBasically, a Merge Train is a queueing system that allows you to avoid this kind\nof race condition.\nAll you need to do is add merge requests to the merge train, and it\nhandles the rest of the work for you.\nIt creates merge commits according\nto the sequence of merge requests and runs pipelines on the expected merge commits.\nFor example, John and Cathy could have avoided broken master with the following workflow:",[85,177,178,181,184,187,190,193],{},[88,179,180],{},"John and Cathy add MR-1 and MR-2 to their Merge Train, respectively.",[88,182,183],{},"In MR-1, the Merge Train creates an expected merge commit from HEAD of the source branch and HEAD of the target branch.\nIt creates a pipeline on the merge commit.",[88,185,186],{},"In MR-2, the Merge Train creates an expected merge commit from HEAD of the source branch and the expected merge commit of MR-1.\nIt creates a pipeline on the merge commit.",[88,188,189],{},"The pipeline in MR-1 passes all tests and merged into master branch.",[88,191,192],{},"The pipeline in MR-2 fails because it violates a lint check which was changed by MR-1. MR-2 is dropped from the Merge Train.",[88,194,195],{},"Developer revisits MR-2, fixes the coding offence, and asks Cathy to add it to the Merge Train again.",[12,197,198,199,202],{},"As you can see, the Merge Train successfully rejected MR-2 before it could break the master\nbranch. With this workflow, maintainers can feel more confident when they\ndecide to merge something. Also, this doesn't slow down development lifecycle\nthat pipelines are built on optimistic assumption that, in the above case,\nthe pipeline in MR-1 and the pipeline in MR-2 ",[72,200,201],{},"start almost simultaneously",".\nMR-2 builds a merge commit as if MR-1 has already been merged, so that maintainers\ndon't need to wait for long time until each pipeline finished. If one of the\npipelines failed, the problematic merge request is dropped from the merge train\nand the train will be reconstructed without it.",[110,204,206],{"id":205},"how-to-get-started-with-merge-trains","How to get started with Merge Trains",[12,208,209],{},"You can start using Merge Train\ntoday, if you've already enabled Pipelines for merged results. Click \"Start/Add merge train\" button in merge requests.",[19,211,213],{"id":212},"a-quick-demonstration-of-merge-trains","A quick demonstration of Merge Trains",[12,215,216],{},"Here is a demonstration video that explains the advantage of Merge Train feature.\nIn this video, we'll simulate the common problem in a workflow without\nMerge Trains, and later, we resolve the problem by enabling a Merge Train.",[218,219,222],"figure",{"className":220},[221],"video_container",[223,224],"iframe",{"src":225,"frameBorder":226,"allowFullScreen":227},"https://www.youtube.com/embed/D4qCqXgZkHQ","0","true",[19,229,231],{"id":230},"wrap-up","Wrap up",[12,233,234],{},"Running pipelines on expected merge commits allows us to predict what will happen\nin the future and avoid broken master proactively. It soothes the headache of\nrelease managers and gives maintainers and developers more confidence that their code\nis reliable enough to be merged and shipped. In addition, Merge Trains allow you\nto merge things safely without slowing down the development cycle.",[12,236,237],{},"Give this advanced CI/CD feature a try today!",[12,239,240,241,246,247,32],{},"For more information, check out ",[27,242,245],{"href":243,"rel":244},"https://docs.gitlab.com/ci/pipelines/merge_trains/",[],"the documentation on merge trains"," and ",[27,248,251],{"href":249,"rel":250},"https://docs.gitlab.com/ci/pipelines/merge_request_pipelines/",[],"pipelines for merge requests / merge request pipelines",[12,253,254,255,260,261],{},"Cover image by ",[27,256,259],{"href":257,"rel":258},"https://unsplash.com/@danny159",[],"Dan Roizer"," on ",[27,262,265],{"href":263,"rel":264},"https://www.unsplash.com",[],"Unsplash",{"title":267,"searchDepth":268,"depth":268,"links":269},"",2,[270,271,275,278,279],{"id":21,"depth":268,"text":22},{"id":41,"depth":268,"text":42,"children":272},[273],{"id":112,"depth":274,"text":113},3,{"id":150,"depth":268,"text":151,"children":276},[277],{"id":205,"depth":274,"text":206},{"id":212,"depth":268,"text":213},{"id":230,"depth":268,"text":231},"engineering","2019-09-11","Do you still run pipelines on source branches? Let's start running them on merge commits!","md",null,false,"https://res.cloudinary.com/about-gitlab-com/image/upload/v1749678366/Blog/Hero%20Images/merge-train.jpg",{},true,"/en-us/blog/how-to-avoid-broken-master-with-pipelines-for-merge-requests",{"title":291,"description":282,"ogTitle":291,"ogDescription":282,"noIndex":285,"ogImage":286,"ogUrl":292,"ogSiteName":293,"ogType":294,"canonicalUrls":292},"How to prevent broken master with merge trains & pipelines","https://about.gitlab.com/blog/how-to-avoid-broken-master-with-pipelines-for-merge-requests","https://about.gitlab.com","article","how-to-avoid-broken-master-with-pipelines-for-merge-requests","en-us/blog/how-to-avoid-broken-master-with-pipelines-for-merge-requests",[298,299,300,301],"CI/CD","demo","workflow","features","BlogPost","UmD3WKjR_XiANtyrzAQ-cAMsR82y3_9qlUcDq1G__-Q",{"logo":305,"freeTrial":310,"sales":315,"login":320,"items":325,"search":660,"minimal":692,"duo":711,"switchNav":720,"pricingDeployment":731},{"config":306},{"href":307,"dataGaName":308,"dataGaLocation":309},"/","gitlab logo","header",{"text":311,"config":312},"Get free trial",{"href":313,"dataGaName":314,"dataGaLocation":309},"https://gitlab.com/-/trial_registrations/new?glm_source=about.gitlab.com&glm_content=default-saas-trial/","free trial",{"text":316,"config":317},"Request a demo",{"href":318,"dataGaName":319,"dataGaLocation":309},"/request-a-demo/","sales",{"text":321,"config":322},"Sign in",{"href":323,"dataGaName":324,"dataGaLocation":309},"https://gitlab.com/users/sign_in/","sign in",[326,411,499,504,584,638],{"text":327,"left":288,"config":328,"menu":330},"Platform",{"dataNavLevelOne":329},"platform",{"type":331,"link":332,"columns":336,"feature":400},"lists",{"text":333,"config":334},"Explore the Platform",{"href":335,"dataGaName":329,"dataGaLocation":309},"/platform/",[337,359,382],{"title":338,"items":339},"DevOps",[340,344,349,354],{"text":298,"config":341},{"href":342,"dataGaLocation":309,"dataGaName":343},"/solutions/continuous-integration/","ci/cd",{"text":345,"config":346},"Source Code Management",{"href":347,"dataGaLocation":309,"dataGaName":348},"/solutions/source-code-management/","source code management",{"text":350,"config":351},"Agile Delivery",{"href":352,"dataGaLocation":309,"dataGaName":353},"/solutions/agile-delivery/","agile delivery",{"text":355,"config":356},"Artifact Management",{"href":357,"dataGaLocation":309,"dataGaName":358},"/artifact-central/","artifact management",{"title":360,"items":361},"Security & Governance",[362,367,372,377],{"text":363,"config":364},"Application Security Testing",{"href":365,"dataGaLocation":309,"dataGaName":366},"/solutions/application-security-testing/","application security testing",{"text":368,"config":369},"Governance & Compliance",{"href":370,"dataGaLocation":309,"dataGaName":371},"/solutions/software-compliance/","governance and compliance",{"text":373,"config":374},"Secrets Management",{"href":375,"dataGaLocation":309,"dataGaName":376},"/gitlab-secrets-manager/","secrets management",{"text":378,"config":379},"Supply Chain Security",{"href":380,"dataGaLocation":309,"dataGaName":381},"/solutions/supply-chain/","supply chain security",{"title":383,"items":384},"Agentic AI & Context",[385,390,395],{"text":386,"config":387},"Duo Agent Platform",{"href":388,"dataGaLocation":309,"dataGaName":389},"/gitlab-duo-agent-platform/","duo agent platform",{"text":391,"config":392},"Orbit Context Graph",{"href":393,"dataGaLocation":309,"dataGaName":394},"/gitlab-orbit/","orbit",{"text":396,"config":397},"Visibility & Measurement",{"href":398,"dataGaLocation":309,"dataGaName":399},"/solutions/visibility-measurement/","visibility and measurement",{"config":401,"title":404,"text":405,"link":406},{"background":402,"textColor":403},"url('https://res.cloudinary.com/about-gitlab-com/image/upload/v1790185102/o7dn32anqcb6z8dgd3as.jpg')","#000","GitLab Orbit is generally available","Higher agent accuracy, lower token cost",{"text":407,"config":408},"Read the announcement",{"href":409,"dataGaName":410,"dataGaLocation":309},"/blog/gitlab-orbit-ga/","orbit ga announcement",{"text":412,"left":288,"config":413,"menu":415},"Solutions",{"dataNavLevelOne":414},"solutions",{"type":331,"link":416,"columns":420,"feature":490},{"text":417,"config":418},"View all Solutions",{"href":419,"dataGaName":414,"dataGaLocation":309},"/solutions/",[421,439,457],{"title":422,"items":423},"Outcomes",[424,429,434],{"text":425,"config":426},"DevOps Modernization",{"href":427,"dataGaLocation":309,"dataGaName":428},"/assessments/devops-modernization-assessment/","devops modernization",{"text":430,"config":431},"Security Modernization",{"href":432,"dataGaLocation":309,"dataGaName":433},"/assessments/security-modernization-assessment/","security modernization",{"text":435,"config":436},"AI Modernization",{"href":437,"dataGaLocation":309,"dataGaName":438},"/assessments/ai-modernization-assessment/","ai modernization",{"title":440,"items":441},"By size",[442,447,452],{"text":443,"config":444},"Enterprise",{"href":445,"dataGaLocation":309,"dataGaName":446},"/enterprise/","enterprise",{"text":448,"config":449},"Small Business",{"href":450,"dataGaLocation":309,"dataGaName":451},"/small-business/","small business",{"text":453,"config":454},"Startups",{"href":455,"dataGaLocation":309,"dataGaName":456},"/solutions/startups/","startups",{"title":458,"items":459},"Industries",[460,465,470,475,480,485],{"text":461,"config":462},"Financial Services",{"href":463,"dataGaLocation":309,"dataGaName":464},"/solutions/finance/","financial services",{"text":466,"config":467},"Public Sector",{"href":468,"dataGaLocation":309,"dataGaName":469},"/solutions/public-sector/","public sector",{"text":471,"config":472},"Telecommunications",{"href":473,"dataGaLocation":309,"dataGaName":474},"/solutions/telecommunications/","telecommunications",{"text":476,"config":477},"Automotive",{"href":478,"dataGaLocation":309,"dataGaName":479},"/solutions/automotive/","automotive",{"text":481,"config":482},"Education",{"href":483,"dataGaLocation":309,"dataGaName":484},"/solutions/education/","education",{"text":486,"config":487},"Aerospace",{"href":488,"dataGaLocation":309,"dataGaName":489},"/solutions/aerospace/","aerospace",{"config":491,"title":492,"text":493,"link":494},{"background":402,"textColor":403},"GitLab Security Standard","Learn how to harden your software factory and let AI agents earn autonomy, without trading away security.",{"text":495,"config":496},"Explore the standard",{"href":497,"dataGaName":498,"dataGaLocation":309},"/gitlab-security-standard/","gitlab security standard",{"text":500,"config":501},"Pricing",{"href":502,"dataGaName":503,"dataGaLocation":309,"dataNavLevelOne":503},"/pricing/","pricing",{"text":505,"config":506,"menu":508},"Resources",{"dataNavLevelOne":507},"resources",{"type":331,"link":509,"columns":513,"feature":575},{"text":510,"config":511},"View all resources",{"href":512,"dataGaName":507,"dataGaLocation":309},"/resources/",[514,547],{"title":515,"items":516},"Discover",[517,522,527,532,537,542],{"text":518,"config":519},"Docs",{"href":520,"dataGaName":521,"dataGaLocation":309},"https://docs.gitlab.com/","docs",{"text":523,"config":524},"University",{"href":525,"dataGaName":526,"dataGaLocation":309},"https://university.gitlab.com/","university",{"text":528,"config":529},"Demo Series",{"href":530,"dataGaName":531,"dataGaLocation":309},"/gitlab-technical-demo-series/","demo series",{"text":533,"config":534},"Demo Hub",{"href":535,"dataGaName":536,"dataGaLocation":309},"/demo-hub/","demo hub",{"text":538,"config":539},"Services",{"href":540,"dataGaName":541,"dataGaLocation":309},"/services/","services",{"text":543,"config":544},"Well Architected",{"href":545,"dataGaName":546,"dataGaLocation":309},"/resources/well-architected/","well architected",{"title":548,"items":549},"Connect",[550,555,560,565,570],{"text":551,"config":552},"Blog",{"href":553,"dataGaName":554,"dataGaLocation":309},"/blog/","blog",{"text":556,"config":557},"Community",{"href":558,"dataGaName":559,"dataGaLocation":309},"/community/","community",{"text":561,"config":562},"Customers",{"href":563,"dataGaName":564,"dataGaLocation":309},"/customers/","customers",{"text":566,"config":567},"Partners",{"href":568,"dataGaName":569,"dataGaLocation":309},"/partners/","partners",{"text":571,"config":572},"Events",{"href":573,"dataGaName":574,"dataGaLocation":309},"/events/","events",{"config":576,"title":577,"text":578,"link":579},{"background":402,"textColor":403},"What’s new in GitLab","Stay updated with our latest features and improvements.",{"text":580,"config":581},"Read the latest",{"href":582,"dataGaName":583,"dataGaLocation":309},"/whats-new/","whats new",{"text":585,"config":586,"menu":588},"Company",{"dataNavLevelOne":587},"company",{"type":331,"columns":589},[590],{"items":591},[592,597,603,608,613,618,623,628,633],{"text":593,"config":594},"About",{"href":595,"dataGaName":596,"dataGaLocation":309},"/company/","about",{"text":598,"config":599,"footerGa":602},"Jobs",{"href":600,"dataGaName":601,"dataGaLocation":309},"/jobs/","jobs",{"dataGaName":601},{"text":604,"config":605},"Press",{"href":606,"dataGaName":607,"dataGaLocation":309},"/press/","press",{"text":609,"config":610},"Handbook",{"href":611,"dataGaName":612,"dataGaLocation":309},"https://handbook.gitlab.com/","handbook",{"text":614,"config":615},"Leadership",{"href":616,"dataGaName":617,"dataGaLocation":309},"/company/team/e-group/","leadership",{"text":619,"config":620},"Investor relations",{"href":621,"dataGaName":622,"dataGaLocation":309},"https://ir.gitlab.com/overview/default.aspx","investor relations",{"text":624,"config":625},"Trust Center",{"href":626,"dataGaName":627,"dataGaLocation":309},"/security/","trust center",{"text":629,"config":630},"AI Transparency Center",{"href":631,"dataGaName":632,"dataGaLocation":309},"/ai-transparency-center/","ai transparency center",{"text":634,"config":635},"Newsletter",{"href":636,"dataGaName":637,"dataGaLocation":309},"/company/contact/#contact-forms","newsletter",{"text":639,"config":640,"menu":641},"Contact us",{"dataNavLevelOne":587},{"type":331,"columns":642},[643],{"items":644},[645,650,655],{"text":646,"config":647},"Talk to sales",{"href":648,"dataGaName":649,"dataGaLocation":309},"/sales/","talk to sales",{"text":651,"config":652},"Support portal",{"href":653,"dataGaName":654,"dataGaLocation":309},"https://support.gitlab.com/hc/en-us","support portal",{"text":656,"config":657},"Customer portal",{"href":658,"dataGaName":659,"dataGaLocation":309},"https://customers.gitlab.com/customers/sign_in/","customer portal",{"close":661,"login":662,"suggestions":669},"Close",{"text":663,"link":664},"To search repositories and projects, login to",{"text":665,"config":666},"gitlab.com",{"href":323,"dataGaName":667,"dataGaLocation":668},"search login","search",{"text":670,"default":671},"Suggestions",[672,675,678,680,684,688],{"text":673,"config":674},"GitLab Duo Agent Platform",{"href":388,"dataGaName":673,"dataGaLocation":668},{"text":676,"config":677},"Code Suggestions (AI)",{"href":388,"dataGaName":676,"dataGaLocation":668},{"text":298,"config":679},{"href":342,"dataGaName":298,"dataGaLocation":668},{"text":681,"config":682},"GitLab on AWS",{"href":683,"dataGaName":681,"dataGaLocation":668},"/partners/technology-partners/aws/",{"text":685,"config":686},"GitLab on Google Cloud",{"href":687,"dataGaName":685,"dataGaLocation":668},"/partners/technology-partners/google-cloud-platform/",{"text":689,"config":690},"Why GitLab?",{"href":691,"dataGaName":689,"dataGaLocation":668},"/why-gitlab/",{"freeTrial":693,"mobileIcon":698,"desktopIcon":703,"secondaryButton":706},{"text":694,"config":695},"Start free trial",{"href":696,"dataGaName":314,"dataGaLocation":697},"https://gitlab.com/-/trials/new/","nav",{"altText":699,"config":700},"Gitlab Icon",{"src":701,"dataGaName":702,"dataGaLocation":697},"https://res.cloudinary.com/about-gitlab-com/image/upload/v1758203874/jypbw1jx72aexsoohd7x.svg","gitlab icon",{"altText":699,"config":704},{"src":705,"dataGaName":702,"dataGaLocation":697},"https://res.cloudinary.com/about-gitlab-com/image/upload/v1758203875/gs4c8p8opsgvflgkswz9.svg",{"text":707,"config":708},"Get Started",{"href":709,"dataGaName":710,"dataGaLocation":697},"https://gitlab.com/-/trial_registrations/new?glm_source=about.gitlab.com/get-started/","get started",{"freeTrial":712,"mobileIcon":716,"desktopIcon":718},{"text":713,"config":714},"Learn more about GitLab Duo",{"href":388,"dataGaName":715,"dataGaLocation":697},"gitlab duo",{"altText":699,"config":717},{"src":701,"dataGaName":702,"dataGaLocation":697},{"altText":699,"config":719},{"src":705,"dataGaName":702,"dataGaLocation":697},{"button":721,"mobileIcon":726,"desktopIcon":728},{"text":722,"config":723},"/switch",{"href":724,"dataGaName":725,"dataGaLocation":697},"#contact","switch",{"altText":699,"config":727},{"src":701,"dataGaName":702,"dataGaLocation":697},{"altText":699,"config":729},{"src":730,"dataGaName":702,"dataGaLocation":697},"https://res.cloudinary.com/about-gitlab-com/image/upload/v1773335277/ohhpiuoxoldryzrnhfrh.png",{"freeTrial":732,"mobileIcon":737,"desktopIcon":739},{"text":733,"config":734},"Back to pricing",{"href":502,"dataGaName":735,"dataGaLocation":697,"icon":736},"back to pricing","GoBack",{"altText":699,"config":738},{"src":701,"dataGaName":702,"dataGaLocation":697},{"altText":699,"config":740},{"src":705,"dataGaName":702,"dataGaLocation":697},{"title":742,"button":743,"config":747},"GitLab Orbit is generally available. Increase agent accuracy and lower token cost",{"text":407,"config":744},{"href":409,"dataGaName":745,"dataGaLocation":746},"orbit-ga-banner","global-banner",{"layout":748,"disabled":285},"release",{"data":750},{"text":751,"config":752,"items":757,"minimal":985},"Git is a trademark of Software Freedom Conservancy and our use of 'GitLab' is under license",{"twitter":753,"facebook":754,"youtube":755,"linkedin":756},"https://twitter.com/gitlab","https://www.facebook.com/gitlab","https://www.youtube.com/channel/UCnMGQ8QHMAnVIsI3xJrihhg","https://www.linkedin.com/company/gitlab-com",[758,806,865,912,953],{"title":500,"links":759,"subMenu":775},[760,765,770],{"text":761,"config":762},"View plans",{"href":502,"dataGaName":763,"dataGaLocation":764},"view plans","footer",{"text":766,"config":767},"Why Premium?",{"href":768,"dataGaName":769,"dataGaLocation":764},"/pricing/premium/","why premium",{"text":771,"config":772},"Why Ultimate?",{"href":773,"dataGaName":774,"dataGaLocation":764},"/pricing/ultimate/","why ultimate",[776],{"title":777,"links":778},"Contact Us",[779,782,784,786,791,796,801],{"text":780,"config":781},"Contact sales",{"href":648,"dataGaName":319,"dataGaLocation":764},{"text":651,"config":783},{"href":653,"dataGaName":654,"dataGaLocation":764},{"text":656,"config":785},{"href":658,"dataGaName":659,"dataGaLocation":764},{"text":787,"config":788},"Status",{"href":789,"dataGaName":790,"dataGaLocation":764},"https://status.gitlab.com/","status",{"text":792,"config":793},"Terms of use",{"href":794,"dataGaName":795,"dataGaLocation":764},"/terms/","terms of use",{"text":797,"config":798},"Privacy statement",{"href":799,"dataGaName":800,"dataGaLocation":764},"/privacy/","privacy statement",{"text":802,"config":803},"Cookie preferences",{"dataGaName":804,"dataGaLocation":764,"id":805,"isOneTrustButton":288},"cookie preferences","ot-sdk-btn",{"title":327,"links":807,"subMenu":823},[808,811,813,815,817,819],{"text":809,"config":810},"Explore the platform",{"href":335,"dataGaName":329,"dataGaLocation":764},{"text":386,"config":812},{"href":388,"dataGaName":389,"dataGaLocation":764},{"text":298,"config":814},{"href":342,"dataGaName":343,"dataGaLocation":764},{"text":391,"config":816},{"href":393,"dataGaName":394,"dataGaLocation":764},{"text":373,"config":818},{"href":375,"dataGaName":376,"dataGaLocation":764},{"text":820,"config":821},"Why GitLab",{"href":691,"dataGaName":822,"dataGaLocation":764},"why gitlab",[824],{"title":825,"links":826},"Topics",[827,831,836,840,845,850,855,860],{"text":298,"config":828},{"href":829,"dataGaName":830,"dataGaLocation":764},"/topics/ci-cd/","cicd",{"text":832,"config":833},"GitOps",{"href":834,"dataGaName":835,"dataGaLocation":764},"/topics/gitops/","gitops",{"text":338,"config":837},{"href":838,"dataGaName":839,"dataGaLocation":764},"/topics/devops/","devops",{"text":841,"config":842},"Version Control",{"href":843,"dataGaName":844,"dataGaLocation":764},"/topics/version-control/","version control",{"text":846,"config":847},"DevSecOps",{"href":848,"dataGaName":849,"dataGaLocation":764},"/topics/devsecops/","devsecops",{"text":851,"config":852},"Cloud Native",{"href":853,"dataGaName":854,"dataGaLocation":764},"/topics/cloud-native/","cloud native",{"text":856,"config":857},"AI for Coding",{"href":858,"dataGaName":859,"dataGaLocation":764},"/topics/devops/ai-for-coding/","ai for coding",{"text":861,"config":862},"Agentic AI",{"href":863,"dataGaName":864,"dataGaLocation":764},"/topics/agentic-ai/","agentic ai",{"title":412,"links":866},[867,870,873,876,879,882,884,886,888,890,892,895,897,900,904,908],{"text":868,"config":869},"DevOps modernization",{"href":427,"dataGaName":428,"dataGaLocation":764},{"text":871,"config":872},"Security modernization",{"href":432,"dataGaName":433,"dataGaLocation":764},{"text":874,"config":875},"AI modernization",{"href":437,"dataGaName":438,"dataGaLocation":764},{"text":877,"config":878},"Financial services",{"href":463,"dataGaName":464,"dataGaLocation":764},{"text":880,"config":881},"Public sector",{"href":468,"dataGaName":469,"dataGaLocation":764},{"text":471,"config":883},{"href":473,"dataGaName":474,"dataGaLocation":764},{"text":476,"config":885},{"href":478,"dataGaName":479,"dataGaLocation":764},{"text":481,"config":887},{"href":483,"dataGaName":484,"dataGaLocation":764},{"text":486,"config":889},{"href":488,"dataGaName":489,"dataGaLocation":764},{"text":443,"config":891},{"href":445,"dataGaName":446,"dataGaLocation":764},{"text":893,"config":894},"Small business",{"href":450,"dataGaName":451,"dataGaLocation":764},{"text":453,"config":896},{"href":455,"dataGaName":456,"dataGaLocation":764},{"text":832,"config":898},{"href":899,"dataGaName":835,"dataGaLocation":764},"/solutions/gitops/",{"text":901,"config":902},"Software composition analysis",{"href":380,"dataGaName":903,"dataGaLocation":764},"software composition analysis",{"text":905,"config":906},"Value stream management",{"href":398,"dataGaName":907,"dataGaLocation":764},"value stream management",{"text":909,"config":910},"All solutions",{"href":419,"dataGaName":911,"dataGaLocation":764},"all solutions",{"title":505,"links":913},[914,919,924,926,928,930,932,934,936,938,940,942,944,946,949],{"text":915,"config":916},"Install",{"href":917,"dataGaName":918,"dataGaLocation":764},"/install/","install",{"text":920,"config":921},"Quick start guides",{"href":922,"dataGaName":923,"dataGaLocation":764},"/get-started/","quick setup checklists",{"text":518,"config":925},{"href":520,"dataGaName":521,"dataGaLocation":764},{"text":523,"config":927},{"href":525,"dataGaName":526,"dataGaLocation":764},{"text":528,"config":929},{"href":530,"dataGaName":531,"dataGaLocation":764},{"text":533,"config":931},{"href":535,"dataGaName":536,"dataGaLocation":764},{"text":538,"config":933},{"href":540,"dataGaName":541,"dataGaLocation":764},{"text":551,"config":935},{"href":553,"dataGaName":554,"dataGaLocation":764},{"text":556,"config":937},{"href":558,"dataGaName":559,"dataGaLocation":764},{"text":561,"config":939},{"href":563,"dataGaName":564,"dataGaLocation":764},{"text":566,"config":941},{"href":568,"dataGaName":569,"dataGaLocation":764},{"text":571,"config":943},{"href":573,"dataGaName":574,"dataGaLocation":764},{"text":634,"config":945},{"href":636,"dataGaName":637,"dataGaLocation":764},{"text":947,"config":948},"What's new",{"href":582,"dataGaName":583,"dataGaLocation":764},{"text":950,"config":951},"All resources",{"href":512,"dataGaName":952,"dataGaLocation":764},"all resources",{"title":585,"links":954},[955,957,959,961,963,965,967,969,971,975,980],{"text":593,"config":956},{"href":595,"dataGaName":587,"dataGaLocation":764},{"text":598,"config":958},{"href":600,"dataGaName":601,"dataGaLocation":764},{"text":604,"config":960},{"href":606,"dataGaName":607,"dataGaLocation":764},{"text":609,"config":962},{"href":611,"dataGaName":612,"dataGaLocation":764},{"text":614,"config":964},{"href":616,"dataGaName":617,"dataGaLocation":764},{"text":619,"config":966},{"href":621,"dataGaName":622,"dataGaLocation":764},{"text":624,"config":968},{"href":626,"dataGaName":627,"dataGaLocation":764},{"text":629,"config":970},{"href":631,"dataGaName":632,"dataGaLocation":764},{"text":972,"config":973},"Sustainability",{"href":974,"dataGaName":972,"dataGaLocation":764},"/sustainability/",{"text":976,"config":977},"Diversity, inclusion and belonging (DIB)",{"href":978,"dataGaName":979,"dataGaLocation":764},"/diversity-inclusion-belonging/","Diversity, inclusion and belonging",{"text":981,"config":982},"Modern Slavery Transparency Statement",{"href":983,"dataGaName":984,"dataGaLocation":764},"https://handbook.gitlab.com/handbook/legal/modern-slavery-act-transparency-statement/","modern slavery transparency statement",{"items":986},[987,990,993],{"text":988,"config":989},"Terms",{"href":794,"dataGaName":795,"dataGaLocation":764},{"text":991,"config":992},"Cookies",{"dataGaName":804,"dataGaLocation":764,"id":805,"isOneTrustButton":288},{"text":994,"config":995},"Privacy",{"href":799,"dataGaName":800,"dataGaLocation":764},[997],{"id":998,"title":7,"body":284,"config":999,"content":1001,"description":284,"extension":1004,"meta":1005,"navigation":288,"path":1006,"seo":1007,"stem":1008,"__hash__":1009},"blogAuthors/en-us/blog/authors/shinya-maeda.yml",{"template":1000},"BlogAuthor",{"name":7,"config":1002},{"headshot":267,"ctfId":1003},"dosuken123","yml",{},"/en-us/blog/authors/shinya-maeda",{},"en-us/blog/authors/shinya-maeda","7Qnw88fbvXd21c_AOPZTlI84s0vt4USCs7BR9eEr6gU",[1011,1019,1027],{"title":1012,"description":1013,"heroImage":1014,"category":280,"date":1015,"authors":1016,"slug":1018,"externalUrl":284},"Two front doors: Module-level access in a Django GRC app","A technical deep-dive on restructuring a Django internal tool to support two distinct GitLab teams: Security Compliance and Internal Audit.","https://res.cloudinary.com/about-gitlab-com/image/upload/v1750097663/Blog/Hero%20Images/Blog/Hero%20Images/Workflow%201800x945_2gQoQIbY9NvjLFpXtsxtXy_1750097663612.png","2026-10-05",[1017],"Donovan Felton","module-level-access-in-a-django-grc-app",{"title":1020,"description":1021,"heroImage":1022,"category":280,"date":1023,"authors":1024,"slug":1026,"externalUrl":284},"How GitLab reduced code-per-agentic-flow ratio by 45%","Learn how Flow Registry, a component-based framework that compiles YAML configurations into fully functional LangGraph flows, helped improve scalability and more.","https://res.cloudinary.com/about-gitlab-com/image/upload/v1774465167/n5hlvrsrheadeccyr1oz.png","2026-09-22",[1025],"Mikolaj Wawrzyniak","how-gitlab-reduced-code-per-agentic-flow-ratio",{"title":1028,"description":1029,"heroImage":1030,"category":280,"date":1031,"authors":1032,"slug":1034,"externalUrl":284},"Co-Create: Building GitLab with our users","How GitLab users collaborated with us to build practical product improvements in the first half of 2026.","https://res.cloudinary.com/about-gitlab-com/image/upload/v1750099203/Blog/Hero%20Images/Blog/Hero%20Images/blog-image-template-1800x945%20%2820%29_2bJGC5ZP3WheoqzlLT05C5_1750099203484.png","2026-09-10",[1033],"Isa Huerga","co-create-h1-2026",{"header":1036,"text":1037,"button":1041,"disclaimer":1044},"Start your free\n\n30-day GitLab trial\n",[1038,1039,1040],"GitLab Duo Agent Platform access","Try our most advanced features","Automate complex tasks with AI",{"text":311,"config":1042},{"href":1043,"dataGaName":314,"dataGaLocation":554},"https://gitlab.com/-/trials/new?glm_content=default-saas-trial&glm_source=about.gitlab.com/blog/","No credit card required.",{"header":1046,"blurb":1047,"button":1048,"secondaryButton":1053},"Start building faster today","See what your team can do with the intelligent orchestration platform for DevSecOps.\n",{"text":1049,"config":1050},"Get your free trial",{"href":1051,"dataGaName":314,"dataGaLocation":1052},"https://gitlab.com/-/trial_registrations/new?glm_content=default-saas-trial&glm_source=about.gitlab.com/","feature",{"text":780,"config":1054},{"href":648,"dataGaName":319,"dataGaLocation":1052},1794911787843]