Skip to content

Conversation

@0marperez
Copy link
Contributor

Issue #, if available:

Fixes "Argument list too long" errors when uploading artifact size metrics to CloudWatch. See:
https://github.com/aws/aws-sdk-kotlin/actions/runs/19149586252/job/54736048809

Description of changes:

  • Changed CloudWatch upload chunk sizes from 1,000 (CW limit) to 100 (~1/4 of metrics being uploaded currently).
  • Removed redundant v from version identifier used in S3.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@0marperez 0marperez requested a review from a team as a code owner November 10, 2025 15:44
@0marperez 0marperez changed the title Fix arg list too long fix: arg list too long when uploading metrics to cloudwatch Nov 10, 2025
if [ "$RELEASE_METRICS" == "true" ]; then
# For record-keeping
uploadToMetricsBucket "$metrics_file" "$GITHUB_REPOSITORY"-v"$IDENTIFIER".csv
uploadToMetricsBucket "$metrics_file" "$GITHUB_REPOSITORY"-"$IDENTIFIER".csv
Copy link
Contributor

Choose a reason for hiding this comment

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

Question: Why is the v removed? Was it necessary before but now isn't?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It's being removed because it was actually never necessary. The IDENTIFIER already includes a v.

@0marperez 0marperez merged commit 4a010ef into main Nov 10, 2025
7 checks passed
@0marperez 0marperez deleted the fix-arg-list-too-long branch November 10, 2025 18:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants