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

docs: describe containerset retrystrategy and verify it works. Fixes: #11502 #12809

Merged
merged 66 commits into from
Apr 4, 2024

Conversation

shuangkun
Copy link
Member

Fixes #11502

Motivation

Show how containerset retrystrategy works.

Modifications

Verification

e2e test

@shuangkun shuangkun changed the title test: show how containerset retrystrategy works. Fixes: #11502 test: verify containerset retrystrategy is normal. Fixes: #11502 Mar 15, 2024
@shuangkun shuangkun marked this pull request as draft March 15, 2024 08:42
@shuangkun shuangkun force-pushed the addTestForContainerSetRetry branch from 143bd5a to 1752752 Compare March 15, 2024 08:51
@shuangkun shuangkun marked this pull request as ready for review March 15, 2024 09:28
@shuangkun shuangkun added area/templates/container-set area/retry-manual Manual workflow "Retry" Action (API/CLI/UI). See retryStrategy for template-level retries labels Mar 15, 2024
@agilgur5 agilgur5 changed the title test: verify containerset retrystrategy is normal. Fixes: #11502 test: verify containerset retrystrategy works. Fixes: #11502 Mar 15, 2024
Copy link
Member

@tczhao tczhao left a comment

Choose a reason for hiding this comment

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

@shuangkun
Copy link
Member Author

Maybe add a note here

so that user can understand the behaviour from docs instead of going through the issue and PR

Yes, it needs to be described more clearly in the comments and documentation. I will add more later. 🙏

@tczhao tczhao self-assigned this Mar 19, 2024
@shuangkun shuangkun force-pushed the addTestForContainerSetRetry branch from 1752752 to 4ca5dc2 Compare March 19, 2024 14:28
@shuangkun shuangkun force-pushed the addTestForContainerSetRetry branch from 4ca5dc2 to 465c5ec Compare March 19, 2024 14:58
Signed-off-by: shuangkun <[email protected]>
@shuangkun shuangkun force-pushed the addTestForContainerSetRetry branch 2 times, most recently from 0a7fe4c to 7ef20e6 Compare March 19, 2024 16:25
@shuangkun shuangkun changed the title test: verify containerset retrystrategy works. Fixes: #11502 fix(docs): verify containerset retrystrategy works. Fixes: #11502 Mar 19, 2024
Signed-off-by: shuangkun <[email protected]>
@shuangkun shuangkun force-pushed the addTestForContainerSetRetry branch from 7ef20e6 to e57439f Compare March 19, 2024 17:05
@shuangkun shuangkun changed the title fix(docs): verify containerset retrystrategy works. Fixes: #11502 fix(docs): describe containerset retrystrategy and verify it works. Fixes: #11502 Mar 19, 2024
Signed-off-by: shuangkun <[email protected]>
@shuangkun shuangkun requested a review from tczhao March 19, 2024 17:21
@shuangkun shuangkun force-pushed the addTestForContainerSetRetry branch from 6bdf3fe to 157b0fd Compare March 19, 2024 17:42
docs/container-set-template.md Outdated Show resolved Hide resolved
docs/container-set-template.md Outdated Show resolved Hide resolved
docs/fields.md Outdated Show resolved Hide resolved
Signed-off-by: shuangkun <[email protected]>
@shuangkun shuangkun force-pushed the addTestForContainerSetRetry branch from 157b0fd to 609b565 Compare March 20, 2024 03:47
Signed-off-by: shuangkun <[email protected]>
@shuangkun shuangkun requested a review from tczhao March 20, 2024 04:20
Copy link
Member

@tczhao tczhao left a comment

Choose a reason for hiding this comment

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

I should've caught this earlier, I think the test should be somewhere else instead of cli.
Imagine in CI when there's failure in cli test but totally unrelated to cli, this doesn't sound right.
What do you think?

@shuangkun shuangkun reopened this Mar 31, 2024
@shuangkun shuangkun closed this Mar 31, 2024
@shuangkun shuangkun reopened this Mar 31, 2024
@agilgur5
Copy link

