Skip to content

github/workflows: Add codecov to publish workflow#5871

Merged
eriknordmark merged 2 commits intolf-edge:masterfrom
rene:add-codevcov-pub
May 5, 2026
Merged

github/workflows: Add codecov to publish workflow#5871
eriknordmark merged 2 commits intolf-edge:masterfrom
rene:add-codevcov-pub

Conversation

@rene
Copy link
Copy Markdown
Contributor

@rene rene commented Apr 26, 2026

Description

Codecov action on go-tests doesn't upload results since a token is required. As a consequence, the action will not have updated results to compare. This commit introduces the codecov in the publish workflow. It will run go-tests and upload the results with the token provided in the repository secrets. Thus, the codecov from regular go-tests will be able to fetch updated results.

Partially tested on: https://github.com/rene/eve/actions/runs/24932456960/job/73012348318#step:9:1

How to test and validate this PR

Run publish workflow.

Changelog notes

None.

PR Backports

  • 16.0-stable
  • 14.5-stable
  • 13.4-stable

Checklist

  • I've provided a proper description
  • I've added the proper documentation
  • I've tested my PR on amd64 device
  • I've tested my PR on arm64 device
  • I've written the test verification instructions
  • I've set the proper labels to this PR
  • I've checked the boxes above, or I've provided a good reason why I didn't
    check them.

@rene rene added the stable Should be backported to stable release(s) label Apr 26, 2026
@rene rene marked this pull request as draft April 26, 2026 10:48
@github-actions github-actions Bot requested a review from uncleDecart April 26, 2026 10:49
Codecov action on go-tests doesn't upload results since a token is
required. As a consequence, the action will not have updated results to
compare. This commit introduces the codecov in the publish workflow. It
will run go-tests and upload the results with the token provided in the
repository secrets. Thus, the codecov from regular go-tests will be able to
fetch updated results.

Signed-off-by: Renê de Souza Pinto <rene@renesp.com.br>
@rene rene force-pushed the add-codevcov-pub branch 5 times, most recently from 54ffc61 to 26d3509 Compare April 26, 2026 12:37
Fix actionlint errors on publish.yml.

Signed-off-by: Renê de Souza Pinto <rene@renesp.com.br>
@rene rene force-pushed the add-codevcov-pub branch from 26d3509 to fa2ef2c Compare April 26, 2026 17:44
@rene rene requested a review from rucoder April 26, 2026 18:05
@rene rene marked this pull request as ready for review April 27, 2026 05:35
docker rmi -f $(docker image ls -q) || :
docker system prune -f -a || :
docker rm -f $(docker ps -aq) && docker volume rm -f $(docker volume ls -q) || :
docker system prune -f -a --volumes
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does --volumes prune containers or do you also need a docker system prune -f?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@eriknordmark , I'm just porting the commands we use on build workflow: e471303

After the fixes on linuxkit I think these are good enough. It works for the build workflow and on a partial test it also works for publish on my repo.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok

Comment on lines +282 to +284
make clean
docker system prune -f -a --volumes
rm -rf ~/.linuxkit
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The original code ignored any failures. Don't we still need such ignore here and in the other cleanup code?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As I said on the other comment, I don't think we need to ignore after the linuxkit fixes. The commands are executed fine now.

Copy link
Copy Markdown
Contributor

@eriknordmark eriknordmark left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@rene see comments and questions.
Kicking off any remaining tests.

@eriknordmark eriknordmark merged commit da69629 into lf-edge:master May 5, 2026
27 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

stable Should be backported to stable release(s)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants