-
Notifications
You must be signed in to change notification settings - Fork 95
test(designer): Adding tests for V1ChatCompletionsService #8644
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
Conversation
🤖 AI PR Validation ReportPR Review ResultsThank you for your submission! Here's detailed feedback on your PR title and body compliance:✅ PR Title
✅ Commit Type
✅ Risk Level
✅ What & Why
|
| Section | Status | Recommendation |
|---|---|---|
| Title | ✅ | No change needed. |
| Commit Type | ✅ | No change needed. |
| Risk Level | ✅ | No change needed (risk:low matches labels). |
| What & Why | ✅ | Clear and linked to related PR. |
| Impact of Change | ✅ | No change needed. |
| Test Plan | Check E2E tests added/updated or explain why not. |
|
| Contributors | ✅ | No change needed. |
| Screenshots/Videos | Not applicable — OK to leave blank. |
Final message:
This PR is acceptable to merge from a PR title/body compliance perspective. The only required update is in the Test Plan: please either mark E2E tests added/updated (because the diff modifies e2e test files) or add a brief justification in the Test Plan for why the E2E checkbox should remain unchecked. Once that small update is made, the PR description will be fully aligned with the code changes.
Thank you for adding comprehensive unit tests — they look thorough and appropriate for this change set. If you want, after updating the Test Plan I can re-run this check and confirm final pass.
Last updated: Mon, 05 Jan 2026 19:20:23 GMT
There was a problem hiding this 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 PR adds unit tests for the V1ChatCompletionsService feature, covering utility functions in AgentUtils and parameter validation logic for agent operations. The tests are added to both the designer and designer-v2 libraries, providing coverage for connector identification, parameter type checking, and model type validation.
Key Changes
- Added comprehensive tests for
AgentUtilsutility class methods (isConnector,isDeploymentOrModelIdParameter,isAgentModelTypeParameter) - Added tests for
isParameterRequiredfunction covering agent-specific parameter validation logic - Added tests for
createParameterInfofunction focusing on agent parameter requirements
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 12 comments.
| File | Description |
|---|---|
| libs/designer/src/lib/core/utils/parameters/test/helper-agentParams.test.ts | Tests for parameter validation logic for agent operations, including isParameterRequired and createParameterInfo functions |
| libs/designer/src/lib/common/utilities/test/Utils.test.ts | Tests for AgentUtils class methods and isDynamicConnection utility function |
| libs/designer-v2/src/lib/core/utils/parameters/test/helper-agentParams.test.ts | Mirror of designer library tests for parameter validation in designer-v2 |
| libs/designer-v2/src/lib/common/utilities/test/Utils.test.ts | Mirror of designer library tests for utility functions in designer-v2 |
Comments suppressed due to low confidence (10)
libs/designer/src/lib/core/utils/parameters/test/helper-agentParams.test.ts:230
- Superfluous arguments passed to function createParameterInfo.
const parameterInfo = createParameterInfo(parameter, true, {}, undefined, undefined, undefined, false);
libs/designer/src/lib/core/utils/parameters/test/helper-agentParams.test.ts:249
- Superfluous arguments passed to function createParameterInfo.
const parameterInfo = createParameterInfo(parameter, true, {}, undefined, undefined, undefined, false);
libs/designer/src/lib/core/utils/parameters/test/helper-agentParams.test.ts:268
- Superfluous arguments passed to function createParameterInfo.
const parameterInfo = createParameterInfo(parameter, true, {}, undefined, undefined, undefined, false);
libs/designer/src/lib/core/utils/parameters/test/helper-agentParams.test.ts:286
- Superfluous arguments passed to function createParameterInfo.
const parameterInfo = createParameterInfo(parameter, true, {}, undefined, undefined, undefined, false);
libs/designer/src/lib/core/utils/parameters/test/helper-agentParams.test.ts:312
- Superfluous arguments passed to function createParameterInfo.
const parameterInfo = createParameterInfo(parameter, true, {}, undefined, undefined, undefined, false);
libs/designer-v2/src/lib/core/utils/parameters/test/helper-agentParams.test.ts:230
- Superfluous arguments passed to function createParameterInfo.
const parameterInfo = createParameterInfo(parameter, true, {}, undefined, undefined, undefined, false);
libs/designer-v2/src/lib/core/utils/parameters/test/helper-agentParams.test.ts:249
- Superfluous arguments passed to function createParameterInfo.
const parameterInfo = createParameterInfo(parameter, true, {}, undefined, undefined, undefined, false);
libs/designer-v2/src/lib/core/utils/parameters/test/helper-agentParams.test.ts:268
- Superfluous arguments passed to function createParameterInfo.
const parameterInfo = createParameterInfo(parameter, true, {}, undefined, undefined, undefined, false);
libs/designer-v2/src/lib/core/utils/parameters/test/helper-agentParams.test.ts:286
- Superfluous arguments passed to function createParameterInfo.
const parameterInfo = createParameterInfo(parameter, true, {}, undefined, undefined, undefined, false);
libs/designer-v2/src/lib/core/utils/parameters/test/helper-agentParams.test.ts:312
- Superfluous arguments passed to function createParameterInfo.
const parameterInfo = createParameterInfo(parameter, true, {}, undefined, undefined, undefined, false);
libs/designer-v2/src/lib/core/utils/parameters/__test__/helper-agentParams.test.ts
Show resolved
Hide resolved
libs/designer/src/lib/core/utils/parameters/__test__/helper-agentParams.test.ts
Outdated
Show resolved
Hide resolved
libs/designer/src/lib/core/utils/parameters/__test__/helper-agentParams.test.ts
Outdated
Show resolved
Hide resolved
libs/designer/src/lib/core/utils/parameters/__test__/helper-agentParams.test.ts
Outdated
Show resolved
Hide resolved
libs/designer-v2/src/lib/core/utils/parameters/__test__/helper-agentParams.test.ts
Outdated
Show resolved
Hide resolved
libs/designer/src/lib/core/utils/parameters/__test__/helper-agentParams.test.ts
Outdated
Show resolved
Hide resolved
libs/designer/src/lib/core/utils/parameters/__test__/helper-agentParams.test.ts
Outdated
Show resolved
Hide resolved
libs/designer-v2/src/lib/core/utils/parameters/__test__/helper-agentParams.test.ts
Outdated
Show resolved
Hide resolved
libs/designer-v2/src/lib/core/utils/parameters/__test__/helper-agentParams.test.ts
Outdated
Show resolved
Hide resolved
libs/designer-v2/src/lib/core/utils/parameters/__test__/helper-agentParams.test.ts
Outdated
Show resolved
Hide resolved
|
@Eric-B-Wu I've opened a new pull request, #8646, to work on those changes. Once the pull request is ready, I'll request review from you. |
|
📊 Coverage check completed. See workflow run for details. |
|
📊 Coverage check completed. See workflow run for details. |
…LogicAppsUX into eric/v1ChatCompletionTest
|
📊 Coverage check completed. See workflow run for details. |
Commit Type
Risk Level
What & Why
Adding some unit tests for v1chatcompletions PR #8639
Impact of Change
Test Plan
Contributors
@Eric-B-Wu
Screenshots/Videos