Skip to content

[Release] Add upload-node.py to push aws-parallelcluster-node to S3 #7460

Open
himani2411 wants to merge 1 commit into
aws:developfrom
himani2411:cli-devsetting
Open

[Release] Add upload-node.py to push aws-parallelcluster-node to S3 #7460
himani2411 wants to merge 1 commit into
aws:developfrom
himani2411:cli-devsetting

Conversation

@himani2411

@himani2411 himani2411 commented Jun 29, 2026

Copy link
Copy Markdown
Contributor

Description of changes

This is required as part of our release process as we move from uploading node package from s3 aws/aws-parallelcluster-cookbook#3211

Multi-region S3 uploader for the node package, modeled on upload-cookbook.py. Uploads to s3://-aws-parallelcluster/parallelcluster//node/, which is where the cookbook now downloads the node package from in all regions (see parallelcluster_node.rb). Invoked by the Jenkins push_node_s3 release job.

Tests

  • tested using Dry-run option
  • ONGOING testing on local S3 buckets

References

  • Link to impacted open issues.
  • Link to related PRs in other packages (i.e. cookbook, node).
  • Link to documentation useful to understand the changes.

Checklist

  • Make sure you are pointing to the right branch.
  • If you're creating a patch for a branch other than develop add the branch name as prefix in the PR title (e.g. [release-3.6]).
  • Check all commits' messages are clear, describing what and why vs how.
  • Make sure to have added unit tests or integration tests to cover the new/modified code.
  • Check if documentation is impacted by this change.

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.

Multi-region S3 uploader for the node package, modeled on upload-cookbook.py.
Uploads to s3://<region>-aws-parallelcluster/parallelcluster/<version>/node/,
which is where the cookbook now downloads the node package from in all regions
(see parallelcluster_node.rb). Invoked by the Jenkins push_node_s3 release job.
@himani2411 himani2411 added the skip-changelog-update Disables the check that enforces changelog updates in PRs label Jun 29, 2026
@himani2411 himani2411 requested review from a team as code owners June 29, 2026 19:48
@himani2411 himani2411 added the 3.x label Jun 29, 2026
Comment thread util/upload-node.py
_main_region = "cn-north-1"
else:
print("Unsupported partition {0}".format(args.partition))
exit(1)
Comment thread util/upload-node.py
# Check if archive exists
if not os.path.exists(args.node_archive_path):
print("Node archive {0} not found".format(args.node_archive_path))
exit(1)
Comment thread util/upload-node.py
if len(_ls_error_array) > 0 and not args.override:
print("We know the node archives are already there, in this round we need to upload the .date files!")
print("Failed to push node, already present for regions: {0} ".format(" ".join(_ls_error_array)))
exit(1)
Comment thread util/upload-node.py

if len(_cp_error_array) > 0:
print("Failed to push node for region ({0})".format(" ".join(_cp_error_array)))
exit(1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3.x skip-changelog-update Disables the check that enforces changelog updates in PRs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants