Thanks to visit codestin.com
Credit goes to github.com

Skip to content

🐛 Ease CI requirements for go-verdiff and codecov #1955

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

Merged
merged 1 commit into from
May 7, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions .github/workflows/go-verdiff.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
name: go-verdiff
on:
pull_request:
paths:
- '**.mod'
- '.github/workflows/go-verdiff.yaml'
Copy link
Contributor

Choose a reason for hiding this comment

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

We should only run it when we change the go,mod and the action itself right?

Copy link
Contributor

Choose a reason for hiding this comment

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

The problem is that GHA conditional stuff by path doesn't seem to align with prow/tide's idea of optional. So when there aren't changes in the path tripwires, tide waits forever for status that will never come (since the GHA doesn't run).

Copy link
Contributor

Choose a reason for hiding this comment

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

I would personally prefer that we find a way to make prow better-informed about conditionality so that we could continue doing targeted CI upstream, which generally makes sense.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It's causing problems when it's a required test; it doesn't provide any results. So, we need to have it run all the time if we want to make it a required test.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

In other words, "This is a required test, but oh, I'm only supposed to run it when these files are changed." So, unless those file are changed, it doesn't run, doesn't generate any results, and thus the CI hangs waiting for it.

Copy link
Contributor

Choose a reason for hiding this comment

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

/lgtm
/approve

branches:
- main
jobs:
Expand Down
5 changes: 5 additions & 0 deletions codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ codecov:
# Configure the paths to include in coverage reports.
# Exclude documentation, YAML configurations, and test files.
coverage:
status:
project:
default:
target: auto
threshold: 2%
paths:
- "api/"
- "cmd/"
Expand Down