Skip to content

GitLab Next

    • GitLab: the DevOps platform
    • Explore GitLab
    • Install GitLab
    • How GitLab compares
    • Get started
    • GitLab docs
    • GitLab Learn
  • Pricing
  • Talk to an expert
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
    • Menu
    Projects Groups Snippets
  • Get a free trial
  • Sign up
  • Login
  • Sign in / Register
  • GitLab FOSS GitLab FOSS
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Merge requests 0
    • Merge requests 0
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Container Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Metrics
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Code review
    • Insights
    • Issue
    • Repository
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar

GitLab 15.0 is launching on May 22! This version brings many exciting improvements, but also removes deprecated features and introduces breaking changes that may impact your workflow. To see what is being deprecated and removed, please visit Breaking changes in 15.0 and Deprecations.

  • GitLab.org
  • GitLab FOSSGitLab FOSS
  • Merge requests
  • !7447
Project 'gitlab-org/gitlab-ce' was moved to 'gitlab-org/gitlab-foss'. Please update any links and bookmarks that may still have the old path.
Merged
Created Nov 14, 2016 by Leandro Camargo@leandroicoContributor7 of 9 tasks completed7/9 tasks
  • Review changes

  • Download
  • Email patches
  • Plain diff

Add ability to define a coverage regex in the .gitlab-ci.yml

  • Overview 162
  • Commits 15
  • Pipelines 18
  • Changes 18

What does this MR do?

It's a feature that adds the possibility of setting up a coverage regex directly inside the gitlab CI YAML file ( .gitlab-ci.yml). If any given job described in the YAML file has a coverage_regex defined in it, then its value will take precedence over the one defined in the project's pipeline settings. Otherwise, the coverage regex in defined on the project level will be used. WIP reason: it's missing the tests for now. I prefer to wait for an experienced reviewer to give me the green light first regarding the solution itself. I don't want to write tests for an alleged wrong solution. If it's good to go, I write the tests on a new commit and ask for a second review (regarding the second commit). If all is good then I squash the commits and ask for the actual merge.

Are there points in the code the reviewer needs to double check?

Yes. Basically everything. This is my first contribution to GitLab and I'm not sure how accurate and efficient my solution is for this problem. I believe it's a good one, but I'm waiting for an experienced reviewer to say so first, before I write and send the tests for my patch.

Why was this MR needed?

Right now, it's only possible to set up a coverage regex on the whole project context and it turns out that there are users that need a way to define coverage regex patterns for multiple different jobs. Each job can have different coverage patterns in their outputs. For further details regarding the motivations that caused this MR to exist, see the issue referenced in this MR ( #20428 (closed)).

Screenshots (if relevant)

Does this MR meet the acceptance criteria?

  • Changelog entry added
  • Documentation created/updated
  • API support added
  • Tests
    • Added for this feature/bug
    • All builds are passing
  • Conform by the merge request performance guides
  • Conform by the style guides
  • Branch has no merge conflicts with master (if it does - rebase it please)
  • Squashed related commits together

What are the relevant issue numbers?

Closes #20428 (closed)

Assignee
Assign to
Reviewer
Request review from
Time tracking
Source branch: 20248-add-coverage-regex-in-job-yaml