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

ci: build: build LXA TAC images on our (experimental) self hosted runner #158

Merged
merged 1 commit into from
Jul 31, 2024

Conversation

hnez
Copy link
Member

@hnez hnez commented Jul 30, 2024

The jobs run in a virtual machine with an ephermal disk image, much like the official runners do.

There are however two differences:

  • The virtual machine has a lot more RAM, CPU cores and disk space than the official runners.

  • The disk image can be persisted. The job just needs to know the correct secret token.

    The jobs are set up so that jobs running on the local scarthgap branch persist their disk images success, but jobs from pull request do not and can not.

    This means jobs from pull requests and jobs on the scarthgap branch will use a disk image based on the latest successful run on the scarthgap branch.

    This gives us near-incremental build speeds.

TODO before merging:

  • Actually enable the (experimental) Forrest GitHub Runner on the meta-lxatac repository.

@hnez hnez requested a review from jluebbe July 30, 2024 14:36
@hnez hnez force-pushed the forrest branch 8 times, most recently from 13a0065 to ed793ee Compare July 31, 2024 08:10
The jobs run in a virtual machine with an ephermal disk image,
much like the official runners do.

There are however two differences:

  - The virtual machine has a lot more RAM, CPU cores and disk space
    than the official runners.

  - The disk image _can be_ persisted. The job just needs to know the
    correct secret token.

    The jobs are set up so that jobs running on the local scarthgap branch
    persist their disk images on success, but jobs from pull request do
    not and can not.

    This means jobs from pull requests and jobs on the scarthgap branch
    will use a disk image based on the latest successful run on the
    scarthgap branch.

    This gives us near-incremental build speeds while preventing broken
    build or builds from pull requests from tainting our runner's disk.

Since the runner will not be available in forked repositories the job will
only attempt to run if the HAS_BUILD_RUNNER repository variable is set
to 'true'.

Signed-off-by: Leonard Göhrs <l.goehrs@pengutronix.de>
@jluebbe jluebbe merged commit 3c16823 into linux-automation:scarthgap Jul 31, 2024
4 checks passed
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.

2 participants