Repository navigation
Description
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 protectedor429 - Rate limit reached, and the repository gets no coverage data. - Statuses turn commits red. The old
codecov.yamlfrom sync-file-templates adds one project and one patch status for each flag, withtarget: autoand no threshold. A coverage drop of0.01%fails a status, and one failed status turns the commit red. Inautoware_core, 24 of the last 40 commits onmainhave a failed Codecov status. - Uploads send the wrong files. Without
disable_searchandplugins: noop, the uploader runs gcov again and sends.gcovfiles for system headers. Python coverage never arrives, because Codecov does not read the rawcoveragepy/.coveragefile thatcolcon-testoutputs.
Target setup
Every repository that uploads coverage uses the same setup:
- One upload per build, from the jazzy job: flag
full-suiteon push tomain, flagdailyon the nightly build, and no flag on PRs. codecov/codecov-actionwithtoken: ${{ secrets.CODECOV_TOKEN }}(the organization secret),disable_search: trueandplugins: noop.codecov.yamlwith informationalprojectandpatchstatuses, no per-flag statuses, and carryforward only forfull-suite.colcon-testoutputscoveragepy/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
- ci(codecov): use one coverage upload per build like autoware_universe autoware_core#1563
- ci(codecov): turn off all uploader plugins with noop autoware_universe#13667
- fix(simulator_compatibility_test): turn off the launch_testing pytest plugins autoware_tools#484
- ci(codecov): upload coverage once per build from jazzy with a token autoware_tools#485
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:
- ci(sync-files): sync codecov.yaml autoware_adapi_msgs#112
- ci(sync-files): sync codecov.yaml autoware_cmake#56
- ci(sync-files): sync codecov.yaml autoware_internal_msgs#100
- ci(sync-files): sync codecov.yaml autoware_lanelet2_extension#123
- ci(sync-files): sync codecov.yaml autoware_launch#2027
- ci(sync-files): sync codecov.yaml autoware_msgs#172
- ci(sync-files): sync codecov.yaml cuda_blackboard#33
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:
- chore: sync files autoware_adapi_msgs#99
- chore: sync files autoware_cmake#50
- chore: sync files autoware_internal_msgs#97
- chore: sync files autoware_lanelet2_extension#65
- chore: sync files autoware_launch#2000
- chore: sync files autoware_msgs#158
- chore: sync files autoware_utils#81
- chore: sync files cuda_blackboard#18
-
cuda_blackboard: its sync-files workflow was disabled for inactivity since 2026-04-03. It is enabled again on 2026-11-24. -
managed_transform_buffer: itsmainhas the new templates.
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
- ci(codecov): fix the coverage upload and add codecov.yaml autoware_rviz_plugins#54
- ci(codecov): pass the upload token and upload once from jazzy autoware_system_designer#111
- ci(codecov): upload coverage once per build with the shared setup autoware_simple_planning_simulator#30
- ci(codecov): upload the PR coverage from jazzy without a flag managed_transform_buffer#37
-
autoware_cuda: the last upload, on 2026-11-10, failed withHTTP Error 404, because Codecov had no record of the repository. It also used the old flagtotaland had nocodecov.yaml. The PR below gives it the shared setup, and its first upload activated the repository in Codecov. Merged on 2026-11-24: - ci(codecov): use the shared Codecov setup autoware_cuda#8
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
- fix(colcon-test): output the Python coverage as coverage.py XML autoware-github-actions#440
- new release https://github.com/autowarefoundation/autoware-github-actions/releases
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
- Python modules of
ament_cmakepackages show 0 %, because their tests import the installed copy, but pytest measures only the source directory. For exampleautoware_agnocast_wrapperinautoware_core. The fix measuresinstall/too, and Codecov maps those paths back to the source files. Merged on 2026-11-24. Inautoware_core,autoware_agnocast_wrapper/actions/autoware_node.pynow shows 98.62 %: - fix(colcon-test): measure the installed Python modules of ament_cmake packages autoware-github-actions#442
- Add
setup.pyto theignorelist, and add anignorelist toautoware_tools. Both merged with step 1. - Delete the old flags in the Codecov settings of each repository. Done in
autoware_coreand in 13 other repositories on 2026-11-24.autoware_universelists onlyfull-suite, andautoware_cudahas no old flags. - Set the Codecov default branch to
maininautoware_msgs(wasmaster) andautoware_launch(wastier4/proposal). -
autoware_universe: a step inbuild-and-test-reusable.yamltestedsteps.get-modified-packages, which does not exist in that workflow, so it never ran. Fix the condition, so the source build takes priority over released Debian packages in the full builds too: - ci(build-and-test-reusable): gate the Debian package removal on get-self-packages autoware_universe#13668
- Check other repositories for the
launch_testing3.4.12 and 3.4.13 bug, which makes pytest ignorenorecursedirs,--ignoreandcollect_ignoreon Jazzy. A scan of all 141 non-archived repositories found onlysimulator_compatibility_testinautoware_tools, fixed in step 1.autoware_carla_interface_v2already works around it. -
colcon-test: on jazzy,colcon lcov-result --filterlogslcov: ERROR: 'exclude' pattern '*/examples/*' is unused.in repositories withoutexamplesfolders. lcov still wrote the filtered file, but ignoringunusedmakes it safe. Released inv1.70.1on 2026-11-24: - fix(colcon-test): ignore unused lcov filter patterns on lcov 2.x autoware-github-actions#441
- https://github.com/autowarefoundation/autoware-github-actions/releases/tag/v1.70.1
-
autoware_rviz_plugins: move its localcodecov.yamlto the sync list. The sync bot PR that followed only added the synced header: - ci(sync-files): sync codecov.yaml autoware_rviz_plugins#55
- chore: sync files autoware_rviz_plugins#56
- Message-only repositories (
autoware_msgs,autoware_adapi_msgs,autoware_internal_msgs) upload an lcov file that the*/build/*filter emptied, so Codecov marks every uploaderror. The fix skips an lcov file without source files. Merged on 2026-11-24. Since then, the jazzy jobs of these repositories skip the upload: - fix(colcon-test): do not report an lcov file without source files autoware-github-actions#443
- Release autoware-github-actions after fix(colcon-test): measure the installed Python modules of ament_cmake packages autoware-github-actions#442 and fix(colcon-test): do not report an lcov file without source files autoware-github-actions#443 merge, with a
vtag such asv1.70.2, so thatv1picks them up. Released inv1.70.2on 2026-11-24: - https://github.com/autowarefoundation/autoware-github-actions/releases/tag/v1.70.2
- Deactivate the repositories in Codecov that get no more uploads. Done on 2026-11-26:
autoware_msgs,autoware_adapi_msgsandautoware_internal_msgs. Their last upload, from 2026-11-24, keeps the stateerror, and no new upload replaces it.autoware_common(archived),sample_vehicle_launch,sample_sensor_kit_launch,autoware_individual_params,itri_bus_sensor_kit,awf_reference_vehicle_launchandawf_reference_sensor_kit_launch. They have no Codecov data since 2025 or earlier.
Merged PRs that led to this setup
- ci(codecov.yaml): make ci succeed regardless of coverage autoware_universe#7793
- ci(codecov): disable search and bump to v6 autoware_universe#12417
- ci(codecov): limit differential upload to jazzy-cuda and disable global carryforward autoware_universe#12418
- ci(codecov): add upload-coverage param to limit coverage uploads autoware_universe#12422
- ci(codecov): disable gcov plugin to speed up uploads autoware_universe#12427
- ci(codecov): unify flags and enable carryforward on full-suite autoware_universe#12430
- ci(codecov): upload differential coverage flagless to preserve carryforward autoware_universe#13006
This issue was written with Claude Code, from an audit of the workflows, CI logs and Codecov data of the repositories above.
Activity