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

Query implementation skeleton #3

Open
wants to merge 201 commits into
base: users/fabianm/AvailabilityStrategyAllRegionExceptionFix
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
201 commits
Select commit Hold shift + click to select a range
e4275c1
Query implementation skeleton
FabianMeiswinkel Sep 2, 2023
016aa3b
Merge branch 'users/fabianm/AvailabilityStrategyAllRegionExceptionFix…
FabianMeiswinkel Sep 13, 2023
86553a3
Improve the OTel version management in Spring Monitor (#36714)
jeanbisutti Sep 13, 2023
9112956
Update CosmosPagedFluxOptions.java
FabianMeiswinkel Sep 13, 2023
0537d2e
Increment package versions for storage releases (#36735)
azure-sdk Sep 13, 2023
064a61c
Fix Table Samples Issue (#36705)
Menghua1 Sep 13, 2023
5d47ca9
Fix Schema Registry - Avro Samples Issue (#36706)
Menghua1 Sep 13, 2023
9f05b88
[ThroughputControl]enableThroughputControlOnGateway (#36687)
xinlian12 Sep 13, 2023
1e09eab
Stabilize flaky test (#36719)
alzimmermsft Sep 13, 2023
980fb29
Resolving delete entity not working on empty primary keys (#36721)
jairmyree Sep 13, 2023
2470899
Sync eng/common directory with azure-sdk-tools for PR 6895 (#36743)
azure-sdk Sep 13, 2023
6f18a65
Improve JavaDocs for Azure Monitor Ingestion (#36727)
srnagar Sep 13, 2023
06625b5
Added fallback mechanism to use service cryptography if not possible …
vcolin7 Sep 13, 2023
d9f1c1b
Azure Monitor Query: prepare for beta 2 release of batch metrics (#36…
srnagar Sep 13, 2023
bfe3a45
Adding links to the documentation. (#36741)
jairmyree Sep 13, 2023
a088538
[Tables] Allow getEntity to retrieve entities with an empty string pr…
jairmyree Sep 13, 2023
fa6f086
[Form recognizer] Fix Javadoc improvements JDK 20 (#36700)
samvaity Sep 13, 2023
5d56b96
Prepare EventGrid September 2023 release (#36753)
billwert Sep 13, 2023
336f554
Fix client options flow to Http line in SDKs. (#36382)
g2vinay Sep 13, 2023
fc12d28
Prepare Tables Patch Release September 2023 (#36754)
jairmyree Sep 13, 2023
2102dd4
Increment package versions for eventgrid releases (#36756)
azure-sdk Sep 13, 2023
8f9272a
mgmt, update Microsoft Cache to 2023-08-01 (#36729)
v-hongli1 Sep 14, 2023
1924eaf
openai, remove dependent on azure-core-experimental (#36733)
weidongxu-microsoft Sep 14, 2023
ef7c84e
mgmt, update signalr to 2023-06-01-preview (#36759)
v-hongli1 Sep 14, 2023
145bc3e
mgmt, update Azure Kubernetes Fleet Manager to 2023-06-15-preview (#3…
v-hongli1 Sep 14, 2023
18bf93d
Add InputStream Support for Client Certificate Credential + Fix 403 E…
g2vinay Sep 14, 2023
c2e318b
fix cosmos pipeline (#36758)
Netyyyy Sep 14, 2023
3f261df
Revamp KV Javadocs (#34545)
g2vinay Sep 14, 2023
a790a26
Azure Monitor Query: Prepare patch release (#36752)
srnagar Sep 14, 2023
f69234f
Fix attach type by matching spec (#36166)
heyams Sep 14, 2023
fb3936d
Remove Usage of StepVerifier.setDefaultTimeout in Tests (#36713)
alzimmermsft Sep 14, 2023
da400e5
Fix code sample in troubleshooting guide (#36460)
srnagar Sep 14, 2023
9e11830
Prepare Form Recognizer patch release (#36757)
samvaity Sep 14, 2023
c5ac4e3
Merge branch 'users/fabianm/AvailabilityStrategyAllRegionExceptionFix…
FabianMeiswinkel Sep 14, 2023
2ab9cc3
Update EndToEndTimeOutWithAvailabilityTest.java
FabianMeiswinkel Sep 14, 2023
7aa44d6
Move hedging on top of ClientRetryPolicy (#36508)
FabianMeiswinkel Sep 15, 2023
47f7777
Increment package versions for containerservicefleet releases (#36779)
azure-sdk Sep 15, 2023
a0b2606
Increment package versions for signalr releases (#36780)
azure-sdk Sep 15, 2023
177aca7
Cosmos Benchmark improvements (#35685)
FabianMeiswinkel Sep 15, 2023
7dbbe73
Merge branch 'main' of https://github.com/Azure/azure-sdk-for-java in…
FabianMeiswinkel Sep 15, 2023
ccda6fd
3398502 - Fix ACS PSTN Sip Configuration SDK tests (#36677)
slpavkov Sep 15, 2023
152a5df
Fixes #34265 (#36595)
Menghua1 Sep 15, 2023
e8d5bc0
Prepare azure-search-documents for September 2023 Beta Release (#36790)
alzimmermsft Sep 15, 2023
9923531
Merge branch 'main' of https://github.com/Azure/azure-sdk-for-java in…
FabianMeiswinkel Sep 15, 2023
9621f1a
Sample for rewriting Cognitive Search URLs from OData syntax to stand…
alzimmermsft Sep 15, 2023
5d71496
Increment package versions for search releases (#36794)
azure-sdk Sep 15, 2023
9397b18
Fix azure-search-document flaky test (#36795)
alzimmermsft Sep 15, 2023
fe48fea
Sync eng/common directory with azure-sdk-tools for PR 6982 (#36792)
azure-sdk Sep 15, 2023
0dcfa49
Increment package versions for formrecognizer releases (#36791)
azure-sdk Sep 15, 2023
0a2dec6
Skeleton of initial query availability strategy
FabianMeiswinkel Sep 15, 2023
b20cdd3
mgmt, update autorest.java 4.1.20 (#36782)
weidongxu-microsoft Sep 18, 2023
a83166e
ServiceBus tracing: Fix more occurrences of NPE when message is null …
lmolkova Sep 18, 2023
ed5be78
[Automation] Generate Fluent Lite from communication# (#36807)
azure-sdk Sep 18, 2023
4866a11
Increment package versions for communication releases (#36809)
azure-sdk Sep 18, 2023
ee9b6de
mgmt, update iothub to 2023-06-30-preview (#36810)
v-hongli1 Sep 18, 2023
b551ef2
Update RxDocumentClientImpl.java
FabianMeiswinkel Sep 18, 2023
c75733c
Finishing availability strategy for query implementation
FabianMeiswinkel Sep 18, 2023
3581090
fix small issue in Rntbd (#36799)
xinlian12 Sep 18, 2023
9106c78
Serilaize with depth (#36798)
azure-sdk Sep 18, 2023
a4f72e5
Updated changelog with hotfix releases (#36813)
kushagraThapar Sep 18, 2023
882c56c
Prepare September 2023 release for Service Bus (#36815)
anuchandy Sep 18, 2023
eca903d
Redirect messaging troubleshooting guides (#36820)
conniey Sep 18, 2023
395953a
[AppConfig-BugFix] Preserve unknown properties in FeatureFlag and Sec…
mssfang Sep 18, 2023
3a9ce8b
Java-specific changes: Move deprecated packages to legacy (#36649)
danieljurek Sep 18, 2023
4eb58e9
Increment versions after servicebus sept-2023 release (#36827)
anuchandy Sep 18, 2023
39992bb
Update CHANGELOG.md (#36828)
jairmyree Sep 19, 2023
d168457
Increment package versions for iothub releases (#36812)
azure-sdk Sep 19, 2023
fadb0ea
Generate SDK based on TypeSpec 0.8.13 (#36703)
azure-sdk Sep 19, 2023
082952f
Adding more query tests with availability strategy
FabianMeiswinkel Sep 19, 2023
8266c67
Increment package versions for monitor releases (#36770)
azure-sdk Sep 19, 2023
7f6fdb6
Adding more query with availability strategy tests
FabianMeiswinkel Sep 19, 2023
cf5454b
Adding more query availability strategy tests
FabianMeiswinkel Sep 19, 2023
1faa3d2
Prepare release for Schema Registry (#36837)
conniey Sep 19, 2023
5498d6e
[OpenAI] Whisper support (#36693)
jpalvarezl Sep 19, 2023
634ee62
spark4.22.0Release (#36845)
xinlian12 Sep 19, 2023
adf8d6d
mgmt, update codegen to 4.1.21 (#36849)
weidongxu-microsoft Sep 20, 2023
8835bda
Add self-diagnostics features to Spring Monitor (#36712)
jeanbisutti Sep 20, 2023
08ba68a
[OpenAI] Added WithResponse methods for Whisper new methods (#36852)
mssfang Sep 20, 2023
88aa872
[Automation] Generate Fluent Lite from iothub#package-2023-06 (#36834)
azure-sdk Sep 20, 2023
ec6ed7f
[OpenAI] Added WIthResponse methods for completion, chat completion a…
mssfang Sep 20, 2023
f18de85
Increment package versions for cosmos releases (#36848)
azure-sdk Sep 20, 2023
7ca523e
Adding documentation to default constructor. (#36862)
conniey Sep 20, 2023
e7f7ff0
Prepare Sept 2023 Identity beta release (#36861)
billwert Sep 21, 2023
67f6682
Iterating on query with availability strategy tests
FabianMeiswinkel Sep 21, 2023
9c250fe
Add Azure Content Safety java (#36736)
zhaiyutong Sep 21, 2023
4b5d612
[Automation] Generate Fluent Lite from solutions#package-managedappli…
azure-sdk Sep 21, 2023
43f78dd
Increment package versions for managedapplications releases (#36877)
azure-sdk Sep 21, 2023
b59e21c
Increment package versions for iothub releases (#36854)
azure-sdk Sep 21, 2023
42d0ec5
Changing query availability tests to use an array of diagnostcs conte…
FabianMeiswinkel Sep 21, 2023
520505b
Increment package versions for identity releases (#36873)
azure-sdk Sep 21, 2023
0fbfd34
Fixed stale minConnectionPoolSizePerEndpoint config. (#36599)
jeet1995 Sep 21, 2023
f05cf65
Fmorales/hold (#36858)
cochi2 Sep 21, 2023
09cfaa6
Increment versions for schemaregistry releases (#36888)
azure-sdk Sep 21, 2023
5690190
Query - emit CosmosDiagnosticsContext per page - not per pageflux
FabianMeiswinkel Sep 22, 2023
dc2a7e7
Reenabling tests
FabianMeiswinkel Sep 22, 2023
db65e16
[Automation] Generate Fluent Lite from postgresqlhsc#package-2022-11-…
azure-sdk Sep 22, 2023
a379507
add release date for Azure AI Content Safety (#36895)
zhaiyutong Sep 22, 2023
1ccb4f0
Increment package versions for cosmosdbforpostgresql releases (#36897)
azure-sdk Sep 22, 2023
53acf8b
[Automation] Generate Fluent Lite from hybridconnectivity#package-202…
azure-sdk Sep 22, 2023
f8cb8fc
Increment package versions for contentsafety releases (#36901)
azure-sdk Sep 22, 2023
32c987b
Increment package versions for hybridconnectivity releases (#36902)
azure-sdk Sep 22, 2023
527bbd0
[OpenAI] Added Missing Transcription WithResponse APIs (#36868)
mssfang Sep 22, 2023
0f792ea
[OpenAI] Whisper changes (pre-release 21/09 TSP final interations) (#…
jpalvarezl Sep 22, 2023
7abc605
Add instrumentation documentation for Spring Monitor (#36879)
jeanbisutti Sep 22, 2023
23e9066
[Automation] Generate Fluent Lite from recoveryservicessiterecovery#p…
azure-sdk Sep 22, 2023
68b3129
Merge branch 'main' of https://github.com/Azure/azure-sdk-for-java in…
FabianMeiswinkel Sep 22, 2023
9408d5d
Update RxDocumentClientImpl.java
FabianMeiswinkel Sep 22, 2023
e0da199
Fixing SpotBug violations
FabianMeiswinkel Sep 22, 2023
dd6913f
Increment package versions for recoveryservicessiterecovery releases …
azure-sdk Sep 22, 2023
8bad3af
[OpenAI] `prompt_annotations` and `prompt_filter_results` rename (#36…
jpalvarezl Sep 22, 2023
7d95fae
Prepare for beta.5 release (#36914)
mssfang Sep 22, 2023
f4b0f55
Make InitialMicroBatchSize API public (#36910)
FabianMeiswinkel Sep 22, 2023
4671680
Increment package versions for openai releases (#36915)
azure-sdk Sep 22, 2023
69ac7cf
Iterating on query with availability strategy
FabianMeiswinkel Sep 22, 2023
0e64e66
Ability to disable Spring Monitor (#36912)
jeanbisutti Sep 22, 2023
efeedd2
Add test for QueryRequestOptions with allowEmptyPages
FabianMeiswinkel Sep 22, 2023
0d7765b
Update DocumentProducerTest.java
FabianMeiswinkel Sep 22, 2023
3470bd4
Use Disposables.composite.add() in ReactorSession (#36917)
anuchandy Sep 22, 2023
1f0fc4e
Update FaultInjectionWithAvailabilityStrategyTests.java
FabianMeiswinkel Sep 22, 2023
ebe95da
make docs JDK 20 compatible (#36771)
g2vinay Sep 22, 2023
c2f6e5c
Handle user thrown exceptions in PartitionProcessor. (#36891)
conniey Sep 22, 2023
f8a66c2
Update CosmosPagedFlux.java
FabianMeiswinkel Sep 22, 2023
0d1fad2
Sync eng/common directory with azure-sdk-tools for PR 7002 (#36919)
azure-sdk Sep 22, 2023
91dac22
Remove fake shared key. (#36923)
conniey Sep 22, 2023
c560fd8
Adding hedging for query plan
FabianMeiswinkel Sep 22, 2023
38a408f
Update CHANGELOG.md
FabianMeiswinkel Sep 22, 2023
409a5ac
Prepare Event Hubs for September release (#36921)
conniey Sep 22, 2023
b21e8a8
alwaysUsePagedFluxMaxItemCount (#36847)
xinlian12 Sep 23, 2023
4631447
merge from main and resolve conflicts
Sep 23, 2023
2421d37
[ChangeFeedProcessor]suppressE2ETimeoutConfigOnChangeFeedProcessor (#…
xinlian12 Sep 23, 2023
63fdc9f
merge from main and resolve conflicts
Sep 24, 2023
2bfe3a3
[Automation] Generate Fluent Lite from kubernetesconfiguration#packag…
azure-sdk Sep 25, 2023
83b5094
Increment package versions for kubernetesconfiguration releases (#36929)
azure-sdk Sep 25, 2023
a0f364c
fix NPE in the Spring Integration *InboundChannelAdapter (#36927)
saragluna Sep 25, 2023
18a3ed6
Merge branch 'main' of https://github.com/Azure/azure-sdk-for-java in…
FabianMeiswinkel Sep 25, 2023
1cf419f
Update CosmosDiagnosticsContext.java
FabianMeiswinkel Sep 25, 2023
8bc0a02
Update CosmosDiagnosticsContext.java
FabianMeiswinkel Sep 25, 2023
6bb4d81
Update ClientTelemetryMetrics.java
FabianMeiswinkel Sep 25, 2023
5cdce20
Update CosmosDiagnosticsContext.java
FabianMeiswinkel Sep 25, 2023
2e85ee3
Update CosmosPagedFlux.java
FabianMeiswinkel Sep 25, 2023
c5225d2
Update CosmosDiagnosticsContext.java
FabianMeiswinkel Sep 25, 2023
572dd3e
Update CosmosDiagnosticsContext.java
FabianMeiswinkel Sep 25, 2023
11b8577
Update CosmosDiagnosticsContext.java
FabianMeiswinkel Sep 25, 2023
feb0715
Increment package versions for eventhubs releases (#36932)
azure-sdk Sep 25, 2023
1ccd477
Increment package versions for tables releases (#36832)
azure-sdk Sep 25, 2023
36b0457
Port Identity unit tests to junit5 (#36872)
g2vinay Sep 25, 2023
639ca5f
Sync eng/common directory with azure-sdk-tools for PR 6919 (#36937)
azure-sdk Sep 25, 2023
eec1479
Aggressive warm up duration fix and sync client warm up fix (#36889)
jeet1995 Sep 25, 2023
63c4cd9
All Async File Api Tests (#36716)
ibrandes Sep 25, 2023
da3ef64
[Patch-Release-Post] Upgrade version and CHANGELOG after released (#3…
mssfang Sep 25, 2023
d788fba
release4.50.0 (#36941)
xinlian12 Sep 25, 2023
083873e
Prepare Key Vault releases for September 2023. (#36944)
vcolin7 Sep 26, 2023
b083775
Increment package versions for cosmos releases (#36947)
azure-sdk Sep 26, 2023
98e160c
Iterating on tests
FabianMeiswinkel Sep 26, 2023
4cf5345
Update Spring Boot and Spring Cloud versions for the compatibility te…
Netyyyy Sep 26, 2023
066c8df
Add documentation on JAR signature verification with Spring Monitor (…
jeanbisutti Sep 26, 2023
e5019e2
Increment package versions for spring releases (#36951)
azure-sdk Sep 26, 2023
e3a1087
Fix typo in Spring Monitor readme (#36952)
jeanbisutti Sep 26, 2023
dba3b71
Support Test Proxy's AddSanitizers in azure-core-test (#36694)
alzimmermsft Sep 26, 2023
b34bcb1
[AppConfig] Regenerated based on latest stable GA Service API (#36903)
mssfang Sep 26, 2023
2611f74
communication-room test failure for comparing with recorded datetime …
mssfang Sep 26, 2023
8db7eed
Increment package versions for keyvault releases (#36955)
azure-sdk Sep 26, 2023
dae83cf
Richardcho/cancel add participant (#36890)
richardcho-msft Sep 26, 2023
8af392b
Feed Operation State
FabianMeiswinkel Sep 27, 2023
6af64c9
Change prod maintenance day. Fix stress watcher deploy (#36948)
azure-sdk Sep 27, 2023
9eb53ce
Fixing build errors
FabianMeiswinkel Sep 27, 2023
4528f91
eng, set use-key-credential=false for GA DPG lib (#36805)
weidongxu-microsoft Sep 27, 2023
957101d
eng, ignore codegen diff check on test and samples folder (#36835)
weidongxu-microsoft Sep 27, 2023
895b8e7
Updating Hold/Unhold capabilities for Call Automation (#36922)
cochi2 Sep 27, 2023
a95804b
mgmt, dedup config (#36960)
weidongxu-microsoft Sep 27, 2023
be5f93e
[Automation] Generate Fluent Lite from playwrighttesting#package-2023…
azure-sdk Sep 27, 2023
0ff8376
Increment package versions for playwrighttesting releases (#36963)
azure-sdk Sep 27, 2023
2874084
[Automation] Generate Fluent Lite from datafactory#package-2018-06 (#…
azure-sdk Sep 27, 2023
5596091
Add Maven central link to the Spring Monitor readme (#36974)
jeanbisutti Sep 27, 2023
8bb44d5
Update SparkBridgeInternal.scala
FabianMeiswinkel Sep 27, 2023
981853d
Fixing build issues
FabianMeiswinkel Sep 27, 2023
db8bbc4
Addressing build issues
FabianMeiswinkel Sep 27, 2023
a493ad1
Fixing CI pipeline test failures
FabianMeiswinkel Sep 27, 2023
1ecd72a
Merge branch 'main' of https://github.com/Azure/azure-sdk-for-java in…
FabianMeiswinkel Sep 27, 2023
4dde858
Increment package versions for datafactory releases (#36975)
azure-sdk Sep 27, 2023
fa7687f
Cleanup
FabianMeiswinkel Sep 27, 2023
6200e77
Fix OfferReadReplaceTest
FabianMeiswinkel Sep 27, 2023
a2d1db2
Add Test Proxy logging to local runs (#36953)
alzimmermsft Sep 27, 2023
11c8cda
Update DiagnosticsProvider.java
FabianMeiswinkel Sep 27, 2023
9185ffb
Fixing test issue
FabianMeiswinkel Sep 27, 2023
611ea33
Rewrite Internal Reflection Logic (#36612)
alzimmermsft Sep 27, 2023
8c30192
Test fixes
FabianMeiswinkel Sep 27, 2023
fd9c56b
Stabilize most commonly failing tests (#36956)
alzimmermsft Sep 27, 2023
4ed2f41
Remove jacoco-test-coverage project (#35832)
alzimmermsft Sep 27, 2023
401bfc9
Test fixes
FabianMeiswinkel Sep 27, 2023
a562e65
Minor tracing samples improvements (#36226)
lmolkova Sep 27, 2023
71853be
Test fixes
FabianMeiswinkel Sep 27, 2023
3542a9b
Making responseStatsiticList a concurrent collection
FabianMeiswinkel Sep 27, 2023
5548f75
Test fixes
FabianMeiswinkel Sep 28, 2023
59f37b6
Handle `ChangeFeedProcessorContext` for full-fidelity changefeed. (#3…
jeet1995 Sep 28, 2023
53ff906
Test fixes
FabianMeiswinkel Sep 28, 2023
63ea9d6
Merge branch 'main' of https://github.com/Azure/azure-sdk-for-java in…
FabianMeiswinkel Sep 28, 2023
976a860
fix tests
FabianMeiswinkel Sep 28, 2023
f6b837b
Stabilizing flaky tests
FabianMeiswinkel Sep 28, 2023
5abed72
Stabilizing flaky tests
FabianMeiswinkel Sep 28, 2023
368d801
Update FaultInjectionWithAvailabilityStrategyTests.java
FabianMeiswinkel Sep 28, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
1 change: 0 additions & 1 deletion .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
Expand Up @@ -758,7 +758,6 @@
################
/eng/ @hallipr @weshaggard @benbp @JimSuplizio
/eng/code-quality-reports/ @mssfang @JonathanGiles
/eng/jacoco-test-coverage/ @srnagar @JonathanGiles
/eng/spotbugs-aggregate-report/ @srnagar @JonathanGiles
/eng/mgmt/ @weidongxu-microsoft @haolingdong-msft @XiaofeiCao @arthurma1978 @hallipr @weshaggard @benbp @JimSuplizio
/eng/versioning/ @alzimmermsft @samvaity @g2vinay @JimSuplizio
Expand Down
9 changes: 9 additions & 0 deletions .vscode/cspell.json
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@
"sdk/core/azure-xml/**",
"sdk/cosmos/azure-cosmos-dotnet-benchmark/**",
"sdk/core/azure-core-tracing-opentelemetry/**",
"sdk/core/azure-core-tracing-opentelemetry-samples/**",
"sdk/cosmos/azure-cosmos-benchmark/**",
"sdk/core/azure-json-gson/**",
"sdk/cosmos/azure-cosmos-spark_3-1_2-12/**",
Expand Down Expand Up @@ -330,6 +331,7 @@
"Mockito",
"Mordor",
"mosca",
"mpga",
"msal",
"msix",
"MSRC",
Expand All @@ -338,6 +340,7 @@
"odata",
"ODBC",
"okhttp",
"OTLP",
"OLTP",
"onboarded",
"Onco",
Expand Down Expand Up @@ -1038,6 +1041,12 @@
"Pdev"
]
},
{
"filename": "sdk/spring/spring-cloud-azure-starter-monitor/**.md",
"words": [
"Djava"
]
},
{
"filename": "sdk/purview/azure-analytics-purview-sharing/**",
"words": [
Expand Down
10 changes: 5 additions & 5 deletions common/smoke-tests/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@
<dependency>
<groupId>com.azure</groupId>
<artifactId>azure-cosmos</artifactId>
<version>4.49.0</version> <!-- {x-version-update;com.azure:azure-cosmos;dependency} -->
<version>4.50.0</version> <!-- {x-version-update;com.azure:azure-cosmos;dependency} -->
</dependency>

<dependency>
Expand All @@ -130,25 +130,25 @@
<dependency>
<groupId>com.azure</groupId>
<artifactId>azure-security-keyvault-secrets</artifactId>
<version>4.6.5</version> <!-- {x-version-update;com.azure:azure-security-keyvault-secrets;dependency} -->
<version>4.7.0</version> <!-- {x-version-update;com.azure:azure-security-keyvault-secrets;dependency} -->
</dependency>

<dependency>
<groupId>com.azure</groupId>
<artifactId>azure-messaging-eventhubs</artifactId>
<version>5.15.8</version> <!-- {x-version-update;com.azure:azure-messaging-eventhubs;dependency} -->
<version>5.16.0</version> <!-- {x-version-update;com.azure:azure-messaging-eventhubs;dependency} -->
</dependency>

<dependency>
<groupId>com.azure</groupId>
<artifactId>azure-messaging-eventhubs-checkpointstore-blob</artifactId>
<version>1.16.9</version> <!-- {x-version-update;com.azure:azure-messaging-eventhubs-checkpointstore-blob;dependency} -->
<version>1.17.0</version> <!-- {x-version-update;com.azure:azure-messaging-eventhubs-checkpointstore-blob;dependency} -->
</dependency>

<dependency>
<groupId>com.azure</groupId>
<artifactId>azure-storage-blob</artifactId>
<version>12.23.1</version> <!-- {x-version-update;com.azure:azure-storage-blob;dependency} -->
<version>12.24.0</version> <!-- {x-version-update;com.azure:azure-storage-blob;dependency} -->
</dependency>

<dependency>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
package com.azure.tools.checkstyle.checks;

import com.puppycrawl.tools.checkstyle.api.AbstractCheck;
import com.puppycrawl.tools.checkstyle.api.DetailAST;
import com.puppycrawl.tools.checkstyle.api.FullIdent;
import com.puppycrawl.tools.checkstyle.api.TokenTypes;

/**
* Ensures that test code doesn't use {@code StepVerifier.setDefaultTimeout}.
* <p>
* This configures a default timeout used by all {@code StepVerifier} calls, which can lead to flaky tests as this may
* affect other tests.
*/
public class StepVerifierCheck extends AbstractCheck {
private static final String SET_DEFAULT_TIMEOUT = "setDefaultTimeout";
private static final String FULLY_QUALIFIED = "reactor.test.StepVerifier.setDefaultTimeout";
private static final String METHOD_CALL = "StepVerifier.setDefaultTimeout";

static final String ERROR_MESSAGE = "Do not use StepVerifier.setDefaultTimeout as it can affect other tests. "
+ "Instead use expect* methods on StepVerifier and use verify(Duration) to "
+ "set timeouts on a test-by-test basis.";

private boolean hasStaticImport;

@Override
public int[] getDefaultTokens() {
return new int[]{
TokenTypes.METHOD_CALL,
TokenTypes.STATIC_IMPORT
};
}

@Override
public int[] getAcceptableTokens() {
return getDefaultTokens();
}

@Override
public int[] getRequiredTokens() {
return getDefaultTokens();
}

@Override
public void init() {
super.init();
hasStaticImport = false;
}

@Override
public void destroy() {
super.destroy();
hasStaticImport = false;
}

@Override
public void visitToken(DetailAST ast) {
if (ast.getType() == TokenTypes.STATIC_IMPORT) {
// Compare if the static import is for StepVerifier.setDefaultTimeout
hasStaticImport = FULLY_QUALIFIED.equals(
FullIdent.createFullIdent(ast.getFirstChild().getNextSibling()).getText());
} else {
// Compare the method call against StepVerifier.setDefaultTimeout or setDefaultTimeout if there is a static
// import for StepVerifier.setDefaultTimeout
FullIdent fullIdent = FullIdent.createFullIdentBelow(ast);
if (hasStaticImport && SET_DEFAULT_TIMEOUT.equals(fullIdent.getText())) {
log(ast.getLineNo(), fullIdent.getColumnNo(), ERROR_MESSAGE);
} else if (METHOD_CALL.equals(fullIdent.getText())) {
log(ast.getLineNo(), fullIdent.getColumnNo(), ERROR_MESSAGE);
} else if (FULLY_QUALIFIED.equals(fullIdent.getText())) {
log(ast.getLineNo(), fullIdent.getColumnNo(), ERROR_MESSAGE);
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,10 @@

<!-- AzureSpringMonitorConfig defines Spring bean used in https://github.com/open-telemetry/opentelemetry-java-instrumentation/blob/main/instrumentation/spring/spring-boot-autoconfigure/src/main/java/io/opentelemetry/instrumentation/spring/autoconfigure/OpenTelemetryAutoConfiguration.java-->
<suppress checks="com.azure.tools.checkstyle.checks.ExternalDependencyExposedCheck"
files="com.azure.monitor.applicationinsights.spring.AzureSpringMonitorConfig.java"/>
files="com.azure.monitor.applicationinsights.spring.AzureSpringMonitorAutoConfig.java"/>
<!-- To be able to return a configured loggger for self-diagnostics and use it as a Spring bean-->
<suppress checks="com.azure.tools.checkstyle.checks.ExternalDependencyExposedCheck"
files="com.azure.monitor.applicationinsights.spring.selfdiagnostics.*Log.*Config.*.java"/>

<!-- For the Application Insights Spring Boot starter for Spring native, users have only to declare the starter dependency. Users won't manipulate the Java classes of this Spring Boot starter. -->
<suppress checks="Javadoc" files=".*[/\\]com[/\\]azure[/\\]monitor[/\\]applicationinsights[/\\]spring[/\\]*"/>
Expand Down Expand Up @@ -434,6 +437,7 @@ the main ServiceBusClientBuilder. -->

<!-- Can be removed after https://github.com/Azure/azure-sdk-for-java/issues/36609 -->
<suppress checks="com.azure.tools.checkstyle.checks.(GoodLoggingCheck|ThrowFromClientLoggerCheck|UseCaughtExceptionCauseCheck)" files="com.azure.monitor.applicationinsights.spring.OpenTelemetryVersionCheckRunner.java"/>
<suppress checks="com.azure.tools.checkstyle.checks.(GoodLoggingCheck|ThrowFromClientLoggerCheck|UseCaughtExceptionCauseCheck)" files="com.azure.monitor.applicationinsights.spring.selfdiagnostics.*.java"/>

<!-- ExternalDependencyExposedCheck: Spring will directly use classes from spring dependencies in methods-->
<suppress checks="com.azure.tools.checkstyle.checks.ExternalDependencyExposedCheck" files=".*[/\\]com[/\\]azure[/\\]spring[/\\].*"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -408,5 +408,7 @@ page at http://checkstyle.sourceforge.net/config.html -->
<!-- CUSTOM CHECKS -->
<!-- Ensures caught exceptions are included as exception cause in subsequently thrown exception -->
<module name="com.azure.tools.checkstyle.checks.UseCaughtExceptionCauseCheck"/>

<module name="com.azure.tools.checkstyle.checks.StepVerifierCheck"/>
</module>
</module>
13 changes: 13 additions & 0 deletions eng/code-quality-reports/src/main/resources/revapi/revapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -299,6 +299,19 @@
"code": "java.annotation.added",
"new": "class com.azure.cosmos.models.ChangeFeedProcessorItem",
"justification": "Modifies the type of changeFeedMetaData from ChangeFeedMetaData to JsonNode."
},
{
"ignore": true,
"code": "java.field.addedStaticField",
"new": "field com.azure.data.schemaregistry.SchemaRegistryVersion.V2022_10",
"justification": "Another version of Schema Registry API released."
},
{
"regex": true,
"ignore": true,
"code": "java.field.addedStaticField",
"new": "field com\\.azure\\.data\\.schemaregistry\\.models\\.SchemaFormat\\.(CUSTOM|JSON)",
"justification": "Additional schema formats are supported by Schema Registry."
}
]
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -462,8 +462,9 @@
<!-- The casting problems do not exist in Azure use cases -->
<Match>
<Or>
<Class name="com.azure.core.implementation.MethodHandleReflectiveInvoker"/>
<Class name="com.azure.core.implementation.ReflectionUtilsMethodHandle"/>
<Class name="com.azure.core.implementation.TypeUtil"/>
<Class name="com.azure.core.implementation.ReflectionUtils"/>
</Or>
<Bug pattern="BC_UNCONFIRMED_CAST"/>
</Match>
Expand Down Expand Up @@ -2697,4 +2698,18 @@
<Method name="transfer"/>
<Bug pattern="NP_NULL_ON_SOME_PATH"/>
</Match>

<!-- Returning a new copy of the object is not necessary -->
<Match>
<Class name="~com\.azure\.ai\.openai\.models\.(AudioTranscriptionOptions|AudioTranslationOptions)"/>
<Method name="&lt;init&gt;"/>
<Bug pattern="EI_EXPOSE_REP2"/>
</Match>

<!-- False positive, it throws an IllegalArgumentException if non-exist method parameter type passed.-->
<Match>
<Class name="com.azure.ai.openai.implementation.MultipartDataHelper"/>
<Method name="serializeRequest"/>
<Bug pattern="BC_UNCONFIRMED_CAST_OF_RETURN_VALUE"/>
</Match>
</FindBugsFilter>
Original file line number Diff line number Diff line change
@@ -0,0 +1,94 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
package com.azure.tools.checkstyle.checks;

import com.puppycrawl.tools.checkstyle.AbstractModuleTestSupport;
import com.puppycrawl.tools.checkstyle.Checker;
import org.junit.jupiter.api.AfterEach;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;

import java.io.File;
import java.util.Arrays;

public class StepVerifierCheckTest extends AbstractModuleTestSupport {
private Checker checker;

@BeforeEach
public void prepare() throws Exception {
checker = createChecker(createModuleConfig(StepVerifierCheck.class));
}

@AfterEach
public void cleanup() {
checker.destroy();
}

@Override
protected String getPackageLocation() {
return "com/azure/tools/checkstyle/checks/StepVerifierCheck";
}

@Test
public void noStepVerifierSetDefaultTimeout() throws Exception {
File file = TestUtils.createCheckFile("publicClassImplementsPublicApi", Arrays.asList(
"package com.azure;",
"public class MyTestClass {",
"}"
));

verify(checker, new File[]{file}, file.getAbsolutePath());
}

@Test
public void stepVerifierSetDefaultTimeout() throws Exception {
File file = TestUtils.createCheckFile("publicClassImplementsPublicApi", Arrays.asList(
"package com.azure;",
"public class MyTestClass {",
" public void test() {",
" StepVerifier.setDefaultTimeout(Duration.ofSeconds(10));", // line 4, column 9
" }",
"}"
));

String[] expected = new String[] {
String.format("%d:%d: %s", 4, 9, StepVerifierCheck.ERROR_MESSAGE)
};
verify(checker, new File[]{file}, file.getAbsolutePath(), expected);
}

@Test
public void stepVerifierStaticImportSetDefaultTimeout() throws Exception {
File file = TestUtils.createCheckFile("publicClassImplementsPublicApi", Arrays.asList(
"package com.azure;",
"import static reactor.test.StepVerifier.setDefaultTimeout;",
"public class MyTestClass {",
" public void test() {",
" setDefaultTimeout(Duration.ofSeconds(10));", // line 5, column 9
" }",
"}"
));

String[] expected = new String[] {
String.format("%d:%d: %s", 5, 9, StepVerifierCheck.ERROR_MESSAGE)
};
verify(checker, new File[]{file}, file.getAbsolutePath(), expected);
}

@Test
public void stepVerifierFullyQualifierSetDefaultTimeout() throws Exception {
File file = TestUtils.createCheckFile("publicClassImplementsPublicApi", Arrays.asList(
"package com.azure;",
"public class MyTestClass {",
" public void test() {",
" reactor.test.StepVerifier.setDefaultTimeout(Duration.ofSeconds(10));", // line 4, column 9
" }",
"}"
));

String[] expected = new String[] {
String.format("%d:%d: %s", 4, 9, StepVerifierCheck.ERROR_MESSAGE)
};
verify(checker, new File[]{file}, file.getAbsolutePath(), expected);
}
}
11 changes: 8 additions & 3 deletions eng/common/pipelines/templates/steps/sparse-checkout.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ steps:
if (!$dir) {
$dir = "./$($repository.Name)"
}
New-Item $dir -ItemType Directory -Force
New-Item $dir -ItemType Directory -Force | Out-Null
Push-Location $dir

if (Test-Path .git/info/sparse-checkout) {
Expand Down Expand Up @@ -70,9 +70,14 @@ steps:

# sparse-checkout commands after initial checkout will auto-checkout again
if (!$hasInitialized) {
Write-Host "git -c advice.detachedHead=false checkout $($repository.Commitish)"
# Remove refs/heads/ prefix from branch names
$commitish = $repository.Commitish -replace '^refs/heads/', ''

# use -- to prevent git from interpreting the commitish as a path
Write-Host "git -c advice.detachedHead=false checkout $commitish --"

# This will use the default branch if repo.Commitish is empty
git -c advice.detachedHead=false checkout $($repository.Commitish)
git -c advice.detachedHead=false checkout $commitish --
} else {
Write-Host "Skipping checkout as repo has already been initialized"
}
Expand Down
24 changes: 24 additions & 0 deletions eng/common/scripts/Get-BuildSourceDescription.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
param(
[string]$Variable,
[switch]$IsOutput
)

$repoUrl = $env:BUILD_REPOSITORY_URI
$sourceBranch = $env:BUILD_SOURCEBRANCH

$description = "[$sourceBranch]($repoUrl/tree/$sourceBranch)"
if ($sourceBranch -match "^refs/heads/(.+)$") {
$description = "Branch: [$($Matches[1])]($repoUrl/tree/$sourceBranch)"
} elseif ($sourceBranch -match "^refs/tags/(.+)$") {
$description = "Tag: [$($Matches[1])]($repoUrl/tree/$sourceBranch)"
} elseif ($sourceBranch -match "^refs/pull/(\d+)/(head|merge)$") {
$description = "Pull request: $repoUrl/pull/$($Matches[1])"
}

if ($IsOutput) {
Write-Host "Setting output variable '$Variable' to '$description'"
Write-Host "##vso[task.setvariable variable=$Variable;isoutput=true]$description"
} else {
Write-Host "Setting variable '$Variable' to '$description'"
Write-Host "##vso[task.setvariable variable=$Variable]$description"
}
Loading
Loading