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: Fixes various tests #2874

Merged
merged 6 commits into from
Apr 28, 2020
Merged

test: Fixes various tests #2874

merged 6 commits into from
Apr 28, 2020

Conversation

simster7
Copy link
Member

Fixes: #2623
Fixes: #2833
Fixes: #2620

@sonarcloud
Copy link

sonarcloud bot commented Apr 28, 2020

Kudos, SonarCloud Quality Gate passed!

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities (and Security Hotspot 0 Security Hotspots to review)
Code Smell A 0 Code Smells

0.0% 0.0% Coverage
0.0% 0.0% Duplication

@simster7 simster7 marked this pull request as ready for review April 28, 2020 22:03
@simster7 simster7 requested a review from alexec April 28, 2020 22:04
Copy link
Contributor

@alexec alexec left a comment

Choose a reason for hiding this comment

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

Rubber-stamp.

@simster7 simster7 merged commit e0ad7de into argoproj:master Apr 28, 2020
Joibel added a commit to Joibel/argo-workflows that referenced this pull request Jul 23, 2024
testify/suite breaks parallel cron testing which was introduced in argoproj#2118

The breakage probably happened in argoproj#2874

testify know this stretchr/testify#187 and
will not be fixing it.

The fix here is inspired by @Jerska in stretchr/testify#187 (comment)

It has a potential race but we won't be affected by it as all the
tests take time to run.

The tests are designed around running starting on a minute boundary
for reliabilty, and as we add more tests without this fix it
* increases overall reliability
* test-to-test runtime varies, changing the start time relative to a
minute boundary of a test, increasing uncertainty in how many
instances of a cron will run.

Tested locally by running the suite

Signed-off-by: Alan Clucas <[email protected]>
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.

Fix flakey test TestFunctionalSuite/TestStopBehavior Fix CronSuite Fix TestWorkflowSuspendResume
2 participants