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

progress: Overall ETA never less than max ETA #274

Merged
merged 2 commits into from Aug 28, 2023

Conversation

NathanBaulch
Copy link
Contributor

The current overall ETA doesn't really work because all the fast trackers finish quickly leaving the slow ones, meaning the current naive calculation always underestimates the ETA.

IMO the overall tracker ETA should never be less than the longest ETA of the active trackers. There are a couple of ways this could be done, but introducing a maxETA field on Tracker was the easiest without majorly refactoring the way overall trackers work.

Here are before and after graphs that show the ETA reported (blue) vs the actual ETA (orange) in my project. They both have a lot of instability initially but the second does a much better job at guestimating the ETA once it settles.

progress-eta-change-before
progress-eta-change-after

Note - this PR also includes some general code cleanup. Let me know if you'd like this separated.

@coveralls
Copy link

coveralls commented Aug 25, 2023

Pull Request Test Coverage Report for Build 5987034044

  • 10 of 10 (100.0%) changed or added relevant lines in 2 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 100.0%

Totals Coverage Status
Change from base Build 5986169932: 0.0%
Covered Lines: 3311
Relevant Lines: 3311

💛 - Coveralls

@jedib0t
Copy link
Owner

jedib0t commented Aug 26, 2023

Hey @NathanBaulch ... can you rebase this PR please? I merged your other one, and this needs to incorp those changes.

@sonarcloud
Copy link

sonarcloud bot commented Aug 26, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@jedib0t jedib0t merged commit 05c0986 into jedib0t:main Aug 28, 2023
4 checks passed
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.

None yet

3 participants