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

ci: codecov "patch" check #6150

Merged
merged 2 commits into from
Dec 4, 2024
Merged

ci: codecov "patch" check #6150

merged 2 commits into from
Dec 4, 2024

Conversation

justinmk3
Copy link
Contributor

@justinmk3 justinmk3 commented Dec 4, 2024

Problem

  • codecov is always skipped in github actions:
    • image
  • We have a bot that attempts to remind contributors about adding tests, but it gets ignored.

Solution

  • Fix the condition: cec8218
  • Reintroduce the codecov "patch" check.

  • Treat all work as PUBLIC. Private feature/x branches will not be squash-merged at release time.
  • Your code changes must meet the guidelines in CONTRIBUTING.md.

License: I confirm that my contribution is made under the terms of the Apache 2.0 license.

@justinmk3 justinmk3 requested a review from a team as a code owner December 4, 2024 21:29

This comment was marked as resolved.

Problem:
Codecov doesn't run in Github Actions. This is because:
- The `github.ref == 'master'` condition is incorrect. We want the
  _target_ branch, not the source branch.
- The `|| github.event_name == 'pull_request'` condition was removed in
  034257e.

Solution:
Fix the condition. Note that `github.base_ref` is only defined for pull
requests, so we require `github.event_name == 'pull_request'`.
@justinmk3 justinmk3 force-pushed the fixcodecov branch 2 times, most recently from d3b8b07 to a3c0578 Compare December 4, 2024 22:58
Problem:
- We have a bot that attempts to remind contributors about adding tests,
  but it gets ignored.

Solution:
- Reintroduce the codecov "patch" check.
- Update/fix some other details in the codecov config.
@justinmk3 justinmk3 merged commit ffd94b4 into aws:master Dec 4, 2024
9 of 16 checks passed
@justinmk3 justinmk3 deleted the fixcodecov branch December 4, 2024 23:24
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