Skip to content

[chore] check resattributes and component error in gce#2331

Merged
jinja2 merged 1 commit intomainfrom
add-gce-attr-test
Mar 31, 2026
Merged

[chore] check resattributes and component error in gce#2331
jinja2 merged 1 commit intomainfrom
add-gce-attr-test

Conversation

@jinja2
Copy link
Copy Markdown
Collaborator

@jinja2 jinja2 commented Mar 30, 2026

Description:

Add resource attributes validation and component health checks for the GCE (kops) functional test environment, matching the pattern used by EKS, AKS, GKE, and ROSA tests.

@@ -0,0 +1,51 @@
resourceMetrics:
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

There are no cloud.* attributes due to gcp detector not being added when cloudProvider=gcp and distribution="". This gets fixed in PR #2330

@jinja2 jinja2 marked this pull request as ready for review March 30, 2026 22:17
@jinja2 jinja2 requested review from a team as code owners March 30, 2026 22:17
Copilot AI review requested due to automatic review settings March 30, 2026 22:17
Copy link
Copy Markdown
Contributor

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 enables and aligns the GCE (kops) functional test environment with other hosted-cluster environments by adding a dedicated values template plus “golden” expected resource-attribute outputs, and wiring GCE into the existing hosted-cluster validation + component-health checks.

Changes:

  • Add a GCE-specific Helm values template used by functional tests.
  • Add expected (“golden”) resource-attributes YAMLs for agent and cluster-receiver in GCE.
  • Enable GCE in hosted-cluster functional test routing and in the GitHub Actions workflow (no longer skipping tests).

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
functional_tests/functional/testdata/values/gce_test_values.yaml.tmpl New GCE functional-test Helm values template (agent/clusterReceiver config + extraAttributes).
functional_tests/functional/testdata/expected_gce_values/expected_resource_attributes_agent.yaml New golden file for agent resource-attributes validation in GCE.
functional_tests/functional/testdata/expected_gce_values/expected_resource_attributes_cluster_receiver.yaml New golden file for cluster-receiver resource-attributes validation in GCE.
functional_tests/functional/functional_test.go Add GCE expected-values directory selection and include GCE in hosted-cluster validations/health checks.
.github/workflows/functional_test_v2.yaml Enable the GCE job by removing SKIP_TESTS: "true".

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

@jinja2 jinja2 merged commit cd34807 into main Mar 31, 2026
285 of 357 checks passed
@jinja2 jinja2 deleted the add-gce-attr-test branch March 31, 2026 15:06
@github-actions github-actions bot locked and limited conversation to collaborators Mar 31, 2026
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