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

Update OperationResults to be location-based in 2024-09-01 #33035

Open
wants to merge 8 commits into
base: main
Choose a base branch
from

Update OperationResults to be location-based in 2024-09-01

1d51596
Select commit
Loading
Failed to load commit list.
Open

Update OperationResults to be location-based in 2024-09-01 #33035

Update OperationResults to be location-based in 2024-09-01
1d51596
Select commit
Loading
Failed to load commit list.
openapi-pipeline-app / SDK azure-sdk-for-java failed Mar 6, 2025 in 21m 5s

SDK azure-sdk-for-java failed

Details

Note

For more instructions, please refer to the FAQ .

  • Failed in generating from 0a163db. SDK Automation 14.0.0
    Only showing 60 items here. Refer to log for details.
    cmderr	[Java-Sdk-Automation] import com.azure.core.management.profile.AzureProfile;
    cmderr	[Java-Sdk-Automation] import com.azure.core.models.AzureCloud;
    cmderr	[Java-Sdk-Automation] import com.azure.core.test.http.MockHttpResponse;
    cmderr	[Java-Sdk-Automation] import com.azure.resourcemanager.recoveryservicesdatareplication.RecoveryServicesDataReplicationManager;
    cmderr	[Java-Sdk-Automation] import com.azure.resourcemanager.recoveryservicesdatareplication.fluent.models.PrivateEndpointConnectionProxyInner;
    cmderr	[Java-Sdk-Automation] import com.azure.resourcemanager.recoveryservicesdatareplication.models.ConnectionDetails;
    cmderr	[Java-Sdk-Automation] import com.azure.resourcemanager.recoveryservicesdatareplication.models.GroupConnectivityInformation;
    cmderr	[Java-Sdk-Automation] import com.azure.resourcemanager.recoveryservicesdatareplication.models.PrivateEndpointConnectionProxy;
    cmderr	[Java-Sdk-Automation] import com.azure.resourcemanager.recoveryservicesdatareplication.models.PrivateEndpointConnectionProxyProperties;
    cmderr	[Java-Sdk-Automation] import com.azure.resourcemanager.recoveryservicesdatareplication.models.PrivateLinkServiceConnection;
    cmderr	[Java-Sdk-Automation] import com.azure.resourcemanager.recoveryservicesdatareplication.models.PrivateLinkServiceConnectionState;
    cmderr	[Java-Sdk-Automation] import com.azure.resourcemanager.recoveryservicesdatareplication.models.PrivateLinkServiceProxy;
    cmderr	[Java-Sdk-Automation] import com.azure.resourcemanager.recoveryservicesdatareplication.models.RemotePrivateEndpoint;
    cmderr	[Java-Sdk-Automation] import com.azure.resourcemanager.recoveryservicesdatareplication.models.RemotePrivateEndpointConnection;
    cmderr	[Java-Sdk-Automation] import java.nio.ByteBuffer;
    cmderr	[Java-Sdk-Automation] import java.nio.charset.StandardCharsets;
    cmderr	[Java-Sdk-Automation] import java.time.OffsetDateTime;
    cmderr	[Java-Sdk-Automation] import org.junit.jupiter.api.Assertions;
    cmderr	[Java-Sdk-Automation] import org.junit.jupiter.api.Test;
    cmderr	[Java-Sdk-Automation] import reactor.core.publisher.Flux;
    cmderr	[Java-Sdk-Automation] import reactor.core.publisher.Mono;
    cmderr	[Java-Sdk-Automation] public final class PrivateEndpointConnectionProxieMockTests {
    cmderr	[Java-Sdk-Automation]     @Test
    cmderr	[Java-Sdk-Automation]     public void testList() throws Exception {
    cmderr	[Java-Sdk-Automation]         String responseStr = "{\"value\":[{\"properties\":{\"provisioningState\":\"Succeeded\",\"remotePrivateEndpoint\":{\"id\":\"oxnbkkjanurnnqbn\",\"privateLinkServiceConnections\":[{\"name\":\"zxqltgrdogypx\",\"groupIds\":[\"bfihw\",\"hvcta\",\"s\",\"bxrblmliowxihspn\"],\"requestMessage\":\"qagnepzwakl\"},{\"name\":\"sbq\",\"groupIds\":[\"gwwrxaomzis\",\"lrrcz\",\"zkhhltnjadhqo\"],\"requestMessage\":\"jqoyueayfbpcm\"},{\"name\":\"lbyrru\",\"groupIds\":[\"hwmgnmbscbbxig\",\"hxiidlopedb\",\"dpyqyybxubmd\"],\"requestMessage\":\"fcbqwremjela\"},{\"name\":\"cigeleohdbvqvw\",\"groupIds\":[\"opwbeonrlkwzd\",\"ybxc\",\"akxcptsoqfyiaseq\",\"hkrttzrazis\"],\"requestMessage\":\"kiuemv\"}],\"manualPrivateLinkServiceConnections\":[{\"name\":\"zohmnrxxbs\",\"groupIds\":[\"linhmdptysprqs\",\"nzxojpslsvjgpli\",\"fiqwoy\",\"qvapcohhoucq\"],\"requestMessage\":\"oj\"},{\"name\":\"x\",\"groupIds\":[\"dcgdzbenribca\",\"etzqd\",\"tjwfljhznamtua\"],\"requestMessage\":\"zwcjjncqtj\"},{\"name\":\"izvg\",\"groupIds\":[\"tzuuvb\",\"ngrebwg\"],\"requestMessage\":\"httzlswvajqfutlx\"}],\"privateLinkServiceProxies\":[{\"id\":\"asunwqrjzfrgq\",\"remotePrivateLinkServiceConnectionState\":{},\"remotePrivateEndpointConnection\":{},\"groupConnectivityInformation\":[{},{},{},{}]},{\"id\":\"buocnjr\",\"remotePrivateLinkServiceConnectionState\":{},\"remotePrivateEndpointConnection\":{},\"groupConnectivityInformation\":[{}]},{\"id\":\"ryxameblydyvkfkm\",\"remotePrivateLinkServiceConnectionState\":{},\"remotePrivateEndpointConnection\":{},\"groupConnectivityInformation\":[{},{}]},{\"id\":\"hvsmtodlfpyap\",\"remotePrivateLinkServiceConnectionState\":{},\"remotePrivateEndpointConnection\":{},\"groupConnectivityInformation\":[{},{},{}]}],\"connectionDetails\":[{\"id\":\"yunssx\",\"privateIpAddress\":\"hi\",\"linkIdentifier\":\"gjlgvvpase\",\"groupId\":\"gbuxantuygdh\",\"memberName\":\"qipir\"},{\"id\":\"wrq\",\"privateIpAddress\":\"ulopmjnlexwhcb\",\"linkIdentifier\":\"ibkeph\",\"groupId\":\"uerct\",\"memberName\":\"oyin\"},{\"id\":\"pbrlcyrduczkgofx\",\"privateIpAddress\":\"srucvcrrpcjtt\",\"linkIdentifier\":\"t\",\"groupId\":\"eaqnrmvvfkoxm\",\"memberName\":\"hktuidvrma\"}]}},\"etag\":\"pdwwexymzvlazi\",\"id\":\"hpwvqsgnyyuu\",\"name\":\"ivensrpmeyyvpk\",\"type\":\"atlb\"}]}";
    cmderr	[Java-Sdk-Automation]         HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8)));
    cmderr	[Java-Sdk-Automation]         RecoveryServicesDataReplicationManager manager = RecoveryServicesDataReplicationManager.configure().withHttpClient(httpClient).authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD));
    cmderr	[Java-Sdk-Automation]         PagedIterable<PrivateEndpointConnectionProxy> response = manager.privateEndpointConnectionProxies().list("dmxzjijpv", "aurkihcirlde", com.azure.core.util.Context.NONE);
    cmderr	[Java-Sdk-Automation]         Assertions.assertEquals("oxnbkkjanurnnqbn", response.iterator().next().properties().remotePrivateEndpoint().id());
    cmderr	[Java-Sdk-Automation]         Assertions.assertEquals("zxqltgrdogypx", response.iterator().next().properties().remotePrivateEndpoint().privateLinkServiceConnections().get(0).name());
    cmderr	[Java-Sdk-Automation]         Assertions.assertEquals("bfihw", response.iterator().next().properties().remotePrivateEndpoint().privateLinkServiceConnections().get(0).groupIds().get(0));
    cmderr	[Java-Sdk-Automation]         Assertions.assertEquals("qagnepzwakl", response.iterator().next().properties().remotePrivateEndpoint().privateLinkServiceConnections().get(0).requestMessage());
    cmderr	[Java-Sdk-Automation]         Assertions.assertEquals("zohmnrxxbs", response.iterator().next().properties().remotePrivateEndpoint().manualPrivateLinkServiceConnections().get(0).name());
    cmderr	[Java-Sdk-Automation]         Assertions.assertEquals("linhmdptysprqs", response.iterator().next().properties().remotePrivateEndpoint().manualPrivateLinkServiceConnections().get(0).groupIds().get(0));
    cmderr	[Java-Sdk-Automation]         Assertions.assertEquals("oj", response.iterator().next().properties().remotePrivateEndpoint().manualPrivateLinkServiceConnections().get(0).requestMessage());
    cmderr	[Java-Sdk-Automation]         Assertions.assertEquals("asunwqrjzfrgq", response.iterator().next().properties().remotePrivateEndpoint().privateLinkServiceProxies().get(0).id());
    cmderr	[Java-Sdk-Automation]         Assertions.assertEquals("yunssx", response.iterator().next().properties().remotePrivateEndpoint().connectionDetails().get(0).id());
    cmderr	[Java-Sdk-Automation]         Assertions.assertEquals("hi", response.iterator().next().properties().remotePrivateEndpoint().connectionDetails().get(0).privateIpAddress());
    cmderr	[Java-Sdk-Automation]         Assertions.assertEquals("gjlgvvpase", response.iterator().next().properties().remotePrivateEndpoint().connectionDetails().get(0).linkIdentifier());
    cmderr	[Java-Sdk-Automation]         Assertions.assertEquals("gbuxantuygdh", response.iterator().next().properties().remotePrivateEndpoint().connectionDetails().get(0).groupId());
    cmderr	[Java-Sdk-Automation]         Assertions.assertEquals("qipir", response.iterator().next().properties().remotePrivateEndpoint().connectionDetails().get(0).memberName());
    cmderr	[Java-Sdk-Automation]         Assertions.assertEquals("pdwwexymzvlazi", response.iterator().next().etag());
    cmderr	[Java-Sdk-Automation]     }
    cmderr	[Java-Sdk-Automation] })
    cmderr	[Java-Sdk-Automation] 	at java.base/java.util.stream.Collectors.duplicateKeyException(Collectors.java:133)
    cmderr	[Java-Sdk-Automation] 	at java.base/java.util.stream.Collectors.lambda$uniqKeysMapAccumulator$1(Collectors.java:180)
    cmderr	[Java-Sdk-Automation] 	at java.base/java.util.stream.ReduceOps$3ReducingSink.accept(ReduceOps.java:169)
    cmderr	[Java-Sdk-Automation] 	at java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1655)
    cmderr	[Java-Sdk-Automation] 	at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:484)
    cmderr	[Java-Sdk-Automation] 	at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:474)
    cmderr	[Java-Sdk-Automation] 	at java.base/java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:913)
    cmderr	[Java-Sdk-Automation] 	at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
    cmderr	[Java-Sdk-Automation] 	at java.base/java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:578)
    cmderr	[Java-Sdk-Automation] 	at com.microsoft.typespec.http.client.generator.Main.handleFluent(Main.java:112)
    cmderr	[Java-Sdk-Automation] 	at com.microsoft.typespec.http.client.generator.Main.main(Main.java:86)
    cmderr	[Java-Sdk-Automation] Example of how to compile using the tsp commandline. NOTE: tsp-client does NOT directly run this command, results may vary:
    cmderr	[Java-Sdk-Automation]         npx tsp compile /mnt/vss/_work/1/s/azure-sdk-for-java/sdk/recoveryservicesdatareplication/azure-resourcemanager-recoveryservicesdatareplication/TempTypeSpecFiles/DataReplication.Management/main.tsp --emit @azure-tools/typespec-java --option package-dir=azure-resourcemanager-recoveryservicesdatareplication --option flavor=azure --option namespace=com.azure.resourcemanager.recoveryservicesdatareplication --option service-name=Recovery Services Data Replication --option emitter-output-dir=/mnt/vss/_work/1/s/azure-sdk-for-java/sdk/recoveryservicesdatareplication/azure-resourcemanager-recoveryservicesdatareplication
    cmderr	[Java-Sdk-Automation]
    cmderr	[Java-Sdk-Automation] Failed to generate client
    cmdout	[Java-Sdk-Automation] 2025-03-06 00:22:58 [ERROR] [GENERATE] Code generation failed. tsp-client init fails: Command '['npx', 'tsp-client', 'init', '--debug', '--tsp-config', '/mnt/vss/_work/1/s/azure-rest-api-specs/specification/recoveryservicesdatareplication/DataReplication.Management', '--commit', '0a163db5d20f20ad377414dd7c99344d59d30e5a', '--repo', 'Azure/azure-rest-api-specs', '--local-spec-repo', '/mnt/vss/_work/1/s/azure-rest-api-specs/specification/recoveryservicesdatareplication/DataReplication.Management']' returned non-zero exit status 1.
  • ️✔️azure-resourcemanager-recoveryservicesdatareplication [Preview SDK Changes]
  • azure-resourcemanager-recoveryservicesdatareplication [Preview SDK Changes]