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

WINC-607: [e2e] Modularize BYOH configuration test #865

Merged

Conversation

jrvaldes
Copy link
Contributor

This commit modularizes the testBYOHConfiguration test, so that
it is easy to maintain and can be extended. This is a pre-work
to introduce support for platform=none.

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Jan 13, 2022

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

@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 Jan 13, 2022
@jrvaldes
Copy link
Contributor Author

/test lint

@jrvaldes
Copy link
Contributor Author

/test unit

@jrvaldes
Copy link
Contributor Author

/test azure-e2e-operator

}

// configureBYOHWithMachineSets configures BYOH instances using MachineSets
func (tc *testContext) configureBYOHWithMachineSets() error {
Copy link
Contributor

Choose a reason for hiding this comment

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

maybe rename this to something like newBYOHConfigMapFromMachineSet?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Not sure about that, do you anticipate newBYOHConfigMapFromMachineSet to return a reference of the windows-instances ConfigMap?

Copy link
Contributor

Choose a reason for hiding this comment

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

No, I'm just thinking that configureBYOHWithMachineSets doesn't really capture what the function is doing. The configuration of BYOH instances will be done by WMCO, this just enables it.

Alternatively maybe createBYOHConfigMapFromMachineSet?

Copy link
Contributor Author

@jrvaldes jrvaldes Jan 18, 2022

Choose a reason for hiding this comment

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

Makes sense. Updated to provisionBYOHConfigMapWithMachineSet in 3f4f800 .
This function provisions the given number of BYOH instances and creates the windows-instances ConfigMap with the instances information.

PTAL

})
}

// configureBYOHWithMachineSets configures BYOH instances using MachineSets
Copy link
Contributor

Choose a reason for hiding this comment

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

This function will prevent Machine CSRs from being approved in the future, right?
Lets make sure thats captured in the function comment.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

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.

Addressed in 26df7d8

@jrvaldes jrvaldes changed the title [e2e] Modularize BYOH configuration test WINC-607: [e2e] Modularize BYOH configuration test Jan 13, 2022
@jrvaldes jrvaldes force-pushed the e2e-modularize-boyh-creation branch 2 times, most recently from 26df7d8 to 3f4f800 Compare January 18, 2022 21:43
@jrvaldes
Copy link
Contributor Author

/test azure-e2e-operator

@jrvaldes jrvaldes requested a review from sebsoto January 18, 2022 21:46
return tc.createWindowsInstanceConfigMap(machines)
}

// disableClusterMachineApprover disables the Cluster Machine Approver, by scaling down Cluster Version Operator and
Copy link
Contributor

Choose a reason for hiding this comment

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

LGTM though this will probably need to be rebased once #873 merges.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Correct

@openshift-ci openshift-ci bot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Jan 21, 2022
This commit modularizes the testBYOHConfiguration test, so that
it is easy to maintain and can be extended. This is a pre-work
to introduce support for platform=none.
@openshift-ci openshift-ci bot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Jan 21, 2022
@jrvaldes
Copy link
Contributor Author

Rebased with #873

@jrvaldes
Copy link
Contributor Author

/test azure-e2e-operator

@jrvaldes
Copy link
Contributor Author

/test lint

@jrvaldes
Copy link
Contributor Author

/test unit

@jrvaldes jrvaldes marked this pull request as ready for review January 21, 2022 03:04
@openshift-ci openshift-ci bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Jan 21, 2022
Copy link
Contributor

@saifshaikh48 saifshaikh48 left a comment

Choose a reason for hiding this comment

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

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Jan 21, 2022
@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jan 24, 2022
@jrvaldes
Copy link
Contributor Author

@jrvaldes: #865 failed to apply on top of branch "release-4.8":

Applying: Modularize BYOH configuration test
Using index info to reconstruct a base tree...
M	test/e2e/create_test.go
Falling back to patching base and 3-way merge...
Auto-merging test/e2e/create_test.go
CONFLICT (content): Merge conflict in test/e2e/create_test.go
error: Failed to merge in the changes.
hint: Use 'git am --show-current-patch=diff' to see the failed patch
Patch failed at 0001 Modularize BYOH configuration test
When you have resolved this problem, run "git am --continue".
If you prefer to skip this patch, run "git am --skip" instead.
To restore the original branch and stop patching, run "git am --abort".

Depends on #909

@jrvaldes
Copy link
Contributor Author

@jrvaldes: #865 failed to apply on top of branch "community-4.8":

Applying: Modularize BYOH configuration test
Using index info to reconstruct a base tree...
M	test/e2e/create_test.go
Falling back to patching base and 3-way merge...
Auto-merging test/e2e/create_test.go
CONFLICT (content): Merge conflict in test/e2e/create_test.go
error: Failed to merge in the changes.
hint: Use 'git am --show-current-patch=diff' to see the failed patch
Patch failed at 0001 Modularize BYOH configuration test
When you have resolved this problem, run "git am --continue".
If you prefer to skip this patch, run "git am --skip" instead.
To restore the original branch and stop patching, run "git am --abort".

