Provision hosted macOS Docker and avoid fixture build engine dependency
This commit is contained in:
1 parent
cc756425e8
commit
a1c4d5d78c
3 files changed
+27
-19
No files matched your search
@@ -2,15 +2,12 @@
|
||||
|
||||
Qualification requires a working local Docker daemon with a Unix socket and
|
||||
permission for the runner user to use it. The workflow prepares fixtures before
|
||||
running tests and fails if the daemon is unavailable. It does not start or
|
||||
provision a daemon, and does not accept skipped container tests.
|
||||
|
||||
Linux GitHub runners can use their installed Docker service. A macOS runner must
|
||||
have a Docker-capable environment provisioned before this workflow can succeed.
|
||||
Do not assume the standard hosted macOS image provides it. See GitHub's runner
|
||||
limitations: https://docs.github.com/en/actions/reference/runners/larger-runners .
|
||||
Local macOS qualification remains possible using the explicitly authorised local
|
||||
daemon; retain exact commit, raw results and platform identity with that evidence.
|
||||
running tests and fails if the daemon is unavailable. Skipped container tests
|
||||
are never accepted. Linux uses the installed Docker service. Hosted macOS uses
|
||||
macos-15-intel with Colima, following Colima's own integration runner choice:
|
||||
https://github.com/abiosoft/colima/blob/main/.github/workflows/macos-integration.yml
|
||||
The workflow starts an ephemeral daemon on that hosted runner; it does not
|
||||
register or expose a developer's machine as a self-hosted runner.
|
||||
|
||||
The workflow pulls the named fixture base versions, resolves platform-specific
|
||||
immutable image IDs and records them in evidence/fixtures.json before tests.
|
||||
@@ -20,7 +17,9 @@ those IDs instead of resolving current tags.
|
||||
|
||||
prepare_container_fixtures.py accepts only loaded immutable IDs, checks Linux and
|
||||
matching image architectures, then creates a minimal implicit-volume negative
|
||||
fixture with build networking disabled. It uses a private Docker configuration
|
||||
fixture by creating (never starting) a network-disabled container and committing
|
||||
its VOLUME metadata. This avoids build-engine differences and registry lookups.
|
||||
The temporary container is removed in a finally block. It uses a private Docker configuration
|
||||
and explicit socket. The generated fixtures.env is suitable for GITHUB_ENV; it
|
||||
contains image IDs and a local socket path, never provider credentials.
|
||||
|
||||
|
||||
Reference in new issue
Block a user