qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] gitlab-ci: Make separate sections for build and test
@ 2024-09-18 12:54 Peter Maydell
  2024-09-18 12:54 ` [PATCH 1/2] .gitlab-ci.d: Split build and test in cross build job templates Peter Maydell
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Peter Maydell @ 2024-09-18 12:54 UTC (permalink / raw)
  To: qemu-devel
  Cc: Alex Bennée, Philippe Mathieu-Daudé, Thomas Huth,
	Wainer dos Santos Moschetta

This patchset uses gitlab's support for putting special lines
in the log output that it will interpret as the beginning and
end markers for a collapsible section in the build log.

That's documented here, but it's just "write a line with
the right format and a timestamp and a magic escape sequence
in it":
https://docs.gitlab.com/ee/ci/yaml/script.html#expand-and-collapse-job-log-sections

Since gitlab puts little "time taken" bubbles for each
collapsible section, we can use this to easily find out how
much time is taken for build versus test.

Patch 1 splits out "make" and "make check" to separate make
invocations for the cross-build templates; we do this for
the native-build already.

Patch 2 adds the shell functions that emit start and end
section markers, and puts in section lines in the job
templates.

Since this is just for convenience in looking at CI job logs,
I have not put in a lot of effort into dividing things into
sections -- I've mostly just put configure/build/test into
the templates. We can always tweak the sections later if
we find out it would be useful.

If you want to see what the resulting logs look like you
can look at the jobs in this pipeline:
https://gitlab.com/pm215/qemu/-/pipelines/1458593312

thanks
-- PMM

Peter Maydell (2):
  .gitlab-ci.d: Split build and test in cross build job templates
  .gitlab-ci.d: Make separate collapsible log sections for build and
    test

 .gitlab-ci.d/buildtest-template.yml  | 14 ++++++++
 .gitlab-ci.d/buildtest.yml           |  1 +
 .gitlab-ci.d/crossbuild-template.yml | 48 ++++++++++++++++++++++++++--
 scripts/ci/gitlab-ci-section         | 29 +++++++++++++++++
 4 files changed, 89 insertions(+), 3 deletions(-)
 create mode 100644 scripts/ci/gitlab-ci-section

-- 
2.34.1



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

end of thread, other threads:[~2024-09-19 11:09 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-09-18 12:54 [PATCH 0/2] gitlab-ci: Make separate sections for build and test Peter Maydell
2024-09-18 12:54 ` [PATCH 1/2] .gitlab-ci.d: Split build and test in cross build job templates Peter Maydell
2024-09-19 11:06   ` Thomas Huth
2024-09-18 12:54 ` [PATCH 2/2] .gitlab-ci.d: Make separate collapsible log sections for build and test Peter Maydell
2024-09-19 11:09   ` Thomas Huth
2024-09-18 14:34 ` [PATCH 0/2] gitlab-ci: Make separate " Richard Henderson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).