Skip to content

Fix the Codecov setup in all Autoware repositories #7423

Done

Description

@xmfcx

Codecov does not work as intended in most Autoware repositories. Three problems repeat:

  • Uploads fail. The organization requires a Codecov token for uploads, and many workflows pass none. The upload then fails with Token required because branch is protected or 429 - Rate limit reached, and the repository gets no coverage data.
  • Statuses turn commits red. The old codecov.yaml from sync-file-templates adds one project and one patch status for each flag, with target: auto and no threshold. A coverage drop of 0.01% fails a status, and one failed status turns the commit red. In autoware_core, 24 of the last 40 commits on main have a failed Codecov status.
  • Uploads send the wrong files. Without disable_search and plugins: noop, the uploader runs gcov again and sends .gcov files for system headers. Python coverage never arrives, because Codecov does not read the raw coveragepy/.coverage file that colcon-test outputs.

Target setup

Every repository that uploads coverage uses the same setup:

  • One upload per build, from the jazzy job: flag full-suite on push to main, flag daily on the nightly build, and no flag on PRs.
  • codecov/codecov-action with token: ${{ secrets.CODECOV_TOKEN }} (the organization secret), disable_search: true and plugins: noop.
  • codecov.yaml with informational project and patch statuses, no per-flag statuses, and carryforward only for full-suite.
  • colcon-test outputs coveragepy/coverage.xml, which Codecov reads.

A flagless PR upload merges on top of the carried-forward full-suite baseline. A PR upload with the full-suite flag would replace that baseline with partial data.

Plan

The steps are in the order of merge. Steps in the same group do not depend on each other.

1. Main repositories

autoware_universe already has the upload setup and statuses that always pass. Its PR only turns off the uploader plugins. In autoware_tools, the jazzy job hangs in simulator_compatibility_test, so #484 must merge before #485 can upload anything.

2. Shared templates

Nine repositories sync the build-and-test workflow templates from sync-file-templates. A change to a template reaches each repository only through its sync bot PR, on the branch sync-files.

First, these PRs add codecov.yaml to the sync list. Five of the repositories have no codecov.yaml, so Codecov posts its default statuses, which are not informational. Two keep their own copy of the old template with per-flag statuses. Merge these PRs before or together with the template PR, so that the new workflows never meet the old statuses:

Then the template PR:

Then the sync bot PR of each repository. Eight of them are open and blocked on review today, some for months, and they also carry other template changes:

Out of scope: awf_reference_sensor_kit_launch, awf_reference_vehicle_launch and itri_bus_sensor_kit. They sync their workflows from the archived autoware_common, and the two reference launch repositories had no commit since 2024.

3. Repositories with their own files

autoware_system_designer is mostly Python, so it should merge after step 4 is released, or its coverage drops from 75 % to 14 % until then. autoware_rviz_plugins passed the token under the wrong secret name, and autoware_system_designer passed none, so their uploads failed. autoware_simple_planning_simulator uploaded from every leg and sent system header reports. managed_transform_buffer keeps its own PR workflow, which uploaded from humble with a flag.

4. Python coverage

Released in v1.70.0 on 2026-11-24. Python files move the coverage totals once, at the next build on main of each repository. With informational statuses, this change cannot turn a commit red. autoware_system_designer merged before the release, so it shows 18.8 % until its next build.

5. Follow-ups

Merged PRs that led to this setup

This issue was written with Claude Code, from an audit of the workflows, CI logs and Codecov data of the repositories above.

Activity

  1. self-assigned this
    on Nov 23, 2026
  2. added
    type:ci
    on Nov 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

type:ci

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions