Hi,

I was doing some translation work of some pages in webwml, which led me
to do some cleanups... and I spotted that the CI for webwml is disabled:

https://salsa.debian.org/webmaster-team/webwml/-/blob/master/README_CI.gitlab-ci.yml?ref_type=heads

It's possible to enable it manually, but a bit "hard to operate".

I did re-implement it. In retrospect, I could have re-used more of the
original code but I started experimenting with the tools that I'm
familiar with, and approach that I felt comfortable. I can re-visit it
though (incorporate things from the old to mine, or from mine to the
old).

Anyway, I will open a draft MR but I thought that it would be
interesting to have some views first on the mailing list. The changes:

https://salsa.debian.org/carlespina/webwml/-/merge_requests/1

An example pipeline (click on the arrow of "languages-pipeline" to
expand the languages).

https://salsa.debian.org/carlespina/webwml/-/pipelines/1156370

A bit of an overview:

-The CI does not run by default (to avoid resource usage, etc.). To run
it, a user can push this way:

  $ git push-force -o ci.variable='FORCE_CI=1' origin

Or a user, if always wants it, could add in their .git/config file:

-----
[push]
        pushOption = ci.variable=ENABLE_CI=1
-----

Or, a user can run the pipeline manually (using Salsa web) passing
ENABLE_CI=1

If it runs, it only builds "english" (always) and then any language that
have changed compared with "master".

Building "english" takes about 15 minutes. It might be way faster than
in 2018 because... newer hardware and maybe the fact that historic
"news" are moved to https://chronicles.debian.org/ so fewer pages to do.

It should be possible to incorporate a next step to do some
verifications using the tools from the cron jobs:
https://salsa.debian.org/webmaster-team/cron/-/tree/master/scripts?ref_type=heads

Any thoughts about the MR to facilitate running CI easier? and the
approach?

Cheers,

-- 
Carles Pina i Estany
https://carles.pina.cat | [email protected] | [email protected]

Attachment: signature.asc
Description: PGP signature

Reply via email to