Skip to content

feat(batch): skip unregister job definition on update#36011

Merged
mergify[bot] merged 19 commits intoaws:mainfrom
badmintoncryer:skip
Mar 31, 2026
Merged

feat(batch): skip unregister job definition on update#36011
mergify[bot] merged 19 commits intoaws:mainfrom
badmintoncryer:skip

Conversation

@badmintoncryer
Copy link
Copy Markdown
Contributor

Issue # (if applicable)

None

Reason for this change

Cloudformation now supports for skipping unregister job definition on update.
https://docs.aws.amazon.com/ja_jp/AWSCloudFormation/latest/TemplateReference/aws-properties-batch-jobdefinition-resourceretentionpolicy.html#cfn-batch-jobdefinition-resourceretentionpolicy-skipderegisteronupdate

Description of changes

  • add skipDeregisterOnUpdate to JobdefinitionProps

Describe any new or updated permissions being added

none

Description of how you validated changes

Add both unit and integ tests.

Checklist


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license

@github-actions github-actions bot added the p2 label Nov 11, 2025
@aws-cdk-automation aws-cdk-automation requested a review from a team November 11, 2025 14:22
@github-actions github-actions bot added the distinguished-contributor [Pilot] contributed 50+ PRs to the CDK label Nov 11, 2025
@badmintoncryer badmintoncryer changed the title feat(batch): skip unregister job definition on update feat(batch): ski unregister job definition on update Nov 12, 2025
@badmintoncryer badmintoncryer changed the title feat(batch): ski unregister job definition on update feat(batch): skip unregister job definition on update Nov 12, 2025
@aws-cdk-automation aws-cdk-automation added the pr/needs-community-review This PR needs a review from a Trusted Community Member or Core Team Member. label Nov 12, 2025
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Dec 6, 2025

⚠️ Experimental Feature: This security report is currently in experimental phase. Results may include false positives and the rules are being actively refined.
This security report is NOT a review blocker. Please try merge from main to avoid findings unrelated to the PR.


TestsPassed ✅SkippedFailed
Security Guardian Results72 ran72 passed
TestResult
No test annotations available

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Dec 6, 2025

⚠️ Experimental Feature: This security report is currently in experimental phase. Results may include false positives and the rules are being actively refined.
This security report is NOT a review blocker. Please try merge from main to avoid findings unrelated to the PR.


TestsPassed ✅SkippedFailed
Security Guardian Results with resolved templates72 ran72 passed
TestResult
No test annotations available

*
* @default undefined - AWS Batch default is false
*/
readonly skipDeregisterOnUpdate?: boolean;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Is this required to be defined on IJobDefinition, since this affects the CFN update-time retention behavior?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@kumsmrit You are exactly right. I've removed the definition from IJobDefinition.

This property only affects CFN update-time retention behavior and
is not relevant for imported resources via fromJobDefinitionArn.
Keep it on JobDefinitionProps and JobDefinitionBase only.
kumsmrit
kumsmrit previously approved these changes Mar 31, 2026
@mergify
Copy link
Copy Markdown
Contributor

mergify bot commented Mar 31, 2026

Thank you for contributing! Your pull request will be updated from main and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork).

@mergify
Copy link
Copy Markdown
Contributor

mergify bot commented Mar 31, 2026

Merge Queue Status

  • Entered queue2026-03-31 10:32 UTC · Rule: default-squash
  • 🚫 Left the queue2026-03-31 10:32 UTC · at eb9e54c928cd35092542ca2d2be4db1292d45294

This pull request spent 9 seconds in the queue, with no time running CI.

Reason

The pull request can't be updated

For security reasons, Mergify can't update this pull request. Try updating locally.
GitHub response: refusing to allow a GitHub App to create or update workflow .github/workflows/codecov-upload.yml without workflows permission

Hint

You should update or rebase your pull request manually. If you do, this pull request will automatically be requeued once the queue conditions match again.
If you think this was a flaky issue, you can requeue the pull request, without updating it, by posting a @mergifyio queue comment.

@aws-cdk-automation aws-cdk-automation removed the pr/needs-community-review This PR needs a review from a Trusted Community Member or Core Team Member. label Mar 31, 2026
@mergify
Copy link
Copy Markdown
Contributor

mergify bot commented Mar 31, 2026

Thank you for contributing! Your pull request will be updated from main and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork).

@badmintoncryer
Copy link
Copy Markdown
Contributor Author

@mergify update

@mergify
Copy link
Copy Markdown
Contributor

mergify bot commented Mar 31, 2026

update

❌ Mergify doesn't have permission to update

Details

For security reasons, Mergify can't update this pull request. Try updating locally.
GitHub response: refusing to allow a GitHub App to create or update workflow .github/workflows/codecov-upload.yml without workflows permission

@badmintoncryer
Copy link
Copy Markdown
Contributor Author

@kumsmrit Could you please approve again?

@mergify mergify bot dismissed kumsmrit’s stale review March 31, 2026 12:45

Pull request has been modified.

@aws-cdk-automation aws-cdk-automation added the pr/needs-community-review This PR needs a review from a Trusted Community Member or Core Team Member. label Mar 31, 2026
@mergify
Copy link
Copy Markdown
Contributor

mergify bot commented Mar 31, 2026

Thank you for contributing! Your pull request will be updated from main and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork).

@mergify
Copy link
Copy Markdown
Contributor

mergify bot commented Mar 31, 2026

Merge Queue Status

  • Entered queue2026-03-31 14:23 UTC · Rule: default-squash
  • Checks passed · in-place
  • Merged2026-03-31 15:19 UTC · at 3124447938335afaef49a4f42c9b09696dc4f547

This pull request spent 55 minutes 41 seconds in the queue, including 30 minutes 18 seconds running CI.

Required conditions to merge

@aws-cdk-automation aws-cdk-automation removed the pr/needs-community-review This PR needs a review from a Trusted Community Member or Core Team Member. label Mar 31, 2026
@mergify
Copy link
Copy Markdown
Contributor

mergify bot commented Mar 31, 2026

Thank you for contributing! Your pull request will be updated from main and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork).

@mergify
Copy link
Copy Markdown
Contributor

mergify bot commented Mar 31, 2026

Thank you for contributing! Your pull request will be updated from main and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork).

@mergify mergify bot merged commit 2fb2240 into aws:main Mar 31, 2026
25 of 26 checks passed
@github-actions
Copy link
Copy Markdown
Contributor

Comments on closed issues and PRs are hard for our team to see.
If you need help, please open a new issue that references this one.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 31, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

distinguished-contributor [Pilot] contributed 50+ PRs to the CDK p2

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants