-
Notifications
You must be signed in to change notification settings - Fork 197
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
Fix runtime crate versions #3260
Conversation
843ec3c
to
abf10cb
Compare
A new generated diff is ready to view.
A new doc preview is ready to view. |
abf10cb
to
d088269
Compare
A new generated diff is ready to view.
A new doc preview is ready to view. |
d088269
to
613a588
Compare
A new generated diff is ready to view.
A new doc preview is ready to view. |
613a588
to
487fe23
Compare
A new generated diff is ready to view.
A new doc preview is ready to view. |
487fe23
to
3c90065
Compare
A new generated diff is ready to view.
A new doc preview is ready to view. |
3c90065
to
6d4b6b9
Compare
A new generated diff is ready to view.
A new doc preview is ready to view. |
A new generated diff is ready to view.
A new doc preview is ready to view. |
@@ -33,6 +33,21 @@ async fn virtual_hosted_buckets() { | |||
); | |||
} | |||
|
|||
#[tokio::test] | |||
async fn no_path_rewriting() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unrelated to the rest of the PR?
@@ -476,6 +476,7 @@ class ServiceConfigGenerator( | |||
docs("Apply test defaults to the builder") | |||
rustBlock("pub fn apply_test_defaults(&mut self) -> &mut Self") { | |||
customizations.forEach { it.section(ServiceConfig.DefaultForTests("self"))(this) } | |||
rustTemplate("self.behavior_version = Some(crate::config::BehaviorVersion::latest());") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should use #{Some}
for collision avoidance.
codegen-core/build.gradle.kts
Outdated
@@ -52,19 +52,49 @@ fun gitCommitHash(): String { | |||
} | |||
} | |||
|
|||
fun kv(key: String, value: String) = """"$key": "$value"""" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: put this inside of the block so it is scoped to it
version.append(kv("stableVersion", stableCrateVersion)).append(",") | ||
version.append(kv("unstableVersion", unstableCrateVersion)).append(",") | ||
// hack for internal build | ||
val smithyStableCrates = listOf( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
At what point do we put this metadata in the runtime crate Cargo.tomls and resolve it automatically?
A new generated diff is ready to view.
A new doc preview is ready to view. |
When the stable/unstable crate versions were split, this caused a regression in determining the crate version during codegen. This enhances our crate-version forwarding code to publish all the crate versions. For impact, see codegen-client-test.
53de7e5
to
74cf401
Compare
A new generated diff is ready to view.
A new doc preview is ready to view. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the fix.
## Motivation and Context When the stable/unstable crate versions were split, this caused a regression in determining the crate version during codegen. This enhances our crate-version forwarding code to publish all the crate versions. For impact, see codegen-client-test. ## Description - Change the build artifact to be a JSON blob will all required versions. ## Testing - [ ] Audit diff ## Checklist <!--- If a checkbox below is not applicable, then please DELETE it rather than leaving it unchecked --> - [ ] I have updated `CHANGELOG.next.toml` if I made changes to the smithy-rs codegen or runtime crates - [ ] I have updated `CHANGELOG.next.toml` if I made changes to the AWS SDK, generated SDK code, or SDK runtime crates ---- _By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice._
## Motivation and Context When the stable/unstable crate versions were split, this caused a regression in determining the crate version during codegen. This enhances our crate-version forwarding code to publish all the crate versions. For impact, see codegen-client-test. ## Description - Change the build artifact to be a JSON blob will all required versions. ## Testing - [ ] Audit diff ## Checklist <!--- If a checkbox below is not applicable, then please DELETE it rather than leaving it unchecked --> - [ ] I have updated `CHANGELOG.next.toml` if I made changes to the smithy-rs codegen or runtime crates - [ ] I have updated `CHANGELOG.next.toml` if I made changes to the AWS SDK, generated SDK code, or SDK runtime crates ---- _By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice._
Motivation and Context
When the stable/unstable crate versions were split, this caused a regression in determining the crate version during codegen. This enhances our crate-version forwarding code to publish all the crate versions. For impact, see codegen-client-test.
Description
Testing
Checklist
CHANGELOG.next.toml
if I made changes to the smithy-rs codegen or runtime cratesCHANGELOG.next.toml
if I made changes to the AWS SDK, generated SDK code, or SDK runtime cratesBy submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.