Skip to content

Size field for StateVersion struct#1280

Merged
shaunakone merged 5 commits intomainfrom
TF-33455-go-tfe-GH-Issue-1274-Add-Size-field-for-StateVersion
Feb 11, 2026
Merged

Size field for StateVersion struct#1280
shaunakone merged 5 commits intomainfrom
TF-33455-go-tfe-GH-Issue-1274-Add-Size-field-for-StateVersion

Conversation

@shaunakone
Copy link
Copy Markdown
Contributor

Description

Adds a Size field to the StateVersion struct to expose state size metadata returned by the API.

This enables consumers of go-tfe to access the state size without additional API calls.

Testing plan

  • Existing unit tests pass.
  • Change is a non-breaking struct field addition.
  • No acceptance tests were added or required for this change.

External links

Output from tests

@shaunakone shaunakone requested a review from a team as a code owner February 10, 2026 15:22
@hashicorp-cla-app
Copy link
Copy Markdown

hashicorp-cla-app bot commented Feb 10, 2026

CLA assistant check
All committers have signed the CLA.

@datadog-terraform-cloud-hashicorp
Copy link
Copy Markdown

datadog-terraform-cloud-hashicorp bot commented Feb 10, 2026

⚠️ Tests

Fix all issues with Cursor

⚠️ Warnings

❄️ 2 New flaky tests detected

TestPlanExportsDownload_RunDependent from plan_export_integration_test.go (Datadog) (Fix with Cursor)
Could not read run "run-KykwHpx179Vfrppc": context deadline exceeded
TestPlanExportsDownload_RunDependent from github.com/hashicorp/go-tfe (Datadog) (Fix with Cursor)
Failed

=== RUN   TestPlanExportsDownload_RunDependent
    helper_test.go:1583: Polling run "run-KykwHpx179Vfrppc" for status included in ["cost_estimated" "errored"] with deadline of 2026-02-10 22:13:19.571532616 +0000 UTC m=+122.954791249
    helper_test.go:1589: ...
    helper_test.go:1680: Reading run "run-KykwHpx179Vfrppc"
    helper_test.go:1595: Run "run-KykwHpx179Vfrppc" had status "pending"
    helper_test.go:1589: ...
    helper_test.go:1680: Reading run "run-KykwHpx179Vfrppc"
    helper_test.go:1595: Run "run-KykwHpx179Vfrppc" had status "pending"
...

ℹ️ Info

🧪 All tests passed

This comment will be updated automatically if new data arrives.
🔗 Commit SHA: 09bece8 | Docs | Was this helpful? Give us feedback!

@shaunakone shaunakone added the no-changelog-needed check changelog entry github workflow label Feb 10, 2026
@shaunakone shaunakone removed the no-changelog-needed check changelog entry github workflow label Feb 10, 2026
@shaunakone shaunakone force-pushed the TF-33455-go-tfe-GH-Issue-1274-Add-Size-field-for-StateVersion branch from 3f2a501 to 09bece8 Compare February 10, 2026 22:07
Copy link
Copy Markdown
Contributor

@Maed223 Maed223 left a comment

Choose a reason for hiding this comment

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

Nice work 💯

@shaunakone shaunakone merged commit db673f1 into main Feb 11, 2026
15 checks passed
@shaunakone shaunakone deleted the TF-33455-go-tfe-GH-Issue-1274-Add-Size-field-for-StateVersion branch February 11, 2026 02:51
@github-actions
Copy link
Copy Markdown

Reminder to the contributor that merged this PR: if your changes have added important functionality or fixed a relevant bug, open a follow-up PR to update CHANGELOG.md with a note on your changes.

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.

2 participants