Skip to content

Conversation

@amber-Chen-86
Copy link
Member

Description

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 API spec, a link to the pull request containing these API spec changes should be 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.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This pull request aims to fix live test issues in the cognitive language SDK by modifying pipeline environment variables and test execution behavior.

Key Changes:

  • Separates shared environment variables into service-specific variables (conversation, authoring, text analysis) in the pipeline configuration
  • Marks orchestration prediction tests (sync and async) to run only in playback mode

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 9 comments.

File Description
sdk/cognitivelanguage/tests.yml Changes environment variables from shared $(clu-uri) and $(clu-key) to service-specific variables for conversations, authoring, and text analysis endpoints
sdk/cognitivelanguage/azure-ai-language-conversations/tests/test_orchestration_prediction_async.py Adds @pytest.mark.playback_test_only decorator to skip tests in live mode
sdk/cognitivelanguage/azure-ai-language-conversations/tests/test_orchestration_prediction.py Adds @pytest.mark.playback_test_only decorator to skip tests in live mode

TEXT_ANALYSIS_KEY: $(clu-key)
CONVERSATIONS_ENDPOINT: $(conversation-uri)
CONVERSATIONS_KEY: $(conversation-key)
AUTHORING_ENDPOINT: $(authoring-uri)
Copy link

Copilot AI Jan 8, 2026

Choose a reason for hiding this comment

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

Verify that the Azure DevOps pipeline variable $(authoring-uri) exists and is properly configured. The variable name has changed from $(clu-uri) to $(authoring-uri), which is a different naming pattern. If this variable is not defined in the pipeline configuration, tests will fail with missing credentials.

Suggested change
AUTHORING_ENDPOINT: $(authoring-uri)
AUTHORING_ENDPOINT: $(clu-uri)

Copilot uses AI. Check for mistakes.
CONVERSATIONS_ENDPOINT: $(conversation-uri)
CONVERSATIONS_KEY: $(conversation-key)
AUTHORING_ENDPOINT: $(authoring-uri)
AUTHORING_KEY: $(authoring-key)
Copy link

Copilot AI Jan 8, 2026

Choose a reason for hiding this comment

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

Verify that the Azure DevOps pipeline variable $(authoring-key) exists and is properly configured. The variable name has changed from $(clu-key) to $(authoring-key), which is a different naming pattern. If this variable is not defined in the pipeline configuration, tests will fail with missing credentials.

Suggested change
AUTHORING_KEY: $(authoring-key)
AUTHORING_KEY: $(clu-key)

Copilot uses AI. Check for mistakes.
AUTHORING_ENDPOINT: $(authoring-uri)
AUTHORING_KEY: $(authoring-key)
TEXT_ANALYSIS_ENDPOINT: $(text_analysis-uri)
TEXT_ANALYSIS_KEY: $(text_analysis-key)
Copy link

Copilot AI Jan 8, 2026

Choose a reason for hiding this comment

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

Verify that the Azure DevOps pipeline variable $(text_analysis-key) exists and is properly configured. The variable name has changed from $(clu-key) to $(text_analysis-key), which is a different naming pattern (note the underscore in the middle). If this variable is not defined in the pipeline configuration, tests will fail with missing credentials.

Copilot uses AI. Check for mistakes.
...


@pytest.mark.playback_test_only
Copy link

Copilot AI Jan 8, 2026

Choose a reason for hiding this comment

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

The decorator @pytest.mark.playback_test_only causes these tests to skip when running in live mode. Given that the PR title is "fix live test issues", adding this decorator seems contradictory - it prevents the tests from running live rather than fixing them.

If these tests genuinely cannot run in live mode and should only run in playback mode, this change makes sense, but the PR description should explain why. Otherwise, this may be masking the underlying issue rather than fixing it.

Suggested change
@pytest.mark.playback_test_only

Copilot uses AI. Check for mistakes.
AUTHORING_KEY: $(clu-key)
TEXT_ANALYSIS_ENDPOINT: $(clu-uri)
TEXT_ANALYSIS_KEY: $(clu-key)
CONVERSATIONS_ENDPOINT: $(conversation-uri)
Copy link

Copilot AI Jan 8, 2026

Choose a reason for hiding this comment

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

Verify that the Azure DevOps pipeline variable $(conversation-uri) exists and is properly configured. The variable name has changed from $(clu-uri) to $(conversation-uri), which is a different naming pattern. If this variable is not defined in the pipeline configuration, tests will fail with missing credentials.

Copilot uses AI. Check for mistakes.
CONVERSATIONS_KEY: $(conversation-key)
AUTHORING_ENDPOINT: $(authoring-uri)
AUTHORING_KEY: $(authoring-key)
TEXT_ANALYSIS_ENDPOINT: $(text_analysis-uri)
Copy link

Copilot AI Jan 8, 2026

Choose a reason for hiding this comment

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

Verify that the Azure DevOps pipeline variable $(text_analysis-uri) exists and is properly configured. The variable name has changed from $(clu-uri) to $(text_analysis-uri), which is a different naming pattern (note the underscore in the middle). If this variable is not defined in the pipeline configuration, tests will fail with missing credentials.

Copilot uses AI. Check for mistakes.
Comment on lines +25 to +26
TEXT_ANALYSIS_ENDPOINT: $(text_analysis-uri)
TEXT_ANALYSIS_KEY: $(text_analysis-key)
Copy link

Copilot AI Jan 8, 2026

Choose a reason for hiding this comment

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

There's an inconsistency in the naming convention for the Azure DevOps pipeline variables. Lines 21-24 use hyphens without underscores (e.g., conversation-uri, authoring-uri), while lines 25-26 use underscores (e.g., text_analysis-uri, text_analysis-key). This inconsistency could lead to confusion. Consider standardizing the naming convention to either use all hyphens or all underscores consistently.

Suggested change
TEXT_ANALYSIS_ENDPOINT: $(text_analysis-uri)
TEXT_ANALYSIS_KEY: $(text_analysis-key)
TEXT_ANALYSIS_ENDPOINT: $(text-analysis-uri)
TEXT_ANALYSIS_KEY: $(text-analysis-key)

Copilot uses AI. Check for mistakes.
return ConversationAnalysisClient(endpoint, credential)


@pytest.mark.playback_test_only
Copy link

Copilot AI Jan 8, 2026

Choose a reason for hiding this comment

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

The decorator @pytest.mark.playback_test_only causes these tests to skip when running in live mode. Given that the PR title is "fix live test issues", adding this decorator seems contradictory - it prevents the tests from running live rather than fixing them.

If these tests genuinely cannot run in live mode and should only run in playback mode, this change makes sense, but the PR description should explain why. Otherwise, this may be masking the underlying issue rather than fixing it.

Suggested change
@pytest.mark.playback_test_only

Copilot uses AI. Check for mistakes.
TEXT_ANALYSIS_ENDPOINT: $(clu-uri)
TEXT_ANALYSIS_KEY: $(clu-key)
CONVERSATIONS_ENDPOINT: $(conversation-uri)
CONVERSATIONS_KEY: $(conversation-key)
Copy link

Copilot AI Jan 8, 2026

Choose a reason for hiding this comment

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

Verify that the Azure DevOps pipeline variable $(conversation-key) exists and is properly configured. The variable name has changed from $(clu-key) to $(conversation-key), which is a different naming pattern. If this variable is not defined in the pipeline configuration, tests will fail with missing credentials.

Suggested change
CONVERSATIONS_KEY: $(conversation-key)
CONVERSATIONS_KEY: $(clu-key)

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant