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

fix(batch): allow endNode to be optional for multinode containers #29849

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

comcalvi
Copy link
Contributor

@comcalvi comcalvi commented Apr 15, 2024

Issue

Closes #29415

Reason for this change

The Batch L2 forces users to specify endNode, even though this is technically optional, on batch multinode jobs. This was initially done intentionally, since with endNode we can compute the always-required numNodes for the user. numNodes can be overwritten when actually submitting a job, but only if the job has at least one container with endNode omitted.

If any container omits endNode, we can no longer compute numNodes, which is a required property; in this case, the user must specify it.

Description of changes

Adds a new optional property, numNodes, and makes endNode optional on multinode containers.

Description of how you validated changes

unit and integration tests

Checklist


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

@aws-cdk-automation aws-cdk-automation requested a review from a team April 15, 2024 23:47
@github-actions github-actions bot added bug This issue is a bug. effort/medium Medium work item – several days of effort p1 labels Apr 15, 2024
@mergify mergify bot added the contribution/core This is a PR that came from AWS. label Apr 15, 2024
@comcalvi comcalvi changed the title unit tests...still need integ fix(batch): Allow endNode to be optional for multinode containers Apr 15, 2024
Copy link
Collaborator

@aws-cdk-automation aws-cdk-automation left a comment

Choose a reason for hiding this comment

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

The pull request linter has failed. See the aws-cdk-automation comment below for failure reasons. If you believe this pull request should receive an exemption, please comment and provide a justification.

A comment requesting an exemption should contain the text Exemption Request. Additionally, if clarification is needed add Clarification Request to a comment.

@comcalvi comcalvi changed the title fix(batch): Allow endNode to be optional for multinode containers fix(batch): allow endNode to be optional for multinode containers Apr 16, 2024
@aws-cdk-automation aws-cdk-automation dismissed their stale review April 16, 2024 16:10

✅ Updated pull request passes all PRLinter validations. Dismissing previous PRLinter review.

@comcalvi
Copy link
Contributor Author

ah...naturally weakening a property is a breaking change

@comcalvi comcalvi assigned comcalvi and unassigned comcalvi Apr 19, 2024
@aws-cdk-automation
Copy link
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: AutoBuildv2Project1C6BFA3F-wQm2hXv2jqQv
  • Commit ID: 481aec9
  • Result: FAILED
  • Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This issue is a bug. contribution/core This is a PR that came from AWS. effort/medium Medium work item – several days of effort p1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

batch: Cannot omit the start/end of target node on batch.MultiNodeContainer
3 participants