Coverage monitoring

Coverage monitoring lists every run of the project with the coverage it reached, and is where you open, stop and resume monitoring windows. Open it to see what is collecting right now, to start measuring a test session or sprint, or to close or delete a run.

Where to find it

Sidebar, group Monitor, entry Coverage monitoring. The entry stays highlighted while you are on a run's detail page. Every member of the project can open it. Starting, stopping, resuming, finishing and deleting need write access to the project (Member or Administrator); for a viewer the server refuses these actions.

What it shows

Header and actions

The title, a one-line description, and on the right:

  • Resume monitoring – only when no window is active and there is a stopped window to put back on. Its tooltip names that window.
  • Start coverage monitoring – opens a small form with a label field ("label (e.g. sprint-42)"), Start and Cancel.

Open monitoring windows

One card per open monitoring window (a running run whose key starts with coverage-), the active one first.

  • Coverage monitoring · on marks the window agents report into. A second window adds "· measured from when it opened".
  • The run key links to the run.
  • For the active window, a note explains that manual browsing, automated runs and per-case attribution (the X-CoverageOps-Test header or the ?covtest=CASE parameter) accumulate into it while monitoring is on, with a link to configure which services and repositories it covers (Projects).
  • On the right: line coverage, a bar, and "covered/total lines · N agent". Until the first report arrives it shows "—" and "waiting for the first report" instead of a percentage.
  • Stop closes that window.

Search and filter

  • Search box: matches the run key, commit, branch or repository name.
  • All, Collecting, Failing, each with its count. Collecting is runs still running. Failing is runs whose status is failed or that have at least one failed test.

Run table

Runs are split into two groups with a heading row each: Still collecting · N (the active window first) and Finished · N.

ColumnWhat it shows
Statusrunning, passed, failed or aborted
RunThe run key (link to the run), an active badge on the window agents report into, and the first 8 characters of the commit
Repo / branchRepository name and branch, or "—"
AgentDistinct agents that reported, the number of shards, and a chip per environment the participants reported from
Pass / failPassed and failed test counts, with "N no result" beneath when tests reported coverage but no verdict; hover for the skipped and no-result counts
Line coverageA bar and the percentage, or "no coverage yet" when no line has been measured
StartedStart date and time; hover for the exact moment
(actions)Finish on running runs, and Delete on every run

A shard here is one participation: one per agent, shard name and replica (pod or host). Five pods of one service count as five shards and one agent.

How it works

Where runs come from. A run is opened by whatever reports into it: an agent with a run key from CI or a test runner, or a monitoring window you start here. Coverage arrives from the language agents on the services under test; test results arrive from test runners.

Starting a window. The new run gets the key coverage-<label>-<timestamp>. The label (up to 80 characters) is lower-cased, every run of characters other than a–z, 0–9 and ç ğ ı ö ş ü becomes one dash, and it is cut to 40 characters; without a label it is general.

  • If no window is active, the new one becomes the active window: agents pick up the key on their next poll, reset their counters and report into it.
  • If a window is already active, the new one is a second measurement over the same running applications. Agents keep reporting into the first window and nothing restarts. The second window takes a snapshot of what each participant had already counted when it opened and lists the same participants straight away. From then on, every upload is also written into it as "what the agent counted minus the snapshot", so it starts at zero and only counts lines that run again after it opened. Both windows grow together, and either can be stopped without touching the other.

While a window is active, coverage from shared services that the project includes is also recorded into it.

Stopping a window. The run is closed with the verdicts it holds: any failed test makes it failed, otherwise any passed test makes it passed, and no verdicts at all makes it aborted. A test with no result (coverage only) is not a verdict. If you stop the active window and another window is still open, the oldest open one becomes the active window. Otherwise the stopped window is remembered so that Resume monitoring can put it back, and on their next poll the agents leave it: each sends what it still owed the window, resets its counters and goes back to its own run key (COVERAGEOPS_RUN_KEY, else the CI build id, else local-YYYYMMDD; see Concepts). An agent whose poll fails stays where it is until a poll succeeds.

Resuming. Resume reopens the remembered window (status running again) and makes it the active window. Agents notice on their next poll and carry on; their coverage merges into the totals the run already has, and no counter is reset. Resume refuses with a reason when monitoring is already on, when there is nothing to resume, or when that run has been deleted.

Finishing a run. Finish closes a running run with the same verdict rule as Stop. If the run was the active window, it is remembered for Resume in the same way.

CI runs usually need no Finish: the test runners finish the run they reported into once every runner session has finished (see Concepts). A run stays under Still collecting while a session is still going, and for a short grace after the last one. Use Finish for a run whose runner crashed or was cancelled, and for always-on runs; a run nothing has reported into for 6 hours is closed by the server anyway, and its page says "Closed after 6 h without data". A window you start here is never closed by a runner, by coverageops run finish or for inactivity, even when a test suite reports into it: only Stop and Finish close it.

Deleting a run. Delete removes the run and everything measured under it: coverage, test results, participating agents and traces. If it was the active or remembered window, that is cleared as well.

Numbers. Line coverage is the run's figure after the project's counted-code rules, so it matches the run page. Start, stop, finish and delete are recorded in the audit log.

Refresh. The page reloads its data every 5 seconds.

What you can do

  • Start coverage monitoring: type an optional label and press Start. A message confirms the new run key.
  • Stop on a window card: closes that window; a message names the run and the status it closed with.
  • Resume monitoring: reopens the last stopped window without resetting anything.
  • Finish on a running row: asks for confirmation (Finish run / Keep it running), then closes the run.
  • Delete on any row: asks for confirmation (Delete run / Keep it), then deletes it permanently. The dialog warns when the run is still collecting.
  • Search and filter the list, and click a run key to open Run detail.

Limits and good to know

  • The list holds the 50 most recently started runs. Search, filters and counts work on those 50. If the project limits monitoring to certain repositories, runs of other repositories are not listed.
  • Deleting a run cannot be undone, and the period it covered cannot be measured again.
  • The Finish dialog says the run cannot be reopened, but finishing the active window does make it available to Resume monitoring.
  • Finishing the active window from the table does not hand the active role to another open window; stopping it from its card does.
  • The message after Start says agents reset their counters. That is true for the first window; a second window does not reset anything.