Skip to content
This repository was archived by the owner on Feb 6, 2025. It is now read-only.

Set platform from pr label #1117

Merged
merged 2 commits into from
May 26, 2020

Conversation

pablochacin
Copy link
Contributor

@pablochacin pablochacin commented May 21, 2020

Why is this PR needed?

Some PR are specific to a platform. For example, CPI related PRs must be tested in the corresponding platform.

Fixes #

What does this PR do?

Sets the platform to the one specified in the ci-platform label, if specified.

Anything else a reviewer needs to know?

As only the workers labeled as kvm can run tests in the libvirt platform, the PR must also be labeled with ci-label:libvirt.

The execution shows the pipeline starts with the regular caasp-team-private-integration label and then the kvm label was added:

Screenshot from 2020-05-25 17-28-44

Also, the provisioning step shows a libvirt platform was selected instead of the default vmware platform used for regular PR.

+ make -f skuba/ci/Makefile provision
/home/jenkins/workspace/caasp-jobs_v4_pr_test_PR-1117/skuba/ci/infra/testrunner/testrunner --platform libvirt -c provision```

Merge restrictions

(Please do not edit this)

We are in v4-maintenance phase, so we will restrict what can be merged to prevent unexpected surprises:

What can be merged (merge criteria):
    2 approvals:
        1 developer: code is fine
        1 QA: QA is fine
    there is a PR for updating documentation (or a statement that this is not needed)

@pablochacin pablochacin added ci-label:kvm use a worker that supports kvm ci-platform:libvirt Run tests in kvm platform labels May 21, 2020
@pablochacin pablochacin force-pushed the set-platform-from-pr-label branch 3 times, most recently from 6b29270 to 957d760 Compare May 21, 2020 16:40
@pablochacin pablochacin marked this pull request as draft May 21, 2020 16:40
@pablochacin pablochacin force-pushed the set-platform-from-pr-label branch from 2df896d to 813eee8 Compare May 22, 2020 11:24
Pablo Chacin added 2 commits May 22, 2020 16:34
If PR specifies a ci-platform label, override the default
test platform.

Signed-off-by: Pablo Chacin <pchacin@suse.com>
PR tests can run in any supported platoform. Add
the configuration required by libvirt to the environment.

Signed-off-by: Pablo Chacin <pchacin@suse.com>
@pablochacin pablochacin force-pushed the set-platform-from-pr-label branch 2 times, most recently from 44521f9 to 46e238d Compare May 25, 2020 14:30
@pablochacin pablochacin marked this pull request as ready for review May 25, 2020 15:36
Copy link
Collaborator

@davidcassany davidcassany left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me 👍

@pablochacin pablochacin merged commit a5df22e into SUSE:master May 26, 2020
@pablochacin pablochacin removed the ci-label:kvm use a worker that supports kvm label Jun 2, 2020
jordimassaguerpla pushed a commit that referenced this pull request Jun 5, 2020
Set platform from PR labels

* If PR specifies a ci-platform label, override the default test platform.
* PR tests can run in any supported platoform. Add the configuration required by libvirt to the environment.
mmnelemane pushed a commit to mmnelemane/skuba that referenced this pull request Jul 3, 2020
Set platform from PR labels

* If PR specifies a ci-platform label, override the default test platform.
* PR tests can run in any supported platoform. Add the configuration required by libvirt to the environment.
pablochacin pushed a commit to pablochacin/skuba that referenced this pull request Jul 9, 2020
Set platform from PR labels

* If PR specifies a ci-platform label, override the default test platform.
* PR tests can run in any supported platoform. Add the configuration required by libvirt to the environment.

(cherry picked from commit a5df22e)
@pablochacin pablochacin deleted the set-platform-from-pr-label branch July 10, 2020 10:27
mkoci-suse pushed a commit that referenced this pull request Feb 6, 2025
Set platform from PR labels

* If PR specifies a ci-platform label, override the default test platform.
* PR tests can run in any supported platoform. Add the configuration required by libvirt to the environment.
mkoci-suse pushed a commit that referenced this pull request Feb 6, 2025
Set platform from PR labels

* If PR specifies a ci-platform label, override the default test platform.
* PR tests can run in any supported platoform. Add the configuration required by libvirt to the environment.

(cherry picked from commit e7bf1b2)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
ci-platform:libvirt Run tests in kvm platform
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants