Skip to content

Virtual cluster CI trigger#943

Draft
Paullgk wants to merge 4 commits into
seapath:mainfrom
Paullgk:main
Draft

Virtual cluster CI trigger#943
Paullgk wants to merge 4 commits into
seapath:mainfrom
Paullgk:main

Conversation

@Paullgk

@Paullgk Paullgk commented Jun 11, 2026

Copy link
Copy Markdown
Member

Hello,
This PR adds the trigger of the virtual-cluster CI, which allows to test the PR in a SEAPATH Yocto virtual cluster.

Paullgk added 2 commits June 11, 2026 10:20
Add the virtual cluster CI to the list of CIs triggered when a PR is
created on the Ansible repository.

Signed-off-by: Paul Le Guen de Kerneizon <paul.leguendekerneizon@savoirfairelinux.com>
This allows to call this workflow from other workflow.

Signed-off-by: Paul Le Guen de Kerneizon <paul.leguendekerneizon@savoirfairelinux.com>
@Paullgk Paullgk marked this pull request as draft June 11, 2026 09:28
@Paullgk Paullgk force-pushed the main branch 3 times, most recently from 8cb0b69 to 1ad2191 Compare June 11, 2026 14:30
@Paullgk Paullgk marked this pull request as ready for review June 11, 2026 14:30
uses: seapath/virtual-cluster/.github/workflows/ansible-setup.yml@main
with:
ansible_repo: https://github.com/seapath/ansible.git
ansible_repo: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.repo.clone_url || 'https://github.com/seapath/ansible.git' }}

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Do we really want to launch the virtual cluster with different ansible repository ?
For me, the only use case is to launch it from seapath ansible repo, with a PR eventually coming from a fork
This is already covered by a classic actions/checkout

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

In this case, how can we test the modification provided by the PR?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

It is precisely the job of action/checkout to download the code from the PR when a workflow is triggered on pull_request
ci.yml set up some hidden configuration variables like GITHUB_REF and other kind. It is then used by the other workflow.
It is already done like that for ci-qa and ci-molecule if you want to have a look

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Maybe we can do the opposite.
The action lives in this repo and this repo clone virtual-cluster.

Comment thread .github/workflows/ci.yml Outdated
uses: ./.github/workflows/ci-centos.yml

ci-virtual-cluster:
needs: ci-molecule

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Do we really need ci-molecule?

uses: seapath/virtual-cluster/.github/workflows/ansible-setup.yml@main
with:
ansible_repo: https://github.com/seapath/ansible.git
ansible_repo: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.repo.clone_url || 'https://github.com/seapath/ansible.git' }}

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Maybe we can do the opposite.
The action lives in this repo and this repo clone virtual-cluster.

uses: seapath/virtual-cluster/.github/workflows/ansible-setup.yml@main
with:
ansible_repo: https://github.com/seapath/ansible.git
ansible_repo: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.repo.clone_url || 'https://github.com/seapath/ansible.git' }}

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

We want one job per flavors.

uses: seapath/virtual-cluster/.github/workflows/ansible-setup.yml@main
with:
ansible_repo: https://github.com/seapath/ansible.git
ansible_repo: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.repo.clone_url || 'https://github.com/seapath/ansible.git' }}

@dupremathieu dupremathieu Jun 12, 2026

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

We also need to do all the CI stuff except latencies tests.

The workflow should be something like that.

  • install prerequisist
  • checkout ansible
  • checkout virtual-cluser
  • download image
  • configure tvars
  • in virtual-cluser make init apply start ansible-ping
  • next run regular CI files

@Paullgk Paullgk force-pushed the main branch 4 times, most recently from 4bd1d08 to fc32f9a Compare June 12, 2026 09:27
Currently, the workflow test the PR changes based on the SEAPATH
Ansible repository.
Add the needed modifications to test the changes from the Ansible
repository where the PR is coming from.

Signed-off-by: Paul Le Guen de Kerneizon <paul.leguendekerneizon@savoirfairelinux.com>
@Paullgk Paullgk force-pushed the main branch 2 times, most recently from d4c3918 to 7347062 Compare June 12, 2026 12:23
@Paullgk Paullgk marked this pull request as draft June 12, 2026 13:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants