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

Runtime 15 e2e #1043

Merged
merged 38 commits into from
Nov 15, 2024
Merged

Runtime 15 e2e #1043

merged 38 commits into from
Nov 15, 2024

Conversation

ranakan19
Copy link
Contributor

@ranakan19 ranakan19 commented Aug 28, 2024

Changes this PR includes:

  • Updates k8s dependencies to 0.27 and controller-runtime to v0.15.
  • With the update to controller-runtime v0.15 (changes in release detailed here), this PR has following changes to combat the breaking changes:
    - With the changes to rest mapper that provided client for discovery information to do REST mappings, breaks the use case of checking available APIs via k8s.io/apimachinery/pkg/api/errors.IsNotFound and k8s.io/apimachinery/pkg/api/meta.IsNoMatchError. This means can not directly check for those errors, but should expect server error. This only affected proxy tests and the tests now check for error contains. Can find more details in this issue
  • Poll is deprecated, so using the suggested replacement PollUntillContextTimeout instead
    - Tried to propogate the context from PollUntillContextTimeout to the api calls within the condition function but it fails withwould exceed context deadlineas the last error instead of the expected context deadline exceeded error. Please refer this comment for more details. And other PR which use the same solution of intentionally pass a separate context to api calls in the consition function.
    - PollUntillContextTimeout will no longer return ErrWaitTimeout - So replaces errTimeout checks with context deadline checks. [refer this PR for more information if needed]

Copy link

openshift-ci bot commented Aug 28, 2024

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

@@ -440,9 +440,10 @@ func (a *Awaitility) CreateNamespace(t *testing.T, name string) {
func (a *Awaitility) WaitForDeploymentToGetReady(t *testing.T, name string, replicas int, criteria ...DeploymentCriteria) *appsv1.Deployment {
t.Logf("waiting until deployment '%s' in namespace '%s' is ready", name, a.Namespace)
deployment := &appsv1.Deployment{}
err := wait.Poll(a.RetryInterval, 6*a.Timeout, func() (done bool, err error) {
err := wait.PollUntilContextTimeout(context.TODO(), a.RetryInterval, 6*a.Timeout, true, func(ctx context.Context) (done bool, err error) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Poll is deprecated

@@ -365,11 +364,12 @@ func TestProxyFlow(t *testing.T) {
require.NoError(t, err)
err = proxyCl.Create(context.TODO(), appToCreate)

// then
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This comment block is removed as it is no longer valid. Maintaining history here might be confusing

Copy link
Contributor

@alexeykazakov alexeykazakov left a comment

Choose a reason for hiding this comment

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

Looks good. I left a few minor comments though.

test/e2e/parallel/proxy_test.go Show resolved Hide resolved
test/e2e/parallel/proxy_test.go Show resolved Hide resolved
test/e2e/proxy_publicviewer_test.go Outdated Show resolved Hide resolved
test/e2e/proxy_publicviewer_test.go Show resolved Hide resolved
test/e2e/user_management_test.go Outdated Show resolved Hide resolved
Copy link
Contributor

@alexeykazakov alexeykazakov left a comment

Choose a reason for hiding this comment

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

Looks good! Thanks for addressing the comments.

test/e2e/user_management_test.go Outdated Show resolved Hide resolved
Copy link

openshift-ci bot commented Oct 8, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: alexeykazakov, ranakan19

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 [alexeykazakov,ranakan19]

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

Copy link

sonarcloud bot commented Oct 8, 2024

Copy link

sonarcloud bot commented Nov 14, 2024

@ranakan19 ranakan19 merged commit fcf8044 into codeready-toolchain:master Nov 15, 2024
8 of 9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants