|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [PATCH test-artifacts v3 09/13] Add trigger-test job, to run test on a Linux built from a branch/tag
On Wed, Apr 15, 2026 at 01:44:47PM +0000, Anthony PERARD wrote: > On Wed, Apr 01, 2026 at 01:21:59AM +0200, Marek Marczykowski-Górecki wrote: > > When scheduling pipeline in test-artifacts repo, it can get also > > TEST_TRIGGER_REPO and TEST_TRIGGER_BRANCH variables, to trigger relevant > > pipeline to test just built artifacts. > > Pass ARTIFACTS_REPO+ARTIFACTS_BRANCH to the child pipeline to ensure it > > fetches artifacts from the right job. > > For example, to build linux-next and test Xen staging on it, the > > pipeline could be triggered with: > > > > > > LINUX_GIT_URL=https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git > > LINUX_GIT_VERSION=master > > TEST_TRIGGER_REPO=xen-project/hardware/xen > > TEST_TRIGGER_BRANCH=staging > > > > The triggered xen test pipeline will skip most build jobs. > > > > Signed-off-by: Marek Marczykowski-Górecki <marmarek@xxxxxxxxxxxxxxxxxxxxxx> > > --- > > You might want to add that this depends on two patch for the xen repo, > for the trigger to do the expected tests: > CI: make test-artifacts repo/branch/job customizable > ci: introduce BUILD_FOR_TESTS_ONLY > > > diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml > > index 62b2a24e7faf..9d90a8f57ff8 100644 > > --- a/.gitlab-ci.yml > > +++ b/.gitlab-ci.yml > > @@ -105,3 +110,18 @@ linux-git-x86_64: > > microcode-x86: > > extends: .x86_64-artifacts > > script: ./scripts/x86-microcode.sh > > + > > +trigger-test: > > + stage: deploy > > + trigger: > > + project: $TEST_TRIGGER_REPO > > + branch: $TEST_TRIGGER_BRANCH > > + strategy: mirror > > + variables: > > + ARTIFACTS_REPO: $CI_PROJECT_PATH > > + ARTIFACTS_BRANCH: $CI_COMMIT_REF_NAME > > + LINUX_JOB_X86_64: linux-git-x86_64 > > + LINUX_JOB_ARM64: linux-git-arm64 > > + BUILD_FOR_TESTS_ONLY: 1 > > Can we add this? > inherit: > variables: false > > Otherwise, as I understand, the triggered pipeline will also use the > global variables, like TEST_TRIGGER_REPO, LINUX_GIT_VERSION, ... Or I > could be wrong because we don't set a default value and the are only > manual/scheduled pipeline variable. > > https://docs.gitlab.com/ci/yaml/#trigger > > CI/CD variables defined in a top-level variables section (globally) or > > in the trigger job are forwarded to the downstream pipeline as trigger > > variables. > > https://docs.gitlab.com/ci/pipelines/downstream_pipelines/#prevent-default-variables-from-being-passed Hm, yes, inherit:variables:false might be needed if we'd want to avoid passing those variables. But, TBH I'm not sure if we want to avoid that - it might be useful at some point to get LINUX_GIT_VERSION there, for example. > I'm not sure if the inherit:variables:false is needed, so: > Reviewed-by: Anthony PERARD <anthony.perard@xxxxxxxxxx> > > Thanks, > > > -- > Anthony Perard | Vates XCP-ng Developer > > XCP-ng & Xen Orchestra - Vates solutions > > web: https://vates.tech > > -- Best Regards, Marek Marczykowski-Górecki Invisible Things Lab Attachment:
signature.asc
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |