-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
fix(archive): upsert archive + ci: Pin images on CI, add readiness probes, clean-up logging and other tweaks #2038
Conversation
Codecov Report
@@ Coverage Diff @@
## master #2038 +/- ##
========================================
Coverage ? 8.78%
========================================
Files ? 61
Lines ? 34575
Branches ? 0
========================================
Hits ? 3036
Misses ? 31148
Partials ? 391
Continue to review full report at Codecov.
|
Co-Authored-By: Bot from GolangCI <42910462+golangcibot@users.noreply.github.com>
@@ -69,7 +69,33 @@ func (r *workflowArchive) ArchiveWorkflow(wf *wfv1.Workflow) error { | |||
}, | |||
Workflow: string(workflow), | |||
}) | |||
return err | |||
if err != nil { | |||
if isDuplicateKeyError(err) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is an actual code change
@@ -73,13 +73,25 @@ func (s *E2ESuite) TearDownSuite() { | |||
func (s *E2ESuite) BeforeTest(_, _ string) { | |||
s.Diagnostics = &Diagnostics{} | |||
|
|||
// delete all cron workflows | |||
cronList, err := s.cronClient.List(metav1.ListOptions{LabelSelector: label}) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
let deletes crons before workflows, in case one get scheduled
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice catch here
@@ -63,6 +62,12 @@ func (g *Given) Workflow(text string) *Given { | |||
g.t.Fatal(err) | |||
} | |||
} | |||
if g.wf.GetLabels() == nil { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not all wfs were getting labelled - this fixes that
@@ -566,7 +566,7 @@ func (s *ArgoServerSuite) TestArtifactServer() { | |||
Expect(). | |||
Status(200). | |||
Body(). | |||
Contains("😀 Hello Argo!") | |||
Contains(":) Hello Argo!") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
MySQL does not appear to have good emoticon support
@@ -73,13 +73,25 @@ func (s *E2ESuite) TearDownSuite() { | |||
func (s *E2ESuite) BeforeTest(_, _ string) { | |||
s.Diagnostics = &Diagnostics{} | |||
|
|||
// delete all cron workflows | |||
cronList, err := s.cronClient.List(metav1.ListOptions{LabelSelector: label}) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice catch here
@@ -48,7 +48,7 @@ func (s *SmokeSuite) TestWorkflowTemplateBasic() { | |||
When(). | |||
CreateWorkflowTemplates(). | |||
SubmitWorkflow(). | |||
WaitForWorkflow(30 * time.Second). | |||
WaitForWorkflow(60 * time.Second). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we're increasing the time here we should make sure we are also increasing it on the Makefile (go test ...
)
Checklist:
"fix(controller): Updates such and such. Fixes #1234"
.