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

fix(coverage): Prevent hard failure in case of empty file #30707

Merged
merged 1 commit into from
Nov 4, 2024

Conversation

chouetz
Copy link
Member

@chouetz chouetz commented Nov 4, 2024

What does this PR do?

Adapt the merge_dev_in_main method to prevent hard failure when the main file is empty

Motivation

We sometimes faces failures in coverage uploadm, because some files stored in the cache are empty (in my case it was pkg/trace/stats/oteltest/coverage.out.
If such case can happen we might want to prevent such failure to occur

Describe how to test/QA your changes

No QA but we can monitor we don't have no more occurrence of some logs here

Possible Drawbacks / Trade-offs

Additional Notes

@chouetz chouetz requested review from a team as code owners November 4, 2024 13:45
@chouetz chouetz added changelog/no-changelog qa/no-code-change No code change in Agent code requiring validation labels Nov 4, 2024
@github-actions github-actions bot added the short review PR is simple enough to be reviewed quickly label Nov 4, 2024
@agent-platform-auto-pr
Copy link
Contributor

[Fast Unit Tests Report]

On pipeline 48149673 (CI Visibility). The following jobs did not run any unit tests:

Jobs:
  • tests_deb-arm64-py3
  • tests_deb-x64-py3
  • tests_flavor_dogstatsd_deb-x64
  • tests_flavor_heroku_deb-x64
  • tests_flavor_iot_deb-x64
  • tests_rpm-arm64-py3
  • tests_rpm-x64-py3
  • tests_windows-x64

If you modified Go files and expected unit tests to run in these jobs, please double check the job logs. If you think tests should have been executed reach out to #agent-devx-help

Copy link
Member

@amenasria amenasria left a comment

Choose a reason for hiding this comment

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

👏 praise: ‏Thanks for shipping such a bangerrr

Copy link

Regression Detector

@chouetz
Copy link
Member Author

chouetz commented Nov 4, 2024

/merge

@dd-devflow
Copy link

dd-devflow bot commented Nov 4, 2024

🚂 MergeQueue: pull request added to the queue

The median merge time in main is 22m.

Use /merge -c to cancel this operation!

@dd-mergequeue dd-mergequeue bot merged commit 3c69b04 into main Nov 4, 2024
222 of 223 checks passed
@dd-mergequeue dd-mergequeue bot deleted the nschweitzer/coverage branch November 4, 2024 14:52
@github-actions github-actions bot added this to the 7.61.0 milestone Nov 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changelog/no-changelog qa/no-code-change No code change in Agent code requiring validation short review PR is simple enough to be reviewed quickly
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants