ALT Linux Team development discussions
 help / color / mirror / Atom feed
* [devel] I: Logoved-Stream для обработки логов hasher
@ 2018-08-13 16:04 Igor Vlasenko
  0 siblings, 0 replies; only message in thread
From: Igor Vlasenko @ 2018-08-13 16:04 UTC (permalink / raw)
  To: devel

Уважаемые коллеги!

Скоро в Сизиф уйдет библиотека perl-Logoved-Stream
для обработки логов rpmbuild -v, hasher, beehive.

Внутри поток данных делится на секции, 
на которые можно навесить обработчики.

К примеру, простейший обработчик write section
запишет все секции в отдельные файлы:

ls ./adcli-0.8.2-alt1.S1
hasher::chroot::init
hasher::chroot::srpm
rpmbuild::prep
rpmbuild::build
rpmbuild::install
rpmbuild::install::brp
rpmbuild::check
rpmbuild::files::processing::adcli-0.8.2-alt1.S1
rpmbuild::files::doc::adcli-0.8.2-alt1.S1
rpmbuild::files::provides::adcli-0.8.2-alt1.S1
rpmbuild::files::requires::adcli-0.8.2-alt1.S1
rpmbuild::files::debuginfo
rpmbuild::files::processing::adcli-debuginfo-0.8.2-alt1.S1
rpmbuild::files::provides::adcli-debuginfo-0.8.2-alt1.S1
rpmbuild::files::requires::adcli-debuginfo-0.8.2-alt1.S1
rpmbuild::unpackaged
rpmbuild::write
hasher::time::rpmbuild
hasher::time::total

ls ./albert-0.14.21-alt1_1
hasher::chroot::cache
hasher::chroot::init
hasher::chroot::srpm
rpmbuild::prep
rpmbuild::build
rpmbuild::install
rpmbuild::install::brp
rpmbuild::error

Что представляют собой секции, понятно из их названий.
Обрабатываются как успешные, так и неуспешные логи,
для секций вычисляется статус (success/failure),
который доступен обработчикам.
В дизайне сделан упор на гибкость, модульность,
настраиваемость.

Библиотека будет использоваться в repocop для парсинга
логов beehive и task, а также в новом проекте "Логовед",
о котором напишу отдельно.

-- 

I V


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2018-08-13 16:04 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-08-13 16:04 [devel] I: Logoved-Stream для обработки логов hasher Igor Vlasenko

ALT Linux Team development discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/devel/0 devel/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 devel devel/ http://lore.altlinux.org/devel \
		devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru
	public-inbox-index devel

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.devel


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git