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

Mgmt network supports priority #29503

Merged
merged 15 commits into from Jun 22, 2022

Conversation

XiaofeiCao
Copy link
Contributor

Description

  1. Upgraded api-version to 2021-08-01.
  2. Supported priority in ApplicationGatewayRequestRoutingRule.

Manual code in d365abb

Live Tests passed.

Please add an informative description that covers that changes made by the pull request and link all relevant issues.

If an SDK is being regenerated based on a new swagger spec, a link to the pull request containing these swagger spec changes has been included above.

All SDK Contribution checklist:

  • The pull request does not introduce [breaking changes]
  • CHANGELOG is updated for new features, bug fixes or other significant changes.
  • I have read the contribution guidelines.

General Guidelines and Best Practices

  • Title of the pull request is clear and informative.
  • There are a small number of commits, each of which have an informative message. This means that previously merged commits do not appear in the history of the PR. For more information on cleaning up the commits in your PR, see this page.

Testing Guidelines

  • Pull request includes test coverage for the included changes.

@XiaofeiCao XiaofeiCao added Mgmt This issue is related to a management-plane library. Mgmt - Track 2 labels Jun 16, 2022
@XiaofeiCao XiaofeiCao self-assigned this Jun 16, 2022
@azure-sdk
Copy link
Collaborator

azure-sdk commented Jun 16, 2022

API change check

APIView has identified API level changes in this PR and created following API reviews.

azure-resourcemanager-network
azure-resourcemanager-samples

@XiaofeiCao XiaofeiCao marked this pull request as ready for review June 16, 2022 08:52
…a/com/azure/resourcemanager/network/models/ApplicationGatewayRequestRoutingRule.java

Co-authored-by: Weidong Xu <weidxu@microsoft.com>
@@ -29,6 +29,8 @@

include_groups = []

exclude_projects = ['com.azure.resourcemanager:azure-resourcemanager-samples']
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In Samples, jacoco is skipped in pom.xml.


Running jacoco:aggregate-report on it will fail.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

skip is probably not the cause of failure, will look more into this.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

error

[ERROR] Failed to execute goal org.jacoco:jacoco-maven-plugin:0.8.8:report-aggregate (default-cli) on project azure-sdk-aggregate-coverage: Execution default-cli of goal org.jacoco:jacoco-maven-plugin:0.8.8:report-aggregate failed: malformed input off : 0, length : 1: Input length = 1 -> [Help 1]

will try to solve it within azure-resourcemanager-samples, but might need to add the "exclude" if we do not know what was wrong with the module or jacoco:report-aggregate (the error message is not very helpful).

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This actually works https://stackoverflow.com/a/68232557
However it had to be put to the generated POM.

The cause of problem might be that resourcemanager had some zip/war/jar in the samples (for samples for webapp etc.).

So I think the solution is either exclude azure-resourcemanager-samples, or improve the generated POM to only include the classes we need.

@srnagar

@@ -29,6 +29,8 @@

include_groups = []

exclude_projects = ['com.azure.resourcemanager:azure-resourcemanager-samples']
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This exclusion list should not be hard coded. Make this into an argument to the script and update the ci to add this package as an arg when running the script.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure, sounds good.
On the other hand, Weidong found out the cause is that samples project contains zip/war/jar and jacoco doesn't support them.
He suggests that rather than excluding the samples, we can add

