Skip to content

Conversation

@sowju-hashicorp
Copy link
Contributor

@sowju-hashicorp sowju-hashicorp commented Jan 29, 2026

Description

This PR removes beta feature flags from QueryRuns integration tests, following the QueryRun API becoming generally available in HCP Terraform (as documented in CHANGELOG v1.96.0). QueryRuns is Terraform's query/search API for workspaces.

Changes:

Removed skipUnlessBeta(t) calls from all 7 QueryRuns integration test functions
Tests will now run in standard CI without requiring the ENABLE_BETA=1 environment variable

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.

$ TFE_ADDRESS="https://example" TFE_TOKEN="example" go test ./... -v -run TestFunctionsAffectedByChange

...

Rollback Plan

Changes to Security Controls

Copilot AI review requested due to automatic review settings January 29, 2026 13:27
@sowju-hashicorp sowju-hashicorp requested a review from a team as a code owner January 29, 2026 13:27
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR removes beta feature flags from QueryRuns integration tests, following the QueryRun API becoming generally available in HCP Terraform (as documented in CHANGELOG v1.96.0). QueryRuns is Terraform's query/search API for workspaces.

Changes:

  • Removed skipUnlessBeta(t) calls from all 7 QueryRuns integration test functions
  • Tests will now run in standard CI without requiring the ENABLE_BETA=1 environment variable

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@datadog-terraform-cloud-hashicorp
Copy link

datadog-terraform-cloud-hashicorp bot commented Jan 29, 2026

⚠️ Tests

Fix all issues with Cursor

⚠️ Warnings

🧪 8 Tests failed

TestQueryRunsCreate_RunDependent from query_runs_integration_test.go (Datadog) (Fix with Cursor)
failed test
TestQueryRunsCreate_RunDependent/with_a_configuration_version from query_runs_integration_test.go (Datadog) (Fix with Cursor)

	Error Trace:	/home/runner/work/go-tfe/go-tfe/query_runs_integration_test.go:131
	            				/home/runner/go/pkg/mod/github.com/!data!dog/dd-trace-go/[email protected]/internal/civisibility/integrations/gotesting/instrumentation_orchestrion.go:289
	            				/home/runner/go/pkg/mod/github.com/!data!dog/dd-trace-go/[email protected]/internal/civisibility/integrations/gotesting/instrumentation_orchestrion.go:293
	Error:      	Received unexpected error:
	            	Unsupported Terraform version
	            	
	            	A workspace must be configured with at least Terraform 1.14.0 or higher to create queries.
	Test:       	TestQueryRunsCreate_RunDependent/with_a_configuration_version

TestQueryRunsCreate_RunDependent/without_a_configuration_version from query_runs_integration_test.go (Datadog) (Fix with Cursor)

	Error Trace:	/home/runner/work/go-tfe/go-tfe/query_runs_integration_test.go:116
	            				/home/runner/go/pkg/mod/github.com/!data!dog/dd-trace-go/[email protected]/internal/civisibility/integrations/gotesting/instrumentation_orchestrion.go:289
	            				/home/runner/go/pkg/mod/github.com/!data!dog/dd-trace-go/[email protected]/internal/civisibility/integrations/gotesting/instrumentation_orchestrion.go:293
	Error:      	Received unexpected error:
	            	Unsupported Terraform version
	            	
	            	A workspace must be configured with at least Terraform 1.14.0 or higher to create queries.
	Test:       	TestQueryRunsCreate_RunDependent/without_a_configuration_version

View all

ℹ️ Info

❄️ No new flaky tests detected

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

@sowju-hashicorp sowju-hashicorp added the no-changelog-needed check changelog entry github workflow label Jan 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

no-changelog-needed check changelog entry github workflow

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants