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

test: SANDBOX-629: refactor TestPromoteSpace #983

Conversation

rsoaresd
Copy link
Contributor

Description

When we create standalone spaces, we sporadically face flakiness since we currently do not make sure that the SpaceBinding is created along with Space. So, when we create SpaceBinding in a loop with space, we sporadically face flakiness because the space binding controller does not find the space at time - because the space is deleted by the space controller since it did not find the SpaceBinding at time- and for that reason it will delete the SpaceBinding and it will be not found.

To avoid it, we can remove unnecessary standalone space creation, which is the case of the TestPromoteSpace test.

Job example :

    host.go:2284: failed to find SpaceBinding
        
    space.go:56: 
        	Error Trace:	/tmp/toolchain-e2e/testsupport/space/space.go:56
        	            				/tmp/toolchain-e2e/testsupport/space/space.go:25
        	            				/tmp/toolchain-e2e/test/e2e/parallel/space_test.go:256
        	Error:      	Received unexpected error:
        	            	timed out waiting for the condition
        	Test:       	TestPromoteSpace

Issue ticket number and link

SANDBOX-629

Copy link
Contributor

@mfrancisc mfrancisc 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 tried to propose a small variation.

test/e2e/parallel/space_test.go Outdated Show resolved Hide resolved
Copy link
Collaborator

@MatousJobanek MatousJobanek 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, just one suggestion for simplification

test/e2e/parallel/space_test.go Outdated Show resolved Hide resolved
Copy link
Contributor

@mfrancisc mfrancisc left a comment

Choose a reason for hiding this comment

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

Nice job 👍

Thanks for addressing my comments.

@rsoaresd
Copy link
Contributor Author

rsoaresd commented Jun 4, 2024

/retest

SANDBOX-636

@rsoaresd
Copy link
Contributor Author

rsoaresd commented Jun 5, 2024

/retest

failed to wait for importing imagestreamtags on ci-op-8bmc4s90/stable

@rsoaresd rsoaresd marked this pull request as draft June 6, 2024 09:41
@rsoaresd rsoaresd marked this pull request as ready for review June 11, 2024 12:25
Copy link
Collaborator

@MatousJobanek MatousJobanek left a comment

Choose a reason for hiding this comment

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

Nice 👍

@rsoaresd
Copy link
Contributor Author

/retest

failed to wait for importing imagestreamtags on ci-op-dkmxr6b0/pipeline:ocp-4.12-upi-installer:

Copy link

sonarcloud bot commented Jun 11, 2024

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

Copy link

openshift-ci bot commented Jun 11, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: alexeykazakov, MatousJobanek, mfrancisc, rsoaresd

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

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

@alexeykazakov alexeykazakov merged commit 187ad84 into codeready-toolchain:master Jun 11, 2024
7 of 8 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