Skip to content

Conversation

blampe
Copy link
Contributor

@blampe blampe commented Oct 9, 2025

Continuation of #1879.

This updates our usage of info types to use the types directly instead of
their aliases. This is a prerequisite to being able to mark the aliases as
deprecated.

Moving to the info package's shared API types allows consumers to link
against a significantly smaller surface area.

@blampe
Copy link
Contributor Author

blampe commented Oct 9, 2025

This change is part of the following stack:

Change managed by git-spice.

Copy link

codecov bot commented Oct 9, 2025

Codecov Report

❌ Patch coverage is 75.15528% with 80 lines in your changes missing coverage. Please review.
✅ Project coverage is 68.77%. Comparing base (124049e) to head (ba5fad9).

Files with missing lines Patch % Lines
pkg/tfbridge/x/tokens.go 0.00% 31 Missing ⚠️
pkg/tfbridge/x/apply.go 0.00% 10 Missing ⚠️
pkg/pf/internal/check/checks.go 66.66% 5 Missing and 3 partials ⚠️
pkg/pf/tfbridge/main.go 0.00% 8 Missing ⚠️
pkg/tfgen/generate.go 92.30% 2 Missing and 2 partials ⚠️
pkg/pf/tfgen/main.go 0.00% 3 Missing ⚠️
pkg/tfgen/generate_schema.go 70.00% 3 Missing ⚠️
internal/logging/logging.go 33.33% 2 Missing ⚠️
internal/testprovider_invalid_schema/resources.go 0.00% 2 Missing ⚠️
internal/testprovider_sdkv2/resources.go 0.00% 2 Missing ⚠️
... and 5 more
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3206      +/-   ##
==========================================
- Coverage   68.79%   68.77%   -0.02%     
==========================================
  Files         336      336              
  Lines       43995    43995              
==========================================
- Hits        30265    30259       -6     
- Misses      12026    12030       +4     
- Partials     1704     1706       +2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Comment on lines -257 to +271
return
return n, err
}

raw := strings.TrimSuffix(string(p), "\n")
level, raw := parseLevelFromRawString(raw)

if level < w.desiredLevel {
return
return n, err
}

urn, raw := parseUrnFromRawString(raw)
severity := logLevelToSeverity(level)

err = w.sink.Log(w.ctx, severity, urn, raw)
return
return n, err
Copy link
Contributor Author

Choose a reason for hiding this comment

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

There are a few other changes like this to fix local lint errors. CI must be using a less strict lint config?

Choose a reason for hiding this comment

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

We've seen this in pulumi/pulumi upgrading to golangci-lint 2.5.0. This is because of a newer version of gofumpt, which requires these return values now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants