dracut icon indicating copy to clipboard operation
dracut copied to clipboard

ci: add Gentoo Linux container

Open LaszloGombos opened this issue 2 years ago • 12 comments

Checklist

  • [X] I have tested it locally
  • [X] I have reviewed and updated any documentation if relevant
  • [ ] I am providing new code and test(s) for it

LaszloGombos avatar May 06 '22 13:05 LaszloGombos

@LaszloGombos what was the current status on this one?

johannbg avatar May 31 '22 01:05 johannbg

@johannbg this PR is ready for review (from my perspective). Thank you !

LaszloGombos avatar May 31 '22 14:05 LaszloGombos

@LaszloGombos you need to fix your manifest as can be seen in the failing test :smile:
Try include the full path in the FROM line in Dockerfile-Gentoo, for example instead of using FROM gentoo/portage:latest use FROM docker.io/gentoo/portage:latest Btw is it better to use portage instead of the stage3 images for Gentoo?

johannbg avatar Jun 02 '22 11:06 johannbg

This issue is being marked as stale because it has not had any recent activity. It will be closed if no further activity occurs. If this is still an issue in the latest release of Dracut and you would like to keep it open please comment on this issue within the next 7 days. Thank you for your contributions.

stale[bot] avatar Jul 06 '22 23:07 stale[bot]

Try include the full path in the FROM line in Dockerfile-Gentoo,

Ok, updated the PR. Thanks for the hint !

LaszloGombos avatar Aug 06 '22 19:08 LaszloGombos

Log of building the container to help with the reviews: https://github.com/dracutdevs/dracut/runs/7707115197 Also attached, as not sure about the retention policy log.txt .

LaszloGombos avatar Aug 07 '22 00:08 LaszloGombos

CC @aafeijoo-suse to help with CI and/or move this PR forward somehow.

LaszloGombos avatar Aug 16 '22 03:08 LaszloGombos

/packit build

aafeijoo-suse avatar Aug 17 '22 09:08 aafeijoo-suse

No config file for packit (e.g. .packit.yaml) found in dracutdevs/dracut on commit 94c51c1c950591b963128ce550e8f89f4b1a25a8

For more info, please check out the documentation or contact the Packit team.

#1816 would be useful right now... :)

aafeijoo-suse avatar Aug 17 '22 09:08 aafeijoo-suse

I found this useful tool which allows to locally test these kind of github actions: https://github.com/nektos/act

Although the docker tags look good, it throws the same error:

# act -j nosystemd
[Integration Test/nosystemd] Cannot parse container options: --privileged -v /dev:/dev
[Integration Test/nosystemd] 🚀  Start image=ghcr.io/dracutdevs/gentoo:latest
[Integration Test/nosystemd]   🐳  docker pull image=ghcr.io/dracutdevs/gentoo:latest platform= username= forcePull=false
[Integration Test/nosystemd] 🏁  Job succeeded
Error: Error response from daemon: manifest unknown

aafeijoo-suse avatar Aug 18 '22 13:08 aafeijoo-suse

@aafeijoo-suse Thanks for helping out.

Error: Error response from daemon: manifest unknown

Changes of Dockerfiles in this PR has no impact on integration tests, since containers are updated only on push events not on pull requests.

This is not a new problem and I have observed this in other PRs as well (e.g. https://github.com/dracutdevs/dracut/pull/1827). We had this problem for quite some time, and resolving this problem is outside of the scope of "introducing Gentoo container" PR.

Most importantly, after the PR lands and the container is pushed, subsequent CI runs and PRs would not have the test failing.

TBH, this kind of PRs are so rare, that I am not sure if we want to address resolving this race in the CI system - lot of complexity for little benefit.

One trivial work around is land the container code first and do the test integration PR later when the container is available - which is also the proposed approach on https://github.com/dracutdevs/dracut/pull/1827

I will update this PR and just introduce the Gentoo container. Hope this will also make the review easier as the PR will be smaller.

LaszloGombos avatar Aug 18 '22 14:08 LaszloGombos

This issue is being marked as stale because it has not had any recent activity. It will be closed if no further activity occurs. If this is still an issue in the latest release of Dracut and you would like to keep it open please comment on this issue within the next 7 days. Thank you for your contributions.

stale[bot] avatar Sep 28 '22 01:09 stale[bot]

not stale

LaszloGombos avatar Sep 28 '22 04:09 LaszloGombos

Some dracut tests run and pass on this gentoo container. Unfortunately Github Actions struggles with this container - see https://github.com/actions/checkout/issues/334#issuecomment-716068696 . I plan to look into some workaround.

LaszloGombos avatar Sep 30 '22 19:09 LaszloGombos