<includes>
   <include>**/*.class</include>
</includes> 

to the jacoco configuration in the pom template (we can do it in this PR). It'll look like:

  <build>
    <plugins>
      <plugin>
        <groupId>org.jacoco</groupId>
        <artifactId>jacoco-maven-plugin</artifactId>
        <version>{}</version>
        <configuration>
          <outputDirectory>target/site/test-coverage</outputDirectory>
          <includes>
             <include>**/*.class</include>
          </includes>
          <excludes>
             <exclude>META-INF/**</exclude>
          </excludes>
        </configuration>
      </plugin>
    </plugins>
  </build>

Either will resolve the issue. Which one do you prefer?

@XiaofeiCao XiaofeiCao merged commit df98d84 into Azure:main Jun 22, 2022
kwonus-msft pushed a commit to kwonus-msft/azure-sdk-for-java-kw that referenced this pull request Jun 24, 2022
* codegen

* changelog for version update

* supports priority

supports priority

* session-records

* related session-records

* changelog for feature

* revapi.skip=true

* nit, remove spaces

* Update sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayRequestRoutingRule.java

Co-authored-by: Weidong Xu <weidxu@microsoft.com>

* fix doc

* code refactor and fix javadoc

* fix javadoc

* exclude samples from code coverage report

* make exclude projects an argument of the script

* rename script parameter

Co-authored-by: Weidong Xu <weidxu@microsoft.com>
kwonus-msft added a commit that referenced this pull request Jun 27, 2022
…tics (#29643)

* Inititial deltas: from microseconds to millisecondsI

* Fixed failed implementation that was reporting 0.0 milliseconds due to integer arithmetic

* Update changelog with PR reference.

* Updated changelog from present tense to past tense (convert ->
converted)

* Merge out from main

* Shortened the summary in changelog.

* dd formatting to changelog

* [Automation] Generate Fluent Lite from mediaservices#package-account-2021-11 (#29595)

* [Automation] Generate Fluent Lite from mediaservices#package-account-2021-11

* Update pom.xml

Co-authored-by: Weidong Xu <weidxu@microsoft.com>

* Increment versions for mediaservices releases (#29598)

Increment package versions for mediaservices releases

* DPG, support latest sdk automation design (#29533)

* latest codegen

* support new design of dpg sdk automation

* support EnableBatchRelease

* remove profile for coverage

* Remove coverage profile from service pom (#29572)

* Remove coverage profile from service pom

* update spring service pom

* fix build failures

* fix script that updates service pom

* resourcemanagerhybrid ci

* Support kafka of azure indentity token credentials and configuration (#29404)

* remove secondary code owner from Search (#29585)

* Mgmt network supports priority (#29503)

* codegen

* changelog for version update

* supports priority

supports priority

* session-records

* related session-records

* changelog for feature

* revapi.skip=true

* nit, remove spaces

* Update sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayRequestRoutingRule.java

Co-authored-by: Weidong Xu <weidxu@microsoft.com>

* fix doc

* code refactor and fix javadoc

* fix javadoc

* exclude samples from code coverage report

* make exclude projects an argument of the script

* rename script parameter

Co-authored-by: Weidong Xu <weidxu@microsoft.com>

* Enable Form Recognizer disabled tests (#29545)

* Increment dependency versions for Key Vault and Container Registry (#29594)

* Updated dependency versions for Key Vault, Form Recognizer and Container Registry. Also updated Key Vault CHANGELOGs.

* Updated a couple more READMEs.

* Reverted version change for Form Recognizer.

* Progress reporter promoted to core and used in Http Client. (#29495)

* progress reporter.

* contexts

* comment.

* this works.

* progress handlers for http clients.

* vertx.

* fix build.

* changelogs.

* poke ci

* align naming with existing versions.

* functional interface.

* getContext.

* this might come handy.

* some PR feedback.

* remove progress handler after request./

* some feedback.

* add sendSync test.

* wip.

* contexts.

* make it final.

* changelog.

* rename this.

* sample update.

* Update sdk/core/azure-core/src/main/java/com/azure/core/util/ProgressReporter.java

Co-authored-by: Srikanta <51379715+srnagar@users.noreply.github.com>

* pr feedback.

* samples in chlog.

* hide keys for now.

Co-authored-by: Srikanta <51379715+srnagar@users.noreply.github.com>

* Cosmos Spark Connector: Adding .Net/C# port of the NYC-Taxi-Data sample (#29600)

* mgmt, generate desktopvirtualization with async methods in serviceClient (#29582)

* Increment versions for desktopvirtualization releases (#29610)

Increment package versions for desktopvirtualization releases

* codegen (#29612)

* Update CODEOWNERS (#29606)

* Use new credential APIs in Spring Service Bus and Event Hubs and add more test cases (#29484)

* use new credential APIs in Service Bus and Event Hubs and add more test cases
* fix compatibility error across spring boot versions
* add more tests

* [Automation] Generate Fluent Lite from extendedlocation#package-2021-08-31-preview (#29616)

* [Automation] Generate Fluent Lite from digitaltwins#package-2022-05 (#29615)

* Increment versions for orbital releases (#29614)

Increment package versions for orbital releases

* Increment versions for extendedlocation releases (#29619)

Increment package versions for extendedlocation releases

* Implement sendSync in OkHttpClient (#29601)

* simplify request body creation.

* sync okhttp client.

* test buffered responses.

* chlog.

* body's closeable.

* Prepare BOM patch release for June 2022 (#29604)

* Updated versions to latest stable releases.

* Reverted change to AOT GraalVM's POM on Form Recognizer dependency version to use the latest beta instead of the latest stable. Added a beta entry for Form Recognizer on `version_client.txt`.

* Updated BOM version in POM, README and CHANGELOG.

* Reverted `version_client.txt` and AOT GraalVM POM changes.

* Enable Batch release for metricsadvisor (#29622)

* RestProxy Always validate fluxes and inputstreams. (#29603)

* Always validate fluxes and inputstreams.

* unused.

* rebase again
remove epoll dependency from module-info (#29509)

* remove epoll dependency from module-info

Co-authored-by: annie-mac <annie-mac@XBX-2505-B09E.redmond.corp.microsoft.com>
Co-authored-by: annie-mac <annie-mac@yindeng2019.fareast.corp.microsoft.com>
Co-authored-by: annie-mac <annie-mac@annie-macs-MacBook-Pro.local>
Co-authored-by: annie-mac <annie-mac@annie-macs-MBP.home>

* Increment package versions for digitaltwins releases (#29630)

* [ISSUE-29566] Add configuration for visibility timeout in StorageQueueMessageSource (#29567)

* [ISSUE-29566] Add configuration for visibility timeout in StorageQueueMessageSource

* [ISSUE-29566] Adding documentation to sdk/spring/CHANGELOG

Co-authored-by: Soumabrata Chakraborty <soumabrata.chakraborty@walmart.com>

* update codegen to 4.1.0 (#29633)

* mgmt, prepare release 2.16.0 (#29632)

* version_client.txt

* pom.xml

* readme.md

* changelog.md

* samples.json

* autocent

* Fix compatibility tests of deleting range (#29631)

* fix delete range
* add maven pom
* exclude wiremock-jre8

* Performance improvement for case insensitive queries (#29597)

* Performance update for case insensitive queries. No unit tests needed as functionality is already tested with existing tests.

* Fixing logic error.

* Updating logic to be more accurate, including addinga new CriteriaType function. Also added unit tests.

* Adding performance enhancing logic for IS_EQUAL and unit tests.

* Fixing IS_EQUAL performance logic related to case insensitive search and added unit tests.

* Fixing code style issues.

* Update CriteriaType.java

* Update AbstractQueryGenerator.java

* Update CriteriaType.java

* Update AbstractQueryGenerator.java

* Update AbstractQueryGenerator.java

Co-authored-by: Fabian Meiswinkel <fabian@meiswinkel.com>

* Increment version for resourcemanager releases (#29636)

* Increment package version after release of com.azure.resourcemanager azure-resourcemanager-resources

* Increment package version after release of com.azure.resourcemanager azure-resourcemanager-storage

* Increment package version after release of com.azure.resourcemanager azure-resourcemanager-authorization

* Increment package version after release of com.azure.resourcemanager azure-resourcemanager-keyvault

* Increment package version after release of com.azure.resourcemanager azure-resourcemanager-msi

* Increment package version after release of com.azure.resourcemanager azure-resourcemanager-network

* Increment package version after release of com.azure.resourcemanager azure-resourcemanager-compute

* Increment package version after release of com.azure.resourcemanager azure-resourcemanager-sql

* Increment package version after release of com.azure.resourcemanager azure-resourcemanager-dns

* Increment package version after release of com.azure.resourcemanager azure-resourcemanager-cosmos

* Increment package version after release of com.azure.resourcemanager azure-resourcemanager-appservice

* Increment package version after release of com.azure.resourcemanager azure-resourcemanager-containerservice

* Increment package version after release of com.azure.resourcemanager azure-resourcemanager-eventhubs

* Increment package version after release of com.azure.resourcemanager azure-resourcemanager-monitor

* Increment package version after release of com.azure.resourcemanager azure-resourcemanager-containerregistry

* Increment package version after release of com.azure.resourcemanager azure-resourcemanager-appplatform

* Increment package version after release of com.azure.resourcemanager azure-resourcemanager-containerinstance

* Increment package version after release of com.azure.resourcemanager azure-resourcemanager-privatedns

* Increment package version after release of com.azure.resourcemanager azure-resourcemanager-redis

* Increment package version after release of com.azure.resourcemanager azure-resourcemanager-trafficmanager

* Increment package version after release of com.azure.resourcemanager azure-resourcemanager-servicebus

* Increment package version after release of com.azure.resourcemanager azure-resourcemanager-cdn

* Increment package version after release of com.azure.resourcemanager azure-resourcemanager-search

* Increment package version after release of com.azure.resourcemanager azure-resourcemanager

* Update ResourceManager pipeline to use batch release (#29642)

* Update ResourceManager pipeline to use batch release

* Move azure-resourcemanager-samples to AdditionalModules

* Tracing docs improvements (#29623)

* tracing docs update

* Update Dockerfile image references to avoid using external ones (#29626)

For more info on the requirement see https://aka.ms/containers-security-guidance to remove the reference of container images from external registries

* Sync eng/common directory with azure-sdk-tools for PR 3481 (#29625)

* Support local addons path override in stress test deployment

* Support username based deployId in local stress deployment

* Support WhatIf in stress infrastructure provision script

* Simplify stress user detection

Co-authored-by: Wes Haggard <weshaggard@users.noreply.github.com>

* Run helm plugin add with helper

* Add WhatIf support to ps module install helper function

Co-authored-by: Ben Broderick Phillips <bebroder@microsoft.com>
Co-authored-by: Wes Haggard <weshaggard@users.noreply.github.com>

* Fixed merge conflicts in CHANGELOG

* Merge out from main

* Inadvertantly reversed a delta with a rebase. re-applying.

* Update spotbugs xml. with correct unit string

Co-authored-by: Azure SDK Bot <53356347+azure-sdk@users.noreply.github.com>
Co-authored-by: Weidong Xu <weidxu@microsoft.com>
Co-authored-by: Srikanta <51379715+srnagar@users.noreply.github.com>
Co-authored-by: Yi Liu <yiliu6@microsoft.com>
Co-authored-by: Shawn Fang <45607042+mssfang@users.noreply.github.com>
Co-authored-by: Xiaofei Cao <92354331+XiaofeiCao@users.noreply.github.com>
Co-authored-by: Sameeksha Vaity <savaity@microsoft.com>
Co-authored-by: vcolin7 <vicolina@microsoft.com>
Co-authored-by: Kamil Sobol <61715331+kasobol-msft@users.noreply.github.com>
Co-authored-by: Fabian Meiswinkel <fabian@meiswinkel.com>
Co-authored-by: Xiaolu Dai <31124698+saragluna@users.noreply.github.com>
Co-authored-by: James Suplizio <jasupliz@microsoft.com>
Co-authored-by: annie-mac <annie-mac@XBX-2505-B09E.redmond.corp.microsoft.com>
Co-authored-by: annie-mac <annie-mac@yindeng2019.fareast.corp.microsoft.com>
Co-authored-by: annie-mac <annie-mac@annie-macs-MacBook-Pro.local>
Co-authored-by: annie-mac <annie-mac@annie-macs-MBP.home>
Co-authored-by: Soumabrata Chakraborty <soumabrata@gmail.com>
Co-authored-by: Soumabrata Chakraborty <soumabrata.chakraborty@walmart.com>
Co-authored-by: Muyao Feng <92105726+Netyyyy@users.noreply.github.com>
Co-authored-by: Trevor Anderson <63077034+trande4884@users.noreply.github.com>
Co-authored-by: Liudmila Molkova <limolkova@microsoft.com>
Co-authored-by: Milis <adrianmi@microsoft.com>
Co-authored-by: Ben Broderick Phillips <bebroder@microsoft.com>
Co-authored-by: Wes Haggard <weshaggard@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Mgmt - Track 2 Mgmt This issue is related to a management-plane library.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants