Skip to content

Commit

Permalink
fix: don't print help for non-validation errors. Fixes argoproj#14234
Browse files Browse the repository at this point in the history
Signed-off-by: Koichi Shimada <[email protected]>
  • Loading branch information
jumpe1 committed Feb 28, 2025
1 parent f61838c commit c217e70
Showing 1 changed file with 9 additions and 12 deletions.
21 changes: 9 additions & 12 deletions test/e2e/cron_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,21 +21,18 @@ type CronSuite struct {
fixtures.E2ESuite
}

func (s *CronSuite) SetupSuite() {
s.E2ESuite.SetupSuite()
// Since tests run in parallel, delete all cron resources before the test suite is run
func (s *CronSuite) TearDownSubTest() {
// Delete all CronWorkflows after every subtest (as opposed to after each
// test, which is the default) to avoid workflows from accumulating and
// causing intermittent failures due to the controller reaching the
// parallelism limit. When that happens, workflows can be postponed long
// enough to reach the test timeout, and you'll see the following in the logs:
// time="2025-02-23T06:11:00.023Z" level=info msg="Workflow processing has been postponed due to max parallelism limit" key=argo/test-cron-wf-succeed-1-1740291060
// time="2025-02-23T06:11:00.023Z" level=info msg="Updated phase -> Pending" namespace=argo workflow=test-cron-wf-succeed-1-1740291060
// time="2025-02-23T06:11:00.023Z" level=info msg="Updated message -> Workflow processing has been postponed because too many workflows are already running" namespace=argo workflow=test-cron-wf-succeed-1-1740291060
s.E2ESuite.DeleteResources()
}

func (s *CronSuite) BeforeTest(suiteName, testName string) {
s.E2ESuite.BeforeTest(suiteName, testName)
}

func (s *CronSuite) TearDownSuite() {
s.E2ESuite.DeleteResources()
s.E2ESuite.TearDownSuite()
}

func (s *CronSuite) TestBasic() {
s.Run("TestBasic", func() {
s.Given().
Expand Down

0 comments on commit c217e70

Please sign in to comment.