Skip to content

Commit 08a69eb

Browse files
committed
Wait for both coverage uploads before reporting to Codecov
1 parent 1fc0ce6 commit 08a69eb

1 file changed

Lines changed: 23 additions & 0 deletions

File tree

‎codecov.yml‎

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Coverage for this repository is reported from two separate CI uploads:
2+
#
3+
# * `unit` – PHPUnit tests (fast, finishes in ~1 minute).
4+
# * `feature` – Behat functional tests (slow, can take ~45 minutes).
5+
#
6+
# Much of the framework is only exercised through the functional tests. Because
7+
# the Behat upload lands long after the unit upload, Codecov would otherwise
8+
# evaluate the commit/patch status (and post its comment) on unit-only data and
9+
# report a spurious failure for code that is actually covered once the functional
10+
# tests finish. Waiting for both uploads before reporting fixes that.
11+
#
12+
# Note: this repository normally produces exactly two coverage uploads. If the
13+
# feature job ever fails to upload, the Codecov status may stay pending until the
14+
# next push. A fully count-independent fix (aggregating both reports into a
15+
# single upload, or a `manual_trigger` finalizer step) would need to live in the
16+
# shared CI workflow rather than here.
17+
18+
codecov:
19+
notify:
20+
after_n_builds: 2
21+
22+
comment:
23+
after_n_builds: 2

0 commit comments

Comments
 (0)