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: Make e2e more robust #5277

Merged
merged 1 commit into from
Mar 3, 2021
Merged

test: Make e2e more robust #5277

merged 1 commit into from
Mar 3, 2021

Conversation

alexec
Copy link
Contributor

@alexec alexec commented Mar 3, 2021

No description provided.

@alexec alexec requested a review from simster7 March 3, 2021 16:21
@alexec alexec marked this pull request as ready for review March 3, 2021 17:17
test/e2e/fixtures/e2e_suite.go Outdated Show resolved Hide resolved
Signed-off-by: Alex Collins <[email protected]>
Copy link
Member

@terrytangyuan terrytangyuan left a comment

Choose a reason for hiding this comment

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

Looks great!

@@ -74,9 +76,27 @@ func (s *E2ESuite) BeforeTest(string, string) {
s.DeleteResources()
}

func (s *E2ESuite) AfterTest(suiteName, testName string) {
if s.T().Failed() { // by default, we don't get good logging at test end
Copy link
Member

Choose a reason for hiding this comment

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

The lack of logging is definitely a pain. I had to manually modify the scripts to print out the logs for failed workflows in the past.

@alexec alexec merged commit eaf25ac into argoproj:master Mar 3, 2021
@alexec alexec deleted the robust branch March 3, 2021 19:03
This was referenced Mar 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants