Skip to content

test: Enhanced running in unstable environments #12966

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

Merged
merged 3 commits into from
Sep 15, 2022
Merged

test: Enhanced running in unstable environments #12966

merged 3 commits into from
Sep 15, 2022

Conversation

utam0k
Copy link
Contributor

@utam0k utam0k commented Sep 14, 2022

Description

Fix a failed of this job

Related Issue(s)

Relates #12248

How to test

Run the test

Release Notes

NONE

Documentation

Werft options:

  • /werft with-preview

@utam0k utam0k marked this pull request as ready for review September 15, 2022 11:10
Copy link
Contributor

@jenting jenting left a comment

Choose a reason for hiding this comment

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

I will not block this PR and see what's the nightly test result.

@@ -126,30 +118,47 @@ func runContextTests(t *testing.T, tests []ContextTest) {
{Name: "pvc", FF: "persistent_volume_claim"},
}

for _, ff := range ffs {
func() {
Copy link
Contributor

Choose a reason for hiding this comment

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

func() { } is redundant.

@@ -109,7 +138,7 @@ func TestPrebuildWorkspaceTaskFail(t *testing.T) {
t.Fatalf("cannot start workspace: %q", err)
}

t.Cleanup(func() {
defer func() {
Copy link
Contributor

Choose a reason for hiding this comment

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

Perhaps you could summarize when to use defer and when to use t.Cleanup.

@roboquat roboquat merged commit 6c669f7 into main Sep 15, 2022
@roboquat roboquat deleted the to/fix-test branch September 15, 2022 13:42
@loujaybee loujaybee added team: no-team Explicitly not a team related PR self-hosted team: workspace Issue belongs to the Workspace team and removed team: no-team Explicitly not a team related PR labels Sep 20, 2022
@roboquat roboquat added deployed: workspace Workspace team change is running in production deployed Change is completely running in production labels Sep 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
deployed: workspace Workspace team change is running in production deployed Change is completely running in production release-note-none self-hosted size/L team: workspace Issue belongs to the Workspace team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants