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

  • n testing machines/workers (each 1 running gitlab-ci-runner);
  • m tests,

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:

  1. install gitlab-ci-multi-runners on n mashines if runner ask tags, tag mashine specifc name e.g. "mashinewithmanycpuswhatever". please use gitlab-ci-multi-runner register command so. can alternatively change tags in gitlab on administration view after registration. type of runners should "shared" not "specific".

enter image description here

  1. when installed , tagged every runner on mashines, tag jobs. example:

enter image description here

every job excecuted on specific mashine specific tag. more information see gitlab ci documentation


Comments

Popular posts from this blog

java - Run spring boot application error: Cannot instantiate interface org.springframework.context.ApplicationListener -

python - pip wont install .WHL files -

Excel VBA "Microsoft Windows Common Controls 6.0 (SP6)" Location Changes -