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

Reduce warnings in GitHub workflows #9520

Merged
merged 1 commit into from
May 9, 2024
Merged

Reduce warnings in GitHub workflows #9520

merged 1 commit into from
May 9, 2024

Conversation

flodolo
Copy link
Collaborator

@flodolo flodolo commented May 9, 2024

There are currently over 100 warnings in checks, mostly due to obsolete GitHub actions.

@flodolo flodolo force-pushed the update_workflows branch 3 times, most recently from cc7c4ff to c4fdc3f Compare May 9, 2024 08:18
@@ -167,7 +167,7 @@ jobs:
-o ${{ runner.temp }}/artifacts/functional_lcov.info

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@v4
Copy link
Collaborator Author

@flodolo flodolo May 9, 2024

Choose a reason for hiding this comment

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

Apparently Codecov requires a token: codecov/codecov-action#1274 (comment)

Copy link
Collaborator Author

@flodolo flodolo May 9, 2024

Choose a reason for hiding this comment

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

Someone needs to set up a secret (I have access to the key in Codecov, but not this repo).
https://docs.codecov.com/docs/adding-the-codecov-token#github-actions

Copy link
Collaborator

Choose a reason for hiding this comment

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

Honestly, we should just strip out the codecov checks, they haven't worked since Raphael left the team.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Let me know if I should remove these steps, or merge this as is ;-)

Copy link
Collaborator

Choose a reason for hiding this comment

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

Merge it as-is. I can follow up with another PR to strip out the codecov stuff.

@flodolo flodolo force-pushed the update_workflows branch 3 times, most recently from b74147e to bfc557a Compare May 9, 2024 09:03
@flodolo
Copy link
Collaborator Author

flodolo commented May 9, 2024

No files were found with the provided path: /Users/runner/work/_temp/artifacts. No artifacts will be uploaded.

This error is not due to updates, it's been there all the time (macOS tests).

It's possible to set the action to not produce warnings, but someone needs to confirm if that's wanted behavior or not (no idea what should be in these folders).

@flodolo flodolo changed the title Update GitHub action versions to reduce warnings Reduce warnings in GitHub workflows May 9, 2024
@@ -130,7 +132,7 @@ jobs:
MVPN_BIN: ./build/dummyvpn

- name: Uploading artifacts
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I couldn't help noticing that this looks very similar to the Linux workflow, which doesn't fail.

That workflow has an additional step though, using the same artifacts folder, so that might be the reason?

      - name: Upload coverage to Codecov
        uses: codecov/codecov-action@v4
        if: steps.generateGrcov.outcome == 'success'
        with:
          directory: .
          flags: functional_tests
          name: codecov-poc
          files: ${{ runner.temp }}/artifacts/functional_lcov.info
          verbose: true

@flodolo flodolo force-pushed the update_workflows branch from bfc557a to 324e55e Compare May 9, 2024 12:39
@flodolo flodolo force-pushed the update_workflows branch from 324e55e to 2b2a097 Compare May 9, 2024 13:10
Copy link
Collaborator

@oskirby oskirby left a comment

Choose a reason for hiding this comment

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

This all looks like positive changes to me!

@flodolo flodolo merged commit 54151d9 into main May 9, 2024
121 checks passed
@flodolo flodolo deleted the update_workflows branch May 9, 2024 17:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants