Skip to content
This repository has been archived by the owner on Oct 12, 2023. It is now read-only.

Add a pipeline stage to check for remaining AnyType instances #203

Merged
merged 1 commit into from
Jul 31, 2020

Conversation

babbageclunk
Copy link
Member

Raises an error with the containing packages (so they can be added to the filtering) if any are found.

Added exclusions in azure-arm.yaml for all groups/versions that fail at the moment. This gives us a list of the packages that need to be worked through.

If you want to see the specific types containing AnyType run with verbosity level 2 or higher. (Adjusted the type filtering logging
level up to 3 to avoid drowning in skipped types at the same time.)

@coveralls
Copy link

coveralls commented Jul 30, 2020

Pull Request Test Coverage Report for Build 189421071

  • 39 of 51 (76.47%) changed or added relevant lines in 4 files are covered.
  • 190 unchanged lines in 4 files lost coverage.
  • Overall coverage decreased (-2.7%) to 29.037%

Changes Missing Coverage Covered Lines Changed/Added Lines %
hack/generator/pkg/codegen/pipeline_apply_export_filters.go 0 1 0.0%
hack/generator/pkg/jsonast/jsonast.go 0 1 0.0%
hack/generator/pkg/codegen/pipeline_check_for_anytype.go 38 48 79.17%
Files with Coverage Reduction New Missed Lines %
pkg/zips/env.go 3 0%
pkg/zips/types.go 25 54.76%
pkg/zips/client.go 75 3.96%
pkg/zips/template.go 87 26.32%
Totals Coverage Status
Change from base Build 187735301: -2.7%
Covered Lines: 1800
Relevant Lines: 6199

💛 - Coveralls

@@ -23,6 +23,115 @@ exportFilters:
group: definitions
name: ResourceBase
because: this type is not used

# Exclusions for packages that currently produce types including AnyType
Copy link
Member

Choose a reason for hiding this comment

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

big TODO 🙂

Copy link
Member Author

Choose a reason for hiding this comment

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

Good call - adding that!

Raises an error with the containing packages (so they can be added to
the filtering) if any are found.

Added exclusions in azure-arm.yaml for all groups/versions that fail
at the moment. This gives us a list of the packages that need to be
worked through.

If you want to see the specific types containing AnyType run with
verbosity level 2 or higher. (Adjusted the type filtering logging
level up to 3 to avoid drowning in skipped types at the same time.)
@babbageclunk babbageclunk merged commit 6c057ef into Azure:master Jul 31, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants