public inbox for gentoo-alt@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-alt] Allow non-interactive bootstrap to be stopped at arbitrary stages
@ 2020-01-13  9:03 Sam Pfeiffer
  2020-01-16  1:56 ` Benda Xu
  2020-02-05 12:42 ` [gentoo-alt] " Michael Haubenwallner
  0 siblings, 2 replies; 16+ messages in thread
From: Sam Pfeiffer @ 2020-01-13  9:03 UTC (permalink / raw
  To: gentoo-alt

[-- Attachment #1: Type: text/plain, Size: 1970 bytes --]

Hello,

To ease automated building and debugging of the bootstrap of Gentoo Prefix
I would like to propose a patch to add the option to stop the
non-interactive bootstrap on specific stages of the bootstrap.

I'm currently doing this in my CI projects [1]
<https://github.com/awesomebytes/gentoo_prefix_ci>[2]
<https://github.com/awesomebytes/gentoo_prefix_ci_32b> and I'd love to have
this added upstream.

I propose a patch like this:
https://gist.github.com/awesomebytes/3468477c6c90fe3d985372d50aabba9f

Which is what I'm currently using. It just adds another optional parameter
to the commandline (a 3rd one) in non-interactive mode which you tell it
after which stage to stop (stage1, stage2, stage3).

I'm not the most versed person in bash, so maybe there is a more
conceptually beautiful way of doing this. My patch is just a proposal (that
has been tested and running).

This patch is useful because it allows:
1) Easier debugging by stages.
2) Allows to split the bootstrap job in parts in CI environments with time
limits on jobs to run (e.g. Azure Pipelines time limit is 6h*, and the
bootstrap takes in between 5h40-6h40 depending on random things like time
to download things, and load on the machine... or packages just taking
longer to build).

And this patch should not change anything to anyone else (AFAIK).

Thanks for your time and feedback!

P.S.: I'm used to the GitHub/GitLab workflow of having a graphical
interface to do a Pull Request... I don't know how to do this with
https://gitweb.gentoo.org/repo/proj/prefix.git/
If there is no way, aside of the goal of this email, I'd propose to have a
mirror in GitHub.

*If you are curious, Stage 1 takes 8min~, Stage 2 takes 29min~, Stage 3
takes 2h30min~, emerge system takes 2h35min~ on Azure Pipelines,
approximately.

[1] https://github.com/awesomebytes/gentoo_prefix_ci
[2] https://github.com/awesomebytes/gentoo_prefix_ci_32b

-- 

*Sammy Pfeiffer*
PhD Candidate at The Magic Lab within UTS.

[-- Attachment #2: Type: text/html, Size: 2827 bytes --]

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

end of thread, other threads:[~2020-06-14 11:18 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-01-13  9:03 [gentoo-alt] Allow non-interactive bootstrap to be stopped at arbitrary stages Sam Pfeiffer
2020-01-16  1:56 ` Benda Xu
2020-01-16  2:42   ` Sam Pfeiffer
2020-01-16  6:39     ` Sam Pfeiffer
2020-01-23  2:31       ` Sam Pfeiffer
2020-02-02 12:07         ` Fabian Groffen
2020-02-03  3:54           ` Sam Pfeiffer
2020-02-03  7:08             ` Benda Xu
2020-06-13 13:53             ` Fabian Groffen
2020-06-14 11:18               ` Sam Pfeiffer
2020-01-25 13:01       ` Benda Xu
2020-01-27  9:43         ` Sam Pfeiffer
2020-01-27 10:26           ` Benda Xu
2020-01-27 11:26             ` Sam Pfeiffer
2020-01-29 11:38               ` Benda Xu
2020-02-05 12:42 ` [gentoo-alt] " Michael Haubenwallner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox