Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

github: add workflows for building and publishing kata artefacts on ppc64le #8459

Merged
merged 3 commits into from Nov 27, 2023

Conversation

Amulyam24
Copy link
Contributor

@Amulyam24 Amulyam24 commented Nov 16, 2023

This is the first step of the migration of jobs from Jenkins to GHA.

Fixes: #8458

@katacontainersbot katacontainersbot added the size/large Task of significant size label Nov 16, 2023
@Amulyam24
Copy link
Contributor Author

Hi @fidencio @stevenhorsman , can you please help me in adding a self hosted ppc64le runner?

@stevenhorsman
Copy link
Member

Hi @fidencio @stevenhorsman , can you please help me in adding a self hosted ppc64le runner?

Sure, send me a slack when you are ready and I can send through the token and instructions

- statically linked qemu requires slof.bin to run, hence remove it from blacklist
- By default, initrd is used for Power, modify the configuration.toml accordingly

Fixes: kata-containers#8458

Signed-off-by: Amulyam24 <amulmek1@in.ibm.com>
Since the release is not yet out for ppc64le, build oras from source and use it.

Fixes: kata-containers#8458

Signed-off-by: Amulyam24 <amulmek1@in.ibm.com>
Amulyam24 added a commit to Amulyam24/kata-containers that referenced this pull request Nov 23, 2023
This PR adds workflow to run containerd tests on Power as a part of CI migration.

Fixes: kata-containers#8500

Depends-on: kata-containers#8459

Signed-off-by: Amulyam24 <amulmek1@in.ibm.com>
Amulyam24 added a commit to Amulyam24/kata-containers that referenced this pull request Nov 23, 2023
This PR adds workflow to run containerd tests on Power as a part of CI migration.

Fixes: kata-containers#8500

Depends-on: kata-containers#8459

Signed-off-by: Amulyam24 <amulmek1@in.ibm.com>
Copy link
Member

@BbolroC BbolroC left a comment

Choose a reason for hiding this comment

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

Thanks for the request. I've left 2 comments.

Additionally, I've noticed that we finally have workflows to build artifacts for 4 different architectures where no steps including a if: always() condition for a self-hosted runner (running 24/7) are engaged, but to produce lots of duplicated codes.

I was wondering if this PR would be a right place to incorporate the workflows or we could do it in a separate PR. @fidencio and @stevenhorsman

Copy link
Member

@BbolroC BbolroC left a comment

Choose a reason for hiding this comment

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

Other than the comment regarding the deduplication, LGTM! Thanks @Amulyam24 !

Amulyam24 added a commit to Amulyam24/kata-containers that referenced this pull request Nov 24, 2023
This PR adds workflow to run containerd tests on Power as a part of CI migration.

Fixes: kata-containers#8500

Depends-on: kata-containers#8459

Signed-off-by: Amulyam24 <amulmek1@in.ibm.com>
…pc64le

Adds workflows for building kata static tarball and releasing it.

Fixes: kata-containers#8458

Signed-off-by: Amulyam24 <amulmek1@in.ibm.com>
Copy link
Member

@stevenhorsman stevenhorsman left a comment

Choose a reason for hiding this comment

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

It would be good to see a run on this testing on your fork, but I think the code looks okay and expected.

I definitely understand @BbolroC's comments about the duplication:

  • The build-kata-static-tarball workflow only differs in artifact name, runner and assets that are created
  • The publish workflows only varies on the artifact name and self-host runner prepare in ppc
  • The release workflows are pretty identical other than the build workflows they call
    I'd like to hear @fidencio's thought, but I think we should consider refactoring these to try and get a single workflow with passing the arch in. We might have a couple of steps like:
 - name: Prepare the self-hosted runner
        if: ${{ arch == 'ppc64le' }}
        run: ${HOME}/scripts/prepare_runner.sh)

but I think it's worth tying to see if it's not too much of a mess and would potentially save on the maintenance cost of updating 4 versions in future.
I'm okay for this to be done as a separate PR though.

@Amulyam24
Copy link
Contributor Author

@stevenhorsman, testing done for both this and containerd PR, PTAL for reference - https://github.com/Amulyam24/kata-containers/actions/runs/6979218191/job/18992074251?pr=6

@Amulyam24
Copy link
Contributor Author

Hi @stevenhorsman, we have 3 approvals, can this PR be merged?

@Amulyam24
Copy link
Contributor Author

/test

@fidencio
Copy link
Member

I'm okay for this to be done as a separate PR though.

I am with Steve and Choi here, but I'd for sure prefer this addition coming on a different PR.

@stevenhorsman stevenhorsman merged commit bee6fba into kata-containers:main Nov 27, 2023
156 of 162 checks passed
@Amulyam24 Amulyam24 deleted the workflow-1 branch November 29, 2023 06:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ok-to-test size/large Task of significant size
Projects
None yet
Development

Successfully merging this pull request may close these issues.

github: add workflows for building and publishing kata artefacts for ppc64le
6 participants