Skip to content

[translator/azurelogs] Increase unit test coverage#39176

Merged
songy23 merged 5 commits intoopen-telemetry:mainfrom
constanca-m:azurelogs-increase-coverage
Apr 7, 2025
Merged

[translator/azurelogs] Increase unit test coverage#39176
songy23 merged 5 commits intoopen-telemetry:mainfrom
constanca-m:azurelogs-increase-coverage

Conversation

@constanca-m
Copy link
Contributor

@constanca-m constanca-m commented Apr 5, 2025

Description

Every test unit that was using a log file, now compares the full log structure with the expected one instead of just a few fields.

The previous test units all passed. I have removed them as they are now redundant.

Link to tracking issue

Fixes #39136.

@constanca-m constanca-m requested review from a team and atoulme as code owners April 5, 2025 08:35
@atoulme atoulme added the Skip Changelog PRs that do not require a CHANGELOG.md entry label Apr 5, 2025
Copy link
Member

@MikeGoldsmith MikeGoldsmith left a comment

Choose a reason for hiding this comment

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

Looks good to me. Just need to resolve the lint errors.

@constanca-m
Copy link
Contributor Author

Thanks @MikeGoldsmith ! The lint errors are coming from datadogexporter/exporter/datadogexporter/factory.go, so they are unrelated to these changes.

@atoulme
Copy link
Contributor

atoulme commented Apr 5, 2025

Please rebase off latest main.

@constanca-m
Copy link
Contributor Author

constanca-m commented Apr 5, 2025

The branch is up to date with main branch @atoulme

@atoulme atoulme added the ready to merge Code review completed; ready to merge by maintainers label Apr 7, 2025
@songy23 songy23 merged commit 40452c9 into open-telemetry:main Apr 7, 2025
179 of 180 checks passed
@github-actions github-actions bot added this to the next release milestone Apr 7, 2025
dmathieu pushed a commit to dmathieu/opentelemetry-collector-contrib that referenced this pull request Apr 8, 2025
)

<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue.
Ex. Adding a feature - Explain what this achieves.-->
#### Description

Every test unit that was using a log file, now compares the full log
structure with the expected one instead of just a few fields.

The previous test units all passed. I have removed them as they are now
redundant.

<!-- Issue number (e.g. open-telemetry#1234) or full URL to issue, if applicable. -->
#### Link to tracking issue
Fixes
open-telemetry#39136.

---------

Co-authored-by: Antoine Toulme <atoulme@splunk.com>
@constanca-m constanca-m deleted the azurelogs-increase-coverage branch April 16, 2025 13:09
atoulme pushed a commit that referenced this pull request Apr 17, 2025
<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue.
Ex. Adding a feature - Explain what this achieves.-->
#### Description

This PRs adds myself (@constanca-m) to the codeowners of the component.

Work done:
-
#39176
-
#39200

Work in progress:
-
#39340

Work planned:
-
#39186

The company I work at (Elastic) is relying on this component in one of
our products, so I plan to keep contributing to it. I hope that this
change will:
- Help and improve maintenance
- Prevent breaking changes without warning
- Help collaboration between codeowners from different companies.
akshays-19 pushed a commit to akshays-19/opentelemetry-collector-contrib that referenced this pull request Apr 23, 2025
…elemetry#39457)

<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue.
Ex. Adding a feature - Explain what this achieves.-->
#### Description

This PRs adds myself (@constanca-m) to the codeowners of the component.

Work done:
-
open-telemetry#39176
-
open-telemetry#39200

Work in progress:
-
open-telemetry#39340

Work planned:
-
open-telemetry#39186

The company I work at (Elastic) is relying on this component in one of
our products, so I plan to keep contributing to it. I hope that this
change will:
- Help and improve maintenance
- Prevent breaking changes without warning
- Help collaboration between codeowners from different companies.
Fiery-Fenix pushed a commit to Fiery-Fenix/opentelemetry-collector-contrib that referenced this pull request Apr 24, 2025
)

<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue.
Ex. Adding a feature - Explain what this achieves.-->
#### Description

Every test unit that was using a log file, now compares the full log
structure with the expected one instead of just a few fields.

The previous test units all passed. I have removed them as they are now
redundant.

<!-- Issue number (e.g. open-telemetry#1234) or full URL to issue, if applicable. -->
#### Link to tracking issue
Fixes
open-telemetry#39136.

---------

Co-authored-by: Antoine Toulme <atoulme@splunk.com>
Fiery-Fenix pushed a commit to Fiery-Fenix/opentelemetry-collector-contrib that referenced this pull request Apr 24, 2025
…elemetry#39457)

<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue.
Ex. Adding a feature - Explain what this achieves.-->
#### Description

This PRs adds myself (@constanca-m) to the codeowners of the component.

Work done:
-
open-telemetry#39176
-
open-telemetry#39200

Work in progress:
-
open-telemetry#39340

Work planned:
-
open-telemetry#39186

The company I work at (Elastic) is relying on this component in one of
our products, so I plan to keep contributing to it. I hope that this
change will:
- Help and improve maintenance
- Prevent breaking changes without warning
- Help collaboration between codeowners from different companies.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pkg/translator/azurelogs ready to merge Code review completed; ready to merge by maintainers Skip Changelog PRs that do not require a CHANGELOG.md entry

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Increase unit test coverage

5 participants