Remove AWS Batch scheduler and Amazon Linux 2 OS support and support Python 3.13#7394
Remove AWS Batch scheduler and Amazon Linux 2 OS support and support Python 3.13#7394hanwen-cluster wants to merge 5 commits into
Conversation
ea9ebb8 to
2a71b0e
Compare
|
Secrutiy Exclusions Checker is ignored because the file change is only a whitespace change. |
|
Code scanning results failure is long standing. We will address it separately |
db1b29f to
5f78294
Compare
| if cluster.stack.scheduler == "awsbatch": | ||
| if status == RequestedComputeFleetStatus.ENABLED: | ||
| cluster.start() | ||
| elif status == RequestedComputeFleetStatus.DISABLED: |
There was a problem hiding this comment.
[Blocking] Let's remove ENABLED and DISABLED from all files, I found in cli/src/pcluster/api/models/requested_compute_fleet_status.py and compute_fleet_status.py.
| @@ -138,7 +136,7 @@ test-suites: | |||
| dimensions: | |||
| - regions: [{{ p4d_24xlarge_CAPACITY_RESERVATION_2_INSTANCES_2_HOURS_YESPG_alinux2 }}] | |||
There was a problem hiding this comment.
[Question] Is the region okay? alinux2 -> alinux2023.
There was a problem hiding this comment.
Great discover. FIxed
There was a problem hiding this comment.
[Non-blocking] Test name: no_awsbatch. Can we rename?
| _run_and_assert(mocker, capsys, output, error, config, temp_path_for_config) | ||
|
|
||
|
|
||
| def test_subnet_automation_no_awsbatch_no_errors_empty_vpc(mocker, capsys, test_datadir, temp_path_for_config): |
There was a problem hiding this comment.
[Non-blocking] no_awsbatch Rename?
Because this is a separate task, can I finish it with a separate PR? |
5f78294 to
70b4023
Compare
Changes - Delete awsbatch-cli/ package, awsbatch_builder.py, awsbatch_validators.py, Batch API client, and all Batch integration tests - Remove Batch from schemas, constants, cluster model, IAM policy templates, and CI workflows - Remove AL2 from supported OS list and image builder configs - Mechanically replace Os: alinux2 → Os: alinux2023 across all test config YAMLs - Delete Batch-only utility scripts (generate-ami-list.py, update_pcluster_configs.py, upload-script.py, bump-awsbatch-cli-version.sh) — these have no Slurm equivalent use Notes for reviewers - pcluster configure wizard removes the scheduler selection prompt entirely since Slurm is now the only option. - conditions gating on scheduler type are simplified; is_awsbatch helper and related conditional logic removed rather than left as dead code.
This commit add `Cache.clear_all()` to conftest of unit test because Python 3.13 reuse caches more actively. Without `Cache.clear_all()`, some tests were failing
DCV test failed on environment where SSH key path is not configured for autouse. Specifying the key path solves the problem
Retrieving AMIs with status pending causes cluster creation failure. This could happen when we are building AMIs and running tests concurrently with the same version of ParallelCluster
In the past, the workflows checked content on full diff (addition and deletion) and limited the maximum file changes to 300. Now the improved workflows check only additions
70b4023 to
4d3603f
Compare
Description of changes
availablestatus to prevent race conditions during concurrent AMI buildsSee commit descriptions for details.
Tests
References
Checklist
developadd the branch name as prefix in the PR title (e.g.[release-3.6]).Please review the guidelines for contributing and Pull Request Instructions.
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.