Skip to content

WIP: Fix OpenStack MachinePool unit tests#2244

Closed
2uasimojo wants to merge 1 commit intoopenshift:masterfrom
2uasimojo:HIVE-2476/openstack-mp-ut
Closed

WIP: Fix OpenStack MachinePool unit tests#2244
2uasimojo wants to merge 1 commit intoopenshift:masterfrom
2uasimojo:HIVE-2476/openstack-mp-ut

Conversation

@2uasimojo
Copy link
Member

@2uasimojo 2uasimojo commented Mar 19, 2024

The upstream installer MachineSet generator wants to make an actual API call to the OpenStack cloud to determine "trunk support" (whatever that may be). There's no good way to mock, fake, or work around this in unit tests. This commit proposes an upstream change to facilitate a workaround.

FOR COMMENT/REFERENCE ONLY. DO NOT MERGE.

Needed by HIVE-2476

@openshift-ci openshift-ci bot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Mar 19, 2024
@openshift-ci openshift-ci bot requested review from jstuever and lleshchi March 19, 2024 17:27
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Mar 19, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: 2uasimojo

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

The pull request process is described here

Details 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 Mar 19, 2024
The upstream installer MachineSet generator wants to make an actual API
call to the OpenStack cloud to determine "trunk support" (whatever that
may be). There's no good way to mock, fake, or work around this in unit
tests. This commit proposes an upstream change to facilitate a
workaround.

FOR COMMENT/REFERENCE ONLY. DO NOT MERGE.

Needed by HIVE-2476
@2uasimojo 2uasimojo force-pushed the HIVE-2476/openstack-mp-ut branch from 231e374 to 8f55de5 Compare March 19, 2024 19:27
@codecov
Copy link

codecov bot commented Mar 19, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 58.45%. Comparing base (fba8d52) to head (8f55de5).

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2244      +/-   ##
==========================================
+ Coverage   58.31%   58.45%   +0.13%     
==========================================
  Files         182      182              
  Lines       25692    25692              
==========================================
+ Hits        14982    15017      +35     
+ Misses       9451     9406      -45     
- Partials     1259     1269      +10     

see 1 file with indirect coverage changes

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Mar 19, 2024

@2uasimojo: 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/verify 8f55de5 link true /test verify

Full PR test history. Your PR dashboard.

Details

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

@2uasimojo
Copy link
Member Author

openshift/installer#8187 is a cleaner solution for the upstream part. Will keep this open for the hive side, which still has useful bits. More complete plan:

  • Wait for ⬆️
  • Revendor installer
  • Refactor hive mp controller to accommodate
  • Fix this unit test
  • Make this unit test moar bigger, including reproducing the problem in HIVE-2476
  • Fix it
  • Backport it

@2uasimojo
Copy link
Member Author

Superseded by #2251

@2uasimojo 2uasimojo closed this Mar 28, 2024
@2uasimojo 2uasimojo deleted the HIVE-2476/openstack-mp-ut branch March 28, 2024 21:36
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. do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant