[core-client] Fix Core client nightly#18977
Merged
joheredi merged 2 commits intoAzure:mainfrom Dec 6, 2021
joheredi:core-client-nightly
Merged
[core-client] Fix Core client nightly#18977joheredi merged 2 commits intoAzure:mainfrom joheredi:core-client-nightly
joheredi merged 2 commits intoAzure:mainfrom
joheredi:core-client-nightly
Conversation
Member
Author
|
/azp run js - core |
|
Azure Pipelines successfully started running 1 pipeline(s). |
sadasant
approved these changes
Dec 6, 2021
Contributor
sadasant
left a comment
There was a problem hiding this comment.
I think this should be fine. Next time a release date comes, we should release these two packages together anyway.
deyaaeldeen
approved these changes
Dec 6, 2021
Member
deyaaeldeen
left a comment
There was a problem hiding this comment.
Thanks for catching this!
jeremymeng
added a commit
to jeremymeng/azure-sdk-for-js
that referenced
this pull request
Dec 21, 2021
while we may want to handle setting dev versions better, this unblocks the nightly build pipeline similarly to what PR Azure#18977 did.
jeremymeng
added a commit
that referenced
this pull request
Dec 21, 2021
while we may want to handle setting dev versions better, this unblocks the nightly build pipeline similarly to what PR #18977 did.
azure-sdk
pushed a commit
to azure-sdk/azure-sdk-for-js
that referenced
this pull request
May 12, 2022
[Microsoft.KubernetesConfiguration] Add 200 OK to PATCH apis (Azure#18977) * Add response codes to patch apis * Examples for patch of extension and configuration
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
TL;DR - Nightly builds are broken because core-client now depends on a property not existing in the latest published in NPM. Updating the dependency on core-rest-pipeline so that nightly ci links to the same alpha version of core-rest-pipeline.
Details
Core pipeline nightly builds are failing with the following error:
The problem started a few weeks ago when #18467 was merged. It adds a
loggerproperty toAuthorizeRequestOnChallengeOptions,AuthorizeRequestOptionsandBearerTokenAuthenticationPolicyOptions. In the same PR @azure/core-client starts consuming this new property *authorizeRequestOnClaimChallenge.ts).However
@azure/core-client's dependency on@azure/core-rest-pipelinewasn't updated and remained on^1.1.0. In local development and regular CIs this works fine because RUSH would link the local versions of the SDKs which would contain the newest changes. The problem comes when creating dev-versions, the logic in our tooling determines that ^1.1.0 is enough and doesn't update @azure/core-client to the currentalphaversion, this makes the dependency on@azure/core-rest-pipelineto point to the latest in NPM1.3.2which doesn't have the new property and causes the build break.The fix is simple, just need to update the dependency on
core-rest-pipelineto^1.3.3so that nightly build tooling would link it to the alpha versions being produced.Ran a test pipeline (link) based on these changes and the
Build librariesstep works fine (canceled to avoid releasing alpha builds off an unmerged branch)