ALT Linux Team development discussions
 help / color / mirror / Atom feed
* [devel] RFC: girar: optimize rebuild
@ 2020-04-10 23:10 Vladimir D. Seleznev
  2020-04-10 23:10 ` [devel] [PATCH 1/2] gb/gb-sh-functions: introduce pkg_identity() Vladimir D. Seleznev
                   ` (3 more replies)
  0 siblings, 4 replies; 22+ messages in thread
From: Vladimir D. Seleznev @ 2020-04-10 23:10 UTC (permalink / raw)
  To: devel; +Cc: vseleznv


Hi!

The first part of rebuilt packages optimization for girar. It introduces
pkg_identity() and simple optimization of the rebuilt sourcerpm.

pkg_identity() takes RPM package and returns a value called package identity,
a hash of subset of RPM package header. That subset is the entire header
without some nonessential artifacts like buildhost, buildtime, header hashsum,
etc.

The two package builds of the same NEVR might have equal or different
package identities. The equal identities mean that build results of these
packages are equal too, that allows build optimization. The practical
example of simple rebuilt sourcerpm optimization also introduced.

The future work can be about optimization of "copied" to another branch
sourcerpm with retrieved from archive sourcerpm, and binary packages
optimization (this case has an issue when binary subpackages are mixed
archs, i.e. arch and noarch, this probably could work only with single-arch
builds).

Please review and discuss.

--
   WBR,
   Vladimir D. Seleznev



^ permalink raw reply	[flat|nested] 22+ messages in thread

end of thread, other threads:[~2020-04-27  5:38 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-10 23:10 [devel] RFC: girar: optimize rebuild Vladimir D. Seleznev
2020-04-10 23:10 ` [devel] [PATCH 1/2] gb/gb-sh-functions: introduce pkg_identity() Vladimir D. Seleznev
2020-04-13 18:01   ` Dmitry V. Levin
2020-04-13 19:32     ` Vladimir D. Seleznev
2020-04-10 23:10 ` [devel] [PATCH 2/2] gb: optimize rebuilt srpm if its identity is equal to identity of srpm in the repo Vladimir D. Seleznev
2020-04-11 11:29   ` Alexey Tourbin
2020-04-14 16:42     ` Vladimir D. Seleznev
2020-04-16 21:51       ` Alexey Tourbin
2020-04-17 13:54         ` Dmitry V. Levin
2020-04-20  9:05           ` [devel] stopping a cascade of rebuilds Alexey Tourbin
2020-04-23 19:21             ` Vladimir D. Seleznev
2020-04-23 20:54               ` Dmitry V. Levin
2020-04-27  5:38               ` Alexey Tourbin
2020-04-20  8:36         ` [devel] [PATCH 2/2] gb: optimize rebuilt srpm if its identity is equal to identity of srpm in the repo Alexey Tourbin
2020-04-11 10:36 ` [devel] RFC: girar: optimize rebuild Andrey Savchenko
2020-04-11 15:33   ` Vladimir D. Seleznev
2020-04-11 23:31   ` Alexey V. Vissarionov
2020-04-14 14:57     ` Andrey Savchenko
2020-04-14 16:20       ` Vladimir D. Seleznev
2020-04-11 11:04 ` Gleb Fotengauer-Malinovskiy
2020-04-11 15:21   ` Vladimir D. Seleznev
2020-04-11 16:41     ` Gleb Fotengauer-Malinovskiy

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