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

[chore] Fix logzioexporter tests on Windows #37066

Merged

Conversation

pjanotti
Copy link
Contributor

@pjanotti pjanotti commented Jan 7, 2025

Description

The test doesn't account that depending on git config the endlines of the test files may change from \n to \r\n. Alternatively we could require/document how core.autocrlf should be configured for the repo, but, doing it on code ensures that works with any configuration.

This fixes test failures on TestFromDomainEmbedProcess, e.g.: https://github.com/open-telemetry/opentelemetry-collector-contrib/actions/runs/12651645455/job/35252663284#step:8:478

Testing

Local run.

Documentation

N/A

@pjanotti pjanotti requested a review from a team as a code owner January 7, 2025 14:50
@pjanotti pjanotti requested a review from djaglowski January 7, 2025 14:50
@github-actions github-actions bot requested a review from yotamloe January 7, 2025 14:50
@pjanotti pjanotti added Skip Changelog PRs that do not require a CHANGELOG.md entry Run Windows Enable running windows test on a PR labels Jan 7, 2025
@dmitryax dmitryax closed this Jan 7, 2025
@dmitryax dmitryax reopened this Jan 7, 2025
@dmitryax dmitryax merged commit 52aea84 into open-telemetry:main Jan 7, 2025
368 of 369 checks passed
@github-actions github-actions bot added this to the next release milestone Jan 7, 2025
@pjanotti pjanotti deleted the fix-logzioexporter-tests-on-windows branch January 7, 2025 18:12
AkhigbeEromo pushed a commit to sematext/opentelemetry-collector-contrib that referenced this pull request Jan 13, 2025
#### Description
The test doesn't account that depending on `git` config the endlines of
the test files may change from `\n` to `\r\n`. Alternatively we could
require/document how `core.autocrlf` should be configured for the repo,
but, doing it on code ensures that works with any configuration.

This fixes test failures on `TestFromDomainEmbedProcess`, e.g.:
https://github.com/open-telemetry/opentelemetry-collector-contrib/actions/runs/12651645455/job/35252663284#step:8:478

#### Testing
Local run.

#### Documentation
N/A
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
exporter/logzio Run Windows Enable running windows test on a PR Skip Changelog PRs that do not require a CHANGELOG.md entry
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants