Skip to content

Conversation

dtfranz
Copy link
Contributor

@dtfranz dtfranz commented Aug 13, 2025

Description

Moves the test utils to internal/. This prevents them from being exported unintentionally and prevents go-apidiff from firing against test util code.

Inspired by this comment.

Reviewer Checklist

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

@dtfranz dtfranz requested a review from a team as a code owner August 13, 2025 08:07
@openshift-ci openshift-ci bot requested review from oceanc80 and perdasilva August 13, 2025 08:07
@netlify
Copy link

netlify bot commented Aug 13, 2025

Deploy Preview for olmv1 ready!

Name Link
🔨 Latest commit 1bbf71f
🔍 Latest deploy log https://app.netlify.com/projects/olmv1/deploys/689cd74b78599a0009d7ceba
😎 Deploy Preview https://deploy-preview-2148--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 project configuration.

@dtfranz dtfranz force-pushed the internalize-test-util branch from 0a36292 to 9a6880f Compare August 13, 2025 08:12
@dtfranz
Copy link
Contributor Author

dtfranz commented Aug 13, 2025

The go-apidiff check will naturally fail here and will need an override for this to merge.

@codecov
Copy link

codecov bot commented Aug 13, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 72.75%. Comparing base (b9b5a7e) to head (1bbf71f).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2148      +/-   ##
==========================================
+ Coverage   72.73%   72.75%   +0.01%     
==========================================
  Files          79       79              
  Lines        7340     7340              
==========================================
+ Hits         5339     5340       +1     
+ Misses       1654     1653       -1     
  Partials      347      347              
Flag Coverage Δ
e2e 44.38% <ø> (?)
experimental-e2e 54.91% <ø> (ø)
unit 58.24% <ø> (+0.02%) ⬆️

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.

Copy link
Contributor

@camilamacedo86 camilamacedo86 left a comment

Choose a reason for hiding this comment

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

That os great 👍

/lgtm

/overwrite go-apidiff

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Aug 13, 2025
@dtfranz dtfranz force-pushed the internalize-test-util branch from 9a6880f to bdbadaf Compare August 13, 2025 08:35
@openshift-ci openshift-ci bot removed the lgtm Indicates that a PR is ready to be merged. label Aug 13, 2025
@tmshort
Copy link
Contributor

tmshort commented Aug 13, 2025

/lgtm
/approve

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Aug 13, 2025
@openshift-ci
Copy link

openshift-ci bot commented Aug 13, 2025

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: 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:

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

@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Aug 13, 2025
@tmshort tmshort force-pushed the internalize-test-util branch from bdbadaf to 1f927ae Compare August 13, 2025 17:53
@openshift-ci openshift-ci bot removed the lgtm Indicates that a PR is ready to be merged. label Aug 13, 2025
@tmshort
Copy link
Contributor

tmshort commented Aug 13, 2025

I had to rebase...

Moves the test utils package to internal/

Signed-off-by: Daniel Franz <[email protected]>
@tmshort tmshort force-pushed the internalize-test-util branch from 1f927ae to 1bbf71f Compare August 13, 2025 18:19
@camilamacedo86
Copy link
Contributor

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Aug 13, 2025
@tmshort tmshort closed this Aug 13, 2025
@tmshort tmshort reopened this Aug 13, 2025
@grokspawn
Copy link
Contributor

/override go-apidiff

@openshift-ci
Copy link

openshift-ci bot commented Aug 13, 2025

@grokspawn: Overrode contexts on behalf of grokspawn: go-apidiff

In response to this:

/override go-apidiff

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@openshift-merge-bot openshift-merge-bot bot merged commit 3ad6225 into operator-framework:main Aug 13, 2025
48 of 53 checks passed
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.

4 participants