Skip to content

Prepare stacks integration tests for tfe release#1298

Open
aaabdelgany wants to merge 7 commits intomainfrom
abdu/remove_stacks_test_skips
Open

Prepare stacks integration tests for tfe release#1298
aaabdelgany wants to merge 7 commits intomainfrom
abdu/remove_stacks_test_skips

Conversation

@aaabdelgany
Copy link
Copy Markdown
Contributor

@aaabdelgany aaabdelgany commented Mar 24, 2026

Description

This PR removes the beta skip flags in all of the stacks integration tests to ensure that they start running in CI. It also removes any references to stack_diagnostics#acknowledge which is something that was removed as part of the Stacks GA release and we just happened to miss it in go-tfe.

Testing plan

External links

Output from tests

Including output from tests may require access to a TFE instance. Ignore this section if you have no environment to test against.

go test -run TestStack
PASS
ok  	github.com/hashicorp/go-tfe	148.193s
...

Rollback Plan

Changes to Security Controls

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

datadog-terraform-cloud-hashicorp bot commented Mar 24, 2026

⚠️ Tests

Fix all issues with Cursor

⚠️ Other Violations

❄️ 1 New flaky test detected

TestStackDiagnosticsRead from stack_diagnostic_integration_test.go   View in Datadog   (Fix with Cursor)
testing: t.Parallel called multiple times

🧪 2 Tests failed

TestStackDeploymentStepsList from stack_deployment_steps_integration_test.go   View in Datadog   (Fix with Cursor)
Failed to read stack "st-Wv7wGLuM3cL34K5r": rate: Wait(n=1) would exceed context deadline
TestStackDeploymentStepsRead from stack_deployment_steps_integration_test.go   View in Datadog   (Fix with Cursor)
Failed to read stack "st-nBJVtV77Bhey3kgo": rate: Wait(n=1) would exceed context deadline
This comment will be updated automatically if new data arrives.
🔗 Commit SHA: 5ce361a | Docs | Was this helpful? Give us feedback!

@aaabdelgany aaabdelgany marked this pull request as ready for review April 7, 2026 21:57
@aaabdelgany aaabdelgany requested a review from a team as a code owner April 7, 2026 21:57
@aaabdelgany aaabdelgany changed the title Remove skipunlessbeta from the stacks tests Prepare stacks integration tests for tfe release Apr 7, 2026
"testing"
)

func stackVCSRepoIdentifier(t *testing.T) string {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Nice!

return githubIdentifier
}

func stackVCSRepoBranch() string {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Is this used?

type StackDiagnostics interface {
// Read retrieves a stack diagnostic by its ID.
Read(ctx context.Context, stackConfigurationID string) (*StackDiagnostic, error)
// Acknowledge marks a diagnostic as acknowledged.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This is cleanup since it's not used anymore right? I remember this was discussed on slack or a call.

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