Commit Graph

70 Commits

Author SHA1 Message Date
Ivan A. Melnikov
250518bae8 lists: Use src.list from repository
... to get all the ENVRs of the packages it has.

Now comparing different arches of the same repo
is not important, and Sisyphus deperecated
source pkglists, so we can use the official
information source.
2020-09-18 13:43:54 +04:00
Ivan A. Melnikov
e0b48e098d update_days: Ignore fresh packages that were never rebuild
Threre was a time when this was important enough
for sisyphus_mipsel, but now, especially for p9_mipsel,
this is just noise.
2020-09-18 13:42:13 +04:00
Ivan A. Melnikov
037474ab50 Fix update_days() report
The prevous commit has broken it.
2019-12-06 13:14:24 +04:00
Ivan A. Melnikov
8af9e1d7b1 Make sure NONE packages are properly colorized
Previously, BY_NAME did not include packages that were
absent from both repositories. This meant that some functions
like `gspi` ignored them, which is inconvenient because
it does not show packages that were never built (like new
kernel flavors) or already deleted.

This commit addresses this in the following way:
- colorize.colorize() now takes additional argument,
  an explicit list of package names to colorize
- for interactive console, this list is formed from
  both repositories, AND all the package names found
  in PACKAGE_TASKS.
2019-12-04 11:10:07 +04:00
Ivan A. Melnikov
c66361223d interactive: fix fresh() for subtasks with EXTRA packages 2019-08-15 10:42:12 +04:00
Ivan A. Melnikov
1e6cc56b9a interactive/fresh: Make colorizing optional
Sometimes it's convenient to have the list
without colors.
2019-08-15 10:40:35 +04:00
Ivan A. Melnikov
6634f39f4b port_stats/lists: Raise error for empty prefix
Sometimes, when lists are updated while we are
reading them, we get 0 results, and all our
reports become very confusing. This change
adds a check to raise an exception in this case.
2019-08-15 10:38:22 +04:00
Ivan A. Melnikov
f60a82557c interactive: add doc() function
... that prints the welcoming message
2019-07-01 12:41:36 +04:00
Ivan A. Melnikov
aba8162676 interactive: add fresh(num)
This function displays subtasks of the tasks
that would update packages in the target repo.
It is especially useful for determining why
the particular task gets into next_tasks(...)
output.

Implementing it nicely required a bit of refactoring
to factor out certain parts of colorizing
and display mech.
2019-07-01 12:38:13 +04:00
Ivan A. Melnikov
a25d089525 Restrict set of interesting tasks to recycler's
recycler64 is boring now.
2019-05-02 17:45:02 +04:00
Ivan A. Melnikov
2410682af6 deps_cmp: initial version
A simple tool that compares dependencies of binary
packages in two repositories. For packages with
matching NEVR, it shows where their dependencies
differ, possibly hinting at the need to rebuild
one package or another.
2019-04-04 13:27:03 +04:00
Ivan A. Melnikov
98b20601ce Fix flake8 warning 2019-04-04 13:26:19 +04:00
Ivan A. Melnikov
c9057f2c08 interactive: EXTRA packages are always interesting
... for next_tasks report.
2019-04-04 13:25:33 +04:00
Ivan A. Melnikov
2077d293f5 side report! 2019-03-22 17:13:07 +04:00
Ivan A. Melnikov
573ff92a85 interactive: list_spi: Accept and split string as first argument
Use case: to show info on all packages in your clipboard, do:

>>> list_spi('''
... <paste>
... ''')
2019-03-19 18:15:39 +04:00
Ivan A. Melnikov
a46ff4b5d4 interactive: Update the module docstring
... to include all the recent stuff
2019-03-19 18:07:16 +04:00
Ivan A. Melnikov
a1c774089f tasks: descending task order in short format
This affects update_days, colorized and similar reports:
now tasks with the largest IDs go first. This helps
reading reports on smaller screens.
2019-03-02 21:40:37 +04:00
Ivan A. Melnikov
f9ef19f8d9 interactive: add min_id param to display_tasks and next_tasks 2019-03-02 21:13:05 +04:00
Ivan A. Melnikov
6598bb5b26 interactive: display_tasks enhancements
Now it is more usable as interactive command.
2019-03-01 17:13:59 +04:00
Ivan A. Melnikov
059f092080 interactive: Add build_log function
Function displays build logs for a subtask, and has
some nice defaults. Alias: bl
2019-03-01 16:45:19 +04:00
Ivan A. Melnikov
0bc2acb073 update_days report: Add a debug statement 2019-03-01 16:21:09 +04:00
Ivan A. Melnikov
0108663163 interactive: Try detecting rebuilds in next_tasks 2019-03-01 15:57:57 +04:00
Ivan A. Melnikov
7ea016d2c8 Drop task_predicates submodule
It did not turn out to be convenient
2019-03-01 14:01:47 +04:00
Ivan A. Melnikov
349cc65f61 update_days: Try to detect rebuilds
It's hard to do 100% correctly, but the heuristics we
employ here works quite well for now: when a package
was rebuild by base repo (Sisyphus) after we've updated
it last time, we probably need to rebuild it.
2019-03-01 13:48:09 +04:00
Ivan A. Melnikov
9e8dcddafe tasks: Derive task ctime from mtime of task/id file 2019-02-28 17:06:32 +04:00
Ivan A. Melnikov
d10a2dc058 outdated_tasks: Don't consider any archived task outdated
Now, when not all archived tasks are DONE, we need to be
less specific in this condition.
2019-02-04 21:02:19 +04:00
Ivan A. Melnikov
9d3984129c tasks: Load all the archived tasks 2019-02-04 14:28:49 +04:00
Ivan A. Melnikov
156f2cdcb8 interactive: Add '\n' between package tasks 2019-02-04 14:21:23 +04:00
Ivan A. Melnikov
f33aa9ae43 update_days report
This change adds new report, update_days, that nicely
displays how many days ago a package was updated. This
report is now available in interactive mode and included
into daily report.
2019-02-01 21:06:41 +04:00
Ivan A. Melnikov
7160cbf06d tasks: refacor format_tasks
- add date
- add test-only flag
2019-02-01 20:26:04 +04:00
Ivan A. Melnikov
ca22430030 tasks: task_is_updating function 2019-02-01 20:25:06 +04:00
Ivan A. Melnikov
15620240c0 tasks: subtask_is_updating
Refactor some useful code out of task_predicates.
2019-02-01 16:55:41 +04:00
Ivan A. Melnikov
6407f615c4 tasks: Fix task loading progress logging 2019-01-31 16:39:35 +04:00
Ivan A. Melnikov
901df3a952 Add 'import rlcompleter' back
Just importing this module configures the completion
correctly.
2019-01-23 13:46:03 +04:00
Ivan A. Melnikov
9189ab87ef interactive: aliases for logs and gspi
This change adds 1-letter aliases for 'logs' and 'gspi' commands.
These commands are used so often that even 4 letters are
just too much.
2019-01-22 13:05:05 +04:00
Ivan A. Melnikov
530010dee9 interactive: correctly load non-ascii logs
Some packages write utf-8 in logs, and may write
build logs in other charset. Now we can load
such logs more or less correctly.
2019-01-22 13:03:49 +04:00
Ivan A. Melnikov
7a656153fc Fix some flakes8 warnings 2019-01-17 13:25:22 +04:00
Ivan A. Melnikov
08bc219dc5 Tasks: don't re-read info.json if we don't have to
tasks.py is now capable of using a dict id => task_info
as a cache; if task is already there and is recent
enough, we don't have to re-read its metadata.
2019-01-17 12:39:23 +04:00
Ivan A. Melnikov
d807cf47da tasks: use time.time() instead of datetime 2019-01-14 14:10:12 +04:00
Ivan A. Melnikov
bfb28137c7 interactive: TASKS is now dict() 2019-01-13 21:52:30 +04:00
Ivan A. Melnikov
2b77f1b7a2 interactive: Print unknown items in list_spi 2018-12-13 17:37:09 +04:00
Ivan A. Melnikov
0ab1839953 next_tasks refactoring
This change refactors internals of next_tasks interactive
command in hope to make them more reusable.
2018-12-13 16:51:50 +04:00
Ivan A. Melnikov
c0dd7d3ccf daily: drop next_tasks from daily report
It turns out it's not really interesting.
2018-12-13 16:49:11 +04:00
Ivan A. Melnikov
fcab6b5350 tasks: Report loading progress every 15 seconds or so 2018-12-13 13:45:55 +04:00
Ivan A. Melnikov
605ad6c85a logs: minor fixes 2018-12-12 18:05:34 +04:00
Ivan A. Melnikov
ab62c0557b reports: More debug logging for next_tasks 2018-09-21 12:40:43 +04:00
Ivan A. Melnikov
0d0d89331e interactive: Raise ValueError if task is not found 2018-09-21 12:39:13 +04:00
Ivan A. Melnikov
91f58d6f28 interactive: Enhance stats() command
- name list support;
- display percentages and legend.
2018-09-11 16:49:57 +04:00
Ivan A. Melnikov
277a112fde Remove srclist_stats
Now that it's broken and I don't want to fix it.
2018-09-11 15:26:35 +04:00
Ivan A. Melnikov
4c681e791f Reports refactoring 2018-09-11 15:23:28 +04:00