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

Conversation

tmshort
Copy link
Contributor

@tmshort tmshort commented May 7, 2025

  1. Remove path from now-required go-verdiff CI

We're experiencing a weird behavior with this CI being required, and running only on certain paths.

  1. Add a 2% threshold for codecov

Description

Reviewer Checklist

  • API Go Documentation
  • Tests: Unit Tests (and E2E Tests, if appropriate)
  • Comprehensive Commit Messages
  • Links to related GitHub Issue(s)

@tmshort tmshort requested a review from a team as a code owner May 7, 2025 14:24
Copy link

netlify bot commented May 7, 2025

Deploy Preview for olmv1 ready!

Name Link
🔨 Latest commit 67e13c8
🔍 Latest deploy log https://app.netlify.com/sites/olmv1/deploys/681b7c88e4d6630008eff4a7
😎 Deploy Preview https://deploy-preview-1955--olmv1.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@openshift-ci openshift-ci bot requested review from joelanford and oceanc80 May 7, 2025 14:24
@tmshort
Copy link
Contributor Author

tmshort commented May 7, 2025

/approve

@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label May 7, 2025
Copy link

codecov bot commented May 7, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 66.77%. Comparing base (28a40f8) to head (67e13c8).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1955   +/-   ##
=======================================
  Coverage   66.77%   66.77%           
=======================================
  Files          75       75           
  Lines        6335     6335           
=======================================
  Hits         4230     4230           
  Misses       1841     1841           
  Partials      264      264           
Flag Coverage Δ
e2e 45.21% <ø> (ø)
unit 56.36% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@tmshort tmshort enabled auto-merge May 7, 2025 14:58
@@ -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

1) Remove path from now-required go-verdiff CI

We're experiencing a weird behavior with this CI being required,
and running only on certain paths.

2) Add a 2% threshold for codecov

Signed-off-by: Todd Short <[email protected]>
@tmshort tmshort changed the title 🐛 Remove path from now-required go-verdiff CI 🐛 Ease CI requirements for go-verdiff and codecov May 7, 2025
@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label May 7, 2025
@tmshort tmshort disabled auto-merge May 7, 2025 15:31
@grokspawn
Copy link
Contributor

/lgtm
/approve

Copy link

openshift-ci bot commented May 7, 2025

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: camilamacedo86, grokspawn, tmshort

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:
  • OWNERS [camilamacedo86,grokspawn,tmshort]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@grokspawn grokspawn added this pull request to the merge queue May 7, 2025
@grokspawn grokspawn removed this pull request from the merge queue due to a manual request May 7, 2025
@openshift-merge-bot openshift-merge-bot bot merged commit bfac51c into operator-framework:main May 7, 2025
23 checks passed
@tmshort tmshort deleted the go-ver branch May 7, 2025 17:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants