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
device update release #19728
device update release #19728
Conversation
sdk/deviceupdate/iot-device-update-rest/test/public/utils/env.ts
Outdated
Show resolved
Hide resolved
sdk/deviceupdate/iot-device-update-rest/test/public/groupAndDeployment.spec.ts
Outdated
Show resolved
Hide resolved
This pull request is protected by Check Enforcer. What is Check Enforcer?Check Enforcer helps ensure all pull requests are covered by at least one check-run (typically an Azure Pipeline). When all check-runs associated with this pull request pass then Check Enforcer itself will pass. Why am I getting this message?You are getting this message because Check Enforcer did not detect any check-runs being associated with this pull request within five minutes. This may indicate that your pull request is not covered by any pipelines and so Check Enforcer is correctly blocking the pull request being merged. What should I do now?If the check-enforcer check-run is not passing and all other check-runs associated with this PR are passing (excluding license-cla) then you could try telling Check Enforcer to evaluate your pull request again. You can do this by adding a comment to this pull request as follows: What if I am onboarding a new service?Often, new services do not have validation pipelines associated with them, in order to bootstrap pipelines for a new service, you can issue the following command as a pull request comment: |
/check-enforcer evaluate |
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.
A few minor remarks, but I think I can approve once those are addressed. 👍
sdk/deviceupdate/iot-device-update-rest/review/iot-device-update.api.md
Outdated
Show resolved
Hide resolved
sdk/deviceupdate/iot-device-update-rest/test/public/utils/env.ts
Outdated
Show resolved
Hide resolved
@joheredi The latest PR has migrated to new recorder tool. |
# Conflicts: # common/config/rush/pnpm-lock.yaml # eng/ignore-links.txt
/azp run |
You have several pipelines (over 10) configured to build pull requests in this repository. Specify which pipelines you would like to run by using /azp run [pipelines] command. You can specify multiple pipelines using a comma separated list. |
/azp run js - deviceupdate - ci, js - core - ci |
Azure Pipelines successfully started running 2 pipeline(s). |
/azp run js - core - ci |
Azure Pipelines successfully started running 1 pipeline(s). |
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 feel good about the fixes to the API surface, just one last comment about the ignores.
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.
Looks great! Would you mind filing an issue to remove the ignore entries you added?
Thanks for taking the time to migrate to the new recorder /cc: @HarshaNalluru @timovv
export function createRecordedClient(recorder: Recorder): DeviceUpdateRestClient { | ||
const credential = createTestCredential(); | ||
const client = DeviceUpdate(assertEnvironmentVariable("ENDPOINT"), credential); | ||
recorder.configureClient(client); |
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.
BTW, the tests look great with the new recorder, I really appreciate the work here. 🔥
However, recorder.configureClient(client);
call is likely going to change based on the discussion at #16876 with the Arch board.
Basically, we don't want to expose "pipeline" object on the clients, which this client is currently doing.
We're instead going to go with an approach of adding policies in an array in the client options.
Change being made here - #19920
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.
@xirzec this client exposes "pipeline", we don't want that, right?
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.
@HarshaNalluru I think we don't need to use adding polices in this PR as the #19920 is not merged. If it's ready to use policies and you need my help, please let me know. For now, I will merge this PR to release the sdk. thanks
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 comment was about the already exposed "pipeline" object on the client. 🙂
Many clients exposed it unintentionally, we're going to make a call for those - mostly making it private or something similar.
And this #19920 is to provide an alternative to allow adding policies.
Since there are other clients that are in a similar state as iot-device-update, we'll handle this package along with them if we ever decide to change something even if it is a breaking change.
ignore links are removed |
Sync x-mx-enum change from 2021-03-01 (Azure#19728) * Sync x-mx-enum change from 2021-03-01 * Update Provider.json
The PR conflict will be resloved in merging.
There is a manual change of generated codes in the PR. I have created an issue to track it in codegen: Azure/autorest.typescript#1284