-
Notifications
You must be signed in to change notification settings - Fork 2.2k
[JDK-Matrix] Testing JDK HttpClient Matrix in AppConfig #35387
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| { | ||
| "matrix": { | ||
| "$IMPORT": "eng/pipelines/templates/stages/platform-matrix.json" | ||
| }, | ||
| "exclude": [ | ||
| { "OSVmImage": "macos-11" } | ||
| ], | ||
| "include": [ | ||
| { | ||
| "Agent": { "windows-2022": { "OSVmImage": "windows-2022", "Pool": "azsdk-pool-mms-win-2022-general" } }, | ||
| "JavaTestVersion": "1.17", | ||
| "AZURE_TEST_HTTP_CLIENTS": "jdk", | ||
| "TestFromSource": false | ||
| } | ||
| ] | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -44,8 +44,8 @@ | |
|
|
||
| <properties> | ||
| <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> | ||
| <maven.compiler.source>11</maven.compiler.source> | ||
| <maven.compiler.target>11</maven.compiler.target> | ||
| <maven.compiler.source>17</maven.compiler.source> | ||
| <maven.compiler.target>17</maven.compiler.target> | ||
|
Comment on lines
+47
to
+48
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We should leave the compiler source and target as Java 11 |
||
| <jacoco.skip>true</jacoco.skip> | ||
| <legal> | ||
| <![CDATA[[INFO] Any downloads listed may be third party software. Microsoft grants you no rights for third party software.]]></legal> | ||
|
|
@@ -56,9 +56,19 @@ | |
| <!-- Enables fail on deprecated API usage. --> | ||
| <compiler.failondeprecatedstatus/> | ||
|
|
||
| <javadoc.excludePackageNames>com.azure.json,com.azure.core.implementation*,com.azure.core.util,com.azure.core.util*, | ||
| com.azure.core.models,com.azure.core.http,com.azure.core.http.policy,com.azure.core.http.rest,com.azure.core.exception,com.azure.core.cryptography, | ||
| com.azure.core.credential,com.azure.core.client.traits,com.azure.core.annotation</javadoc.excludePackageNames> | ||
| <javadoc.excludePackageNames> | ||
| com.azure.json,com.azure.core.implementation*, | ||
| com.azure.core.util*, | ||
| com.azure.core.models, | ||
| com.azure.core.http, | ||
| com.azure.core.http.policy, | ||
| com.azure.core.http.rest, | ||
| com.azure.core.exception, | ||
| com.azure.core.cryptography, | ||
| com.azure.core.credential, | ||
| com.azure.core.client.traits, | ||
| com.azure.core.annotation | ||
| </javadoc.excludePackageNames> | ||
| </properties> | ||
|
|
||
| <developers> | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -277,9 +277,9 @@ public static Stream<HttpClient> getHttpClients() { | |
| * <li>Otherwise, the name of the HttpClient class should match env variable.</li> | ||
| * </ul> | ||
| * | ||
| * Environment values currently supported are: "ALL", "netty", "okhttp" which is case insensitive. | ||
| * Environment values currently supported are: "ALL", "jdk", "netty", "okhttp" which is case insensitive. | ||
| * Use comma to separate http clients want to test. | ||
| * e.g. {@code set AZURE_TEST_HTTP_CLIENTS = NettyAsyncHttpClient, OkHttpAsyncHttpClient} | ||
| * e.g. {@code set AZURE_TEST_HTTP_CLIENTS = JdkHttpClient, NettyAsyncHttpClient, OkHttpAsyncHttpClient} | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There needs to be further updates here to actually support JDK HttpClient. The original design isn't very flexible and requires a lot of updating to support different HttpClients. Let's have a design overhaul here and have Additional note, not all Storage SDKs use |
||
| * | ||
| * @param client Http client needs to check | ||
| * @return Boolean indicates whether filters out the client or not. | ||
|
|
||
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.
For now, let's leave this change out and just add it into the matrix AppConfiguration is using, this way if the change has issues we don't break all CI runs and only AppConfiguration which we can react to quickly.