agilgur5 commented Apr 3, 2024

/retest

#12864 has not been implemented yet, so that won't work yet.

@shuangkun shuangkun closed this 4 days ago
@shuangkun shuangkun reopened this 4 days ago

As I said in my previous comment, I will retry CI myself when this is ready to merge. No need to spend time getting E2Es to pass in the mean-time. Just need to make sure CI passes for docs + codegen for each change.

Copy link

@agilgur5 agilgur5 left a comment

Choose a reason for hiding this comment

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

A few final changes here to account for the differences between a template-level retryStrategy and the inner containerSet.retryStrategy as discussed in a previous in-line comment

docs/container-set-template.md Outdated Show resolved Hide resolved
docs/container-set-template.md Outdated Show resolved Hide resolved
docs/container-set-template.md Outdated Show resolved Hide resolved
pkg/apis/workflow/v1alpha1/container_set_template_types.go Outdated Show resolved Hide resolved
shuangkun and others added 7 commits April 4, 2024 08:19
Co-authored-by: Anton Gilgur <[email protected]>
Signed-off-by: shuangkun tian <[email protected]>
Co-authored-by: Anton Gilgur <[email protected]>
Signed-off-by: shuangkun tian <[email protected]>
Co-authored-by: Anton Gilgur <[email protected]>
Signed-off-by: shuangkun tian <[email protected]>
Signed-off-by: shuangkun <[email protected]>
Signed-off-by: shuangkun <[email protected]>
Signed-off-by: shuangkun <[email protected]>
@shuangkun shuangkun force-pushed the addTestForContainerSetRetry branch from e503aae to 87ac23d Compare April 4, 2024 01:08
shuangkun and others added 6 commits April 4, 2024 09:19
Signed-off-by: shuangkun <[email protected]>
Signed-off-by: shuangkun <[email protected]>
Signed-off-by: shuangkun <[email protected]>
Signed-off-by: shuangkun <[email protected]>
Signed-off-by: shuangkun <[email protected]>
@shuangkun shuangkun requested a review from agilgur5 April 4, 2024 01:41
@shuangkun
Copy link
Member Author

I modified it and fixed errors. Thanks!

@agilgur5
Copy link

agilgur5 commented Apr 4, 2024

I pushed a commit myself to fix the mkdocs-material admonition syntax with markdown inside of it as it's a bit complicated -- it requires a markdownlint-disable comment plus some proper newlines. That and I forgot that the "Note"'s title has to be in quotes. It looks like this now (as intended):

Screenshot 2024-04-04 at 1 44 46 AM

Copy link

@agilgur5 agilgur5 left a comment

Choose a reason for hiding this comment

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

Thanks for adding these docs and iterating on this!

@agilgur5 agilgur5 enabled auto-merge (squash) April 4, 2024 05:49
@shuangkun
Copy link
Member Author

I pushed a commit myself to fix the mkdocs-material admonition syntax with markdown inside of it as it's a bit complicated -- it requires a markdownlint-disable comment plus some proper newlines. That and I forgot that the "Note"'s title has to be in quotes. It looks like this now (as intended):

Screenshot 2024-04-04 at 1 44 46 AM

OK,Thanks!

@agilgur5 agilgur5 merged commit 459b09d into argoproj:main Apr 4, 2024
27 checks passed
@agilgur5 agilgur5 added area/retryStrategy Template-level retryStrategy and removed area/retry-manual Manual workflow "Retry" Action (API/CLI/UI). See retryStrategy for template-level retries labels Apr 25, 2024
agilgur5 pushed a commit that referenced this pull request May 4, 2024
…11502 (#12809)

Signed-off-by: shuangkun <[email protected]>
Signed-off-by: shuangkun tian <[email protected]>
Signed-off-by: Anton Gilgur <[email protected]>
Co-authored-by: Anton Gilgur <[email protected]>
Co-authored-by: Anton Gilgur <[email protected]>
(cherry picked from commit 459b09d)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ContainerSet Retry strategy does nothing?
3 participants