Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add 'env' tag assertion to test frameworks integration tests #4791

Merged

Conversation

nikita-tkachenko-datadog
Copy link
Contributor

@nikita-tkachenko-datadog nikita-tkachenko-datadog commented Feb 23, 2023

What Does This Do

This change updates integration tests that verify test frameworks instrumentation (junit4, junit5, test NG).
The update is to add env tag assertion for every emitted span.

Motivation

A recent change introduced logic that populates env tag with a default value if it is missing (only when running the tracer in agentless mode).
The integration tests require every span tag to be asserted, which is why assert for env tag needs to be added.

Additional Notes

It is only verified that the tag is always present, its contents are checked by the tests that were added for the earlier change.

@nikita-tkachenko-datadog nikita-tkachenko-datadog added tag: no release notes Changes to exclude from release notes comp: ci visibility Continuous Integration Visibility labels Feb 23, 2023
@richardstartin richardstartin marked this pull request as ready for review February 23, 2023 19:29
@richardstartin richardstartin requested a review from a team as a code owner February 23, 2023 19:29
@richardstartin richardstartin merged commit 46e41fc into master Feb 23, 2023
@richardstartin richardstartin deleted the nikita-tkachenko/fix-ci-tests-env-tag-failure branch February 23, 2023 19:29
@github-actions github-actions bot added this to the 1.10.0 milestone Feb 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
comp: ci visibility Continuous Integration Visibility tag: no release notes Changes to exclude from release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants