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

device update release #19728

Merged
merged 31 commits into from Jan 21, 2022
Merged

device update release #19728

merged 31 commits into from Jan 21, 2022

Conversation

dw511214992
Copy link
Member

@dw511214992 dw511214992 commented Jan 7, 2022

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

@dw511214992 dw511214992 marked this pull request as ready for review January 7, 2022 05:53
@check-enforcer
Copy link

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:
/check-enforcer evaluate
Typically evaulation only takes a few seconds. If you know that your pull request is not covered by a pipeline and this is expected you can override Check Enforcer using the following command:
/check-enforcer override
Note that using the override command triggers alerts so that follow-up investigations can occur (PRs still need to be approved as normal).

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:
/azp run prepare-pipelines
This will run a pipeline that analyzes the source tree and creates the pipelines necessary to build and validate your pull request. Once the pipeline has been created you can trigger the pipeline using the following comment:
/azp run js - [service] - ci

@dw511214992
Copy link
Member Author

/check-enforcer evaluate

Copy link
Member

@xirzec xirzec left a 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/README.md Outdated Show resolved Hide resolved
sdk/deviceupdate/iot-device-update-rest/README.md Outdated Show resolved Hide resolved
sdk/deviceupdate/iot-device-update-rest/package.json Outdated Show resolved Hide resolved
sdk/deviceupdate/iot-device-update-rest/sample.env Outdated Show resolved Hide resolved
@dw511214992
Copy link
Member Author

dw511214992 commented Jan 20, 2022

Changes look good. Please update the recorder to use the new recorder tool and we should be good.

@joheredi The latest PR has migrated to new recorder tool.

@dw511214992
Copy link
Member Author

/azp run

@azure-pipelines
Copy link

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.

@dw511214992
Copy link
Member Author

/azp run js - deviceupdate - ci, js - core - ci

@azure-pipelines
Copy link

Azure Pipelines successfully started running 2 pipeline(s).

@dw511214992
Copy link
Member Author

/azp run js - core - ci

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

Copy link
Member

@xirzec xirzec left a 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.

eng/ignore-links.txt Outdated Show resolved Hide resolved
eng/ignore-links.txt Outdated Show resolved Hide resolved
Copy link
Member

@joheredi joheredi left a 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);
Copy link
Member

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

Copy link
Member

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?

Copy link
Member Author

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

Copy link
Member

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.

@dw511214992
Copy link
Member Author

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

ignore links are removed

@dw511214992 dw511214992 merged commit a95bf28 into main Jan 21, 2022
@dw511214992 dw511214992 deleted the dw/deviceupdate branch January 21, 2022 02:14
azure-sdk pushed a commit to azure-sdk/azure-sdk-for-js that referenced this pull request Jul 12, 2022
Sync x-mx-enum change from 2021-03-01 (Azure#19728)

* Sync x-mx-enum change from 2021-03-01

* Update Provider.json
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.

None yet

5 participants