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

Minor refactoring of daily logfile rolling job to support all platforms. #1888

Merged
merged 2 commits into from May 13, 2024

Conversation

jtduffy
Copy link
Contributor

@jtduffy jtduffy commented May 8, 2024

Overview

Resolves #1884
Refactor of the ClearExpiredLogsRunnable constructor to remove the Path param. Uses an alternative method for grabbing the log file name and path.

Update tests.

Testing

The agent includes a suite of tests which should be used to
verify your changes don't break existing functionality. These tests will run with
Github Actions when a pull request is made. More details on running the tests locally can be found
here,

Checks

  • Your contributions are backwards compatible with relevant frameworks and APIs.
  • Your code does not contain any breaking changes. Otherwise please describe.
  • Your code does not introduce any new dependencies. Otherwise please describe.

@jtduffy jtduffy requested a review from a team May 8, 2024 19:48
@codecov-commenter
Copy link

codecov-commenter commented May 10, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 70.69%. Comparing base (b582130) to head (ea1ae83).
Report is 9 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff              @@
##               main    #1888      +/-   ##
============================================
+ Coverage     70.66%   70.69%   +0.02%     
- Complexity     9876     9878       +2     
============================================
  Files           828      828              
  Lines         39848    39850       +2     
  Branches       6064     6065       +1     
============================================
+ Hits          28160    28172      +12     
+ Misses         8960     8951       -9     
+ Partials       2728     2727       -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@jtduffy jtduffy merged commit 1b74085 into main May 13, 2024
111 checks passed
@jtduffy jtduffy deleted the daily-log-fix branch May 13, 2024 13:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Code Complete/Done
Development

Successfully merging this pull request may close these issues.

The daily log file rolling logic assumes a path separator of "/" which fails on Window's hosts
3 participants