Depends on #910

@jrvaldes
Copy link
Contributor Author

@jrvaldes: #865 failed to apply on top of branch "community-4.9":

Applying: Modularize BYOH configuration test
Using index info to reconstruct a base tree...
M	test/e2e/create_test.go
Falling back to patching base and 3-way merge...
Auto-merging test/e2e/create_test.go
CONFLICT (content): Merge conflict in test/e2e/create_test.go
error: Failed to merge in the changes.
hint: Use 'git am --show-current-patch=diff' to see the failed patch
Patch failed at 0001 Modularize BYOH configuration test
When you have resolved this problem, run "git am --continue".
If you prefer to skip this patch, run "git am --skip" instead.
To restore the original branch and stop patching, run "git am --abort".

Depends on #908

/cherry-pick community-4.9

#908 has merge

@openshift-cherrypick-robot

@jrvaldes: #865 failed to apply on top of branch "community-4.9":

Applying: Modularize BYOH configuration test
Using index info to reconstruct a base tree...
M	test/e2e/create_test.go
Falling back to patching base and 3-way merge...
Auto-merging test/e2e/create_test.go
CONFLICT (content): Merge conflict in test/e2e/create_test.go
error: Failed to merge in the changes.
hint: Use 'git am --show-current-patch=diff' to see the failed patch
Patch failed at 0001 Modularize BYOH configuration test
When you have resolved this problem, run "git am --continue".
If you prefer to skip this patch, run "git am --skip" instead.
To restore the original branch and stop patching, run "git am --abort".

In response to this:

@jrvaldes: #865 failed to apply on top of branch "community-4.9":

Applying: Modularize BYOH configuration test
Using index info to reconstruct a base tree...
M	test/e2e/create_test.go
Falling back to patching base and 3-way merge...
Auto-merging test/e2e/create_test.go
CONFLICT (content): Merge conflict in test/e2e/create_test.go
error: Failed to merge in the changes.
hint: Use 'git am --show-current-patch=diff' to see the failed patch
Patch failed at 0001 Modularize BYOH configuration test
When you have resolved this problem, run "git am --continue".
If you prefer to skip this patch, run "git am --skip" instead.
To restore the original branch and stop patching, run "git am --abort".

Depends on #908

/cherry-pick community-4.9

#908 has merge

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.

@jrvaldes jrvaldes deleted the e2e-modularize-boyh-creation branch February 24, 2022 17:19
@jrvaldes jrvaldes restored the e2e-modularize-boyh-creation branch February 25, 2022 19:17
@jrvaldes
Copy link
Contributor Author

@jrvaldes: #865 failed to apply on top of branch "community-4.9":

Applying: Modularize BYOH configuration test
Using index info to reconstruct a base tree...
M	test/e2e/create_test.go
Falling back to patching base and 3-way merge...
Auto-merging test/e2e/create_test.go
CONFLICT (content): Merge conflict in test/e2e/create_test.go
error: Failed to merge in the changes.
hint: Use 'git am --show-current-patch=diff' to see the failed patch
Patch failed at 0001 Modularize BYOH configuration test
When you have resolved this problem, run "git am --continue".
If you prefer to skip this patch, run "git am --skip" instead.
To restore the original branch and stop patching, run "git am --abort".

Depends on #908

/cherry-pick community-4.9

#908 has merge

@openshift-cherrypick-robot

@jrvaldes: #865 failed to apply on top of branch "community-4.9":

Applying: Modularize BYOH configuration test
Using index info to reconstruct a base tree...
M	test/e2e/create_test.go
Falling back to patching base and 3-way merge...
Auto-merging test/e2e/create_test.go
CONFLICT (content): Merge conflict in test/e2e/create_test.go
error: Failed to merge in the changes.
hint: Use 'git am --show-current-patch=diff' to see the failed patch
Patch failed at 0001 Modularize BYOH configuration test
When you have resolved this problem, run "git am --continue".
If you prefer to skip this patch, run "git am --skip" instead.
To restore the original branch and stop patching, run "git am --abort".

In response to this:

@jrvaldes: #865 failed to apply on top of branch "community-4.9":

Applying: Modularize BYOH configuration test
Using index info to reconstruct a base tree...
M	test/e2e/create_test.go
Falling back to patching base and 3-way merge...
Auto-merging test/e2e/create_test.go
CONFLICT (content): Merge conflict in test/e2e/create_test.go
error: Failed to merge in the changes.
hint: Use 'git am --show-current-patch=diff' to see the failed patch
Patch failed at 0001 Modularize BYOH configuration test
When you have resolved this problem, run "git am --continue".
If you prefer to skip this patch, run "git am --skip" instead.
To restore the original branch and stop patching, run "git am --abort".

Depends on #908

/cherry-pick community-4.9

#908 has merge

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.

@mansikulkarni96
Copy link
Member

/cherry-pick release-4.8

@openshift-cherrypick-robot

@mansikulkarni96: #865 failed to apply on top of branch "release-4.8":

Applying: Modularize BYOH configuration test
Using index info to reconstruct a base tree...
M	test/e2e/create_test.go
Falling back to patching base and 3-way merge...
Auto-merging test/e2e/create_test.go
CONFLICT (content): Merge conflict in test/e2e/create_test.go
error: Failed to merge in the changes.
hint: Use 'git am --show-current-patch=diff' to see the failed patch
Patch failed at 0001 Modularize BYOH configuration test
When you have resolved this problem, run "git am --continue".
If you prefer to skip this patch, run "git am --skip" instead.
To restore the original branch and stop patching, run "git am --abort".

In response to this:

/cherry-pick release-4.8

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.

@mansikulkarni96
Copy link
Member

/cherry-pick release-4.9

@openshift-cherrypick-robot

@mansikulkarni96: #865 failed to apply on top of branch "release-4.9":

Applying: Modularize BYOH configuration test
Using index info to reconstruct a base tree...
M	test/e2e/create_test.go
Falling back to patching base and 3-way merge...
Auto-merging test/e2e/create_test.go
CONFLICT (content): Merge conflict in test/e2e/create_test.go
error: Failed to merge in the changes.
hint: Use 'git am --show-current-patch=diff' to see the failed patch
Patch failed at 0001 Modularize BYOH configuration test
When you have resolved this problem, run "git am --continue".
If you prefer to skip this patch, run "git am --skip" instead.
To restore the original branch and stop patching, run "git am --abort".

In response to this:

/cherry-pick release-4.9

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.

@mansikulkarni96
Copy link
Member

/cherry-pick release-4.10

@openshift-cherrypick-robot

@mansikulkarni96: #865 failed to apply on top of branch "release-4.10":

Applying: Modularize BYOH configuration test
Using index info to reconstruct a base tree...
M	test/e2e/create_test.go
Falling back to patching base and 3-way merge...
Auto-merging test/e2e/create_test.go
CONFLICT (content): Merge conflict in test/e2e/create_test.go
error: Failed to merge in the changes.
hint: Use 'git am --show-current-patch=diff' to see the failed patch
Patch failed at 0001 Modularize BYOH configuration test
When you have resolved this problem, run "git am --continue".
If you prefer to skip this patch, run "git am --skip" instead.
To restore the original branch and stop patching, run "git am --abort".

In response to this:

/cherry-pick release-4.10

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.

@mansikulkarni96
Copy link
Member

/cherry-pick community-4.9

@openshift-cherrypick-robot

@mansikulkarni96: #865 failed to apply on top of branch "community-4.9":

Applying: Modularize BYOH configuration test
Using index info to reconstruct a base tree...
M	test/e2e/create_test.go
Falling back to patching base and 3-way merge...
Auto-merging test/e2e/create_test.go
CONFLICT (content): Merge conflict in test/e2e/create_test.go
error: Failed to merge in the changes.
hint: Use 'git am --show-current-patch=diff' to see the failed patch
Patch failed at 0001 Modularize BYOH configuration test
When you have resolved this problem, run "git am --continue".
If you prefer to skip this patch, run "git am --skip" instead.
To restore the original branch and stop patching, run "git am --abort".

In response to this:

/cherry-pick community-4.9

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.

@mansikulkarni96
Copy link
Member

/cherry-pick release-4.9

@openshift-cherrypick-robot

@mansikulkarni96: new pull request created: #950

In response to this:

/cherry-pick release-4.9

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.

@mansikulkarni96
Copy link
Member

/cherry-pick community-4.9

@openshift-cherrypick-robot

@mansikulkarni96: new pull request created: #951

In response to this:

/cherry-pick community-4.9

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.

@openshift-cherrypick-robot

@mansikulkarni96: #865 failed to apply on top of branch "release-4.8":

Applying: Modularize BYOH configuration test
Using index info to reconstruct a base tree...
M	test/e2e/create_test.go
Falling back to patching base and 3-way merge...
Auto-merging test/e2e/create_test.go
CONFLICT (content): Merge conflict in test/e2e/create_test.go
error: Failed to merge in the changes.
hint: Use 'git am --show-current-patch=diff' to see the failed patch
Patch failed at 0001 Modularize BYOH configuration test
When you have resolved this problem, run "git am --continue".
If you prefer to skip this patch, run "git am --skip" instead.
To restore the original branch and stop patching, run "git am --abort".

In response to this:

/cherry-pick release-4.8

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.

@mansikulkarni96
Copy link
Member

/cherry-pick community-4.8

@openshift-cherrypick-robot

@mansikulkarni96: new pull request created: #967

In response to this:

/cherry-pick community-4.8

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.

@mansikulkarni96
Copy link
Member

/cherry-pick release-4.8

@openshift-cherrypick-robot

@mansikulkarni96: new pull request created: #969

In response to this:

/cherry-pick release-4.8

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.

@jrvaldes jrvaldes deleted the e2e-modularize-boyh-creation branch March 17, 2022 20:06
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.

None yet

8 participants