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

NO-ISSUE: Allow use of 'envtest' #7100

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jhernand
Copy link
Contributor

This patch prepares the project so that tests will be able to use the 'envtest' package.

List all the issues related to this PR

https://issues.redhat.com/browse/MGMT-19120

  • New Feature
  • Enhancement
  • Bug fix
  • Tests
  • Documentation
  • CI/CD

What environments does this code impact?

  • Automation (CI, tools, etc)
  • Cloud
  • Operator Managed Deployments
  • None

How was this code tested?

  • assisted-test-infra environment
  • dev-scripts environment
  • Reviewer's test appreciated
  • Waiting for CI to do a full test run
  • Manual (Elaborate on how it was tested)
  • No tests needed

Checklist

  • Title and description added to both, commit and PR.
  • Relevant issues have been associated (see CONTRIBUTING guide)
  • This change does not require a documentation update (docstring, docs, README, etc)
  • Does this change include unit-tests (note that code changes require unit-tests)

Reviewers Checklist

  • Are the title and description (in both PR and commit) meaningful and clear?
  • Is there a bug required (and linked) for this change?
  • Should this PR be backported?

@openshift-ci-robot openshift-ci-robot added the jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. label Dec 16, 2024
@openshift-ci-robot
Copy link

@jhernand: This pull request explicitly references no jira issue.

In response to this:

This patch prepares the project so that tests will be able to use the 'envtest' package.

List all the issues related to this PR

https://issues.redhat.com/browse/MGMT-19120

  • New Feature
  • Enhancement
  • Bug fix
  • Tests
  • Documentation
  • CI/CD

What environments does this code impact?

  • Automation (CI, tools, etc)
  • Cloud
  • Operator Managed Deployments
  • None

How was this code tested?

  • assisted-test-infra environment
  • dev-scripts environment
  • Reviewer's test appreciated
  • Waiting for CI to do a full test run
  • Manual (Elaborate on how it was tested)
  • No tests needed

Checklist

  • Title and description added to both, commit and PR.
  • Relevant issues have been associated (see CONTRIBUTING guide)
  • This change does not require a documentation update (docstring, docs, README, etc)
  • Does this change include unit-tests (note that code changes require unit-tests)

Reviewers Checklist

  • Are the title and description (in both PR and commit) meaningful and clear?
  • Is there a bug required (and linked) for this change?
  • Should this PR be backported?

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 openshift-eng/jira-lifecycle-plugin repository.

@openshift-ci openshift-ci bot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Dec 16, 2024
@openshift-ci openshift-ci bot requested review from pastequo and tsorya December 16, 2024 16:20
@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Dec 16, 2024
@jhernand
Copy link
Contributor Author

/test edge-unit-test

@jhernand
Copy link
Contributor Author

/retest-required

Copy link

codecov bot commented Dec 17, 2024

Codecov Report

Attention: Patch coverage is 34.21053% with 25 lines in your changes missing coverage. Please review.

Project coverage is 67.53%. Comparing base (80007d2) to head (37ca941).
Report is 2 commits behind head on master.

Files with missing lines Patch % Lines
internal/testing/envtest.go 34.21% 24 Missing and 1 partial ⚠️
Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #7100      +/-   ##
==========================================
- Coverage   67.73%   67.53%   -0.21%     
==========================================
  Files         293      296       +3     
  Lines       39925    40079     +154     
==========================================
+ Hits        27042    27066      +24     
- Misses      10440    10572     +132     
+ Partials     2443     2441       -2     
Files with missing lines Coverage Δ
internal/testing/envtest.go 34.21% <34.21%> (ø)

... and 5 files with indirect coverage changes

@jhernand jhernand force-pushed the allow_use_of_envtest branch 2 times, most recently from 9f5d930 to d65e46a Compare December 17, 2024 10:20
@paul-maidment
Copy link
Contributor

I'm cool with this being a 'NO-ISSUE' but would love more context on what you have planned.

Looks like integration tests, somewhere between unit and subsystem?

@jhernand
Copy link
Contributor Author

@paul-maidment I need/want this for the tests that I am adding in #7090. I'd call those are unit tests, in the same sense that tests that use a database are unit tests, only that here the underlying infrastructure is a Kubernetes API server instead of a database. But I am fine if we want to call them "integration" or anything else.

@jhernand jhernand force-pushed the allow_use_of_envtest branch 2 times, most recently from 38958c1 to 0a1a263 Compare December 18, 2024 07:48
This patch prepares the project so that tests will be able to use the
'envtest' package.

Related: https://issues.redhat.com/browse/MGMT-19120
Signed-off-by: Juan Hernandez <[email protected]>
@jhernand jhernand force-pushed the allow_use_of_envtest branch from 0a1a263 to 37ca941 Compare December 18, 2024 07:49
@rccrdpccl
Copy link
Contributor

/lgtm

great addition ❤️

@rccrdpccl
Copy link
Contributor

/approve

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Dec 18, 2024
Copy link

openshift-ci bot commented Dec 18, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: jhernand, rccrdpccl

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-robot
Copy link

/retest-required

Remaining retests: 0 against base HEAD 88ff532 and 2 for PR HEAD 37ca941 in total

@paul-maidment
Copy link
Contributor

/test okd-scos-e2e-aws-ovn

@openshift-ci-robot
Copy link

/retest-required

Remaining retests: 0 against base HEAD 88ff532 and 2 for PR HEAD 37ca941 in total

Copy link

openshift-ci bot commented Dec 18, 2024

@jhernand: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
ci/prow/okd-scos-e2e-aws-ovn 37ca941 link false /test okd-scos-e2e-aws-ovn

Full PR test history. Your PR dashboard.

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. I understand the commands that are listed here.

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. jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. lgtm Indicates that a PR is ready to be merged. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants