-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
[Text Analytics] "Invalid URL '$(js-textanalytics-test-service-endpoint)/text/analytics/v3.2-preview.2/analyze': No schema supplied" in Public, USGOV and China clouds #22281
Comments
These appear to be references to a static test resource via devops variables. Any time these are here it means that the tests will not work by default for sovereign clouds, and the static test resource needs to either be replicated across the sovereign clouds by the owning team OR updated to be provisioned dynamically. FYI @kristapratico The reason you are seeing the current error (where it fails to expand the variable) is because this variable group has not been authorized for use by the weekly pipeline (but doing so won't fix the underlying issue). |
@benbp So how are we currently going to fundamentally solve this problem? Do you have any idea? Or shall we first authorize this variable group to the weekly pipeline for sovereign testing? |
These vars do refer to static test resources which are only available in the Public cloud (service constraint) - so provisioning dynamically will not quite work yet for sovereign clouds. I believe you could authorize the weekly pipeline to use the variable group since it will just use an endpoint/key combo from the Public cloud vars for these specific tests. Otherwise we can skip these tests in sovereign clouds for now. |
@kristapratico I'd rather not make cross-cloud service requests if we can avoid it (from a test coverage/isolation standpoint). Would you be able to help copy over the static resources to the UsGov and China clouds? I can help with access. |
@benbp That's fair. The issue is that these static resources pertain to features of the service that only are supported in westus2 and westeurope at the moment. The particular endpoint/key passed with env vars has trained and deployed models under the account in the Public cloud which we test from. We're unable to create these models in different clouds until the service supports it. |
@kristapratico ah ok, in that case I'd say we should skip these tests in sovereign clouds until the feature set is supported. |
@kristapratico @benbp Thanks for your help. I will skip these tests related to variable group (like
|
@v-xuto it might be best to skip on the absence of
|
@kristapratico because the variables are still referenced in tests.yml, devops will try to download them hence the access error. I recommend we build out a subscription configuration overlay for text analytics and migrate these values out of the variable group, that way we know the values won't be defined at all for sovereign tests and the test skips can handle that appropriately. I can take this on. |
@benbp okay that sounds good! let me know how I can help |
@kristapratico @v-xuto I have a PR up at #22376 which updates the yaml to support sovereign cloud testing and removes the dependency on the current variable group. Once that's merged in I can remove the old variable group reference in the pipeline as well. @kristapratico if you can double check the contents of the config where I added the env variables and add anyone else relevant to the access policies + as vault owners that would be great. (Docs on the schema and how it gets set up are here). Or:
P.S. Sadly I had to name the keyvault |
@benbp thanks for the help! I approved the PR. |
Ok the subscription configuration for public and the tests.yml config update has been made. I authorized the weekly pipeline to be able to load it for the public stage, and the env variables should not be defined for sovereign environments now. |
@benbp @kristapratico Maybe we need add envs Besides, can I update the code to the following to skip the samples (like sample_recognize_custom_entities.py) that uses the parameter
The relevant samples are: |
Hi @v-xuto, you can skip samples for UsGov and China. Just move the
under the PublicCloud config. For example: https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/translation/tests.yml#L12-L13 This will skip samples for those clouds and we won't have to add any code to the sample files themselves. |
This issue has been fixed and I will close it. |
We are running live Tests against other clouds like US Gov and Azure China Cloud. The goal is to check whether new azure sdk package work with other clouds or not.
Error Description:
When running the test test_analyze.py::TestAnalyze::test_disable_service_logs in weekly pipeline, it runs failed and the error message is shown as following. In addition, I ran this test in the local and nightly pipelines, and the result of both is pass. For more details on this issue, please check here:
Expected Behavior:
This service request is a valid url.
Maybe we need to confirm whether the value of the environment variable
js-textanalytics-test-service-endpoint
(textanalytics/tests.yml) in weekly pipeline is correct and exists.@benbp, @jameszliao-msft, @lmazuel, @meeraharidasa , @mayurid, @abhahn for notification.
The text was updated successfully, but these errors were encountered: