Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

fix(resource/pipeline): fixpermit_restart_from_failed_steps = false#160

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
masontikhonov merged 5 commits intomasterfromCR-26963-fix-restart-from-failed-steps
Apr 22, 2025

Conversation

@masontikhonov
Copy link
Contributor

@masontikhonovmasontikhonov commentedMar 19, 2025
edited
Loading

What

This fixespermit_restart_from_failed_steps behavior inpipeline resource.

Before this fix, settingpermit_restart_from_failed_steps = false or omitting this key resulted in “Permit restart from failed step: Use account settings” for both cases.

New syntax/behavior is:
permit_restart_from_failed_steps = [true|false] with the default valuetrue (“Permit”).
Iffalse, the policy is set to “Forbid”.

New flag is added:permit_restart_from_failed_steps_use_account_settings = [false|true] with the default valuefalse (“do not use account settings”).
Iftrue,permit_restart_from_failed_steps will be ignored and pipeline policy will be set to “Use account settings”.

Warning

BREAKING CHANGES!

  • Previously,permit_restart_from_failed_steps = false resulted in “Permit restart from failed step: Use account settings”.
    From now on, settingpermit_restart_from_failed_steps = false will result in “Permit restart from failed step: Forbid”

Fixes #CR-26963

Notes

Checklist

@masontikhonov
Copy link
ContributorAuthor

/test

@masontikhonovmasontikhonov marked this pull request as ready for reviewMarch 19, 2025 14:22
`permit_restart_from_failed_steps` property of pipeline spec behaves differently when omit vs set to `false`. This means we should not omit `false` value while sending requests to API.Fixes #CR-26963
@masontikhonovmasontikhonovforce-pushed theCR-26963-fix-restart-from-failed-steps branch from9ac80ec to2adecb7CompareMarch 19, 2025 16:46
@masontikhonovmasontikhonov marked this pull request as draftMarch 19, 2025 16:46
@masontikhonov
Copy link
ContributorAuthor

/test

@masontikhonovmasontikhonov changed the titlefix(resource/pipeline): fixpermit_restart_from_failed_steps to JSONfix(resource/pipeline): fixpermit_restart_from_failed_steps = falseMar 19, 2025
@masontikhonovmasontikhonov marked this pull request as ready for reviewMarch 19, 2025 17:42
@masontikhonov
Copy link
ContributorAuthor

/test

@masontikhonov
Copy link
ContributorAuthor

/test

},
}

hasPermitRestartChanged:=d.HasChange("spec.0.permit_restart_from_failed_steps")

Choose a reason for hiding this comment

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

@masontikhonov HasChange functions are normally used in custom diff functions. We should instead just check ifpermit_restart_from_failed_steps_use_account_settings is set to true and in such case set the property to nil

masontikhonov reacted with thumbs up emoji
Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

Fixed

@masontikhonov
Copy link
ContributorAuthor

/test

@masontikhonovmasontikhonov merged commit2945191 intomasterApr 22, 2025
5 checks passed
@masontikhonovmasontikhonov deleted the CR-26963-fix-restart-from-failed-steps branchApril 22, 2025 08:30
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@ilia-medvedev-codefreshilia-medvedev-codefreshilia-medvedev-codefresh approved these changes

@ATGardnerATGardnerAwaiting requested review from ATGardner

@yaroslav-codefreshyaroslav-codefreshAwaiting requested review from yaroslav-codefreshyaroslav-codefresh is a code owner

@denis-codefreshdenis-codefreshAwaiting requested review from denis-codefreshdenis-codefresh is a code owner

Assignees

@masontikhonovmasontikhonov

Labels

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

3 participants

@masontikhonov@ilia-medvedev-codefresh

[8]ページ先頭

©2009-2025 Movatter.jp