Skip to content

[Automated] Add regression tests for IcM #TEST-12345#2

Open
sdkv2-dri-agent[bot] wants to merge 2 commits into
mainfrom
defect-tests-TEST-12345
Open

[Automated] Add regression tests for IcM #TEST-12345#2
sdkv2-dri-agent[bot] wants to merge 2 commits into
mainfrom
defect-tests-TEST-12345

Conversation

@sdkv2-dri-agent

Copy link
Copy Markdown

Summary

This PR adds automated regression tests for defect reported in IcM #TEST-12345.

Root Cause

Summary: Submitting a CommandJob with compute=None crashes during serialization with AttributeError: 'NoneType' object has no attribute 'lower' instead of returning a clear validation error. The defect stems from missing input validation on the compute field and an unsafe string normalization in the serializer.

What is the bug? When users call MLClient.jobs.create_or_update() with a CommandJob...

Files Added

  • sdk/ml/azure-ai-ml/tests/unittests/test_defect_icm_TEST-12345.py
  • sdk/ml/azure-ai-ml/tests/unittests/test_similar_defect_sweep_TEST-12345.py

Testing

These tests are designed to catch the regression if the defect is reintroduced.


This PR was automatically generated by the SDKV2-DRI-Agent.

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.

0 participants