Skip to content

Conversation

@mrgrain
Copy link
Contributor

@mrgrain mrgrain commented Mar 14, 2025

Re-write the script to upload the toolkit-lib docs S3. This has been AI assisted and actually been tested in a testing repo.


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

@mrgrain mrgrain added the pr/exempt-integ-test Skips the integ test steps if set. label Mar 14, 2025
@github-actions github-actions bot added the p2 label Mar 14, 2025
@aws-cdk-automation aws-cdk-automation requested a review from a team March 14, 2025 11:51
@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 84.94%. Comparing base (3791941) to head (014162c).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #232      +/-   ##
==========================================
+ Coverage   84.88%   84.94%   +0.06%     
==========================================
  Files         208      208              
  Lines       35680    35680              
  Branches     4616     4626      +10     
==========================================
+ Hits        30287    30309      +22     
+ Misses       5247     5223      -24     
- Partials      146      148       +2     
Flag Coverage Δ
suite.unit 84.94% <ø> (+0.06%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

'echo "$S3_PATH" > "$LATEST"',
elif echo "$OUTPUT" | grep -q "PreconditionFailed"; then
# Check specifically for PreconditionFailed in the error output
echo "::warning::File already exists in S3. Skipping upload."
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this the only reason for PreconditionFailed? Is it possible to be even more specific?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

To my understanding this is the only possible precondition because the precondition is only created by the --if-none-match option. So that's what we want.

Copy link
Contributor

Choose a reason for hiding this comment

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

Ah, cool :)

@aws-cdk-automation aws-cdk-automation added this pull request to the merge queue Mar 14, 2025
Merged via the queue into main with commit dba601a Mar 14, 2025
18 checks passed
@aws-cdk-automation aws-cdk-automation deleted the mrgrain/chore/fix-s3-docs-upload branch March 14, 2025 15:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

p2 pr/exempt-integ-test Skips the integ test steps if set.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants