[{"data":1,"prerenderedAt":797},["ShallowReactive",2],{"/en-us/blog/exact-code-search-find-code-faster-across-repositories":3,"navigation-en-us":34,"banner-en-us":444,"footer-en-us":454,"blog-post-authors-en-us-Dmitry Gruzd":696,"blog-related-posts-en-us-exact-code-search-find-code-faster-across-repositories":710,"assessment-promotions-en-us":748,"next-steps-en-us":787},{"id":4,"title":5,"authorSlugs":6,"body":8,"categorySlug":9,"config":10,"content":14,"description":8,"extension":25,"isFeatured":11,"meta":26,"navigation":27,"path":28,"publishedDate":20,"seo":29,"stem":30,"tagSlugs":31,"__hash__":33},"blogPosts/en-us/blog/exact-code-search-find-code-faster-across-repositories.yml","Exact Code Search Find Code Faster Across Repositories",[7],"dmitry-gruzd",null,"product",{"featured":11,"template":12,"slug":13},false,"BlogPost","exact-code-search-find-code-faster-across-repositories",{"title":15,"description":16,"authors":17,"heroImage":19,"date":20,"body":21,"category":9,"tags":22},"Exact Code Search: Find code faster across repositories","Discover how this new GitLab feature can find exact matches, use regex patterns, and see contextual results across terabytes of codebases.",[18],"Dmitry Gruzd","https://res.cloudinary.com/about-gitlab-com/image/upload/v1749675154/Blog/Hero%20Images/blog-image-template-1800x945__8_.png","2025-06-25","**TL;DR:** What if you could find any line of code across 48 TB of repositories in milliseconds? GitLab's new [Exact Code\nSearch](https://docs.gitlab.com/ee/user/search/exact_code_search.html) makes this possible, delivering pinpoint precision, powerful regex support, and contextual multi-line results that transform how teams work with large codebases.\n\n## Why traditional code search is challenging\n\nAnyone who works with code knows the frustration of searching across repositories. Whether you're a developer debugging an issue, a DevOps engineer examining configurations, a security analyst searching for vulnerabilities, a technical writer updating documentation, or a manager reviewing implementation, you know exactly what you need, but traditional search tools often fail you.\n\nThese conventional tools return dozens of false positives, lack the context needed to understand results, and slow to a crawl as codebases grow. The result? Valuable time spent hunting for needles in haystacks instead of building, securing, or improving your software.\n\nGitLab's code search functionality has historically been backed by Elasticsearch or OpenSearch. While these are excellent for searching issues, merge requests, comments, and other data containing natural language, they weren't specifically designed for code. After [evaluating numerous options](https://gitlab.com/groups/gitlab-org/-/epics/7404), we developed a better solution.\n\n## Introducing Exact Code Search: Three game-changing capabilities\n\nEnter GitLab's **[Exact Code Search](https://docs.gitlab.com/ee/user/search/exact_code_search.html)**, currently in beta testing and powered by [Zoekt](https://github.com/sourcegraph/zoekt) (pronounced \"zookt\", Dutch for \"search\"). Zoekt is an open-source code search engine originally created by Google and now maintained by Sourcegraph, specifically designed for fast, accurate code search at scale. We've enhanced it with GitLab-specific integrations, enterprise-scale improvements, and seamless permission system integration.\n\nThis feature revolutionizes how you find and understand code with three key capabilities:\n\n1. Exact Match mode: Zero false positives\n\nWhen toggled to **Exact Match mode**, the search engine returns only results that match your query exactly as entered, eliminating false positives. This precision is invaluable when:\n\n* Searching for specific error messages\n\n* Looking for particular function signatures\n\n* Finding instances of specific variable names\n2. Regular Expression mode: Powerful pattern matching\n\nFor complex search needs, Regular Expression mode allows you to craft sophisticated search patterns:\n\n* Find functions following specific naming patterns\n\n* Locate variables matching certain constraints\n\n* Identify potential security vulnerabilities using pattern matching\n\n3. Multiple-line matches: See code in context\n\n\n![Exact Code Search](https://res.cloudinary.com/about-gitlab-com/image/upload/v1750704179/ttjuilkt3v7gtyywnchx.png)\n\nInstead of seeing just a single line with your matching term, you get the surrounding context that's crucial for understanding the code. This eliminates the need to click through to files for basic comprehension, significantly accelerating your workflow.\n\n## From features to workflows: Real-world use cases and impact\n\nLet's see how these capabilities translate to real productivity gains in everyday development scenarios:\n\n### Debugging: From error message to root cause in seconds\n\nBefore Exact Code Search:\n\nCopy an error message, search, wade through dozens of partial matches in comments and documentation, click through multiple files, and eventually find the actual code.\n\nWith Exact Code Search:\n\n1. Copy the exact error message\n\n2. Paste it into Exact Code Search with Exact Match mode\n\n3. Instantly find the precise location where the error is thrown, with surrounding context\n\n**Impact:** Reduce debugging time from minutes to seconds, eliminating the frustration of false positives.\n\n### Code exploration: Master unfamiliar codebases quickly\n\nBefore Exact Code Search:\n\nBrowse through directories, make educated guesses about file locations, open dozens of files, and slowly build a mental map of the codebase.\n\nWith Exact Code Search:\n\n* Search for key methods or classes with Exact Match mode\n\n* Review multiple line matches to understand implementation details\n\n* Use Regular Expression mode to find similar patterns across the codebase\n\n**Impact:** Build a mental map of code structure in minutes rather than hours, dramatically accelerating onboarding and cross-team collaboration.\n\n### Refactoring with confidence\n\nBefore Exact Code Search:\n\nAttempt to find all instances of a method, miss some occurrences, and introduce bugs through incomplete refactoring.\n\nWith Exact Code Search:\n\n* Use Exact Match mode to find all occurrences of methods or variables\n\n* Review context to understand usage patterns\n\n* Plan your refactoring with complete information about impact\n\n**Impact:** Eliminate the \"missed instance\" bugs that often plague refactoring efforts, improving code quality and reducing rework.\n\n### Security auditing: Finding vulnerable patterns\n\nSecurity teams can:\n\n* Create regex patterns matching known vulnerable code\n\n* Search across all repositories in a namespace\n\n* Quickly identify potential security issues with context that helps assess risk\n\n**Impact:** Transform security audits from manual, error-prone processes to systematic, comprehensive reviews.\n\n### Cross-repository insights\n\nSearch across your entire namespace or instance to:\n\n* Identify similar implementations across different projects\n\n* Discover opportunities for shared libraries or standardization\n\n**Impact:** Break down silos between projects and identify opportunities for code reuse and standardization.\n\n## The technical foundation: How Zoekt delivers speed and precision\n\nBefore diving into our scale achievements, let's explore what makes Zoekt fundamentally different from traditional search engines — and why it can find exact matches so incredibly fast.\n\n### Positional trigrams: The secret to lightning-fast exact matches\n\nZoekt's speed comes from its use of **positional trigrams** — a technique that indexes every sequence of three characters along with their exact positions in files. This approach solves one of the biggest pain points developers have had with Elasticsearch-based code search: false positives.\n\nHere's how it works:\n\n**Traditional full-text search engines** like Elasticsearch tokenize code into words and lose positional information. When you search for `getUserId()`, they might return results containing **user**, **get**, and **Id** scattered throughout a file — leading to those frustrating false positives for GitLab users.\n\n**Zoekt's positional trigrams** maintain exact character sequences and their positions. When you search for `getUserId()`, Zoekt doesn't check all possible trigrams. Instead, it intelligently selects just **2 trigrams** with the lowest frequency (least common in the codebase) — for example, **get** and **d()** — and ensures they appear at the correct distance apart (distance 8 in this case). This optimization strategy dramatically reduces the number of candidate matches while ensuring only exact matches are returned.\n\nThe result? Search queries that previously returned hundreds of irrelevant results now return only the precise matches you're looking for. This was [one of our most requested features](https://gitlab.com/gitlab-org/gitlab/-/issues/325234) for good reason - developers were losing significant time sifting through false positives.\n\n### Regular expression performance at scale\n\nZoekt excels at exact matches and is optimized for regular expression searches. The engine uses sophisticated algorithms to convert regex patterns into efficient trigram queries when possible, maintaining speed even for complex patterns across terabytes of code.\n\n## Built for enterprise scale\n\nExact Code Search is powerful and built to handle massive scale with impressive performance. This is not just a new UI feature — it's powered by a completely reimagined backend architecture.\n\n### Handling terabytes of code with ease\n\nOn GitLab.com alone, our Exact Code Search infrastructure indexes and searches over **48 TB** of code data while maintaining lightning-fast response times. This scale represents millions of repositories across thousands of namespaces, all searchable within milliseconds. To put this in perspective: This scale represents more code than the entire Linux kernel, Android, and Chromium projects combined. Yet Exact Code Search can find a specific line across this massive codebase in milliseconds.\n\n### Self-registering node architecture\n\nOur innovative implementation features:\n\n* **Automatic node registration:** Zoekt nodes register themselves with GitLab\n\n* **Dynamic shard assignment:** The system automatically assigns namespaces to nodes\n\n* **Health monitoring:** Nodes that don't check in are automatically marked offline\n\nThis self-configuring architecture dramatically simplifies scaling. When more capacity is needed, administrators can simply add more nodes without complex reconfiguration.\n\n### Distributed system with intelligent load balancing\n\nBehind the scenes, Exact Code Search operates as a distributed system with these key components:\n\n* **Specialized search nodes:** Purpose-built servers that handle indexing and searching\n\n* **Smart sharding:** Code is distributed across nodes based on namespaces\n\n* **Automatic load balancing:** The system intelligently distributes work based on capacity\n\n* **High availability:** Multiple replicas ensure continuous operation even if nodes fail\n\n*Note: High availability is built into the architecture but not yet fully enabled. See [Issue 514736](https://gitlab.com/gitlab-org/gitlab/-/issues/514736) for updates.*\n\n### Seamless security integration\n\nExact Code Search automatically integrates with GitLab's permission system:\n\n* Search results are filtered based on the user's access rights\n\n* Only code from projects the user has access to is displayed\n\n* Security is built into the core architecture, not added as an afterthought\n\n### Optimized performance\n\n* **Efficient indexing:** Large repositories are indexed in tens of seconds\n\n* **Fast query execution:** Most searches return results with sub-second response times\n\n* **Streaming results:** The new gRPC-based federated search streams results as they're found\n\n* **Early termination:** Once enough results are collected, the system pauses searching\n\n## From library to distributed system: Engineering challenges we solved\n\nWhile Zoekt provided the core search technology, it was originally designed as a minimal library for managing `.zoekt` index files - not a distributed database or enterprise-scale service. Here are the key engineering challenges we overcame to make it work at GitLab's scale\"\n\n### Challenge 1: Building an orchestration layer\n\n**The problem:** Zoekt was designed to work with local index files, not distributed across multiple nodes serving many concurrent users.\n\n**Our solution:** We built a comprehensive orchestration layer that:\n\n* Creates and manages database models to track nodes, indices, repositories, and tasks\n\n* Implements a self-registering node architecture (inspired by GitLab Runner)\n\n* Handles automatic shard assignment and load balancing across nodes\n\n* Provides bidirectional API communication between GitLab Rails and Zoekt nodes\n\n### Challenge 2: Scaling storage and indexing\n\n**The problem:** How do you efficiently manage terabytes of index data across multiple nodes while ensuring fast updates?\n\n**Our solution:** We implemented:\n\n* Intelligent sharding: Namespaces are distributed across nodes based on capacity and load\n\n* Independent replication: Each node independently indexes from [Gitaly](https://gitlab.com/gitlab-org/gitaly) (our Git storage service), eliminating complex synchronization\n\n* Watermark management: Sophisticated storage allocation that prevents nodes from running out of space\n\n* Unified binary architecture: A single `gitlab-zoekt` binary that can operate in both indexer and webserver modes\n\n### Challenge 3: Permission Integration\n\n**The problem:** Zoekt had no concept of GitLab's complex permission system - users should only see results from projects they can access.\n\n**Our solution:** We built native permission filtering directly into the search flow:\n\n* Search requests include user permission context\n\n* Results are filtered to include only those the user can access in case permissions change before indexing completes\n\n### Challenge 4: Operational simplicity\n\n**The problem:** Managing a distributed search system shouldn't require a dedicated team.\n\n**Our solution:**\n\n* Auto-scaling: Adding capacity is as simple as deploying more nodes - they automatically register and start handling work\n\n* Self-healing: Nodes that don't check in are automatically marked offline and their work redistributed\n\n* Zero-configuration sharding: The system automatically determines optimal shard assignments\n\n## Gradual rollout: Minimizing risk at scale\n\nRolling out a completely new search backend to millions of users required careful planning. Here's how we minimized customer impact while ensuring reliability:\n\n### Phase 1: Controlled testing (gitlab-org group)\n\nWe started by enabling Exact Code Search only for the `gitlab-org` group - our own internal repositories. This allowed us to:\n\n* Test the system with real production workloads\n\n* Identify and fix performance bottlenecks\n\n* Streamline the deployment process\n\n* Learn from real users' workflows and feedback\n\n### Phase 2: Performance validation and optimization\n\nBefore expanding, we focused on ensuring the system could handle GitLab.com's scale:\n\n* Implemented comprehensive monitoring and alerting\n\n* Validated storage management with real production data growth\n\n### Phase 3: Incremental customer expansion\n\nWe gradually expanded to customers interested in testing Exact Code Search:\n\n* Gathered feedback on performance and user experience\n\n* Refined the search UI based on real user workflows\n\n* Optimized indexing performance (large repositories like `gitlab-org/gitlab` now index in ~10 seconds)\n\n* Refined the architecture based on operational learnings\n\n* Massively increased indexing throughput and improved state transition livecycle\n\n### Phase 4: Broad rollout\n\nToday, over 99% of Premium and Ultimate licensed groups on GitLab.com have access to Exact Code Search. Users can:\n\n* Toggle between regex and exact search modes\n\n* Experience the benefits without any configuration changes\n\n* Fall back to the previous search if needed (though few choose to)\n\nRolling this out gradually meant users didn't experience service disruptions, performance degradation, or feature gaps during the transition. We've already received positive feedback from users as they notice their results becoming more relevant and faster.\n\n> **For technical deep dive:** Interested in the detailed architecture and implementation? Check out our comprehensive [design document](https://handbook.gitlab.com/handbook/engineering/architecture/design-documents/code_search_with_zoekt/) for in-depth technical details about how we built this distributed search system.\n\n## Getting started with Exact Code Search\n\nGetting started with Exact Code Search is simple because it's already enabled by default for Premium and Ultimate groups on GitLab.com (over 99% of eligible groups currently have access).\n\n### Quickstart guide\n\n1. Navigate to the Advanced Search in your GitLab project or group\n\n2. Enter your search term in the code tab\n\n3. Toggle between Exact Match and Regular Expression modes\n\n4. Use filters to refine your search\n\n### Basic search syntax\n\nWhether using Exact Match or Regular Expression mode, you can refine your search with modifiers:\n\n| Query Example | What It Does                                             |\n| ------------- | -------------------------------------------------------- |\n| `file:js`     | Searches only in files containing \"js\" in their name     |\n| `foo -bar`    | Finds \"foo\" but excludes results with \"bar\"              |\n| `lang:ruby`   | Searches only in Ruby files                              |\n| `sym:process` | Finds \"process\" in symbols (methods, classes, variables) |\n\n> **Pro Tip:** For the most efficient searches, start specific and then broaden if needed. Using `file:` and `lang:` filters dramatically increases relevance.\n\n### Advanced search techniques\n\nStack multiple filters for precision:\n\n```text\nis_expected file:rb -file:spec\n```\n\nThis finds \"is_expected\" in Ruby files that don't have \"spec\" in their name.\n\nUse regular expressions for powerful patterns:\n\n```text\ntoken.*=.*[\\\"']\n```\n\n[Watch this search performed against the GitLab Zoekt repository.](https://gitlab.com/search?search=token.*%3D.*%5B%5C%22'%5D&nav_source=navbar&project_id=46649240&group_id=9970&search_code=true&repository_ref=main&regex=true)\n\nThe search helps find hardcoded passwords, which, if not found, can be a security issue.\n\nFor more detailed syntax information, check the [Exact Code Search documentation](https://docs.gitlab.com/user/search/exact_code_search/#syntax).\n\n## Availability and deployment\n\n### Current availability\n\nExact Code Search is currently in Beta for GitLab.com users with Premium and Ultimate licenses:\n\n* Available for over 99% of licensed groups\n\n* Search in the UI automatically uses Zoekt when available, Exact Code Search in Search API is behind a feature flag\n\n### Self-managed deployment options\n\nFor self-managed instances, we offer several deployment methods:\n\n* Kubernetes/Helm: Our most well-supported method, using our [`gitlab-zoekt` Helm chart](https://gitlab.com/gitlab-org/cloud-native/charts/gitlab-zoekt)\n\n* Other deployment options: We're working on streamlining deployment for Omnibus and other installation methods\n\nSystem requirements depend on your codebase size, but the architecture is designed to scale horizontally and/or vertically as your needs grow.\n\n## What's coming next\n\nWhile Exact Code Search is already powerful, we're continuously improving it:\n\n* **Scale optimizations** to support instances with hundreds of thousands of repositories\n\n* **Improved self-managed deployment** options, including streamlined Omnibus support\n\n* **Full high availability support** with automatic failover and load balancing\n\nStay tuned for updates as we move from Beta to General Availability.\n\n## Transform how you work with code\n\nGitLab's Exact Code Search represents a fundamental rethinking of code discovery. By delivering exact matches, powerful regex support, and contextual results, it solves the most frustrating aspects of code search:\n\n* No more wasting time with irrelevant results\n\n* No more missing important matches\n\n* No more clicking through files just to understand basic context\n\n* No more performance issues as codebases grow\n\nThe impact extends beyond individual productivity:\n\n* **Teams collaborate better** with easy code referencing\n\n* **Knowledge sharing accelerates** when patterns are discoverable\n\n* **Onboarding becomes faster** with quick codebase comprehension\n\n* **Security improves** with effective pattern auditing\n\n* **Technical debt reduction** becomes more feasible\n\nExact Code Search isn't just a feature, it's a better way to understand and work with code. Stop searching and start finding.\n\n**We'd love to hear from you!** Share your experiences, questions, or feedback about Exact Code Search in our [feedback issue](https://gitlab.com/gitlab-org/gitlab/-/issues/420920). Your input helps us prioritize improvements and new features.\n\n> Ready to experience smarter code search? Learn more in our [documentation](https://docs.gitlab.com/ee/user/search/exact_code_search.html) or try it now by performing a search in your Premium or Ultimate licensed namespaces or projects. Not a GitLab user yet? Try [a free trial of GitLab Ultimate with Duo](https://about.gitlab.com/free-trial/)!",[9,23,24],"tutorial","open source","yml",{},true,"/en-us/blog/exact-code-search-find-code-faster-across-repositories",{"noIndex":11,"title":15,"description":16},"en-us/blog/exact-code-search-find-code-faster-across-repositories",[9,23,32],"open-source","PebR58hKnoQkYRrv3KMdsmDlcwzfYJHsN_463hLsG_E",{"data":35},{"logo":36,"freeTrial":41,"sales":46,"login":51,"items":56,"search":364,"minimal":395,"duo":414,"switchNav":423,"pricingDeployment":434},{"config":37},{"href":38,"dataGaName":39,"dataGaLocation":40},"/","gitlab logo","header",{"text":42,"config":43},"Get free trial",{"href":44,"dataGaName":45,"dataGaLocation":40},"https://gitlab.com/-/trial_registrations/new?glm_source=about.gitlab.com&glm_content=default-saas-trial/","free trial",{"text":47,"config":48},"Talk to sales",{"href":49,"dataGaName":50,"dataGaLocation":40},"/sales/","sales",{"text":52,"config":53},"Sign in",{"href":54,"dataGaName":55,"dataGaLocation":40},"https://gitlab.com/users/sign_in/","sign in",[57,84,179,184,285,345],{"text":58,"config":59,"cards":61},"Platform",{"dataNavLevelOne":60},"platform",[62,68,76],{"title":58,"description":63,"link":64},"The intelligent orchestration platform for DevSecOps",{"text":65,"config":66},"Explore our Platform",{"href":67,"dataGaName":60,"dataGaLocation":40},"/platform/",{"title":69,"description":70,"link":71},"GitLab Duo Agent Platform","Agentic AI for the entire software lifecycle",{"text":72,"config":73},"Meet GitLab Duo",{"href":74,"dataGaName":75,"dataGaLocation":40},"/gitlab-duo-agent-platform/","gitlab duo agent platform",{"title":77,"description":78,"link":79},"Why GitLab","See the top reasons enterprises choose GitLab",{"text":80,"config":81},"Learn more",{"href":82,"dataGaName":83,"dataGaLocation":40},"/why-gitlab/","why gitlab",{"text":85,"left":27,"config":86,"link":88,"lists":92,"footer":161},"Product",{"dataNavLevelOne":87},"solutions",{"text":89,"config":90},"View all Solutions",{"href":91,"dataGaName":87,"dataGaLocation":40},"/solutions/",[93,117,140],{"title":94,"description":95,"link":96,"items":101},"Automation","CI/CD and automation to accelerate deployment",{"config":97},{"icon":98,"href":99,"dataGaName":100,"dataGaLocation":40},"AutomatedCodeAlt","/solutions/delivery-automation/","automated software delivery",[102,106,109,113],{"text":103,"config":104},"CI/CD",{"href":105,"dataGaLocation":40,"dataGaName":103},"/solutions/continuous-integration/",{"text":69,"config":107},{"href":74,"dataGaLocation":40,"dataGaName":108},"gitlab duo agent platform - product menu",{"text":110,"config":111},"Source Code Management",{"href":112,"dataGaLocation":40,"dataGaName":110},"/solutions/source-code-management/",{"text":114,"config":115},"Automated Software Delivery",{"href":99,"dataGaLocation":40,"dataGaName":116},"Automated software delivery",{"title":118,"description":119,"link":120,"items":125},"Security","Deliver code faster without compromising security",{"config":121},{"href":122,"dataGaName":123,"dataGaLocation":40,"icon":124},"/solutions/application-security-testing/","security and compliance","ShieldCheckLight",[126,130,135],{"text":127,"config":128},"Application Security Testing",{"href":122,"dataGaName":129,"dataGaLocation":40},"Application security testing",{"text":131,"config":132},"Software Supply Chain Security",{"href":133,"dataGaLocation":40,"dataGaName":134},"/solutions/supply-chain/","Software supply chain security",{"text":136,"config":137},"Software Compliance",{"href":138,"dataGaName":139,"dataGaLocation":40},"/solutions/software-compliance/","software compliance",{"title":141,"link":142,"items":147},"Measurement",{"config":143},{"icon":144,"href":145,"dataGaName":146,"dataGaLocation":40},"DigitalTransformation","/solutions/visibility-measurement/","visibility and measurement",[148,152,156],{"text":149,"config":150},"Visibility & Measurement",{"href":145,"dataGaLocation":40,"dataGaName":151},"Visibility and Measurement",{"text":153,"config":154},"Value Stream Management",{"href":155,"dataGaLocation":40,"dataGaName":153},"/solutions/value-stream-management/",{"text":157,"config":158},"Analytics & Insights",{"href":159,"dataGaLocation":40,"dataGaName":160},"/solutions/analytics-and-insights/","Analytics and insights",{"title":162,"items":163},"GitLab for",[164,169,174],{"text":165,"config":166},"Enterprise",{"href":167,"dataGaLocation":40,"dataGaName":168},"/enterprise/","enterprise",{"text":170,"config":171},"Small Business",{"href":172,"dataGaLocation":40,"dataGaName":173},"/small-business/","small business",{"text":175,"config":176},"Public Sector",{"href":177,"dataGaLocation":40,"dataGaName":178},"/solutions/public-sector/","public sector",{"text":180,"config":181},"Pricing",{"href":182,"dataGaName":183,"dataGaLocation":40,"dataNavLevelOne":183},"/pricing/","pricing",{"text":185,"config":186,"link":188,"lists":192,"feature":272},"Resources",{"dataNavLevelOne":187},"resources",{"text":189,"config":190},"View all resources",{"href":191,"dataGaName":187,"dataGaLocation":40},"/resources/",[193,226,244],{"title":194,"items":195},"Getting started",[196,201,206,211,216,221],{"text":197,"config":198},"Install",{"href":199,"dataGaName":200,"dataGaLocation":40},"/install/","install",{"text":202,"config":203},"Quick start guides",{"href":204,"dataGaName":205,"dataGaLocation":40},"/get-started/","quick setup checklists",{"text":207,"config":208},"Learn",{"href":209,"dataGaLocation":40,"dataGaName":210},"https://university.gitlab.com/","learn",{"text":212,"config":213},"Product documentation",{"href":214,"dataGaName":215,"dataGaLocation":40},"https://docs.gitlab.com/","product documentation",{"text":217,"config":218},"Best practice videos",{"href":219,"dataGaName":220,"dataGaLocation":40},"/getting-started-videos/","best practice videos",{"text":222,"config":223},"Integrations",{"href":224,"dataGaName":225,"dataGaLocation":40},"/integrations/","integrations",{"title":227,"items":228},"Discover",[229,234,239],{"text":230,"config":231},"Customer success stories",{"href":232,"dataGaName":233,"dataGaLocation":40},"/customers/","customer success stories",{"text":235,"config":236},"Blog",{"href":237,"dataGaName":238,"dataGaLocation":40},"/blog/","blog",{"text":240,"config":241},"Remote",{"href":242,"dataGaName":243,"dataGaLocation":40},"https://handbook.gitlab.com/handbook/company/culture/all-remote/","remote",{"title":245,"items":246},"Connect",[247,252,257,262,267],{"text":248,"config":249},"GitLab Services",{"href":250,"dataGaName":251,"dataGaLocation":40},"/services/","services",{"text":253,"config":254},"Community",{"href":255,"dataGaName":256,"dataGaLocation":40},"/community/","community",{"text":258,"config":259},"Forum",{"href":260,"dataGaName":261,"dataGaLocation":40},"https://forum.gitlab.com/","forum",{"text":263,"config":264},"Events",{"href":265,"dataGaName":266,"dataGaLocation":40},"/events/","events",{"text":268,"config":269},"Partners",{"href":270,"dataGaName":271,"dataGaLocation":40},"/partners/","partners",{"backgroundColor":273,"textColor":274,"text":275,"image":276,"link":280},"#2f2a6b","#fff","Insights for the future of software development",{"altText":277,"config":278},"the source promo card",{"src":279},"https://res.cloudinary.com/about-gitlab-com/image/upload/v1758208064/dzl0dbift9xdizyelkk4.svg",{"text":281,"config":282},"Read the latest",{"href":283,"dataGaName":284,"dataGaLocation":40},"/the-source/","the source",{"text":286,"config":287,"lists":289},"Company",{"dataNavLevelOne":288},"company",[290],{"items":291},[292,297,303,305,310,315,320,325,330,335,340],{"text":293,"config":294},"About",{"href":295,"dataGaName":296,"dataGaLocation":40},"/company/","about",{"text":298,"config":299,"footerGa":302},"Jobs",{"href":300,"dataGaName":301,"dataGaLocation":40},"/jobs/","jobs",{"dataGaName":301},{"text":263,"config":304},{"href":265,"dataGaName":266,"dataGaLocation":40},{"text":306,"config":307},"Leadership",{"href":308,"dataGaName":309,"dataGaLocation":40},"/company/team/e-group/","leadership",{"text":311,"config":312},"Team",{"href":313,"dataGaName":314,"dataGaLocation":40},"/company/team/","team",{"text":316,"config":317},"Handbook",{"href":318,"dataGaName":319,"dataGaLocation":40},"https://handbook.gitlab.com/","handbook",{"text":321,"config":322},"Investor relations",{"href":323,"dataGaName":324,"dataGaLocation":40},"https://ir.gitlab.com/","investor relations",{"text":326,"config":327},"Trust Center",{"href":328,"dataGaName":329,"dataGaLocation":40},"/security/","trust center",{"text":331,"config":332},"AI Transparency Center",{"href":333,"dataGaName":334,"dataGaLocation":40},"/ai-transparency-center/","ai transparency center",{"text":336,"config":337},"Newsletter",{"href":338,"dataGaName":339,"dataGaLocation":40},"/company/contact/#contact-forms","newsletter",{"text":341,"config":342},"Press",{"href":343,"dataGaName":344,"dataGaLocation":40},"/press/","press",{"text":346,"config":347,"lists":348},"Contact us",{"dataNavLevelOne":288},[349],{"items":350},[351,354,359],{"text":47,"config":352},{"href":49,"dataGaName":353,"dataGaLocation":40},"talk to sales",{"text":355,"config":356},"Support portal",{"href":357,"dataGaName":358,"dataGaLocation":40},"https://support.gitlab.com","support portal",{"text":360,"config":361},"Customer portal",{"href":362,"dataGaName":363,"dataGaLocation":40},"https://customers.gitlab.com/customers/sign_in/","customer portal",{"close":365,"login":366,"suggestions":373},"Close",{"text":367,"link":368},"To search repositories and projects, login to",{"text":369,"config":370},"gitlab.com",{"href":54,"dataGaName":371,"dataGaLocation":372},"search login","search",{"text":374,"default":375},"Suggestions",[376,378,382,384,388,392],{"text":69,"config":377},{"href":74,"dataGaName":69,"dataGaLocation":372},{"text":379,"config":380},"Code Suggestions (AI)",{"href":381,"dataGaName":379,"dataGaLocation":372},"/solutions/code-suggestions/",{"text":103,"config":383},{"href":105,"dataGaName":103,"dataGaLocation":372},{"text":385,"config":386},"GitLab on AWS",{"href":387,"dataGaName":385,"dataGaLocation":372},"/partners/technology-partners/aws/",{"text":389,"config":390},"GitLab on Google Cloud",{"href":391,"dataGaName":389,"dataGaLocation":372},"/partners/technology-partners/google-cloud-platform/",{"text":393,"config":394},"Why GitLab?",{"href":82,"dataGaName":393,"dataGaLocation":372},{"freeTrial":396,"mobileIcon":401,"desktopIcon":406,"secondaryButton":409},{"text":397,"config":398},"Start free trial",{"href":399,"dataGaName":45,"dataGaLocation":400},"https://gitlab.com/-/trials/new/","nav",{"altText":402,"config":403},"Gitlab Icon",{"src":404,"dataGaName":405,"dataGaLocation":400},"https://res.cloudinary.com/about-gitlab-com/image/upload/v1758203874/jypbw1jx72aexsoohd7x.svg","gitlab icon",{"altText":402,"config":407},{"src":408,"dataGaName":405,"dataGaLocation":400},"https://res.cloudinary.com/about-gitlab-com/image/upload/v1758203875/gs4c8p8opsgvflgkswz9.svg",{"text":410,"config":411},"Get Started",{"href":412,"dataGaName":413,"dataGaLocation":400},"https://gitlab.com/-/trial_registrations/new?glm_source=about.gitlab.com/get-started/","get started",{"freeTrial":415,"mobileIcon":419,"desktopIcon":421},{"text":416,"config":417},"Learn more about GitLab Duo",{"href":74,"dataGaName":418,"dataGaLocation":400},"gitlab duo",{"altText":402,"config":420},{"src":404,"dataGaName":405,"dataGaLocation":400},{"altText":402,"config":422},{"src":408,"dataGaName":405,"dataGaLocation":400},{"button":424,"mobileIcon":429,"desktopIcon":431},{"text":425,"config":426},"/switch",{"href":427,"dataGaName":428,"dataGaLocation":400},"#contact","switch",{"altText":402,"config":430},{"src":404,"dataGaName":405,"dataGaLocation":400},{"altText":402,"config":432},{"src":433,"dataGaName":405,"dataGaLocation":400},"https://res.cloudinary.com/about-gitlab-com/image/upload/v1773335277/ohhpiuoxoldryzrnhfrh.png",{"freeTrial":435,"mobileIcon":440,"desktopIcon":442},{"text":436,"config":437},"Back to pricing",{"href":182,"dataGaName":438,"dataGaLocation":400,"icon":439},"back to pricing","GoBack",{"altText":402,"config":441},{"src":404,"dataGaName":405,"dataGaLocation":400},{"altText":402,"config":443},{"src":408,"dataGaName":405,"dataGaLocation":400},{"title":445,"button":446,"config":451},"See how agentic AI transforms software delivery",{"text":447,"config":448},"Watch GitLab Transcend now",{"href":449,"dataGaName":450,"dataGaLocation":40},"/events/transcend/virtual/","transcend event",{"layout":452,"icon":453,"disabled":27},"release","AiStar",{"data":455},{"text":456,"source":457,"edit":463,"contribute":468,"config":473,"items":478,"minimal":685},"Git is a trademark of Software Freedom Conservancy and our use of 'GitLab' is under license",{"text":458,"config":459},"View page source",{"href":460,"dataGaName":461,"dataGaLocation":462},"https://gitlab.com/gitlab-com/marketing/digital-experience/about-gitlab-com/","page source","footer",{"text":464,"config":465},"Edit this page",{"href":466,"dataGaName":467,"dataGaLocation":462},"https://gitlab.com/gitlab-com/marketing/digital-experience/about-gitlab-com/-/blob/main/content/","web ide",{"text":469,"config":470},"Please contribute",{"href":471,"dataGaName":472,"dataGaLocation":462},"https://gitlab.com/gitlab-com/marketing/digital-experience/about-gitlab-com/-/blob/main/CONTRIBUTING.md/","please contribute",{"twitter":474,"facebook":475,"youtube":476,"linkedin":477},"https://twitter.com/gitlab","https://www.facebook.com/gitlab","https://www.youtube.com/channel/UCnMGQ8QHMAnVIsI3xJrihhg","https://www.linkedin.com/company/gitlab-com",[479,526,580,624,651],{"title":180,"links":480,"subMenu":495},[481,485,490],{"text":482,"config":483},"View plans",{"href":182,"dataGaName":484,"dataGaLocation":462},"view plans",{"text":486,"config":487},"Why Premium?",{"href":488,"dataGaName":489,"dataGaLocation":462},"/pricing/premium/","why premium",{"text":491,"config":492},"Why Ultimate?",{"href":493,"dataGaName":494,"dataGaLocation":462},"/pricing/ultimate/","why ultimate",[496],{"title":497,"links":498},"Contact Us",[499,502,504,506,511,516,521],{"text":500,"config":501},"Contact sales",{"href":49,"dataGaName":50,"dataGaLocation":462},{"text":355,"config":503},{"href":357,"dataGaName":358,"dataGaLocation":462},{"text":360,"config":505},{"href":362,"dataGaName":363,"dataGaLocation":462},{"text":507,"config":508},"Status",{"href":509,"dataGaName":510,"dataGaLocation":462},"https://status.gitlab.com/","status",{"text":512,"config":513},"Terms of use",{"href":514,"dataGaName":515,"dataGaLocation":462},"/terms/","terms of use",{"text":517,"config":518},"Privacy statement",{"href":519,"dataGaName":520,"dataGaLocation":462},"/privacy/","privacy statement",{"text":522,"config":523},"Cookie preferences",{"dataGaName":524,"dataGaLocation":462,"id":525,"isOneTrustButton":27},"cookie preferences","ot-sdk-btn",{"title":85,"links":527,"subMenu":536},[528,532],{"text":529,"config":530},"DevSecOps platform",{"href":67,"dataGaName":531,"dataGaLocation":462},"devsecops platform",{"text":533,"config":534},"AI-Assisted Development",{"href":74,"dataGaName":535,"dataGaLocation":462},"ai-assisted development",[537],{"title":538,"links":539},"Topics",[540,545,550,555,560,565,570,575],{"text":541,"config":542},"CICD",{"href":543,"dataGaName":544,"dataGaLocation":462},"/topics/ci-cd/","cicd",{"text":546,"config":547},"GitOps",{"href":548,"dataGaName":549,"dataGaLocation":462},"/topics/gitops/","gitops",{"text":551,"config":552},"DevOps",{"href":553,"dataGaName":554,"dataGaLocation":462},"/topics/devops/","devops",{"text":556,"config":557},"Version Control",{"href":558,"dataGaName":559,"dataGaLocation":462},"/topics/version-control/","version control",{"text":561,"config":562},"DevSecOps",{"href":563,"dataGaName":564,"dataGaLocation":462},"/topics/devsecops/","devsecops",{"text":566,"config":567},"Cloud Native",{"href":568,"dataGaName":569,"dataGaLocation":462},"/topics/cloud-native/","cloud native",{"text":571,"config":572},"AI for Coding",{"href":573,"dataGaName":574,"dataGaLocation":462},"/topics/devops/ai-for-coding/","ai for coding",{"text":576,"config":577},"Agentic AI",{"href":578,"dataGaName":579,"dataGaLocation":462},"/topics/agentic-ai/","agentic ai",{"title":581,"links":582},"Solutions",[583,585,587,592,596,599,603,606,608,611,614,619],{"text":127,"config":584},{"href":122,"dataGaName":127,"dataGaLocation":462},{"text":116,"config":586},{"href":99,"dataGaName":100,"dataGaLocation":462},{"text":588,"config":589},"Agile development",{"href":590,"dataGaName":591,"dataGaLocation":462},"/solutions/agile-delivery/","agile delivery",{"text":593,"config":594},"SCM",{"href":112,"dataGaName":595,"dataGaLocation":462},"source code management",{"text":541,"config":597},{"href":105,"dataGaName":598,"dataGaLocation":462},"continuous integration & delivery",{"text":600,"config":601},"Value stream management",{"href":155,"dataGaName":602,"dataGaLocation":462},"value stream management",{"text":546,"config":604},{"href":605,"dataGaName":549,"dataGaLocation":462},"/solutions/gitops/",{"text":165,"config":607},{"href":167,"dataGaName":168,"dataGaLocation":462},{"text":609,"config":610},"Small business",{"href":172,"dataGaName":173,"dataGaLocation":462},{"text":612,"config":613},"Public sector",{"href":177,"dataGaName":178,"dataGaLocation":462},{"text":615,"config":616},"Education",{"href":617,"dataGaName":618,"dataGaLocation":462},"/solutions/education/","education",{"text":620,"config":621},"Financial services",{"href":622,"dataGaName":623,"dataGaLocation":462},"/solutions/finance/","financial services",{"title":185,"links":625},[626,628,630,632,635,637,639,641,643,645,647,649],{"text":197,"config":627},{"href":199,"dataGaName":200,"dataGaLocation":462},{"text":202,"config":629},{"href":204,"dataGaName":205,"dataGaLocation":462},{"text":207,"config":631},{"href":209,"dataGaName":210,"dataGaLocation":462},{"text":212,"config":633},{"href":214,"dataGaName":634,"dataGaLocation":462},"docs",{"text":235,"config":636},{"href":237,"dataGaName":238,"dataGaLocation":462},{"text":230,"config":638},{"href":232,"dataGaName":233,"dataGaLocation":462},{"text":240,"config":640},{"href":242,"dataGaName":243,"dataGaLocation":462},{"text":248,"config":642},{"href":250,"dataGaName":251,"dataGaLocation":462},{"text":253,"config":644},{"href":255,"dataGaName":256,"dataGaLocation":462},{"text":258,"config":646},{"href":260,"dataGaName":261,"dataGaLocation":462},{"text":263,"config":648},{"href":265,"dataGaName":266,"dataGaLocation":462},{"text":268,"config":650},{"href":270,"dataGaName":271,"dataGaLocation":462},{"title":286,"links":652},[653,655,657,659,661,663,665,669,674,676,678,680],{"text":293,"config":654},{"href":295,"dataGaName":288,"dataGaLocation":462},{"text":298,"config":656},{"href":300,"dataGaName":301,"dataGaLocation":462},{"text":306,"config":658},{"href":308,"dataGaName":309,"dataGaLocation":462},{"text":311,"config":660},{"href":313,"dataGaName":314,"dataGaLocation":462},{"text":316,"config":662},{"href":318,"dataGaName":319,"dataGaLocation":462},{"text":321,"config":664},{"href":323,"dataGaName":324,"dataGaLocation":462},{"text":666,"config":667},"Sustainability",{"href":668,"dataGaName":666,"dataGaLocation":462},"/sustainability/",{"text":670,"config":671},"Diversity, inclusion and belonging (DIB)",{"href":672,"dataGaName":673,"dataGaLocation":462},"/diversity-inclusion-belonging/","Diversity, inclusion and belonging",{"text":326,"config":675},{"href":328,"dataGaName":329,"dataGaLocation":462},{"text":336,"config":677},{"href":338,"dataGaName":339,"dataGaLocation":462},{"text":341,"config":679},{"href":343,"dataGaName":344,"dataGaLocation":462},{"text":681,"config":682},"Modern Slavery Transparency Statement",{"href":683,"dataGaName":684,"dataGaLocation":462},"https://handbook.gitlab.com/handbook/legal/modern-slavery-act-transparency-statement/","modern slavery transparency statement",{"items":686},[687,690,693],{"text":688,"config":689},"Terms",{"href":514,"dataGaName":515,"dataGaLocation":462},{"text":691,"config":692},"Cookies",{"dataGaName":524,"dataGaLocation":462,"id":525,"isOneTrustButton":27},{"text":694,"config":695},"Privacy",{"href":519,"dataGaName":520,"dataGaLocation":462},[697],{"id":698,"title":18,"body":8,"config":699,"content":701,"description":8,"extension":25,"meta":705,"navigation":27,"path":706,"seo":707,"stem":708,"__hash__":709},"blogAuthors/en-us/blog/authors/dmitry-gruzd.yml",{"template":700},"BlogAuthor",{"name":18,"config":702},{"headshot":703,"ctfId":704},"https://res.cloudinary.com/about-gitlab-com/image/upload/v1749682014/Blog/Author%20Headshots/dgruzd-headshot.jpg","dgruzd",{},"/en-us/blog/authors/dmitry-gruzd",{},"en-us/blog/authors/dmitry-gruzd","sn1aawfqITI3w1Wr5m9KVxBsh6Ibzoq3aexMyVsy9_c",[711,722,735],{"content":712,"config":720},{"title":713,"description":714,"heroImage":715,"date":716,"category":9,"tags":717},"GitLab Patch Release: 18.10.3, 18.9.5, 18.8.9","Learn more this patch release for GitLab Community Edition and Enterprise Edition.\n\n","https://res.cloudinary.com/about-gitlab-com/image/upload/v1749661926/Blog/Hero%20Images/security-patch-blog-image-r2-0506-700x400-fy25_2x.jpg","2026-04-08",[718,719],"security releases","patch releases",{"featured":11,"template":12,"externalUrl":721},"https://about.gitlab.com/releases/2026/04/08/patch-release-gitlab-18-10-3-released/",{"content":723,"config":733},{"title":724,"description":725,"heroImage":726,"category":9,"tags":727,"authors":728,"date":731,"body":732},"Streamline test management with the SmartBear QMetry GitLab component","Learn how to automatically upload test results from GitLab CI/CD pipelines to SmartBear QMetry Test Management Enterprise using the CI/CD Catalog component.","https://res.cloudinary.com/about-gitlab-com/image/upload/v1775486753/cswmwtygkgkbdsibo09v.png",[23,9,554],[729,730],"Matt Genelin","Matt Bonner","2026-04-07","In modern software development, test management and continuous integration are two sides of the same coin. DevSecOps teams need seamless integration between their CI/CD pipelines and test management platforms to maintain visibility, traceability, and compliance across the software development lifecycle.\n\nThis becomes even more important as testing scales across automated pipelines, where execution data is spread across tools and harder to track in one place.\n\nFor organizations using GitLab for CI/CD and SmartBear QMetry for test management, manually uploading test results creates friction, delays feedback loops, and makes it harder to maintain a reliable, centralized view of testing.\n\nWhat if you could automatically publish your JUnit, TestNG, or other test results directly from your GitLab pipeline to QMetry with just a few lines of configuration?\n\nThat's exactly what the new **QMetry GitLab Component** enables. This reusable CI/CD component, now available in the [GitLab CI/CD Catalog](https://gitlab.com/explore/catalog), eliminates the manual overhead of test result management by automatically uploading test execution data to QMetry.  This is an AI-enabled, enterprise-grade test management platform that brings together test planning, execution, tracking, and reporting in one place.\n\nAs a centralized system of record for testing, QMetry helps teams understand coverage, track execution, and make more reliable release decisions.\n\nIn this guide, you'll learn:\n\n* How to set up the QMetry GitLab Component in your pipeline  \n* How to configure automated test result uploads  \n* Advanced configuration options for enterprise requirements  \n* A real-world aerospace industry use case  \n* Best practices for test management automation\n\nBy the end of this article, your GitLab pipelines will automatically feed test results into QMetry, giving your QA teams instant visibility into test execution and helping them make faster, more confident release decisions.\n\n![SmartBear QMetry GitLab integration](https://res.cloudinary.com/about-gitlab-com/image/upload/v1775488045/ojt707rzxnm2yr3vqxdh.png)\n\n## Why integrate GitLab with QMetry?\n\nBefore diving into the technical implementation, let's understand the value this integration delivers:\n\n### Eliminate manual test result uploads\n\nDevSecOps engineers and QA teams no longer need to manually export test results from CI/CD runs and import them into test management systems. The component handles this automatically after every pipeline execution.\n\nThis reduces manual effort while ensuring test data stays consistent, up to date, and easy to access across teams.\n\n![Test results with SmartBear QMetry GitLab integration](https://res.cloudinary.com/about-gitlab-com/image/upload/v1775488045/ajx64sihup2nursdpnxz.png)\n\n### Enable end-to-end traceability\n\nBy connecting GitLab's CI/CD execution data with QMetry's test management capabilities, teams gain complete traceability from requirements through test cases to actual test execution results. This is critical for regulated industries like financial services, aerospace, medical devices, and automotive, where audit trails are mandatory and regulatory compliance depends on demonstrating complete test coverage.\n\nIt also gives teams a clearer view of coverage and risk across releases, making it easier to understand what’s been tested and what still needs attention.\n\n### Accelerate feedback loops\n\nAutomated test result uploads mean QA teams, product managers, and stakeholders see test execution results immediately after pipeline completion – no waiting for manual data entry or report generation.\n\nWith faster access to results, teams can act immediately, reduce delays, and make quicker, more informed release decisions.\n\n### Support compliance and audit requirements\n\nFor organizations in regulated industries, maintaining comprehensive test records with proper versioning and traceability is non-negotiable. This integration ensures you can document every test execution properly in QMetry with links back to the specific GitLab pipeline, commit, and build.\n\nThis creates an audit-ready record of testing activity without adding manual overhead.\n\n![Audit-ready record of testing with SmartBear QMetry GitLab integration](https://res.cloudinary.com/about-gitlab-com/image/upload/v1775488045/q2tbaw5otgdywjkcquqx.png)\n\n### Leverage AI-powered test insights\n\nQMetry uses AI to analyze test execution patterns, identify flaky tests, predict test failures, and recommend optimization opportunities. Feeding it real-time data from GitLab pipelines maximizes the value of these AI capabilities.\n\nWith continuous data flowing in, teams get more accurate insights and can focus their efforts where it matters most.\n\n![Accurage insights with SmartBear QMetry GitLab integration](https://res.cloudinary.com/about-gitlab-com/image/upload/v1775488045/pl7ru4wx8ixnheedfyrs.png)\n\n## About the GitLab and SmartBear partnership\n\nThis component represents a growing partnership between GitLab and SmartBear to better connect CI/CD execution with test management in a single workflow. SmartBear brings deep expertise in testing, API management, and quality automation, while GitLab provides the most comprehensive AI-powered DevSecOps platform. Together, they help teams streamline how testing fits into the development lifecycle while maintaining the quality, security, and compliance standards their industries require.\n\nWhether you're managing test execution for aerospace flight control systems, financial services platforms, automotive safety applications, or medical device software, the combination of GitLab's CI/CD capabilities and QMetry's test management gives teams a centralized, reliable view of testing across the lifecycle, helping them track execution, maintain traceability, and make more confident release decisions.\n\n## What you'll need\n\nBefore getting started, ensure you have:\n\n* **A GitLab account** with a project containing automated tests that generate test result files (JUnit XML, TestNG XML, etc.)  \n* **QMetry Test Management Enterprise** account with API access enabled  \n* **QMetry API Key** generated  from your QMetry instance (we'll cover this shortly)  \n* **QMetry Project** already created where you will upload test results   \n* **Familiarity with GitLab CI/CD**, including understanding of basic `.gitlab-ci.yml` syntax and pipeline concepts  \n* **Test suite configuration** in QMetry (optional but recommended for better organization)\n\n### Understanding the test result flow\n\nHere's what happens when you integrate this component:\n\n1. **Test execution**: Your GitLab CI/CD pipeline runs automated tests (unit tests, integration tests, E2E tests, etc.).  \n2. **Result generation**: Tests produce output files in formats like JUnit XML, TestNG XML, or other supported formats.  \n3. **Component invocation**: The QMetry component executes as a job in your pipeline.  \n4. **Automatic upload**: The component reads your test result files and uploads them to QMetry via API.  \n5. **QMetry processing**: QMetry receives the results, processes them, and makes them available for reporting and analysis.\n\nThe beauty of this integration is that it happens automatically, with no manual intervention required once configured.\n\n## Part 1: Getting your QMetry API credentials\n\nBefore configuring the GitLab component, you need to obtain API access credentials from your QMetry instance. Here are the steps to follow:\n\n### 1. Access QMetry settings\n\n1. Log in to your **QMetry Test Management Enterprise** instance.  \n2. Navigate to your **user profile** (typically in the top-right corner).  \n3. Select **Settings** or **API Access** from the dropdown menu.\n\n### 2. Generate an API key\n\n1. In the API Access section, click **Generate New API Key.**  \n2. Provide a descriptive **name** for the key (e.g., \"GitLab CI/CD Integration\").  \n3. Set appropriate **permissions**. The key needs write access to upload test results.  \n4. Click **Generate.**  \n5. **Copy the API key immediately** as it will only be displayed once.\n\n**Important security note**: Treat your API key like a password. Never commit it directly to your `.gitlab-ci.yml` file or store it in plain text. We'll use GitLab CI/CD variables to store it securely.\n\n### 3. Note your QMetry instance URL\n\nYou'll also need your QMetry instance URL, which typically follows this format:\n\n```text\nhttps://your-company.qmetry.com\n```\n\nor, for self-hosted instances:\n\n```text\nhttps://qmetry.your-company.com\n```\n\nMake note of this URL because you'll need it in the next section.\n\n## Part 2: Configuring GitLab CI/CD variables\n\nNow that you have your QMetry credentials, let's store them securely in GitLab. Here are the next steps to follow:\n\n### 4. Navigate to CI/CD settings\n\n1. Open your **GitLab project.**  \n2. In the left sidebar, navigate to **Settings > CI/CD.**  \n3. Expand the **Variables** section.  \n4. Click **Add variable.**\n\n### 5. Add the QMetry API key\n\nConfigure the API key variable:\n\n| Field | Value |\n| ----- | ----- |\n| **Key** | `QMETRY_API_KEY` |\n| **Value** | Your QMetry API key from Step 2 |\n| **Type** | Variable |\n| **Flags** | ✅ Mask variable\u003Cbr>✅ Protect variable (recommended) |\n\nClick **Add variable** to save.\n\n### 6. Add the QMetry instance URL\n\nAdd a second variable for your instance URL:\n\n| Field | Value |\n| ----- | ----- |\n| **Key** | `INSTANCE_URL` |\n| **Value** | Your QMetry instance URL (e.g., `https://your-company.qmetry.com`) |\n| **Type** | Variable |\n| **Flags** | (optional: Protect variable) |\n\nClick **Add variable** to save.\n\n**Why use CI/CD variables?**\n\n* **Security**: Masked variables are hidden in job logs.  \n* **Reusability**: You can use the same credentials across multiple pipelines.  \n* **Flexibility**: It is easy to rotate credentials without modifying pipeline code.  \n* **Access control**: Protected variables are only available on protected branches.\n\n## Part 3: Understanding your test result files\n\nBefore integrating the component, ensure your tests generate output files that QMetry can process. Here are the next steps to follow:\n\n### 7. Verify test output format\n\nThe QMetry component supports multiple test result formats. The most common is **JUnit XML**, which most testing frameworks can generate:\n\n**Example JUnit XML output** (`results.xml`):\n\n```xml\n\u003C?xml version=\"1.0\" encoding=\"UTF-8\"?>\n\u003Ctestsuites>\n  \u003Ctestsuite name=\"Flight Control System Tests\" tests=\"15\" failures=\"1\" errors=\"0\" time=\"45.231\">\n    \u003Ctestcase classname=\"FlightControlTests\" name=\"testAltitudeHold\" time=\"2.341\">\n      \u003Csystem-out>Altitude hold engaged at 10,000 feet\u003C/system-out>\n    \u003C/testcase>\n    \u003Ctestcase classname=\"FlightControlTests\" name=\"testAutopilotEngagement\" time=\"3.125\">\n      \u003Csystem-out>Autopilot engaged successfully\u003C/system-out>\n    \u003C/testcase>\n    \u003Ctestcase classname=\"FlightControlTests\" name=\"testEmergencyLanding\" time=\"5.892\">\n      \u003Cfailure message=\"Landing gear failed to deploy\">\n        Expected: Landing gear deployed\n        Actual: Landing gear malfunction detected\n      \u003C/failure>\n    \u003C/testcase>\n    \u003C!-- Additional test cases... -->\n  \u003C/testsuite>\n\u003C/testsuites>\n```\n\nMost testing frameworks generate this format automatically:\n\n* **JUnit** (Java): Native format  \n* **pytest** (Python): Use `--junitxml=results.xml` flag  \n* **Jest** (JavaScript): Use `jest-junit` reporter  \n* **RSpec** (Ruby): Use `rspec_junit_formatter`  \n* **NUnit** (.NET): Use `nunit-console` with XML output  \n* **Go test**: Use `go-junit-report`\n\n### 8. Confirm test artifact configuration\n\nEnsure your existing pipeline saves test results as **artifacts**. This allows the QMetry component to access them:\n\n```yaml\ntest:\n  stage: test\n  script:\n    - npm install\n    - npm test -- --reporter=junit --reporter-options=output=results.xml\n  artifacts:\n    reports:\n      junit: results.xml\n    paths:\n      - results.xml\n    when: always  # Upload even if tests fail\n```\n\n**Key points**:\n\n* `artifacts.reports.junit` makes results visible in GitLab's test report UI.  \n* `artifacts.paths` ensures the file is available to downstream jobs.  \n* `when: always` ensures results upload even if tests fail.\n\n## Part 4: Integrating the QMetry component\n\nNow for the main event – adding the QMetry component to your pipeline. Here are the next steps to follow:\n\n### 9. Basic component integration\n\nAdd the component to your `.gitlab-ci.yml` file. The component should run **after** your tests complete:\n\n```yaml\ninclude:\n  - component: gitlab.com/sb9945614/qtm-gitlab-component/qmetry-import@1.0.5\n    inputs:\n      stage: test\n      project: \"Aerospace Flight Control System\"\n      file_name: \"results.xml\"\n      testing_type: \"JUNIT\"\n      instance_url: ${INSTANCE_URL}\n      api_key: ${QMETRY_API_KEY}\n```\n\nLet's break down each input parameter:\n\n| Parameter | Description | Example |\n| ----- | ----- | ----- |\n| `stage` | Which CI/CD stage runs the upload job | `test` |\n| `project` | Your QMetry project name or key | `\"Aerospace Flight Control System\"` |\n| `file_name` | Path to your test results file | `\"results.xml\"` |\n| `testing_type` | Format of your test results | `\"JUNIT\"` (also supports: `TESTNG`, `NUNIT`, etc.) |\n| `instance_url` | Your QMetry instance URL | `${INSTANCE_URL}` (from CI/CD variables) |\n| `api_key` | QMetry API key for authentication | `${QMETRY_API_KEY}` (from CI/CD variables) |\n\n### 10. Complete pipeline example\n\nHere's a complete `.gitlab-ci.yml` example showing test execution followed by QMetry upload:\n\n```yaml\nstages:\n  - test\n  - report\n\nvariables:\n  # Your app-specific variables\n  NODE_VERSION: \"18\"\n\n# Run your automated tests\nunit-tests:\n  stage: test\n  image: node:${NODE_VERSION}\n  script:\n    - npm ci\n    - npm run test:unit -- --reporter=junit --reporter-options=output=results.xml\n  artifacts:\n    reports:\n      junit: results.xml\n    paths:\n      - results.xml\n    when: always\n  tags:\n    - docker\n\n# Upload results to QMetry\ninclude:\n  - component: gitlab.com/sb9945614/qtm-gitlab-component/qmetry-import@1.0.5\n    inputs:\n      stage: test  # Runs in same stage as tests\n      project: \"Aerospace Flight Control System\"\n      file_name: \"results.xml\"\n      testing_type: \"JUNIT\"\n      instance_url: ${INSTANCE_URL}\n      api_key: ${QMETRY_API_KEY}\n```\n\n### 11. Run your pipeline\n\nCommit and push your changes:\n\n```shell\ngit add .gitlab-ci.yml\ngit commit -m \"Add QMetry test result integration\"\ngit push origin main\n```\n\nNavigate to your GitLab project's **CI/CD > Pipelines** to watch the execution.\n\n### 12. Verify successful upload\n\nAfter the pipeline completes, you should see:\n\n**In GitLab**:\n\n1. A new job in your pipeline named `qmetry-import` (or similar)  \n2. Job logs showing successful API communication  \n3. Green checkmark indicating successful upload\n\n**Example successful job log**:\n\n```json\n$ curl -X POST https://your-company.qmetry.com/api/v3/test-results/import \\\n  -H \"Authorization: Bearer ${QMETRY_API_KEY}\" \\\n  -H \"Content-Type: application/json\" \\\n  -d @payload.json\n\n{\n  \"status\": \"success\",\n  \"message\": \"Test results uploaded successfully\",\n  \"results_processed\": 15,\n  \"test_cases_created\": 3,\n  \"test_cases_updated\": 12,\n  \"execution_id\": \"EXE-12345\"\n}\n\nJob succeeded ```\n\n**In QMetry**:\n\n1. Navigate to your project dashboard.  \n2. Check the **Test Executions** section.  \n3. You should see a new test execution with results from your GitLab pipeline.  \n4. Click into the execution to see detailed test case results.\n\n\n## Part 5: Advanced configuration options\n\nNow that you have the basic integration working, let's explore advanced configuration for enterprise requirements. Here are the next steps to follow:\n\n### 13. Organizing results with test suites\n\nFor better organization, you can specify which QMetry test suite should receive results:\n\n```yaml\ninclude:\n  - component: gitlab.com/sb9945614/qtm-gitlab-component/qmetry-import@1.0.5\n    inputs:\n      stage: test\n      project: \"Aerospace Flight Control System\"\n      file_name: \"results.xml\"\n      testing_type: \"JUNIT\"\n      testsuite_name: \"Sprint 23 Regression Tests\"\n      testsuite_id: \"TS-456\"  # Optional: Use existing test suite ID\n      instance_url: ${INSTANCE_URL}\n      api_key: ${QMETRY_API_KEY}\n```\n\n**When to use test suites**:\n\n* Organizing tests by sprint or release  \n* Separating regression tests from new feature tests  \n* Grouping tests by component or subsystem  \n* Creating test execution hierarchies for reporting\n\n### 14. Configuring automation hierarchy levels\n\nQMetry supports hierarchical test organization. Use the `automation_hierarchy` parameter to specify the organization level:\n\n```yaml\ninclude:\n  - component: gitlab.com/sb9945614/qtm-gitlab-component/qmetry-import@1.0.5\n    inputs:\n      stage: test\n      project: \"Aerospace Flight Control System\"\n      file_name: \"results.xml\"\n      testing_type: \"JUNIT\"\n      automation_hierarchy: \"2\"  # Level 2 hierarchy\n      instance_url: ${INSTANCE_URL}\n      api_key: ${QMETRY_API_KEY}\n```\n\n**Hierarchy levels explained**:\n\n* **Level 1**: Top-level test suites (e.g., \"All Regression Tests\")  \n* **Level 2**: Sub-suites (e.g., \"Flight Control Tests\" under \"Regression Tests\")  \n* **Level 3**: Granular test groups (e.g., \"Altitude Hold Tests\" under \"Flight Control\")\n\n### 15. Multiple test result files\n\nFor complex projects with multiple test jobs, you can invoke the component multiple times:\n\n```yaml\nstages:\n  - test\n\n# Unit tests\nunit-tests:\n  stage: test\n  script:\n    - npm run test:unit\n  artifacts:\n    paths:\n      - unit-results.xml\n    when: always\n\n# Integration tests\nintegration-tests:\n  stage: test\n  script:\n    - npm run test:integration\n  artifacts:\n    paths:\n      - integration-results.xml\n    when: always\n\n# Upload unit test results\ninclude:\n  - component: gitlab.com/sb9945614/qtm-gitlab-component/qmetry-import@1.0.5\n    inputs:\n      stage: test\n      project: \"Aerospace Flight Control System\"\n      file_name: \"unit-results.xml\"\n      testing_type: \"JUNIT\"\n      testsuite_name: \"Unit Tests - Sprint 23\"\n      instance_url: ${INSTANCE_URL}\n      api_key: ${QMETRY_API_KEY}\n\n  # Upload integration test results\n  - component: gitlab.com/sb9945614/qtm-gitlab-component/qmetry-import@1.0.5\n    inputs:\n      stage: test\n      project: \"Aerospace Flight Control System\"\n      file_name: \"integration-results.xml\"\n      testing_type: \"JUNIT\"\n      testsuite_name: \"Integration Tests - Sprint 23\"\n      instance_url: ${INSTANCE_URL}\n      api_key: ${QMETRY_API_KEY}\n```\n\n### 16. Custom runner tags\n\nFor enterprise environments with dedicated runners, specify runner tags:\n\n```yaml\ninclude:\n  - component: gitlab.com/sb9945614/qtm-gitlab-component/qmetry-import@1.0.5\n    inputs:\n      stage: test\n      runner_tag: \"production-runners\"  # Use specific runner pool\n      project: \"Aerospace Flight Control System\"\n      file_name: \"results.xml\"\n      testing_type: \"JUNIT\"\n      instance_url: ${INSTANCE_URL}\n      api_key: ${QMETRY_API_KEY}\n```\n\n### 17. Custom test suite folders\n\nOrganize test suites into folders for better project structure:\n\n```yaml\ninclude:\n  - component: gitlab.com/sb9945614/qtm-gitlab-component/qmetry-import@1.0.5\n    inputs:\n      stage: test\n      project: \"Aerospace Flight Control System\"\n      file_name: \"results.xml\"\n      testing_type: \"JUNIT\"\n      testsuite_folder_path: \"/Regression/Sprint-23/Flight-Controls\"\n      instance_url: ${INSTANCE_URL}\n      api_key: ${QMETRY_API_KEY}\n```\n\nThis creates a folder hierarchy in QMetry:\n\n```none\nAerospace Flight Control System/\n└── Regression/\n    └── Sprint-23/\n        └── Flight-Controls/\n            └── [Your test execution]\n```\n\n### 18. Advanced field mapping\n\nFor enterprise QMetry instances with custom fields, use the `testcase_fields` and `testsuite_fields` parameters:\n\n```yaml\ninclude:\n  - component: gitlab.com/sb9945614/qtm-gitlab-component/qmetry-import@1.0.5\n    inputs:\n      stage: test\n      project: \"Aerospace Flight Control System\"\n      file_name: \"results.xml\"\n      testing_type: \"JUNIT\"\n      testcase_fields: \"priority=P1,component=FlightControl,certification=DO-178C\"\n      testsuite_fields: \"release=v2.4.0,sprint=23\"\n      instance_url: ${INSTANCE_URL}\n      api_key: ${QMETRY_API_KEY}\n```\n\nThis adds custom metadata to test cases and suites for enhanced filtering and reporting.\n\n## Part 6: Real-world use cases\n\nLet's explore how organizations across different industries are using this integration to solve critical quality and compliance challenges.\n\n### Financial services: Enterprise banking platforms\n\nLeading financial institutions are evolving their engineering practices with integrated DevOps platforms. These organizations face unique challenges when managing test automation at scale.\n\n**The challenge for financial services**:\n\n* **Regulatory compliance**: Financial services must maintain detailed audit trails for all testing activities.  \n* **Multiple compliance frameworks**: Firms must adhere to FCA, PSD2, GDPR, and internal risk management policies.  \n* **High-frequency deployments**: Multiple production deployments are required daily across microservices.  \n* **Zero-tolerance for failures**: Banking systems require extremely high reliability.  \n* **Distributed teams**: QA teams need real-time visibility across global engineering teams.\n\n**The solution**: Financial services organizations implementing the QMetry GitLab Component can automate test result uploads across their CI/CD pipelines for:\n\n* Unit tests for hundreds of microservices  \n* API contract tests for inter-service communication  \n* End-to-end transaction flow tests  \n* Security and compliance scanning results  \n* Performance and load testing results\n\n**Example implementation approach**:\n\n```yaml\n# Financial services approach: Separate test uploads by test type\nstages:\n  - test\n  - security\n  - report\n\n# Unit tests for payment processing service\nunit-tests:\n  stage: test\n  script:\n    - mvn clean test\n  artifacts:\n    paths:\n      - target/surefire-reports/TEST-*.xml\n    when: always\n\n# Upload to QMetry with compliance metadata\ninclude:\n  - component: gitlab.com/sb9945614/qtm-gitlab-component/qmetry-import@1.0.5\n    inputs:\n      stage: report\n      project: \"Payment Processing Platform\"\n      file_name: \"target/surefire-reports/TEST-*.xml\"\n      testing_type: \"JUNIT\"\n      testsuite_name: \"Payment Services - Unit Tests\"\n      testsuite_folder_path: \"/Regulatory/FCA-Compliance/Unit-Tests\"\n      testcase_fields: \"compliance=FCA,risk_level=high,service=payments\"\n      automation_hierarchy: \"2\"\n      instance_url: ${INSTANCE_URL}\n      api_key: ${QMETRY_API_KEY}\n```\n\n**Potential business outcomes for financial services**:\n\n* **Significant reduction** in manual test reporting time  \n* **Complete audit trail coverage** for regulatory reviews  \n* **Real-time visibility** for distributed QA teams  \n* **Faster time-to-production** with automated quality gates  \n* **Enhanced compliance posture** with complete traceability from requirements to test execution\n\n### Aerospace flight control testing\n\nLet's explore how an aerospace company might use this integration for critical flight control system testing.\n\n**Aerospace software development faces unique requirements and challenges:**\n\n* **DO-178C compliance**: Aviation software must follow strict certification standards  \n* **Complete traceability**: Every requirement must link to test cases and execution results  \n* **Audit trails**: Regulators require detailed records of all testing activities  \n* **Safety-critical quality**: Failures can have catastrophic consequences  \n* **Multiple test levels**: Unit, integration, system, and certification tests\n\n**The solution:** By integrating GitLab CI/CD with QMetry, the aerospace engineering team achieves automated test execution and reporting.\n\n\n```yaml\nstages:\n  - build\n  - unit-test\n  - integration-test\n  - system-test\n  - report\n\n# Build flight control firmware\nbuild-firmware:\n  stage: build\n  script:\n    - make clean\n    - make build TARGET=flight-control\n  artifacts:\n    paths:\n      - build/flight-control.bin\n\n# Unit tests (DO-178C Level A)\nunit-tests:\n  stage: unit-test\n  script:\n    - make test-unit OUTPUT=junit\n  artifacts:\n    paths:\n      - test-results/unit-tests.xml\n    when: always\n\n# Hardware-in-the-loop integration tests\nhil-integration-tests:\n  stage: integration-test\n  tags:\n    - hil-test-bench  # Dedicated hardware test environment\n  script:\n    - ./scripts/deploy-to-test-bench.sh\n    - ./scripts/run-hil-tests.sh\n  artifacts:\n    paths:\n      - test-results/hil-tests.xml\n    when: always\n\n# System-level certification tests\ncertification-tests:\n  stage: system-test\n  tags:\n    - certification-environment\n  script:\n    - ./scripts/run-certification-suite.sh\n  artifacts:\n    paths:\n      - test-results/certification-tests.xml\n    when: always\n  only:\n    - main  # Only run on main branch\n\n# Upload unit test results to QMetry\ninclude:\n  - component: gitlab.com/sb9945614/qtm-gitlab-component/qmetry-import@1.0.5\n    inputs:\n      stage: report\n      project: \"Flight Control System v2.4\"\n      file_name: \"test-results/unit-tests.xml\"\n      testing_type: \"JUNIT\"\n      testsuite_name: \"Unit Tests - DO-178C Level A\"\n      testsuite_folder_path: \"/Certification/DO-178C/Unit\"\n      testcase_fields: \"compliance=DO-178C,level=A,safety_critical=true\"\n      automation_hierarchy: \"2\"\n      instance_url: ${INSTANCE_URL}\n      api_key: ${QMETRY_API_KEY}\n\n  # Upload HIL test results\n  - component: gitlab.com/sb9945614/qtm-gitlab-component/qmetry-import@1.0.5\n    inputs:\n      stage: report\n      project: \"Flight Control System v2.4\"\n      file_name: \"test-results/hil-tests.xml\"\n      testing_type: \"JUNIT\"\n      testsuite_name: \"Hardware-in-Loop Integration Tests\"\n      testsuite_folder_path: \"/Certification/DO-178C/Integration\"\n      testcase_fields: \"compliance=DO-178C,level=A,test_type=HIL\"\n      automation_hierarchy: \"2\"\n      instance_url: ${INSTANCE_URL}\n      api_key: ${QMETRY_API_KEY}\n\n  # Upload certification test results\n  - component: gitlab.com/sb9945614/qtm-gitlab-component/qmetry-import@1.0.5\n    inputs:\n      stage: report\n      project: \"Flight Control System v2.4\"\n      file_name: \"test-results/certification-tests.xml\"\n      testing_type: \"JUNIT\"\n      testsuite_name: \"System Certification Tests\"\n      testsuite_folder_path: \"/Certification/DO-178C/System\"\n      testcase_fields: \"compliance=DO-178C,level=A,certification_ready=true\"\n      automation_hierarchy: \"1\"\n      instance_url: ${INSTANCE_URL}\n      api_key: ${QMETRY_API_KEY}\n```\n\n### The results\n\n**Before integration**:\n\n* QA engineers manually exported test results from GitLab  \n* Imported results into QMetry through UI uploads  \n* Process took 2-3 hours per test cycle  \n* Human error risk in data entry  \n* Delayed feedback to stakeholders\n\n**After integration**:\n\n* Test results automatically flow from GitLab to QMetry  \n* Complete audit trail from commit → test → result  \n* Zero manual intervention required  \n* Real-time visibility for certification auditors  \n* Compliance reports generated automatically\n\n**Example QMetry dashboard after integration**:\n\n```none\n╔════════════════════════════════════════════════════════════╗\n║  Flight Control System v2.4 - Test Execution Dashboard     ║\n╠════════════════════════════════════════════════════════════╣\n║                                                            ║\n║  📊 Test Execution Summary (Last 7 Days)                   ║\n║  ───────────────────────────────────────────────────────── ║\n║  ✓ Total Tests Executed: 1,247                             ║\n║  ✓ Passed: 1,241 (99.5%)                                   ║\n║  ✗ Failed: 6 (0.5%)                                        ║\n║  ⏸ Skipped: 0                                              ║\n║                                                            ║\n║  📁 Test Suite Organization                                ║\n║  ───────────────────────────────────────────────────────── ║\n║  └─ Certification/                                         ║\n║     └─ DO-178C/                                            ║\n║        ├─ Unit/ (487 tests, 100% pass)                     ║\n║        ├─ Integration/ (623 tests, 99.2% pass)             ║\n║        └─ System/ (137 tests, 100% pass)                   ║\n║                                                            ║\n║  🔗 Traceability                                           ║\n║  ───────────────────────────────────────────────────────── ║\n║  Requirements Covered: 342/342 (100%)                      ║\n║  Test Cases Linked: 1,247/1,247 (100%)                     ║\n║  GitLab Pipeline Executions: 47 (automated)                ║\n║                                                            ║\n║  ⚠️  Action Items                                          ║\n║  ───────────────────────────────────────────────────────── ║\n║  • 6 failed tests require investigation                    ║\n║  • Last execution: 2 minutes ago (Pipeline #1543)          ║\n║  • GitLab Commit: a7f8c23 \"Fix altitude hold logic\"        ║\n║                                                            ║\n╚════════════════════════════════════════════════════════════╝\n```\n\n### Compliance and audit benefits\n\nBoth financial services and aerospace organizations can leverage this integration for compliance:\n\n**For financial services (FCA, PSD2, SOX)**:\n\n1. **Automated traceability**: Link regulatory requirements → test cases → execution results → GitLab commits  \n2. **Audit-ready documentation**: Complete test execution history with timestamps and pipeline references  \n3. **Risk management**: Real-time quality dashboards for risk assessment  \n4. **Regulatory reporting**: Generate compliance reports directly from QMetry test data\n\n**For aerospace certification (DO-178C, DO-254)**:\n\n1. **Automated traceability matrix**: QMetry links requirements → test cases → execution results → GitLab commits  \n2. **Immutable audit trail**: Every test execution is timestamped with pipeline ID, commit SHA, and executor  \n3. **Certification package generation**: QMetry generates compliant documentation pulling data from GitLab pipelines  \n4. **Real-time compliance dashboards**: Auditors can view test coverage and execution history in real-time\n\n## Complete configuration reference\n\nHere's a comprehensive reference of all available component inputs:\n\n| Input Parameter | Required | Default | Description |\n| ----- | ----- | ----- | ----- |\n| `stage` | No | `test` | GitLab CI/CD stage for the upload job |\n| `runner_tag` | No | `\"\"` | Specific runner tag to use (empty = any available runner) |\n| `project` | Yes | - | QMetry project name or key |\n| `file_name` | Yes | - | Path to test results file (relative to project root) |\n| `testing_type` | Yes | - | Test result format: `JUNIT`, `TESTNG`, `NUNIT`, etc. |\n| `skip_warning` | No | `\"1\"` | Skip warnings during import (`\"1\"` = skip, `\"0\"` = show) |\n| `is_matching_required` | No | `\"false\"` | Match existing test cases by name (`\"true\"` or `\"false\"`) |\n| `testsuite_name` | No | `\"\"` | Name for the test suite in QMetry |\n| `testsuite_id` | No | `\"\"` | Existing test suite ID to append results to |\n| `testsuite_folder_path` | No | `\"\"` | Folder path for organizing test suites (e.g., `/Regression/Sprint-23`) |\n| `automation_hierarchy` | No | `\"\"` | Hierarchy level for test organization (`\"1\"`, `\"2\"`, `\"3\"`, etc.) |\n| `testcase_fields` | No | `\"\"` | Custom fields for test cases (comma-separated: `field1=value1,field2=value2`) |\n| `testsuite_fields` | No | `\"\"` | Custom fields for test suites (comma-separated: `field1=value1,field2=value2`) |\n| `instance_url` | Yes | - | QMetry instance URL (store in CI/CD variable) |\n| `api_key` | Yes | - | QMetry API key (store in CI/CD variable, masked) |\n\n## Best practices for production use\n\nAs you scale your integration, follow these best practices:\n\n### Security\n\n* ✅ **Always use CI/CD variables** for sensitive data (API keys, URLs)  \n* ✅ **Mask and protect** API key variables  \n* ✅ **Rotate API keys** periodically (quarterly recommended)  \n* ✅ **Restrict API key permissions** to minimum required (write to test results only)  \n* ✅ **Use protected branches** for production test uploads\n\n### Performance\n\n* ✅ **Keep test result files reasonable size** (\\\u003C 10 MB recommended)  \n* ✅ **Split large test suites** into multiple jobs/files  \n* ✅ **Use parallel test execution** to reduce pipeline duration  \n* ✅ **Cache dependencies** to speed up test execution\n\n### Organization\n\n* ✅ **Use consistent naming conventions** for test suites and folder paths  \n* ✅ **Leverage custom fields** for filtering and reporting  \n* ✅ **Create folder hierarchies** that mirror your test strategy  \n* ✅ **Document your integration** in project README files\n\n### Troubleshooting\n\n* ✅ **Review job logs** for API communication details  \n* ✅ **Verify test result file format** matches `testing_type` parameter  \n* ✅ **Check QMetry project exists** and API key has access  \n* ✅ **Ensure test result files** are available as pipeline artifacts\n\n## Summary and next steps\n\nCongratulations! You've successfully integrated GitLab CI/CD with QMetry Test Management Enterprise. Your setup now provides:\n\n* **Automated test result uploads** – No more manual exports and imports \n\n* **Real-time visibility** – QA teams see results immediately after pipeline execution \n\n* **Complete traceability** – Link GitLab commits, pipelines, and test executions \n\n* **Enhanced compliance** – Maintain audit trails for regulated industries \n\n* **Scalable quality processes** – Support growing test suites without added overhead\n\n### What happens now\n\nEvery time your GitLab pipeline runs:\n\n1. Tests execute and generate result files.  \n2. The QMetry component automatically uploads results to your instance.  \n3. QA teams, stakeholders, and auditors see results in QMetry dashboards.  \n4. AI-powered insights analyze execution patterns and identify improvements.  \n5. Compliance reports generate automatically with full traceability.\n\n### Expand your integration\n\nNow that you have the basic integration working, consider these advanced scenarios:\n\n* **Bi-directional integration**: Use QMetry's API to trigger GitLab pipelines from test management workflows.\n\n* **Multi-project deployments**: Scale the component across your organization's GitLab projects.\n\n* **Custom reporting**: Build dashboards combining GitLab pipeline metrics with QMetry test analytics.\n\n* **Scheduled test execution**: Use GitLab scheduled pipelines to run regression suites nightly.\n\n## Learn more and get help\n\n### Documentation and resources\n\n* **Component documentation**: [GitLab CI/CD Catalog](https://gitlab.com/explore/catalog)  \n* **QMetry documentation**: [QMetry Support Portal](https://qmetrysupport.atlassian.net/wiki/spaces/QPro/overview)  \n* **SmartBear resources**: [SmartBear Academy](https://smartbear.com/resources/)  \n* **GitLab CI/CD documentation**: [GitLab CI/CD Documentation](https://docs.gitlab.com/ee/ci/)\n\n### Support\n\n**For component technical questions**:\n\n* Visit the [component repository](https://gitlab.com/sb9945614/qtm-gitlab-component).  \n* Open an issue on the project.  \n* Check existing issues for common questions.\n\n**For QMetry product questions**:\n\n* Contact SmartBear support at support@smartbear.com.  \n* Visit the [QMetry Community Forum](https://community.smartbear.com/).",{"featured":27,"template":12,"slug":734},"streamline-test-management-with-the-smartbear-qmetry-gitlab-component",{"content":736,"config":746},{"title":737,"description":738,"authors":739,"heroImage":741,"date":731,"body":742,"category":9,"tags":743},"GitLab Duo CLI: Agentic AI for the development lifecycle, now in the terminal","Developers who work outside the IDE and GitLab UI can access GitLab Duo Agent Platform in the terminal with built-in security controls and headless mode support.",[740],"John Coghlan","https://res.cloudinary.com/about-gitlab-com/image/upload/v1775561395/bhe1as7ttjvzltxwgo5m.png","Debugging a broken pipeline at the end of a sprint, or wiring AI into a CI/CD workflow that runs without anyone watching, is exactly where today's AI assistants fall short given their focus on coding – which is only a portion of the software lifecycle. They're built for interactive coding sessions, not automation across different stages of software development. GitLab Duo CLI, now in public beta, is built for both.\n\nGitLab Duo CLI brings agentic AI powered by [Duo Agent Platform](https://about.gitlab.com/gitlab-duo-agent-platform/) to the terminal with full support for automated workflows, alongside an interactive chat mode when you need a human in the loop. This article highlights what Duo CLI does, how its two operating modes work, and the security model behind it.\n\n## How to install GitLab Duo CLI\n\nIf you already have GLab (the GitLab CLI) installed, enter:\n\n```\nglab duo cli\n```\n\nThen follow the prompts.\n\nIf you don't have GLab yet, you can [install it here](https://gitlab.com/gitlab-org/cli/#installation) or [use GitLab Duo CLI as a standalone tool](https://docs.gitlab.com/user/gitlab_duo_cli/#without-the-gitlab-cli).\n\n## Why the terminal, and why now\n\nThe first wave of AI assistants for software development lived in the IDE, and focused solely on coding. That made sense when the job was autocomplete. But as AI agents start *doing things* across every stage of the software lifecycle, e.g. running tests, triggering pipelines, monitoring vulnerability scans, and more, the IDE may no longer be the only abstraction needed to get the job done.\n\nThe best developer tools are ones that work for both humans and machines. CLIs have had decades of design iteration toward that goal. They're composable. You can pipe output, chain commands, and drop them into scripts. They're debuggable: when something goes wrong, you run the same command yourself and see exactly what the agent saw. And they're transparent. No background processes, no initialization dance, no protocol to decode when things break.\n\nTerminal interfaces are better for automation, scripting, and environment portability. IDE interfaces are better for interactive, context-rich development. GitLab Duo CLI is designed for the former, while Duo Agentic Chat in the IDE and UI covers the latter.\n\n## What GitLab Duo CLI can do\n\nWith GitLab Duo CLI, developers can build, modify, refactor, and modernize code — similar to other AI-powered coding assistants built for the terminal. But that’s not where they stop. Any agent and flow defined within GitLab Duo Agent Platform is accessible via Duo CLI, whether it is to automate CI/CD configuration and optimize pipelines, or to perform multi-step development tasks autonomously across the entire software development lifecycle.\n\nGitLab Duo CLI runs in two modes:\n\n* **Interactive mode**, an editor-agnostic terminal chat experience with human-in-the-loop approval before any action is taken. Use it to understand codebase structure, create code, fix errors, or troubleshoot broken pipelines.  \n* **Headless mode**, non-interactive, designed for runners, scripts, and automated workflows. Drop it into CI/CD and let it work without handholding.\n\n## AI with guardrails\n\nAgentic AI that can take actions creates real security exposure. GitLab Duo CLI addresses this at the platform level, not as an afterthought:\n\n* **Human-in-the-loop by default** in interactive mode, so no action is taken without approval.  \n* **Prompt injection detection** is built into the GitLab Duo Agent Platform, not bolted on.  \n* **Composite identity** limits what the agent can access and makes every AI-driven action auditable.\n\nGitLab Duo CLI also supports [custom instruction files](https://docs.gitlab.com/user/duo_agent_platform/customize/), e.g. `chat-rules.md`, `AGENTS.md`, and `SKILL.md`, that define which tasks, resources, context, knowledge, and actions your agents are permitted to take. **This is the principle of least privilege applied to AI: Your agent does exactly what you've authorized, and nothing more.**\n\nWatch GitLab Duo CLI in action:\n\u003Ciframe src=\"https://player.vimeo.com/video/1179964611?badge=0&amp;autopause=0&amp;player_id=0&amp;app_id=58479\" frameborder=\"0\" allow=\"autoplay; fullscreen; picture-in-picture; clipboard-write; encrypted-media; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" style=\"position:absolute;top:0;left:0;width:100%;height:100%;\" title=\"GitLab Duo CLI Beta Demo V1\">\u003C/iframe>\u003Cscript src=\"https://player.vimeo.com/api/player.js\">\u003C/script>\n\n## Use GitLab Duo CLI today\n\nYou can experience the benefits of GitLab Duo CLI by [starting a free trial of GitLab Duo Agent Platform](https://about.gitlab.com/gitlab-duo-agent-platform/). \n\nIf you are already using GitLab in the free tier, you can sign up for GitLab Duo Agent Platform by [following a few simple steps](https://docs.gitlab.com/subscriptions/gitlab_credits/#for-the-free-tier-on-gitlabcom). \n\nAnd if you are an existing subscriber to GitLab Premium or Ultimate, you can take advantage of GitLab Duo CLI by simply [turning on Duo Agent Platform](https://docs.gitlab.com/user/duo_agent_platform/turn_on_off/) and start using the GitLab Credits [that are included](https://docs.gitlab.com/subscriptions/gitlab_credits/#included-credits) with your subscription.",[744,9,745],"AI/ML","features",{"featured":27,"template":12,"slug":747},"gitlab-duo-cli",{"promotions":749},[750,764,775],{"id":751,"categories":752,"header":754,"text":755,"button":756,"image":761},"ai-modernization",[753],"ai-ml","Is AI achieving its promise at scale?","Quiz will take 5 minutes or less",{"text":757,"config":758},"Get your AI maturity score",{"href":759,"dataGaName":760,"dataGaLocation":238},"/assessments/ai-modernization-assessment/","modernization assessment",{"config":762},{"src":763},"https://res.cloudinary.com/about-gitlab-com/image/upload/v1772138786/qix0m7kwnd8x2fh1zq49.png",{"id":765,"categories":766,"header":767,"text":755,"button":768,"image":772},"devops-modernization",[9,564],"Are you just managing tools or shipping innovation?",{"text":769,"config":770},"Get your DevOps maturity score",{"href":771,"dataGaName":760,"dataGaLocation":238},"/assessments/devops-modernization-assessment/",{"config":773},{"src":774},"https://res.cloudinary.com/about-gitlab-com/image/upload/v1772138785/eg818fmakweyuznttgid.png",{"id":776,"categories":777,"header":779,"text":755,"button":780,"image":784},"security-modernization",[778],"security","Are you trading speed for security?",{"text":781,"config":782},"Get your security maturity score",{"href":783,"dataGaName":760,"dataGaLocation":238},"/assessments/security-modernization-assessment/",{"config":785},{"src":786},"https://res.cloudinary.com/about-gitlab-com/image/upload/v1772138786/p4pbqd9nnjejg5ds6mdk.png",{"header":788,"blurb":789,"button":790,"secondaryButton":795},"Start building faster today","See what your team can do with the intelligent orchestration platform for DevSecOps.\n",{"text":791,"config":792},"Get your free trial",{"href":793,"dataGaName":45,"dataGaLocation":794},"https://gitlab.com/-/trial_registrations/new?glm_content=default-saas-trial&glm_source=about.gitlab.com/","feature",{"text":500,"config":796},{"href":49,"dataGaName":50,"dataGaLocation":794},1777310001982]