Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
BIND
BIND
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 631
    • Issues 631
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 105
    • Merge Requests 105
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • CI / CD
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • ISC Open Source Projects
  • BINDBIND
  • Merge Requests
  • !4314

Merged
Opened Oct 27, 2020 by Michal Nowak@mnowakMaintainer

[v9_16] Enable Test Coverage Visualization for merge requests

  • Overview 1
  • Commits 1
  • Pipelines 2
  • Changes 1

This feature allows GitLab to visualize test coverage information in the file diff view of merge requests.

This commit makes the gcov CI job depend on the following chain of jobs:

gcc:buster:amd64 → unit:gcc:buster:amd64 → system:gcc:buster:amd64

The reason for running the last two jobs above sequentially rather than in parallel is that both of them create *.gcda files (containing coverage data) in the same locations. While some way of merging these files from different job artifact archives could probably be designed with the help of additional tools, the simplest thing to do is not to run unit test and system test jobs in parallel, carrying *.gcda files over between jobs as gcov knows how to append coverage data to existing *.gcda files.

Also note that test coverage will not be visualized if any of the jobs in the above dependency chain fails (because the gcov job will not be run).

(cherry picked from commit 2dabf328)

Edited Oct 27, 2020 by Michal Nowak
Assignee
Assign to
Reviewer
Request review from
November 2020 (9.11.25, 9.11.25-S1, 9.16.9, 9.16.9-S1, 9.17.7)
Milestone
November 2020 (9.11.25, 9.11.25-S1, 9.16.9, 9.16.9-S1, 9.17.7) (Past due)
Assign milestone
Time tracking
Reference: isc-projects/bind9!4314
Source branch: mnowak/test-coverage-visualization-v9_16

Revert this merge request

This will create a new commit in order to revert the existing changes.

Switch branch
Cancel
A new branch will be created in your fork and a new merge request will be started.

Cherry-pick this merge request

Switch branch
Cancel
A new branch will be created in your fork and a new merge request will be started.