forked from dagger/dagger
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Migrate to Dagger Runners v2 (dagger#7082)
* Use Dagger v0.11.2 via the new CI setup for all workflows except dev-engine This one requires Docker with specific fixes that we don't yet have in the new CI setup. Signed-off-by: Gerhard Lazu <gerhard@dagger.io> * Setup CI for new, legacy and vertical scaling The setup we want for production is: - For all <LANG> SDK jobs, run them on the new CI only - For testdev, run them on the docker-fix legacy CI - For test/dagger-runner, run them on both legacy CI and new CI - For all the rest, run them on the new CI and github runners for the really simple jobs Signed-off-by: Matias Pan <matias@dagger.io> * Rename concurrency group Signed-off-by: Matias Pan <matias@dagger.io> * Install curl on production vertical scaling runner Signed-off-by: Matias Pan <matias@dagger.io> * Add customizable runner for separate perf tests Signed-off-by: Matias Pan <matias@dagger.io> * Rename to _async_hack_make Signed-off-by: Matias Pan <matias@dagger.io> * Upgrade missing workflow to v0.11.1 Signed-off-by: Matias Pan <matias@dagger.io> * Target nvme Signed-off-by: Matias Pan <matias@dagger.io> * CI: Default to 4CPUs & NVMe disks Otherwise the workflows are too slow on the new CI runners and are blocking the migration off the legacy CI runners. Signed-off-by: Gerhard Lazu <gerhard@dagger.io> * Bump to v0.11.2 & capture extra details in comments Signed-off-by: Gerhard Lazu <gerhard@dagger.io> * Debug dagger-engine.dev in large GitHub Runner Signed-off-by: Gerhard Lazu <gerhard@dagger.io> * Continuer running engine:testdev in dagger-runner-docker-fix runner Large GitHub Runners are failing consistently, not worth debugging at this point since we know this works on a vanilla Ubuntu 24.04 instance with Docker - must be an issue related to GitHub Large Runners. FTR: dagger#7223 (comment) Signed-off-by: Gerhard Lazu <gerhard@dagger.io> --------- Signed-off-by: Gerhard Lazu <gerhard@dagger.io> Signed-off-by: Matias Pan <matias@dagger.io> Co-authored-by: Gerhard Lazu <gerhard@dagger.io> Co-authored-by: Matias Pan <matias@dagger.io>
- Loading branch information
1 parent
7672599
commit 184d6db
Showing
4 changed files
with
123 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
# This is run asynchronously, triggered from "hack/make". | ||
# The purpose is to compare the behaviour of different runner configurations. | ||
name: "async/hack/make" | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
mage-targets: | ||
description: "The mage target(s) to execute" | ||
type: string | ||
required: true | ||
dev-engine: | ||
description: "Run against a dev Engine" | ||
type: boolean | ||
default: false | ||
required: false | ||
dagger-cloud-cache: | ||
description: "Use Dagger Cloud Cache" | ||
type: boolean | ||
default: false | ||
required: false | ||
runner: | ||
description: "Runner" | ||
type: string | ||
default: "dagger-v011-on-k8s-gerhard-production" | ||
required: false | ||
concurrency-group: | ||
description: "Concurrency group" | ||
type: string | ||
default: "global" | ||
required: false | ||
|
||
jobs: | ||
depot-runner: | ||
if: ${{ github.repository == 'dagger/dagger' }} | ||
runs-on: ${{ inputs.runner }} | ||
name: ${{ inputs.mage-targets }} on ${{ inputs.runner }} dev-engine:${{ inputs.dev-engine }} dagger-cloud-cache:${{ inputs.dagger-cloud-cache }} | ||
concurrency: | ||
group: ${{ inputs.concurrency-group }} | ||
cancel-in-progress: true | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-go@v4 | ||
with: | ||
go-version: "1.21" | ||
cache-dependency-path: "internal/mage/go.sum" | ||
- name: Waiting for Dagger Engine to be ready... | ||
run: | | ||
if [ "${{ inputs.dev-engine }}" == "true" ] | ||
then | ||
./hack/dev | ||
export _EXPERIMENTAL_DAGGER_CLI_BIN="$PWD/bin/dagger" | ||
chmod +x $_EXPERIMENTAL_DAGGER_CLI_BIN | ||
echo "_EXPERIMENTAL_DAGGER_CLI_BIN=${_EXPERIMENTAL_DAGGER_CLI_BIN}" >> "$GITHUB_ENV" | ||
export _EXPERIMENTAL_DAGGER_RUNNER_HOST=docker-container://dagger-engine.dev | ||
echo "_EXPERIMENTAL_DAGGER_RUNNER_HOST=${_EXPERIMENTAL_DAGGER_RUNNER_HOST}" >> "$GITHUB_ENV" | ||
fi | ||
./hack/make engine:connect | ||
- name: ${{ inputs.mage-targets }} | ||
run: | | ||
if [ "${{ inputs.dagger-cloud-cache }}" == "true" ] | ||
then | ||
export DAGGER_CLOUD_TOKEN="${{ secrets.DAGGER_CLOUD_TOKEN }}" | ||
fi | ||
./hack/make ${{ inputs.mage-targets }} | ||
env: | ||
_EXPERIMENTAL_DAGGER_CLOUD_TOKEN: "p.eyJ1IjogIjFiZjEwMmRjLWYyZmQtNDVhNi1iNzM1LTgxNzI1NGFkZDU2ZiIsICJpZCI6ICIwYzhmMGY2Yy00YjY1LTRhODktYTI0YS0yN2NjNWNhNzNmNTcifQ.Em92UDP-KmcNd80Y-euTS2IrRkIE8qTisP3SXYkQi3c" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters