Skip to content

more tests#22

Merged
iff merged 10 commits intomainfrom
more-tests
Apr 16, 2026
Merged

more tests#22
iff merged 10 commits intomainfrom
more-tests

Conversation

@iff
Copy link
Copy Markdown
Owner

@iff iff commented Apr 14, 2026

  • adding more tests to improve coverage
  • fixing a bug in the JsonLineEvent -> Event conversion: duration was in seconds. This should not break sorting order but a converting old osh files again is advised
  • remove history "cache" (timeago, command) and use events to compute timeago when rendering

@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 14, 2026

Welcome to Codecov 🎉

Once you merge this PR into your default branch, you're all set! Codecov will compare coverage reports and display results in all future pull requests.

Thanks for integrating Codecov - We've got you covered ☂️

iff added 9 commits April 14, 2026 15:26
while adding tests I noticed that the conversion from JsonLineEvent has a bug:
the computation of the endtime from the duration assumed that the duration
field is in millis as well. But duration was measured in seconds so the
conversion needs to take this into account.

This commit fixes the conversion but converted files should be re-converted to
have the correct endtime in converted history files. Note that sorting of the
events is not affected as the ordering is the same.
@iff iff merged commit b38dc57 into main Apr 16, 2026
7 checks passed
@iff iff deleted the more-tests branch April 16, 2026 11:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant