Multi-Module Maven POM: Coverage only for one sub-module

Description

only the coverage from the first report is showing in the browser

Repository

CI/CD

GitHub actions

Uploader

```
Run codecov/codecov-action@v1
15
bash codecov.sh -n  -F 
16

17
  _____          _
18
 / ____|        | |
19
| |     ___   __| | ___  ___ _____   __
20
| |    / _ \ / _` |/ _ \/ __/ _ \ \ / /
21
| |___| (_) | (_| |  __/ (_| (_) \ V /
22
 \_____\___/ \__,_|\___|\___\___/ \_/
23
                              Bash-20200917-4e8f14b
24

25

26
==> GitHub Actions detected.
27
    project root: .
28
--> token set from env
29
    Yaml not found, that's ok! Learn more at http://docs.codecov.io/docs/codecov-yaml
30
==> Running gcov in . (disable via -X gcov)
31
==> Python coveragepy not found
32
==> Searching for coverage reports in:
33
    + .
34
    -> Found 9 reports
35
==> Detecting git/mercurial file structure
36
==> Reading reports
37
    + ./identity/target/site/jacoco/jacoco.xml bytes=41009
38
    + ./symphony-app-spring-boot-starter/target/site/jacoco/jacoco.xml bytes=120218
39
    + ./symphony-maven-build-reporter/target/site/jacoco/jacoco.xml bytes=28599
40
    + ./entity-json/target/site/jacoco/jacoco.xml bytes=42175
41
    + ./bindings/target/site/jacoco/jacoco.xml bytes=1976558
42
    + ./shared-stream/target/site/jacoco/jacoco.xml bytes=99043
43
    + ./quickfix-json/target/site/jacoco/jacoco.xml bytes=40921
44
    + ./chat-workflow/target/site/jacoco/jacoco.xml bytes=224610
45
    + ./symphony-api-spring-boot-starter/target/site/jacoco/jacoco.xml bytes=69258
46
==> Appending adjustments
47
    https://docs.codecov.io/docs/fixing-reports
48
    -> No adjustments found
49
==> Gzipping contents
50
==> Uploading reports
51
    url: https://codecov.io
52
    query: branch=master&commit=8c977be513cbf8ef279d1638e19c653645cccdf7&build=268479058&build_url=http%3A%2F%2Fgithub.com%2Ffinos%2Fsymphony-java-toolkit%2Factions%2Fruns%2F268479058&name=&tag=&slug=finos%2Fsymphony-java-toolkit&service=github-actions&flags=&pr=&job=&cmd_args=n,F
53
->  Pinging Codecov
54
https://codecov.io/upload/v4?package=bash-20200917-4e8f14b&token=secret&branch=master&commit=8c977be513cbf8ef279d1638e19c653645cccdf7&build=268479058&build_url=http%3A%2F%2Fgithub.com%2Ffinos%2Fsymphony-java-toolkit%2Factions%2Fruns%2F268479058&name=&tag=&slug=finos%2Fsymphony-java-toolkit&service=github-actions&flags=&pr=&job=&cmd_args=n,F
55
->  Uploading to
56
https://storage.googleapis.com/codecov/v4/raw/2020-09-23/D2C2DD91ECDDE6E1F50956E5DBB9BE79/8c977be513cbf8ef279d1638e19c653645cccdf7/e547a07d-41c9-4ba8-9594-fa3d6568102e.txt?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=GOOG1EQX6OZVJGHKK3633AAFGLBUCOOATRACRQRQF6HMSMLYUP6EAD6XSWAAY%2F20200923%2FUS%2Fs3%2Faws4_request&X-Amz-Date=20200923T094056Z&X-Amz-Expires=10&X-Amz-SignedHeaders=host&X-Amz-Signature=a5c332b1749f445580a9bdac99d55da318154c52edccb176ca210da852b7607e
57
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
58
                                 Dload  Upload   Total   Spent    Left  Speed
59

60
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
61
100  133k    0     0  100  133k      0   315k --:--:-- --:--:-- --:--:--  315k
62
    -> View reports at https://codecov.io/github/finos/symphony-java-toolkit/commit/8c977be513cbf8ef279d1638e19c653645cccdf7
```

Commit SHAs

See master

Codecov YAML

This is the github action yaml:

name: sjt-build

env:
  CI_DEPLOY_USERNAME: ${{ secrets.CI_DEPLOY_USERNAME }}
  CI_DEPLOY_PASSWORD: ${{ secrets.CI_DEPLOY_PASSWORD }}
  GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
  PGP_SKIP: ${{ secrets.PGP_SKIP }}
  BOT1PRIVATEKEY: ${{ secrets.BOT1PRIVATEKEY }}
  BOT2PRIVATEKEY: ${{ secrets.BOT2PRIVATEKEY }}
  BOT2CERTIFICATE: ${{ secrets.BOT2CERTIFICATE }}

on: [push, pull_request]

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
    - name: Checkout repo
      uses: actions/checkout@v2
    - name: Cache Maven dependencies
      uses: actions/cache@v2
      env:
        cache-name: cache-mvn-modules
      with:
        path: ~/.m2
        key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/pom.xml') }}
        restore-keys: |
          ${{ runner.os }}-build-${{ env.cache-name }}-
          ${{ runner.os }}-build-
          ${{ runner.os }}-
    - name: Set up JDK
      uses: actions/setup-java@v1
      with:
        java-version: 11
        server-id: ossrh
        server-username: CI_DEPLOY_USERNAME
        server-password: CI_DEPLOY_PASSWORD
    - name: Download deps and plugins
      run: mvn de.qaware.maven:go-offline-maven-plugin:resolve-dependencies
    - name: Build + Test (on master)
      if: github.ref == 'refs/heads/master'
      run: mvn install --settings .github/workflows/settings.xml
    - name: Build (not on master)
      if: github.ref != 'refs/heads/master'
      run: mvn install -DskipTests
    - name: Coverage (on master)
      if: github.ref == 'refs/heads/master'
      uses: codecov/codecov-action@v1
      with:
        token: ${{ secrets.CODECOV_TOKEN }}

Codecov Output

Only showing coverage from identity module.

Additional Information

Hi @robmoffat, this commit happened a month ago and we’ve made changes since. Would you be able to push a new commit and share the SHA here?

Well, it’s certainly a bit different now: more modules are being covered than last time, but there are still some missing. Here is the latest commit:

Two modules here still show no coverage, although they used to:

Any thoughts on this? thanks

Modules need to be named the same as the directories they are in for paths to be correct.

1 Like