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

Cache AWS credentials in the snapshot uploader #2771

Merged
merged 2 commits into from
Feb 24, 2025
Merged

Conversation

jackkleeman
Copy link
Contributor

No description provided.

Copy link

github-actions bot commented Feb 21, 2025

Test Results

  7 files  ±0    7 suites  ±0   4m 20s ⏱️ +6s
 47 tests ±0   46 ✅ ±0  1 💤 ±0  0 ❌ ±0 
182 runs  ±0  179 ✅ ±0  3 💤 ±0  0 ❌ ±0 

Results for commit 82c934b. ± Comparison against base commit 9be3633.

♻️ This comment has been updated with latest results.

Comment on lines +821 to +825
let runtime_components = RuntimeComponentsBuilder::for_tests()
.with_time_source(Some(aws_smithy_async::time::SystemTimeSource::new()))
.with_sleep_impl(Some(aws_smithy_async::rt::sleep::TokioSleep::new()))
.build()
.context("Could not build AWS runtime components")?;
Copy link
Contributor

Choose a reason for hiding this comment

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

Oof! At what point should we just use the S3 SDK 😆 Thank you for figuring this out!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

i think it doesnt help us really, unless you implement the object store trait on it :/. i can see why they didnt want to import the sdk, but its hurting us in this case tbh

Copy link
Contributor

@pcholakov pcholakov left a comment

Choose a reason for hiding this comment

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

Thank you so much for fixing this, @jackkleeman! Can confirm it works exactly as intended. Tested with the following configurations:

  • explicit env creds
  • AWS SSO profile w/ S3
  • AWS SDK profile w/ minio
  • explicit Restate config w/ minio

It's probably worthwhile adding integration tests for these scenarios - not 100% what's the best place for them atm.

I took the liberty of pushing a trivial Clippy fix that was blocking merging. 😊

Unfortunately there is still a Rust SDK integration error which seems related to the test-services image being incompatible with Rust 2024.

@jackkleeman jackkleeman merged commit 9629db1 into main Feb 24, 2025
28 of 29 checks passed
@jackkleeman jackkleeman deleted the push-kzmkukymopqm branch February 24, 2025 08:36
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