mirror of
https://gitea.com/gitea/runner.git
synced 2026-08-24 04:47:45 +00:00
8260e2def2
Adds a real-Gitea compatibility suite against stable and nightly to catch runner and API drift before release. The suite shares one Gitea and regular runner, using repository runners only for cache v1/v2 and ephemeral behavior. It covers registration, payload and log encoding, secrets, variables, services, artifacts, outputs, matrices, cache, dispatch, live logs, cancellation, and ephemeral teardown. CI runs both images in parallel. Warm local timings: | Image | Before | After | | --- | ---: | ---: | | `gitea/gitea:latest` | ~70s | 26.54s | | `gitea/gitea:main-nightly` | ~54s | 22.53s | The former serial matrix took about 2 minutes. Parallel suite execution is now bounded by the slower ~26.5-second variant. Shared Renovate matcher: https://gitea.com/gitea/renovate-config/pulls/552 --------- Co-authored-by: silverwind <me@silverwind.io> Reviewed-on: https://gitea.com/gitea/runner/pulls/1180 Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com> Reviewed-by: silverwind <2021+silverwind@noreply.gitea.com> Co-authored-by: bircni <bircni@icloud.com>
14 lines
418 B
Bash
Executable File
14 lines
418 B
Bash
Executable File
#!/bin/bash
|
|
set -euo pipefail
|
|
|
|
: "${E2E_CONCURRENCY:?E2E_CONCURRENCY is required}"
|
|
: "${E2E_JOB_IMAGE:?E2E_JOB_IMAGE is required}"
|
|
: "${E2E_GITEA_IMAGE:?E2E_GITEA_IMAGE is required}"
|
|
: "${SERVICE_IMAGE:?SERVICE_IMAGE is required}"
|
|
|
|
docker pull "$E2E_JOB_IMAGE"
|
|
docker pull "$SERVICE_IMAGE"
|
|
docker pull "$E2E_GITEA_IMAGE"
|
|
|
|
exec "${GO:-go}" test -tags e2e -count=1 -parallel "$E2E_CONCURRENCY" -timeout 20m -v ./e2e/...
|