Gitlab CI: running the same set of tests on several machines -
in high performance computing crucial have code tested against many different architectures/compilers: laptop supercomputer.
assuming have
ntesting machines/workers (each 1 runninggitlab-ci-runner);mtests,
what shall correct layout of .gitlab-ci.yml ensure each of n machines runs tests?
looks me adding more workers ends in round-robin assignment of jobs.
thanks help.
you use tags in .gitlab-ci.yml , on runners distribute tests mashines want. gitlab ci open use cases. assume don't use docker testing.
to accomplish goal, following steps:
- install gitlab-ci-multi-runners on
nmashines if runner ask tags, tag mashine specifc name e.g. "mashinewithmanycpuswhatever". please usegitlab-ci-multi-runner registercommand so. can alternatively change tags in gitlab on administration view after registration. type of runners should "shared" not "specific".
- when installed , tagged every runner on mashines, tag jobs. example:
every job excecuted on specific mashine specific tag. more information see gitlab ci documentation


Comments
Post a Comment