[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

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

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...


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.

To the thief who stole my anti-depressants: I hope you're happy

  -- seen somewhere on the Internet on a photo of a billboard

Reply to: