From: Leonardo Bras <leobras.c@gmail.com>
To: Ferenc Fejes <ferenc@fejes.dev>
Cc: Leonardo Bras <leobras.c@gmail.com>,
perfbook@vger.kernel.org,
"Paul E . McKenney" <paulmck@kernel.org>,
Akira Yokosawa <akiyks@gmail.com>
Subject: Re: [RFC PATCH 7/7] docker, gitlab-ci: Add EPUB build dependencies and CI job
Date: Sat, 21 Nov 2026 15:09:20 -0300 [thread overview]
Message-ID: <awHeUP4OFZPtgaB4@WindFlash> (raw)
In-Reply-To: <20261115210138.229034-8-ferenc@fejes.dev>
On Sun, Nov 15, 2026 at 10:01:38PM +0100, Ferenc Fejes wrote:
> Install pandoc, unzip, zip, and texlive-lang-japanese in
> docker/Dockerfile for EPUB builds. Add a non-blocking generate_epub job
> in utilities/gitlab-ci.yml that builds and archives perfbook.epub and
> perfbook-endnotes.epub.
>
> Signed-off-by: Ferenc Fejes <ferenc@fejes.dev>
> ---
> docker/Dockerfile | 2 +-
> utilities/gitlab-ci.yml | 17 +++++++++++++++++
> 2 files changed, 18 insertions(+), 1 deletion(-)
>
> diff --git a/docker/Dockerfile b/docker/Dockerfile
> index ee120e4b..063a678b 100644
> --- a/docker/Dockerfile
> +++ b/docker/Dockerfile
> @@ -9,7 +9,7 @@ RUN apt-get update && DEBIAN_FRONTEND=noninteractive TZ=UTC apt-get install -y t
> rm -rf /var/lib/apt/lists/*
> RUN apt-get update && apt-get install -y fig2ps inkscape xfig graphviz psutils \
> texlive-publishers texlive-pstricks texlive-science texlive-fonts-extra \
> - make nano vim git curl gnuplot-nox time poppler-utils librsvg2-bin && \
> + make nano vim git curl gnuplot-nox time poppler-utils librsvg2-bin pandoc unzip zip texlive-lang-japanese && \
> rm -rf /var/lib/apt/lists/*
> COPY steel-city-comic.regular.ttf /usr/local/share/fonts/
> RUN fc-cache /usr/local/share/fonts/
> diff --git a/utilities/gitlab-ci.yml b/utilities/gitlab-ci.yml
> index f03e39a9..6068b215 100644
> --- a/utilities/gitlab-ci.yml
> +++ b/utilities/gitlab-ci.yml
> @@ -31,3 +31,20 @@ generate_pdfs:
> - perfbook.pdf
> - perfbook-1c.pdf
> - perfbook-eb.pdf
> +
> +generate_epub:
> + stage: build
> + allow_failure: true
> +
> + before_script:
> + - pacman --noconfirm -Syu texlive-meta fig2dev ghostscript graphviz librsvg gnuplot wget make which fontconfig git ttf-dejavu gnu-free-fonts ttf-liberation pandoc poppler texlive-langjapanese unzip zip epubcheck
> + - mkdir -p ~/.local/share/fonts && cp fonts/steel-city-comic.regular.ttf ~/.local/share/fonts/ && fc-cache
> +
> + script:
> + - source /etc/profile
> + - make epub epub-endnotes
IIUC, the targets in this project tend to be the output filenames.
> +
> + artifacts:
> + paths:
> + - perfbook.epub
> + - perfbook-endnotes.epub
I tested it, and it ran the new generate_epub job for 40 minutes without
finishing (last command at 1m46s). Since generate_pdfs takes about 2
minutes to finish, I thought something was going wrong.
Thats the job:
https://gitlab.com/linux-kernel/perfbook/-/jobs/18239889160
I retried and the result was the same:
https://gitlab.com/linux-kernel/perfbook/-/jobs/18240502790
Please test if the job concludes before submitting a new version.
In terms of Gitlab-CI yaml, I would recommend against duplicating the
generation recipe. When you add generate_epub, it requires to run all the
setup again (i.e. configuration and pacman installation) in a new instance.
Instead, to avoid duplicated code and work, I recommend just changing the
original script to include the new targets (-epub, etc), as well as the
artifacts list.
Not sure if you actually need to have an allow_failure, but if that's the
case, one simpler option would be:
script:
- source /etc/profile
- make perfbook.pdf perfbook-1c.pdf perfbook-eb.pdf
+ - make perfbook.epub || touch perfbook.epub
+ - make perfbook-endnotes.epub || touch perfbook-endnotes.epub
and having a zero-size file in the artifacts means it failed.
Thanks!
Leo
next prev parent reply other threads:[~2026-11-21 18:09 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-15 21:01 [RFC PATCH 0/7] Add reflowable HTML and EPUB3 build target Ferenc Fejes
2026-11-15 21:01 ` [RFC PATCH 1/7] reflow.ltx: Add LaTeX-to-HTML shims for lwarp builds Ferenc Fejes
2026-11-15 21:01 ` [RFC PATCH 2/7] utilities: Add EPUB3 post-processor and stylesheet Ferenc Fejes
2026-11-15 21:01 ` [RFC PATCH 3/7] utilities/runlwarp.sh: Add lwarp and Pandoc build driver Ferenc Fejes
2026-11-24 11:35 ` Akira Yokosawa
2026-11-15 21:01 ` [RFC PATCH 4/7] Makefile, .gitignore: Add epub and html build targets Ferenc Fejes
2026-11-15 21:01 ` [RFC PATCH 5/7] epub: Add endnote variant for readers without popup footnotes Ferenc Fejes
2026-11-15 21:01 ` [RFC PATCH 6/7] FAQ-BUILD.txt: Document HTML and EPUB build targets Ferenc Fejes
2026-11-15 21:01 ` [RFC PATCH 7/7] docker, gitlab-ci: Add EPUB build dependencies and CI job Ferenc Fejes
2026-11-21 18:09 ` Leonardo Bras [this message]
2026-11-16 4:41 ` [RFC PATCH 0/7] Add reflowable HTML and EPUB3 build target Akira Yokosawa
2026-11-16 17:21 ` Ferenc Fejes
2026-11-17 2:41 ` Akira Yokosawa
2026-11-17 9:44 ` Akira Yokosawa
2026-11-18 3:55 ` Ferenc Fejes
2026-11-18 10:32 ` Akira Yokosawa
2026-11-18 17:56 ` Ferenc Fejes
2026-11-29 8:57 ` Akira Yokosawa
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=awHeUP4OFZPtgaB4@WindFlash \
--to=leobras.c@gmail.com \
--cc=akiyks@gmail.com \
--cc=ferenc@fejes.dev \
--cc=paulmck@kernel.org \
--cc=perfbook@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.