[{"data":1,"prerenderedAt":1199},["ShallowReactive",2],{"/blog/how-we-automatically-fixed-hundreds-of-ruby-2-7-deprecation-warnings":3,"navigation-en-us":446,"banner-en-us":884,"footer-en-us":892,"blog-post-authors-en-us-Thong Kuah":1139,"blog-related-posts-en-us-how-we-automatically-fixed-hundreds-of-ruby-2-7-deprecation-warnings":1154,"blog-share-wrapper-en-us":1179,"next-steps-en-us":1189},{"id":4,"title":5,"authors":6,"body":8,"category":427,"date":428,"description":429,"extension":430,"externalUrl":431,"faq":431,"featured":432,"heroImage":433,"hidePromo":432,"meta":434,"navigation":99,"path":435,"seo":436,"slug":440,"stem":441,"tags":442,"template":444,"updatedDate":431,"__hash__":445},"blogPosts/en-us/blog/how-we-automatically-fixed-hundreds-of-ruby-2-7-deprecation-warnings.md","How we automatically fixed thousands of Ruby 2.7 deprecation warnings",[7],"Thong Kuah",{"type":9,"value":10,"toc":421},"minimark",[11,15,31,42,47,60,63,67,82,85,174,198,209,213,222,250,383,391,395,403,417],[12,13,14],"p",{},"Ruby 3.0 was just released on Dec. 25, 2020, with some new features and some breaking changes.\nGitLab was at Ruby 2.6, and we wanted to upgrade to Ruby 2.7 in preparation to eventually upgrade to Ruby 3.",[12,16,17,18,24,25,30],{},"In Ruby 3.0, ",[19,20,23],"a",{"href":21,"rel":22},"https://www.ruby-lang.org/en/news/2019/12/12/separation-of-positional-and-keyword-arguments-in-ruby-3-0/",[],"positional and keyword arguments will be separated",". To help developers prepare for this, in Ruby 2.7,\nwarnings were added. In GitLab, we discovered we have ",[19,26,29],{"href":27,"rel":28},"https://gitlab.com/gitlab-org/gitlab/-/issues/257438",[],"thousands\nof such warnings"," across hundreds of files:",[32,33,39],"pre",{"className":34,"code":36,"language":37,"meta":38},[35],"language-text","warning: Using the last argument as keyword parameters is deprecated; maybe ** should be added to the call\n","text","",[40,41,36],"code",{"__ignoreMap":38},[43,44,46],"h2",{"id":45},"boring-solutions","Boring solutions",[12,48,49,50,53,54,59],{},"To address this warning, the obvious, and boring solution was to simply add ",[40,51,52],{},"**"," to the last keyword argument.\nFor the most part, this is what we did. However, while this was under way, we also developed a RuboCop check that could\ndetect, and automatically fix the keyword arguments. The benefit for this approach was that we can\n",[19,55,58],{"href":56,"rel":57},"https://docs.rubocop.org/rubocop/usage/auto_correct.html",[],"autocorrect"," any existing warnings en masse.",[12,61,62],{},"The tricky part about this is that RuboCop is designed to statically analyze Ruby code, whereas the warnings were\ngenerated by Ruby at runtime.",[43,64,66],{"id":65},"a-way-forward","A way forward",[12,68,69,70,75,76,81],{},"After some research, we found a way to utilize our comprehensive RSpec test suite to\ngather all the warnings using the ",[19,71,74],{"href":72,"rel":73},"https://github.com/shopify/deprecation_toolkit",[],"Deprecation Toolkit gem",". We also\nconsidered using the ",[19,77,80],{"href":78,"rel":79},"https://github.com/jeremyevans/ruby-warning",[],"warning gem"," at one point, but preferred Deprecation Toolkit\nas the results were easier to process.",[12,83,84],{},"Deprecation Toolkit supports RSpec out of the box, so it was really simple to configure. It also has a simple YAML-based file format to record all deprecations. We then adapted this to record deprecation warnings for Ruby 2.7\nlast keyword arguments with:",[32,86,90],{"className":87,"code":88,"language":89,"meta":38,"style":38},"language-ruby shiki shiki-themes github-light","\n  kwargs_warnings = [\n    # Taken from https://github.com/jeremyevans/ruby-warning/blob/1.1.0/lib/warning.rb#L18\n    %r{warning: (?:Using the last argument (?:for `.+' )?as keyword parameters is deprecated; maybe \\*\\* should be added to the call|Passing the keyword argument (?:for `.+' )?as the last hash parameter is deprecated|Splitting the last argument (?:for `.+' )?into positional and keyword parameters is deprecated|The called method (?:`.+' )?is defined here)\\n\\z}\n  ]\n  DeprecationToolkit::Configuration.warnings_treated_as_deprecation = kwargs_warnings\n\n","ruby",[40,91,92,101,116,123,143,149],{"__ignoreMap":38},[93,94,97],"span",{"class":95,"line":96},"line",1,[93,98,100],{"emptyLinePlaceholder":99},true,"\n",[93,102,104,108,112],{"class":95,"line":103},2,[93,105,107],{"class":106},"sqxcx","  kwargs_warnings",[93,109,111],{"class":110},"sD7c4"," =",[93,113,115],{"class":114},"sgsFI"," [\n",[93,117,119],{"class":95,"line":118},3,[93,120,122],{"class":121},"sAwPA","    # Taken from https://github.com/jeremyevans/ruby-warning/blob/1.1.0/lib/warning.rb#L18\n",[93,124,126,130,134,137,140],{"class":95,"line":125},4,[93,127,129],{"class":128},"sYBdl","    %r{warning: (?:Using the last argument (?:for `.+' )?as keyword parameters is deprecated; maybe ",[93,131,133],{"class":132},"s691h","\\*\\*",[93,135,136],{"class":128}," should be added to the call|Passing the keyword argument (?:for `.+' )?as the last hash parameter is deprecated|Splitting the last argument (?:for `.+' )?into positional and keyword parameters is deprecated|The called method (?:`.+' )?is defined here)",[93,138,139],{"class":132},"\\n\\z",[93,141,142],{"class":128},"}\n",[93,144,146],{"class":95,"line":145},5,[93,147,148],{"class":114},"  ]\n",[93,150,152,156,159,162,165,169,171],{"class":95,"line":151},6,[93,153,155],{"class":154},"sYu0t","  DeprecationToolkit",[93,157,158],{"class":114},"::",[93,160,161],{"class":154},"Configuration",[93,163,164],{"class":114},".",[93,166,168],{"class":167},"s7eDp","warnings_treated_as_deprecation",[93,170,111],{"class":110},[93,172,173],{"class":114}," kwargs_warnings\n",[12,175,176,177,184,185,194,195,197],{},"Lastly, we wrote a new RuboCop check, called\n",[19,178,181],{"href":179,"rel":180},"https://gitlab.com/gitlab-org/gitlab/-/blob/632b7768f7f9014951170a006489d66b34001c68/rubocop/cop/lint/last_keyword_argument.rb",[],[40,182,183],{},"Lint/LastKeywordArgument",",\nthat checks against the YAML files generated by Deprecation Toolkit, and\ngenerates offenses. Now we can very quickly, statically check the whole GitLab\ncodebase, and even autocorrect! You can see how ",[19,186,189,190,193],{"href":187,"rel":188},"https://gitlab.com/gitlab-org/gitlab/-/merge_requests/47720",[],"Deprecation Toolkit and the\n",[40,191,192],{},"LastKeywordArgument"," check was put together in this merge\nrequest",". You can\nsee a sample output from running the ",[40,196,192],{}," cop check:",[12,199,200,205,206,208],{},[201,202],"img",{"alt":203,"src":204},"LastKeywordArgument RuboCop offenses","https://res.cloudinary.com/about-gitlab-com/image/upload/v1782398598/blog/Content%20Images/last-keyword-argument-rubocop-offenses.png","\nSample output from running the ",[40,207,192],{}," cop check",[43,210,212],{"id":211},"automatically-fix-everything","Automatically fix everything",[12,214,215,216,221],{},"Now we have an automatic RuboCop check, which can also autocorrect, we create merge requests to autocorrect!\nFor example, we autocorrected 62 instances across ",[19,217,220],{"href":218,"rel":219},"https://gitlab.com/gitlab-org/gitlab/-/merge_requests/48407",[],"39 spec files",".\nAutomation for the win!",[12,223,224,225,228,229,232,233,236,237,242,243,245,246,249],{},"We then went one step further, and integrated this in our GitLab CI pipelines. Using the ",[40,226,227],{},"artifacts"," feature of GitLab CI, we\ngathered the ",[40,230,231],{},"deprecations"," directory from all RSpec jobs (we have about 400 such jobs). After all the RSpec jobs have passed, we then made a ",[40,234,235],{},"post-test"," job to\n",[19,238,241],{"href":239,"rel":240},"https://gitlab.com/gitlab-org/gitlab/-/merge_requests/49792",[],"check the results"," with the ",[40,244,192],{}," cop. Below is a\nsnippet of the GitLab CI ",[40,247,248],{},".gitlab-ci.yml"," configuration:",[32,251,255],{"className":252,"code":253,"language":254,"meta":38,"style":38},"language-yaml shiki shiki-themes github-light","stages:\n  - test\n  - post-test\n\n# This inherited job is used by all RSpec jobs\n.rspec-base:\n  stage: test\n  artifacts:\n    - deprecations/\n\n# GitLab CI job artifacts from previous stages are passed to this job\nrspec:deprecations:\n  stage: post-test\n  script:\n    - bundle exec rubocop --only Lint/LastKeywordArgument --parallel\n  artifacts:\n    - deprecations/\n\n","yaml",[40,256,257,266,274,281,285,290,297,308,316,325,330,336,344,353,361,369,376],{"__ignoreMap":38},[93,258,259,263],{"class":95,"line":96},[93,260,262],{"class":261},"shJU0","stages",[93,264,265],{"class":114},":\n",[93,267,268,271],{"class":95,"line":103},[93,269,270],{"class":114},"  - ",[93,272,273],{"class":128},"test\n",[93,275,276,278],{"class":95,"line":118},[93,277,270],{"class":114},[93,279,280],{"class":128},"post-test\n",[93,282,283],{"class":95,"line":125},[93,284,100],{"emptyLinePlaceholder":99},[93,286,287],{"class":95,"line":145},[93,288,289],{"class":121},"# This inherited job is used by all RSpec jobs\n",[93,291,292,295],{"class":95,"line":151},[93,293,294],{"class":261},".rspec-base",[93,296,265],{"class":114},[93,298,300,303,306],{"class":95,"line":299},7,[93,301,302],{"class":261},"  stage",[93,304,305],{"class":114},": ",[93,307,273],{"class":128},[93,309,311,314],{"class":95,"line":310},8,[93,312,313],{"class":261},"  artifacts",[93,315,265],{"class":114},[93,317,319,322],{"class":95,"line":318},9,[93,320,321],{"class":114},"    - ",[93,323,324],{"class":128},"deprecations/\n",[93,326,328],{"class":95,"line":327},10,[93,329,100],{"emptyLinePlaceholder":99},[93,331,333],{"class":95,"line":332},11,[93,334,335],{"class":121},"# GitLab CI job artifacts from previous stages are passed to this job\n",[93,337,339,342],{"class":95,"line":338},12,[93,340,341],{"class":261},"rspec:deprecations",[93,343,265],{"class":114},[93,345,347,349,351],{"class":95,"line":346},13,[93,348,302],{"class":261},[93,350,305],{"class":114},[93,352,280],{"class":128},[93,354,356,359],{"class":95,"line":355},14,[93,357,358],{"class":261},"  script",[93,360,265],{"class":114},[93,362,364,366],{"class":95,"line":363},15,[93,365,321],{"class":114},[93,367,368],{"class":128},"bundle exec rubocop --only Lint/LastKeywordArgument --parallel\n",[93,370,372,374],{"class":95,"line":371},16,[93,373,313],{"class":261},[93,375,265],{"class":114},[93,377,379,381],{"class":95,"line":378},17,[93,380,321],{"class":114},[93,382,324],{"class":128},[12,384,385,386,164],{},"This enabled us to have a single job where ",[19,387,390],{"href":388,"rel":389},"https://gitlab.com/gitlab-org/gitlab/-/jobs/991299621",[],"we can see all deprecation warnings",[43,392,394],{"id":393},"conclusion","Conclusion",[12,396,397,398,402],{},"With this measure we went from about 30,000 warnings related to keyword arguments to about 800 remaining warnings, largely stemming from\ndependencies. Feel free to follow our progress in ",[19,399,401],{"href":27,"rel":400},[],"GitLab issue #257438",", and contribute to\nfix the remaining warnings if you are interested!",[12,404,405,406,411,412],{},"Cover image by ",[19,407,410],{"href":408,"rel":409},"https://unsplash.com/@epicantus",[],"Daria Nepriakhina"," on ",[19,413,416],{"href":414,"rel":415},"https://unsplash.com/photos/zNU3ErDAbAw",[],"Unsplash",[418,419,420],"style",{},"html pre.shiki code .sqxcx, html code.shiki .sqxcx{--shiki-default:#E36209}html pre.shiki code .sD7c4, html code.shiki .sD7c4{--shiki-default:#D73A49}html pre.shiki code .sgsFI, html code.shiki .sgsFI{--shiki-default:#24292E}html pre.shiki code .sAwPA, html code.shiki .sAwPA{--shiki-default:#6A737D}html pre.shiki code .sYBdl, html code.shiki .sYBdl{--shiki-default:#032F62}html pre.shiki code .s691h, html code.shiki .s691h{--shiki-default:#22863A;--shiki-default-font-weight:bold}html pre.shiki code .sYu0t, html code.shiki .sYu0t{--shiki-default:#005CC5}html pre.shiki code .s7eDp, html code.shiki .s7eDp{--shiki-default:#6F42C1}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 pre.shiki code .shJU0, html code.shiki .shJU0{--shiki-default:#22863A}",{"title":38,"searchDepth":103,"depth":103,"links":422},[423,424,425,426],{"id":45,"depth":103,"text":46},{"id":65,"depth":103,"text":66},{"id":211,"depth":103,"text":212},{"id":393,"depth":103,"text":394},"engineering","2021-02-03","The upgrade to Ruby 2.7 for GitLab involved thousands of deprecation warnings across hundreds of files. Here's how we fixed most of them.","md",null,false,"https://res.cloudinary.com/about-gitlab-com/image/upload/v1749681882/Blog/Hero%20Images/daria-nepriakhina-zNU3ErDAbAw-unsplash.jpg",{},"/en-us/blog/how-we-automatically-fixed-hundreds-of-ruby-2-7-deprecation-warnings",{"title":5,"description":429,"ogTitle":5,"ogDescription":429,"noIndex":432,"ogImage":433,"ogUrl":437,"ogSiteName":438,"ogType":439,"canonicalUrls":437},"https://about.gitlab.com/blog/how-we-automatically-fixed-hundreds-of-ruby-2-7-deprecation-warnings","https://about.gitlab.com","article","how-we-automatically-fixed-hundreds-of-ruby-2-7-deprecation-warnings","en-us/blog/how-we-automatically-fixed-hundreds-of-ruby-2-7-deprecation-warnings",[443],"open source","BlogPost","igOv2J6jmembO2ZETuXR8DZeBbUk-rNQeD9I5c0YVaQ",{"logo":447,"freeTrial":452,"sales":457,"login":462,"items":467,"search":803,"minimal":835,"duo":854,"switchNav":863,"pricingDeployment":874},{"config":448},{"href":449,"dataGaName":450,"dataGaLocation":451},"/","gitlab logo","header",{"text":453,"config":454},"Get free trial",{"href":455,"dataGaName":456,"dataGaLocation":451},"https://gitlab.com/-/trial_registrations/new?glm_source=about.gitlab.com&glm_content=default-saas-trial/","free trial",{"text":458,"config":459},"Request a demo",{"href":460,"dataGaName":461,"dataGaLocation":451},"/request-a-demo/","sales",{"text":463,"config":464},"Sign in",{"href":465,"dataGaName":466,"dataGaLocation":451},"https://gitlab.com/users/sign_in/","sign in",[468,554,642,647,727,781],{"text":469,"left":99,"config":470,"menu":472},"Platform",{"dataNavLevelOne":471},"platform",{"type":473,"link":474,"columns":478,"feature":543},"lists",{"text":475,"config":476},"Explore the Platform",{"href":477,"dataGaName":471,"dataGaLocation":451},"/platform/",[479,502,525],{"title":480,"items":481},"DevOps",[482,487,492,497],{"text":483,"config":484},"CI/CD",{"href":485,"dataGaLocation":451,"dataGaName":486},"/solutions/continuous-integration/","ci/cd",{"text":488,"config":489},"Source Code Management",{"href":490,"dataGaLocation":451,"dataGaName":491},"/solutions/source-code-management/","source code management",{"text":493,"config":494},"Agile Delivery",{"href":495,"dataGaLocation":451,"dataGaName":496},"/solutions/agile-delivery/","agile delivery",{"text":498,"config":499},"Artifact Management",{"href":500,"dataGaLocation":451,"dataGaName":501},"/artifact-central/","artifact management",{"title":503,"items":504},"Security & Governance",[505,510,515,520],{"text":506,"config":507},"Application Security Testing",{"href":508,"dataGaLocation":451,"dataGaName":509},"/solutions/application-security-testing/","application security testing",{"text":511,"config":512},"Governance & Compliance",{"href":513,"dataGaLocation":451,"dataGaName":514},"/solutions/software-compliance/","governance and compliance",{"text":516,"config":517},"Secrets Management",{"href":518,"dataGaLocation":451,"dataGaName":519},"/gitlab-secrets-manager/","secrets management",{"text":521,"config":522},"Supply Chain Security",{"href":523,"dataGaLocation":451,"dataGaName":524},"/solutions/supply-chain/","supply chain security",{"title":526,"items":527},"Agentic AI & Context",[528,533,538],{"text":529,"config":530},"Duo Agent Platform",{"href":531,"dataGaLocation":451,"dataGaName":532},"/gitlab-duo-agent-platform/","duo agent platform",{"text":534,"config":535},"Orbit Context Graph",{"href":536,"dataGaLocation":451,"dataGaName":537},"/gitlab-orbit/","orbit",{"text":539,"config":540},"Visibility & Measurement",{"href":541,"dataGaLocation":451,"dataGaName":542},"/solutions/visibility-measurement/","visibility and measurement",{"config":544,"title":547,"text":548,"link":549},{"background":545,"textColor":546},"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":550,"config":551},"Read the announcement",{"href":552,"dataGaName":553,"dataGaLocation":451},"/blog/gitlab-orbit-ga/","orbit ga announcement",{"text":555,"left":99,"config":556,"menu":558},"Solutions",{"dataNavLevelOne":557},"solutions",{"type":473,"link":559,"columns":563,"feature":633},{"text":560,"config":561},"View all Solutions",{"href":562,"dataGaName":557,"dataGaLocation":451},"/solutions/",[564,582,600],{"title":565,"items":566},"Outcomes",[567,572,577],{"text":568,"config":569},"DevOps Modernization",{"href":570,"dataGaLocation":451,"dataGaName":571},"/assessments/devops-modernization-assessment/","devops modernization",{"text":573,"config":574},"Security Modernization",{"href":575,"dataGaLocation":451,"dataGaName":576},"/assessments/security-modernization-assessment/","security modernization",{"text":578,"config":579},"AI Modernization",{"href":580,"dataGaLocation":451,"dataGaName":581},"/assessments/ai-modernization-assessment/","ai modernization",{"title":583,"items":584},"By size",[585,590,595],{"text":586,"config":587},"Enterprise",{"href":588,"dataGaLocation":451,"dataGaName":589},"/enterprise/","enterprise",{"text":591,"config":592},"Small Business",{"href":593,"dataGaLocation":451,"dataGaName":594},"/small-business/","small business",{"text":596,"config":597},"Startups",{"href":598,"dataGaLocation":451,"dataGaName":599},"/solutions/startups/","startups",{"title":601,"items":602},"Industries",[603,608,613,618,623,628],{"text":604,"config":605},"Financial Services",{"href":606,"dataGaLocation":451,"dataGaName":607},"/solutions/finance/","financial services",{"text":609,"config":610},"Public Sector",{"href":611,"dataGaLocation":451,"dataGaName":612},"/solutions/public-sector/","public sector",{"text":614,"config":615},"Telecommunications",{"href":616,"dataGaLocation":451,"dataGaName":617},"/solutions/telecommunications/","telecommunications",{"text":619,"config":620},"Automotive",{"href":621,"dataGaLocation":451,"dataGaName":622},"/solutions/automotive/","automotive",{"text":624,"config":625},"Education",{"href":626,"dataGaLocation":451,"dataGaName":627},"/solutions/education/","education",{"text":629,"config":630},"Aerospace",{"href":631,"dataGaLocation":451,"dataGaName":632},"/solutions/aerospace/","aerospace",{"config":634,"title":635,"text":636,"link":637},{"background":545,"textColor":546},"GitLab Security Standard","Learn how to harden your software factory and let AI agents earn autonomy, without trading away security.",{"text":638,"config":639},"Explore the standard",{"href":640,"dataGaName":641,"dataGaLocation":451},"/gitlab-security-standard/","gitlab security standard",{"text":643,"config":644},"Pricing",{"href":645,"dataGaName":646,"dataGaLocation":451,"dataNavLevelOne":646},"/pricing/","pricing",{"text":648,"config":649,"menu":651},"Resources",{"dataNavLevelOne":650},"resources",{"type":473,"link":652,"columns":656,"feature":718},{"text":653,"config":654},"View all resources",{"href":655,"dataGaName":650,"dataGaLocation":451},"/resources/",[657,690],{"title":658,"items":659},"Discover",[660,665,670,675,680,685],{"text":661,"config":662},"Docs",{"href":663,"dataGaName":664,"dataGaLocation":451},"https://docs.gitlab.com/","docs",{"text":666,"config":667},"University",{"href":668,"dataGaName":669,"dataGaLocation":451},"https://university.gitlab.com/","university",{"text":671,"config":672},"Demo Series",{"href":673,"dataGaName":674,"dataGaLocation":451},"/gitlab-technical-demo-series/","demo series",{"text":676,"config":677},"Demo Hub",{"href":678,"dataGaName":679,"dataGaLocation":451},"/demo-hub/","demo hub",{"text":681,"config":682},"Services",{"href":683,"dataGaName":684,"dataGaLocation":451},"/services/","services",{"text":686,"config":687},"Well Architected",{"href":688,"dataGaName":689,"dataGaLocation":451},"/resources/well-architected/","well architected",{"title":691,"items":692},"Connect",[693,698,703,708,713],{"text":694,"config":695},"Blog",{"href":696,"dataGaName":697,"dataGaLocation":451},"/blog/","blog",{"text":699,"config":700},"Community",{"href":701,"dataGaName":702,"dataGaLocation":451},"/community/","community",{"text":704,"config":705},"Customers",{"href":706,"dataGaName":707,"dataGaLocation":451},"/customers/","customers",{"text":709,"config":710},"Partners",{"href":711,"dataGaName":712,"dataGaLocation":451},"/partners/","partners",{"text":714,"config":715},"Events",{"href":716,"dataGaName":717,"dataGaLocation":451},"/events/","events",{"config":719,"title":720,"text":721,"link":722},{"background":545,"textColor":546},"What’s new in GitLab","Stay updated with our latest features and improvements.",{"text":723,"config":724},"Read the latest",{"href":725,"dataGaName":726,"dataGaLocation":451},"/whats-new/","whats new",{"text":728,"config":729,"menu":731},"Company",{"dataNavLevelOne":730},"company",{"type":473,"columns":732},[733],{"items":734},[735,740,746,751,756,761,766,771,776],{"text":736,"config":737},"About",{"href":738,"dataGaName":739,"dataGaLocation":451},"/company/","about",{"text":741,"config":742,"footerGa":745},"Jobs",{"href":743,"dataGaName":744,"dataGaLocation":451},"/jobs/","jobs",{"dataGaName":744},{"text":747,"config":748},"Press",{"href":749,"dataGaName":750,"dataGaLocation":451},"/press/","press",{"text":752,"config":753},"Handbook",{"href":754,"dataGaName":755,"dataGaLocation":451},"https://handbook.gitlab.com/","handbook",{"text":757,"config":758},"Leadership",{"href":759,"dataGaName":760,"dataGaLocation":451},"/company/team/e-group/","leadership",{"text":762,"config":763},"Investor relations",{"href":764,"dataGaName":765,"dataGaLocation":451},"https://ir.gitlab.com/overview/default.aspx","investor relations",{"text":767,"config":768},"Trust Center",{"href":769,"dataGaName":770,"dataGaLocation":451},"/security/","trust center",{"text":772,"config":773},"AI Transparency Center",{"href":774,"dataGaName":775,"dataGaLocation":451},"/ai-transparency-center/","ai transparency center",{"text":777,"config":778},"Newsletter",{"href":779,"dataGaName":780,"dataGaLocation":451},"/company/contact/#contact-forms","newsletter",{"text":782,"config":783,"menu":784},"Contact us",{"dataNavLevelOne":730},{"type":473,"columns":785},[786],{"items":787},[788,793,798],{"text":789,"config":790},"Talk to sales",{"href":791,"dataGaName":792,"dataGaLocation":451},"/sales/","talk to sales",{"text":794,"config":795},"Support portal",{"href":796,"dataGaName":797,"dataGaLocation":451},"https://support.gitlab.com/hc/en-us","support portal",{"text":799,"config":800},"Customer portal",{"href":801,"dataGaName":802,"dataGaLocation":451},"https://customers.gitlab.com/customers/sign_in/","customer portal",{"close":804,"login":805,"suggestions":812},"Close",{"text":806,"link":807},"To search repositories and projects, login to",{"text":808,"config":809},"gitlab.com",{"href":465,"dataGaName":810,"dataGaLocation":811},"search login","search",{"text":813,"default":814},"Suggestions",[815,818,821,823,827,831],{"text":816,"config":817},"GitLab Duo Agent Platform",{"href":531,"dataGaName":816,"dataGaLocation":811},{"text":819,"config":820},"Code Suggestions (AI)",{"href":531,"dataGaName":819,"dataGaLocation":811},{"text":483,"config":822},{"href":485,"dataGaName":483,"dataGaLocation":811},{"text":824,"config":825},"GitLab on AWS",{"href":826,"dataGaName":824,"dataGaLocation":811},"/partners/technology-partners/aws/",{"text":828,"config":829},"GitLab on Google Cloud",{"href":830,"dataGaName":828,"dataGaLocation":811},"/partners/technology-partners/google-cloud-platform/",{"text":832,"config":833},"Why GitLab?",{"href":834,"dataGaName":832,"dataGaLocation":811},"/why-gitlab/",{"freeTrial":836,"mobileIcon":841,"desktopIcon":846,"secondaryButton":849},{"text":837,"config":838},"Start free trial",{"href":839,"dataGaName":456,"dataGaLocation":840},"https://gitlab.com/-/trials/new/","nav",{"altText":842,"config":843},"Gitlab Icon",{"src":844,"dataGaName":845,"dataGaLocation":840},"https://res.cloudinary.com/about-gitlab-com/image/upload/v1758203874/jypbw1jx72aexsoohd7x.svg","gitlab icon",{"altText":842,"config":847},{"src":848,"dataGaName":845,"dataGaLocation":840},"https://res.cloudinary.com/about-gitlab-com/image/upload/v1758203875/gs4c8p8opsgvflgkswz9.svg",{"text":850,"config":851},"Get Started",{"href":852,"dataGaName":853,"dataGaLocation":840},"https://gitlab.com/-/trial_registrations/new?glm_source=about.gitlab.com/get-started/","get started",{"freeTrial":855,"mobileIcon":859,"desktopIcon":861},{"text":856,"config":857},"Learn more about GitLab Duo",{"href":531,"dataGaName":858,"dataGaLocation":840},"gitlab duo",{"altText":842,"config":860},{"src":844,"dataGaName":845,"dataGaLocation":840},{"altText":842,"config":862},{"src":848,"dataGaName":845,"dataGaLocation":840},{"button":864,"mobileIcon":869,"desktopIcon":871},{"text":865,"config":866},"/switch",{"href":867,"dataGaName":868,"dataGaLocation":840},"#contact","switch",{"altText":842,"config":870},{"src":844,"dataGaName":845,"dataGaLocation":840},{"altText":842,"config":872},{"src":873,"dataGaName":845,"dataGaLocation":840},"https://res.cloudinary.com/about-gitlab-com/image/upload/v1773335277/ohhpiuoxoldryzrnhfrh.png",{"freeTrial":875,"mobileIcon":880,"desktopIcon":882},{"text":876,"config":877},"Back to pricing",{"href":645,"dataGaName":878,"dataGaLocation":840,"icon":879},"back to pricing","GoBack",{"altText":842,"config":881},{"src":844,"dataGaName":845,"dataGaLocation":840},{"altText":842,"config":883},{"src":848,"dataGaName":845,"dataGaLocation":840},{"title":885,"button":886,"config":890},"GitLab Orbit is generally available. Increase agent accuracy and lower token cost",{"text":550,"config":887},{"href":552,"dataGaName":888,"dataGaLocation":889},"orbit-ga-banner","global-banner",{"layout":891,"disabled":432},"release",{"data":893},{"text":894,"config":895,"items":900,"minimal":1128},"Git is a trademark of Software Freedom Conservancy and our use of 'GitLab' is under license",{"twitter":896,"facebook":897,"youtube":898,"linkedin":899},"https://twitter.com/gitlab","https://www.facebook.com/gitlab","https://www.youtube.com/channel/UCnMGQ8QHMAnVIsI3xJrihhg","https://www.linkedin.com/company/gitlab-com",[901,949,1008,1055,1096],{"title":643,"links":902,"subMenu":918},[903,908,913],{"text":904,"config":905},"View plans",{"href":645,"dataGaName":906,"dataGaLocation":907},"view plans","footer",{"text":909,"config":910},"Why Premium?",{"href":911,"dataGaName":912,"dataGaLocation":907},"/pricing/premium/","why premium",{"text":914,"config":915},"Why Ultimate?",{"href":916,"dataGaName":917,"dataGaLocation":907},"/pricing/ultimate/","why ultimate",[919],{"title":920,"links":921},"Contact Us",[922,925,927,929,934,939,944],{"text":923,"config":924},"Contact sales",{"href":791,"dataGaName":461,"dataGaLocation":907},{"text":794,"config":926},{"href":796,"dataGaName":797,"dataGaLocation":907},{"text":799,"config":928},{"href":801,"dataGaName":802,"dataGaLocation":907},{"text":930,"config":931},"Status",{"href":932,"dataGaName":933,"dataGaLocation":907},"https://status.gitlab.com/","status",{"text":935,"config":936},"Terms of use",{"href":937,"dataGaName":938,"dataGaLocation":907},"/terms/","terms of use",{"text":940,"config":941},"Privacy statement",{"href":942,"dataGaName":943,"dataGaLocation":907},"/privacy/","privacy statement",{"text":945,"config":946},"Cookie preferences",{"dataGaName":947,"dataGaLocation":907,"id":948,"isOneTrustButton":99},"cookie preferences","ot-sdk-btn",{"title":469,"links":950,"subMenu":966},[951,954,956,958,960,962],{"text":952,"config":953},"Explore the platform",{"href":477,"dataGaName":471,"dataGaLocation":907},{"text":529,"config":955},{"href":531,"dataGaName":532,"dataGaLocation":907},{"text":483,"config":957},{"href":485,"dataGaName":486,"dataGaLocation":907},{"text":534,"config":959},{"href":536,"dataGaName":537,"dataGaLocation":907},{"text":516,"config":961},{"href":518,"dataGaName":519,"dataGaLocation":907},{"text":963,"config":964},"Why GitLab",{"href":834,"dataGaName":965,"dataGaLocation":907},"why gitlab",[967],{"title":968,"links":969},"Topics",[970,974,979,983,988,993,998,1003],{"text":483,"config":971},{"href":972,"dataGaName":973,"dataGaLocation":907},"/topics/ci-cd/","cicd",{"text":975,"config":976},"GitOps",{"href":977,"dataGaName":978,"dataGaLocation":907},"/topics/gitops/","gitops",{"text":480,"config":980},{"href":981,"dataGaName":982,"dataGaLocation":907},"/topics/devops/","devops",{"text":984,"config":985},"Version Control",{"href":986,"dataGaName":987,"dataGaLocation":907},"/topics/version-control/","version control",{"text":989,"config":990},"DevSecOps",{"href":991,"dataGaName":992,"dataGaLocation":907},"/topics/devsecops/","devsecops",{"text":994,"config":995},"Cloud Native",{"href":996,"dataGaName":997,"dataGaLocation":907},"/topics/cloud-native/","cloud native",{"text":999,"config":1000},"AI for Coding",{"href":1001,"dataGaName":1002,"dataGaLocation":907},"/topics/devops/ai-for-coding/","ai for coding",{"text":1004,"config":1005},"Agentic AI",{"href":1006,"dataGaName":1007,"dataGaLocation":907},"/topics/agentic-ai/","agentic ai",{"title":555,"links":1009},[1010,1013,1016,1019,1022,1025,1027,1029,1031,1033,1035,1038,1040,1043,1047,1051],{"text":1011,"config":1012},"DevOps modernization",{"href":570,"dataGaName":571,"dataGaLocation":907},{"text":1014,"config":1015},"Security modernization",{"href":575,"dataGaName":576,"dataGaLocation":907},{"text":1017,"config":1018},"AI modernization",{"href":580,"dataGaName":581,"dataGaLocation":907},{"text":1020,"config":1021},"Financial services",{"href":606,"dataGaName":607,"dataGaLocation":907},{"text":1023,"config":1024},"Public sector",{"href":611,"dataGaName":612,"dataGaLocation":907},{"text":614,"config":1026},{"href":616,"dataGaName":617,"dataGaLocation":907},{"text":619,"config":1028},{"href":621,"dataGaName":622,"dataGaLocation":907},{"text":624,"config":1030},{"href":626,"dataGaName":627,"dataGaLocation":907},{"text":629,"config":1032},{"href":631,"dataGaName":632,"dataGaLocation":907},{"text":586,"config":1034},{"href":588,"dataGaName":589,"dataGaLocation":907},{"text":1036,"config":1037},"Small business",{"href":593,"dataGaName":594,"dataGaLocation":907},{"text":596,"config":1039},{"href":598,"dataGaName":599,"dataGaLocation":907},{"text":975,"config":1041},{"href":1042,"dataGaName":978,"dataGaLocation":907},"/solutions/gitops/",{"text":1044,"config":1045},"Software composition analysis",{"href":523,"dataGaName":1046,"dataGaLocation":907},"software composition analysis",{"text":1048,"config":1049},"Value stream management",{"href":541,"dataGaName":1050,"dataGaLocation":907},"value stream management",{"text":1052,"config":1053},"All solutions",{"href":562,"dataGaName":1054,"dataGaLocation":907},"all solutions",{"title":648,"links":1056},[1057,1062,1067,1069,1071,1073,1075,1077,1079,1081,1083,1085,1087,1089,1092],{"text":1058,"config":1059},"Install",{"href":1060,"dataGaName":1061,"dataGaLocation":907},"/install/","install",{"text":1063,"config":1064},"Quick start guides",{"href":1065,"dataGaName":1066,"dataGaLocation":907},"/get-started/","quick setup checklists",{"text":661,"config":1068},{"href":663,"dataGaName":664,"dataGaLocation":907},{"text":666,"config":1070},{"href":668,"dataGaName":669,"dataGaLocation":907},{"text":671,"config":1072},{"href":673,"dataGaName":674,"dataGaLocation":907},{"text":676,"config":1074},{"href":678,"dataGaName":679,"dataGaLocation":907},{"text":681,"config":1076},{"href":683,"dataGaName":684,"dataGaLocation":907},{"text":694,"config":1078},{"href":696,"dataGaName":697,"dataGaLocation":907},{"text":699,"config":1080},{"href":701,"dataGaName":702,"dataGaLocation":907},{"text":704,"config":1082},{"href":706,"dataGaName":707,"dataGaLocation":907},{"text":709,"config":1084},{"href":711,"dataGaName":712,"dataGaLocation":907},{"text":714,"config":1086},{"href":716,"dataGaName":717,"dataGaLocation":907},{"text":777,"config":1088},{"href":779,"dataGaName":780,"dataGaLocation":907},{"text":1090,"config":1091},"What's new",{"href":725,"dataGaName":726,"dataGaLocation":907},{"text":1093,"config":1094},"All resources",{"href":655,"dataGaName":1095,"dataGaLocation":907},"all resources",{"title":728,"links":1097},[1098,1100,1102,1104,1106,1108,1110,1112,1114,1118,1123],{"text":736,"config":1099},{"href":738,"dataGaName":730,"dataGaLocation":907},{"text":741,"config":1101},{"href":743,"dataGaName":744,"dataGaLocation":907},{"text":747,"config":1103},{"href":749,"dataGaName":750,"dataGaLocation":907},{"text":752,"config":1105},{"href":754,"dataGaName":755,"dataGaLocation":907},{"text":757,"config":1107},{"href":759,"dataGaName":760,"dataGaLocation":907},{"text":762,"config":1109},{"href":764,"dataGaName":765,"dataGaLocation":907},{"text":767,"config":1111},{"href":769,"dataGaName":770,"dataGaLocation":907},{"text":772,"config":1113},{"href":774,"dataGaName":775,"dataGaLocation":907},{"text":1115,"config":1116},"Sustainability",{"href":1117,"dataGaName":1115,"dataGaLocation":907},"/sustainability/",{"text":1119,"config":1120},"Diversity, inclusion and belonging (DIB)",{"href":1121,"dataGaName":1122,"dataGaLocation":907},"/diversity-inclusion-belonging/","Diversity, inclusion and belonging",{"text":1124,"config":1125},"Modern Slavery Transparency Statement",{"href":1126,"dataGaName":1127,"dataGaLocation":907},"https://handbook.gitlab.com/handbook/legal/modern-slavery-act-transparency-statement/","modern slavery transparency statement",{"items":1129},[1130,1133,1136],{"text":1131,"config":1132},"Terms",{"href":937,"dataGaName":938,"dataGaLocation":907},{"text":1134,"config":1135},"Cookies",{"dataGaName":947,"dataGaLocation":907,"id":948,"isOneTrustButton":99},{"text":1137,"config":1138},"Privacy",{"href":942,"dataGaName":943,"dataGaLocation":907},[1140],{"id":1141,"title":7,"body":431,"config":1142,"content":1144,"description":431,"extension":1148,"meta":1149,"navigation":99,"path":1150,"seo":1151,"stem":1152,"__hash__":1153},"blogAuthors/en-us/blog/authors/thong-kuah.yml",{"template":1143},"BlogAuthor",{"name":7,"config":1145},{"headshot":1146,"ctfId":1147},"https://res.cloudinary.com/about-gitlab-com/image/upload/v1749667179/Blog/Author%20Headshots/tkuah-headshot.jpg","tkuah","yml",{},"/en-us/blog/authors/thong-kuah",{},"en-us/blog/authors/thong-kuah","xJQ-LmIxnbBOQkNtnl9ht3dSkez0P1ho7K_DlEVTHgM",[1155,1163,1171],{"title":1156,"description":1157,"heroImage":1158,"category":427,"date":1159,"authors":1160,"slug":1162,"externalUrl":431},"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",[1161],"Donovan Felton","module-level-access-in-a-django-grc-app",{"title":1164,"description":1165,"heroImage":1166,"category":427,"date":1167,"authors":1168,"slug":1170,"externalUrl":431},"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",[1169],"Mikolaj Wawrzyniak","how-gitlab-reduced-code-per-agentic-flow-ratio",{"title":1172,"description":1173,"heroImage":1174,"category":427,"date":1175,"authors":1176,"slug":1178,"externalUrl":431},"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",[1177],"Isa Huerga","co-create-h1-2026",{"header":1180,"text":1181,"button":1185,"disclaimer":1188},"Start your free\n\n30-day GitLab trial\n",[1182,1183,1184],"GitLab Duo Agent Platform access","Try our most advanced features","Automate complex tasks with AI",{"text":453,"config":1186},{"href":1187,"dataGaName":456,"dataGaLocation":697},"https://gitlab.com/-/trials/new?glm_content=default-saas-trial&glm_source=about.gitlab.com/blog/","No credit card required.",{"header":1190,"blurb":1191,"button":1192,"secondaryButton":1197},"Start building faster today","See what your team can do with the intelligent orchestration platform for DevSecOps.\n",{"text":1193,"config":1194},"Get your free trial",{"href":1195,"dataGaName":456,"dataGaLocation":1196},"https://gitlab.com/-/trial_registrations/new?glm_content=default-saas-trial&glm_source=about.gitlab.com/","feature",{"text":923,"config":1198},{"href":791,"dataGaName":461,"dataGaLocation":1196},1794911780917]