Skip to content

Python: Temporarily skip OpenAI integration tests - #14517

Merged
SergeyMenshykh merged 3 commits into
microsoft:mainfrom
SergeyMenshykh:sergeymenshykh-disable-failing-openai-tests
Oct 1, 2026
Merged

SergeyMenshykh merged 3 commits into
microsoft:mainfrom
SergeyMenshykh:sergeymenshykh-disable-failing-openai-tests

Conversation

@SergeyMenshykh

Copy link
Copy Markdown
Contributor

Disable failing OpenAI integration and sample cases while the CI API key returns HTTP 401. Keep other providers and OpenAPI cross-language coverage enabled.

Motivation and Context

Description

Contribution Checklist

…tials

Disable failing OpenAI integration and sample cases while the CI API key returns HTTP 401. Keep other providers and OpenAPI cross-language coverage enabled.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot AI balanced review requested due to automatic review settings October 1, 2026 10:22
@SergeyMenshykh
SergeyMenshykh requested a review from a team as a code owner October 1, 2026 10:22
@SergeyMenshykh SergeyMenshykh self-assigned this Oct 1, 2026
@semantic-kernel-automation semantic-kernel-automation Bot added the python Pull requests for the Python Semantic Kernel label Oct 1, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot review overview

🟡 Changes recommended

Live OpenAI agent and multimodality cases still use the same invalid CI credential and can fail the aggregate integration check.

Review effort: Balanced
Findings: 1 High severity

Open (1)
What changed in this PR

Temporarily disables OpenAI-dependent Python integration and sample tests while the CI credential returns HTTP 401.

Changes:

  • Skips OpenAI parameter rows while preserving other providers.
  • Disables affected OpenAI sample and cross-language tests.
  • Leaves OpenAPI cross-language tests enabled.
File Description
python/​tests/​samples/​test_getting_started.py Skips two OpenAI notebooks.
python/​tests/​samples/​test_concepts.py Skips affected OpenAI samples.
python/​tests/​integration/​embeddings/​test_embedding_service.py Skips OpenAI embedding coverage.
python/​tests/​integration/​embeddings/​test_embedding_service_with_memory.py Skips OpenAI memory embedding coverage.
python/​tests/​integration/​cross_language/​test_cross_language.py Skips OpenAI-backed prompt tests.
python/​tests/​integration/​completions/​test_text_completion.py Skips OpenAI text completion.
python/​tests/​integration/​completions/​test_conversation_summary_plugin.py Skips the OpenAI summary test.
python/​tests/​integration/​completions/​test_chat_completions.py Skips OpenAI chat cases.
python/​tests/​integration/​completions/​test_chat_completion_with_image_input_text_output.py Skips OpenAI image-input cases.
python/​tests/​integration/​completions/​test_chat_completion_with_function_calling.py Skips OpenAI function-calling cases.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread python/tests/integration/completions/test_chat_completions.py

@semantic-kernel-automation semantic-kernel-automation Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

MAF Automated Review — Iteration 1

Result: Findings reported
Scope: full PR (1 commit(s)): 8480934558f1
Model: gpt-5.6-sol

Overview

This PR adds targeted unconditional pytest skips around OpenAI-backed integration and sample cases while preserving Azure, other-provider, mocked OpenAPI, and unit coverage. Provider-specific parametrization and mock-backed tests constrain the blast radius. However, the memory sample gate still executes an OpenAI embedding sample without the new skip, so the same HTTP 401 can continue breaking the intended CI workflow.

Reviewed the supplied pull-request change set across correctness, security/reliability, architecture, and failure behavior.
1 verified finding remained after source verification (1 high) across 1 file. Details are attached to the affected lines below.

Affected areas: python/tests/samples/test_concepts.py

Comment thread python/tests/samples/test_concepts.py
Extend the temporary invalid-credential skips to all remaining OpenAI agent and audio/image cases while preserving Azure parameters and existing expected-failure marks.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
The memory merge gate enables this sample, which uses OpenAI embeddings and fails with HTTP 401.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@SergeyMenshykh
SergeyMenshykh added this pull request to the merge queue Oct 1, 2026
Merged via the queue into microsoft:main with commit bd05515 Oct 1, 2026
31 checks passed
@SergeyMenshykh
SergeyMenshykh deleted the sergeymenshykh-disable-failing-openai-tests branch October 1, 2026 12:22
@github-project-automation github-project-automation Bot moved this to Sprint: Done in Semantic Kernel Oct 1, 2026

This branch was previously deployed

1 inactive deployment
github-app-auth — a3157997 Deployed Oct 1, 2026 by SergeyMenshykh via add_label #29211
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

python Pull requests for the Python Semantic Kernel

Projects

Status: Done
Archived in project

Development

Successfully merging this pull request may close these issues.

3 participants