Bug#911185: commit hash not found in translation-check header breaks the wml build

Wouter Verhelst <[email protected]>
Newsgroups gmane.linux.debian.devel.www
Organization The Debian Project, http://www.debian.org/
Message-ID <20181019161405.GA2732__27097.971030935$1539967760$gmane$org@grep.be>
On Fri, Oct 19, 2018 at 03:06:43PM +0200, Laura Arjona Reina wrote:
> I have done some tests to include some parts of what is done via cron scripts
> to be done in .gitlab-ci.yml, to minimise the areas of webwml failing in the
> CI, but later I thought that if those processes are indeed in separated cron
> jobs that only run 6 times a day (and some others, once a day), maybe it's
> not reasonable to make them run in salsa with each commit...

Point.

Perhaps another strategy might be better:

For each file that is not committed to the repository, create a "sample"
file that contains examples of what the data is supposed to look like,
but that doesn't necessarily reproduce all the data. Then, create a
Makefile rule along the following lines:

Mirrors.masterlist: Mirrors.masterlist.sample
	if [ ! -f $@ ]; then cp $< $@; else touch $@; fi

This copies the "sample" file to the "normal" file, but not if the
normal file already exists. That way, the bogus sample files should
never overwrite the real data, but at least CI will have processed some
information (I think it's perfectly fine if a CI preview contains some
bogus data). On www-master, the external cronjobs would remain, so there
the website would contain the real data.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.