Summary: | app-portage/portage-utils-0.92: Using qlop's -v flag results in "unknown" ETAs for running emerges | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Sophie Hamilton <gentoo-bugs> |
Component: | Current packages | Assignee: | Fabian Groffen <grobian> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | jaak |
Priority: | Normal | Keywords: | InVCS |
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: | Output of "grep dev-python/QtPy /var/log/emerge.log" |
Description
Sophie Hamilton
2021-08-13 10:09:53 UTC
It acts indeed on the version itself, for this the -p (--predict) option was added to 0.92, as a replacement of the averaging technique of -r (it uses -a in the back). I understand this is something that only happens during emerging of new packages, but could you tell me if -p for e.g. QtPy comes close to the last emerge time of the package (QtPy-1.9.0-r5)? Without a running merge going:
> home ~ # qlop -p QtPy
> QtPy: prediction 12s
> home ~ # qlop -tv QtPy
> 2021-01-07T08:43:04 >>> dev-python/QtPy-1.9.0-r2: 17s
> 2021-08-11T10:19:04 >>> dev-python/QtPy-1.9.0-r2: 19s
> 2021-08-13T11:00:54 >>> dev-python/QtPy-1.9.0-r5: 15s
> 2021-08-14T23:48:57 >>> dev-python/QtPy-1.9.0-r5: 15s
So it seems close, but strangely faster than the actual time it took to merge before.
I do notice that it's impossible to use both the -r and the -p switches together, though, to predict how much longer a running merge will take. Is this something that would be possible to add?
it is the next step (instead of using -a, use -p with -r) but first it needs perfecting can you run qlop -p dev-python/QtPy-1.9.0-r5 without the version part, qlop "predicts" it will be the next version, and since you went down from average 18 to average 15 seconds, it assumes a linear continuation of that, and ends up with 12 seconds. If you ask it to predict a known version/revision it should base its prediction on hard evidence (the exact same version being merged already) and thus in your case produce 15. No difference in output:
> home ~ # qlop -p dev-python/QtPy-1.9.0-r5
> dev-python/QtPy: prediction 12s
> home ~ # qlop -p =dev-python/QtPy-1.9.0-r5
> dev-python/QtPy: prediction 12s
can you do grep dev-python/QtPy /var/log/emerge.log and send me the result? I'd like to look at this in some detail Created attachment 733138 [details]
Output of "grep dev-python/QtPy /var/log/emerge.log"
The output from the requested command, "grep dev-python/QtPy /var/log/emerge.log".
I created a pull request to fix this: https://github.com/gentoo/portage-utils/pull/15 thanks, sounds sensical The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/proj/portage-utils.git/commit/?id=fc71a04651ab56b0133c61d839169a0cabf6f092 commit fc71a04651ab56b0133c61d839169a0cabf6f092 Author: Jaak Ristioja <jaak@ristioja.ee> AuthorDate: 2022-02-11 15:31:05 +0000 Commit: Fabian Groffen <grobian@gentoo.org> CommitDate: 2022-02-12 16:14:11 +0000 qlop: Fixed --running --verbose returning unknown ETA It seems that this was broken during the introduction of --predict in commit 13402fbd8c51f7feedcc85f2f0815768ec45ee7a which caused keys of the merge_averages and unmerge_averages sets to include version information, whereas --running expects these not to include version information. Bug: https://bugs.gentoo.org/807975 Signed-off-by: Jaak Ristioja <jaak@ristioja.ee> Signed-off-by: Fabian Groffen <grobian@gentoo.org> qlop.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) pushed The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ec3307e507ccfc092371f8e16ea40ff50557ca9f commit ec3307e507ccfc092371f8e16ea40ff50557ca9f Author: Fabian Groffen <grobian@gentoo.org> AuthorDate: 2022-06-14 07:12:19 +0000 Commit: Fabian Groffen <grobian@gentoo.org> CommitDate: 2022-06-14 07:15:51 +0000 app-portage/portage-utils-0.94: version bump Closes: https://bugs.gentoo.org/851138 Closes: https://bugs.gentoo.org/837188 Closes: https://bugs.gentoo.org/836590 Closes: https://bugs.gentoo.org/833942 Closes: https://bugs.gentoo.org/807975 Signed-off-by: Fabian Groffen <grobian@gentoo.org> app-portage/portage-utils/Manifest | 1 + .../portage-utils/portage-utils-0.94.ebuild | 67 ++++++++++++++++++++++ 2 files changed, 68 insertions(+) |