-
Notifications
You must be signed in to change notification settings - Fork 251
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 broken code behind client_certificate feature #1650
Conversation
@microsoft-github-policy-service agree |
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.
I have a question, but otherwise LGTM.
eng/scripts/sdk_tests.sh
Outdated
cargo +${BUILD} test --all --features hmac_rust | ||
cargo +${BUILD} test --all --all-targets --all-features |
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.
Do you know which targets generated the errors? I'm surprised we hadn't run into them before, and it may be better to test those targets in parallel rather than every time this script is run. Besides, there's some major changes coming soon and these scripts will likely be removed in favor of parallel jobs. I want to make sure we cover what failed.
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.
The feature generating the error is client_certificate
from src/identity
. I was just using --all-features to check I wasn't breaking anything else when I was making changes. I can change change the script to just include that feature, and then you can run all features in parallel when the your major changes land.
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.
My repo https://dev.azure.com/msazuredev/AzureForOperators/_git/a40na-ingestion-file-uploader is also hitting this issue after updating 0.19.0 -> 0.20.0 because we use the client_certificate
feature.
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.
I can change change the script to just include that feature, and then you can run all features in parallel when the your major changes land.
@akinnane yes, can you make that change instead?
@akinnane could you rerun the failed tests so that PR will be merged after successful execution |
There are two failing tests. Autorust testsLooks like a new lint was added in 1.78.0 which was released a few hours ago https://blog.rust-lang.org/2024/05/02/Rust-1.78.0.html
SDK TestsThe tests are looking for a
|
Head branch was pushed to by a user without write access
@heaths Please could you add the |
We do not have provisioned resources for this unofficial project. Even for our official SDKs we provision as-needed, which is not set up for this repo just yet...but changes are coming. Or are you suggesting it should be set to some demo, non-secret account? I'm not aware of any, though I know some other services have that e.g., Storage, IIRC. |
We're using this forked code and it's working for us right now, but I'm worried about the path forward to getting this merged. Does this need the |
eng/scripts/sdk_tests.sh
Outdated
cargo +${BUILD} test --all --features hmac_rust | ||
cargo +${BUILD} test --all --all-targets --all-features |
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.
I can change change the script to just include that feature, and then you can run all features in parallel when the your major changes land.
@akinnane yes, can you make that change instead?
One small request, and please rebase. We can get this in, then. |
@heaths your suggestion has already been implemented. Can you merge now? |
Odd. I rebased and fixed the conflict, but pushing closed the PR and I can't seem to reopen it. |
Ah, because I didn't push with |
Closing in lieu of #1706 |
Actually, seems it hasn't. I'll have to fix it in my branch, though, because this remote is locked. |
Building the SDK with
cargo --all-targets --all-features
fails with two different errors.ErrorKind::http_response_from_body
was changed toErrorKind::http_response_from_parts
in #1631 I've changed this to use the new method from that PR.This was added in b28ca1d
I've changed the return type to be be an
Azure::Result
and used?
to getUrl
from.authority_host()
I've added
tracing
to thedev-dependencies
for consistency with the other SDK crates.There were a bunch of warning emmitted after fixing those and I've fixed those too.
I've also added extra steps to
eng/scripts/sdk_tests.sh
to runcheck
andtest
with--all-targets --all-features
to prevent this happening again, but you might want to do this differently on GitHub Actions.