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

Pin minicbor to 0.24.2 #3818

Merged
merged 2 commits into from
Sep 3, 2024

Conversation

ysaito1001
Copy link
Contributor

@ysaito1001 ysaito1001 commented Sep 3, 2024

Will merge to the release branch

Motivation and Context

Fixes a failure observed in our release pipeline

Description

A lockfile located at aws/sdk/Cargo.lock did not include the minicbor crate that was introduced as part of RPC V2 CBOR. This has caused a build failure in our release pipeline due to a new version of minicbor 0.24.3 uploaded to crates.io.

error: unsupported output in build script of `minicbor v0.24.3`: `cargo::rustc-check-cfg=cfg(atomic64, atomic32)`

To address this issue, this PR pins minicbor to 0.24.2 in aws/sdk/Cargo.lock (rust-runtime/Cargo.lock already pins it to 0.24.2)

The change in aws/sdk/Cargo.lock was obtained by

  1. running git pull in /Users/awsaito/src/aws-sdk-rust
  2. running ./gradlew aws:sdk:generateAllLockfiles -Paws-sdk-rust-path=/Users/awsaito/src/aws-sdk-rust
  3. retaining the portion only relevant to minicbor

In addition, since the release of aws-sdk-rust the other day, smoke tests have started getting rendered and compiled in cargo-semver-checks. This has caused cargo-semver-checks to exceed the previous timeout of 20 minutes. To address it, we have increased the timeout to 30 minutes.

Testing

  • Tests in CI
  • End-to-end tests in our release pipeline

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

Copy link

github-actions bot commented Sep 3, 2024

A new generated diff is ready to view.

  • AWS SDK (ignoring whitespace)
  • No codegen difference in the Client Test
  • No codegen difference in the Server Test
  • No codegen difference in the Server Test Python
  • No codegen difference in the Server Test Typescript

A new doc preview is ready to view.

@ysaito1001 ysaito1001 marked this pull request as ready for review September 3, 2024 20:20
@ysaito1001 ysaito1001 requested review from a team as code owners September 3, 2024 20:20
@ysaito1001 ysaito1001 merged commit bd18a91 into smithy-rs-release-1.x.y Sep 3, 2024
44 checks passed
@ysaito1001 ysaito1001 deleted the ysaito/pin-minicbor-0-24-2 branch September 3, 2024 20:21
@ysaito1001 ysaito1001 mentioned this pull request Sep 6, 2024
github-merge-queue bot pushed a commit that referenced this pull request Sep 6, 2024
## Description
This PR updates lockfiles by running:
```
./gradlew aws:sdk:generateAllLockfiles -Paws-sdk-rust-path=/Users/awsaito/src/aws-sdk-rust
```
However, due to [the minicbor
issue](#3818), we still pin
it to 0.24.2 by running the following on `rust-runtime/Cargo.lock` and
`aws/sdk/Cargo.lock`:
```
RUSTFLAGS="--cfg aws_sdk_unstable" cargo update -p minicbor --precise 0.24.2
```

The rest of the changes handle miscellaneous scenarios:
- **Updated nightly version**: Upgraded to `nightly-2024-03-15` to
address a [compatibility
issue](serde-rs/serde#2770) introduced by the
updated serde library.
- **Cleaned up use statements**: Removed redundant use statements, which
were flagged as warnings by the new nightly version.

## Testing
Tests in CI

----

_By submitting this pull request, I confirm that you can use, modify,
copy, and redistribute this contribution, under the terms of your
choice._
aws-sdk-rust-ci pushed a commit to awslabs/aws-sdk-rust that referenced this pull request Sep 10, 2024
## Description
This PR updates lockfiles by running:
```
./gradlew aws:sdk:generateAllLockfiles -Paws-sdk-rust-path=/Users/awsaito/src/aws-sdk-rust
```
However, due to [the minicbor
issue](smithy-lang/smithy-rs#3818), we still pin
it to 0.24.2 by running the following on `rust-runtime/Cargo.lock` and
`aws/sdk/Cargo.lock`:
```
RUSTFLAGS="--cfg aws_sdk_unstable" cargo update -p minicbor --precise 0.24.2
```

The rest of the changes handle miscellaneous scenarios:
- **Updated nightly version**: Upgraded to `nightly-2024-03-15` to
address a [compatibility
issue](serde-rs/serde#2770) introduced by the
updated serde library.
- **Cleaned up use statements**: Removed redundant use statements, which
were flagged as warnings by the new nightly version.

## Testing
Tests in CI

----

_By submitting this pull request, I confirm that you can use, modify,
copy, and redistribute this contribution, under the terms of your
choice._
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