Skip to content

Conversation

@BominRahmani
Copy link
Contributor

Description:

The following PR works to make the integration tests a bit more deterministic by taking advantage of the govmomi simulator. Previously the integration test had the following line when comparing

pmetrictest.IgnoreResourceAttributeValue("vcenter.host.name")

Which is a bit of a hacky fix that addressed an issue where the simulator had inconsistent VM to Host assignments between test runs.

Although ignoring the resource attribute value currently works, it breaks once datacenter metrics are enabled by default

This PR hopes to make the integration tests more consistent and accurate going forward.

Link to tracking Issue:

Testing:

  • Regenerated the expected.yaml using scraperinttest.WriteExpected()
  • Passes Integration test

Documentation:

@BominRahmani BominRahmani marked this pull request as ready for review July 23, 2024 01:29
@BominRahmani BominRahmani requested a review from a team July 23, 2024 01:29
@djaglowski djaglowski merged commit c71919f into open-telemetry:main Jul 23, 2024
@github-actions github-actions bot added this to the next release milestone Jul 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants