Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

common: update CODECOV workflow file #6084

Merged
merged 1 commit into from
May 10, 2024
Merged

common: update CODECOV workflow file #6084

merged 1 commit into from
May 10, 2024

Conversation

osalyk
Copy link
Contributor

@osalyk osalyk commented May 9, 2024

This change is Reviewable

@osalyk osalyk added sprint goal This pull request is part of the ongoing sprint no changelog Add to skip the changelog check on your pull request labels May 9, 2024
Copy link
Contributor

@janekmi janekmi left a comment

Choose a reason for hiding this comment

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

Reviewed 6 of 6 files at r1, all commit messages.
Reviewable status: all files reviewed, 3 unresolved discussions (waiting on @osalyk)


.github/workflows/scan_coverage.yml line 26 at r1 (raw file):

  TEST_BUILD:   debug
  FAULT_INJECTION: 1
  CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

I believe it is no longer necessary to be available as an environment variable since the run-coverage.sh script does not do an upload any more.


.github/workflows/scan_coverage.yml line 47 at r1 (raw file):

          root_dir: /home/runner/work/pmdk/pmdk/
          directory: /home/runner/work/pmdk/pmdk/
          verbose: true

I prefer to pass it explicitly instead of as an env. It is an unusual feature for an action and it is hard to track where the token comes from in this case.

Suggestion:

          token: ${{ secrets.CODECOV_TOKEN }}
          verbose: true

utils/docker/run-coverage.sh line 37 at r1 (raw file):

# prepare flag for codecov report to differentiate builds
flag=tests
[ -n "${GITHUB_ACTIONS}" ] && flag=GHA

It is not consumed anymore so no point in setting it here.

Copy link
Contributor Author

@osalyk osalyk left a comment

Choose a reason for hiding this comment

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

Reviewable status: 4 of 6 files reviewed, 3 unresolved discussions (waiting on @janekmi)


.github/workflows/scan_coverage.yml line 26 at r1 (raw file):

Previously, janekmi (Jan Michalski) wrote…

I believe it is no longer necessary to be available as an environment variable since the run-coverage.sh script does not do an upload any more.

Done.


.github/workflows/scan_coverage.yml line 47 at r1 (raw file):

Previously, janekmi (Jan Michalski) wrote…

I prefer to pass it explicitly instead of as an env. It is an unusual feature for an action and it is hard to track where the token comes from in this case.

Done.


utils/docker/run-coverage.sh line 37 at r1 (raw file):

Previously, janekmi (Jan Michalski) wrote…

It is not consumed anymore so no point in setting it here.

Done.

Copy link
Contributor

@grom72 grom72 left a comment

Choose a reason for hiding this comment

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

:lgtm:

Reviewed 4 of 6 files at r1, 2 of 2 files at r2, all commit messages.
Reviewable status: all files reviewed, 3 unresolved discussions (waiting on @janekmi)

Copy link
Contributor

@janekmi janekmi left a comment

Choose a reason for hiding this comment

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

:lgtm:

Reviewed 2 of 2 files at r2, all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @osalyk)

@janekmi janekmi merged commit 88db614 into master May 10, 2024
7 checks passed
@osalyk osalyk deleted the codecov_build branch May 10, 2024 10:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
no changelog Add to skip the changelog check on your pull request sprint goal This pull request is part of the ongoing sprint
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants