chore: Try 100% Code Coverage#2507
Conversation
|
Hey @ranadeepsingh 👋! We use semantic commit messages to streamline the release process. Examples of commit messages with semantic prefixes:
To test your commit locally, please follow our guild on building from source. |
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
There was a problem hiding this comment.
Pull request overview
This PR updates the build’s scoverage configuration to exclude specific packages from coverage reporting, and adds/updates Scala unit tests in core to increase coverage around logging/common utilities and various constant/schema helpers.
Changes:
- Add scoverage exclusions (and related scoverage settings) in
build.sbt. - Update Python package metadata generation in
PyCodegen(license metadata/classifiers). - Add/refresh Scala tests for logging utilities, schema helpers, metric/constants, OS/platform detection, and param/metric contracts.
Reviewed changes
Copilot reviewed 13 out of 14 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| core/src/test/scala/com/microsoft/azure/synapse/ml/logging/common/VerifyScrubber.scala | Refresh SASScrubber tests to better match the current regex behavior and add edge cases. |
| core/src/test/scala/com/microsoft/azure/synapse/ml/logging/common/VerifyPlatformDetails.scala | Expand PlatformDetails test coverage (constants + platform detection helpers). |
| core/src/test/scala/com/microsoft/azure/synapse/ml/logging/VerifySynapseMLLogging.scala | New tests for logging field structs and SynapseMLLogging mappings/state. |
| core/src/test/scala/com/microsoft/azure/synapse/ml/logging/VerifyFeatureNames.scala | New tests asserting FeatureNames constants. |
| core/src/test/scala/com/microsoft/azure/synapse/ml/core/utils/VerifyOsUtils.scala | New tests for OsUtils.IsWindows. |
| core/src/test/scala/com/microsoft/azure/synapse/ml/core/schema/VerifySchemaConstants.scala | New tests asserting SchemaConstants values. |
| core/src/test/scala/com/microsoft/azure/synapse/ml/core/schema/VerifyImageSchemaUtils.scala | New tests for ImageSchemaUtils schemas and isImage helpers. |
| core/src/test/scala/com/microsoft/azure/synapse/ml/core/schema/VerifyBinaryFileSchema.scala | New tests for BinaryFileSchema schemas and helpers. |
| core/src/test/scala/com/microsoft/azure/synapse/ml/core/metrics/VerifyMetricConstants.scala | New tests asserting MetricConstants values and collections. |
| core/src/test/scala/com/microsoft/azure/synapse/ml/core/env/VerifyPackageUtils.scala | New tests for PackageUtils derived values and coordinates. |
| core/src/test/scala/com/microsoft/azure/synapse/ml/core/contracts/VerifyParams.scala | New tests for param traits’ setters/getters and chaining behavior. |
| core/src/test/scala/com/microsoft/azure/synapse/ml/core/contracts/VerifyMetrics.scala | New tests for metrics contract case classes and helper constructors. |
| core/src/main/scala/com/microsoft/azure/synapse/ml/codegen/PyCodegen.scala | Adjust generated setup.py metadata (license_expression and classifiers). |
| build.sbt | Add scoverage excluded packages and settings. |
core/src/test/scala/com/microsoft/azure/synapse/ml/logging/VerifySynapseMLLogging.scala
Outdated
Show resolved
Hide resolved
core/src/test/scala/com/microsoft/azure/synapse/ml/logging/common/VerifyPlatformDetails.scala
Outdated
Show resolved
Hide resolved
core/src/test/scala/com/microsoft/azure/synapse/ml/logging/VerifySynapseMLLogging.scala
Outdated
Show resolved
Hide resolved
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
@codecov-commenter update |
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #2507 +/- ##
==========================================
+ Coverage 84.61% 86.18% +1.56%
==========================================
Files 334 321 -13
Lines 17669 17173 -496
Branches 1625 1532 -93
==========================================
- Hits 14951 14800 -151
+ Misses 2718 2373 -345
🚀 New features to boost your workflow:
|
Related Issues/PRs
#xxx
What changes are proposed in this pull request?
Briefly describe the changes included in this Pull Request.
How is this patch tested?
Does this PR change any dependencies?
Does this PR add a new feature? If so, have you added samples on website?
website/docs/documentationfolder.Make sure you choose the correct class
estimators/transformersand namespace.DocTablepoints to correct API link.yarn run startto make sure the website renders correctly.<!--pytest-codeblocks:cont-->before each python code blocks to enable auto-tests for python samples.WebsiteSamplesTestsjob pass in the pipeline.