Directories
¶
| Path | Synopsis |
|---|---|
|
actions
|
|
|
cache
command
Command cache is the cache action's program (specs/0007-actions.md, cache): it asks the runner service which version of a cache the run restores, downloads its objects from Cloud Storage, checking each, and extracts them under a directory, the files' archives at once and the directories' archive last.
|
Command cache is the cache action's program (specs/0007-actions.md, cache): it asks the runner service which version of a cache the run restores, downloads its objects from Cloud Storage, checking each, and extracts them under a directory, the files' archives at once and the directories' archive last. |
|
checkout
command
Command checkout is the checkout action's program (specs/0007-actions.md, checkout).
|
Command checkout is the checkout action's program (specs/0007-actions.md, checkout). |
|
disk
command
Command disk is the disk action's program (specs/0007-actions.md, disk): it asks the runner service for the job's work disk, asks again while the disk is being made, and waits until it's mounted at /work.
|
Command disk is the disk action's program (specs/0007-actions.md, disk): it asks the runner service for the job's work disk, asks again while the disk is being made, and waits until it's mounted at /work. |
|
internal/actions
Package actions is what a step's program gets from GitHub Actions and gives back: its environment, its inputs, its outputs, its summary, and the masking of values the log must never show.
|
Package actions is what a step's program gets from GitHub Actions and gives back: its environment, its inputs, its outputs, its summary, and the masking of values the log must never show. |
|
internal/archive
Package archive is how a cache's tree becomes archives and comes back (specs/0007-actions.md, save-cache and cache): a parallel walk, shards of files and symlinks balanced by the reads they take, and tar archives in PAX format, compressed with zstd, of each shard and of the directories.
|
Package archive is how a cache's tree becomes archives and comes back (specs/0007-actions.md, save-cache and cache): a parallel walk, shards of files and symlinks balanced by the reads they take, and tar archives in PAX format, compressed with zstd, of each shard and of the directories. |
|
internal/backoff
Package backoff is how the actions wait between attempts at a call that may succeed later.
|
Package backoff is how the actions wait between attempts at a call that may succeed later. |
|
internal/event
Package event is what the actions read of a run's event: the job's GITHUB_ variables and the event's payload, at GITHUB_EVENT_PATH.
|
Package event is what the actions read of a run's event: the job's GITHUB_ variables and the event's payload, at GITHUB_EVENT_PATH. |
|
internal/gcs
Package gcs uploads and downloads a cache's objects with Cloud Storage's JSON API, signed with the short-lived, downscoped access token the runner service hands a job for them (specs/0007-actions.md, save-cache and cache).
|
Package gcs uploads and downloads a cache's objects with Cloud Storage's JSON API, signed with the short-lived, downscoped access token the runner service hands a job for them (specs/0007-actions.md, save-cache and cache). |
|
internal/metadata
Package metadata asks the machine's metadata server, as Compute Engine serves it, whether the machine is one of the runner service's, and for its identity token: for an audience, in the full format, which names the machine.
|
Package metadata asks the machine's metadata server, as Compute Engine serves it, whether the machine is one of the runner service's, and for its identity token: for an audience, in the full format, which names the machine. |
|
internal/mount
Package mount tells whether a directory is a mount point, as a process sees its mounts in /proc/self/mountinfo.
|
Package mount tells whether a directory is a mount point, as a process sees its mounts in /proc/self/mountinfo. |
|
internal/service
Package service calls the runner service through its interface for actions, specs/0005-interface.md: nothing else of the service's is relied on.
|
Package service calls the runner service through its interface for actions, specs/0005-interface.md: nothing else of the service's is relied on. |
|
internal/testgithub
Package testgithub is what the tests need of this repository's GitHub emulator beyond the emulator itself: a job's environment, as GitHub gives a step its variables, event, files and GITHUB_TOKEN, and the tokens handed out, which tests check no log shows.
|
Package testgithub is what the tests need of this repository's GitHub emulator beyond the emulator itself: a job's environment, as GitHub gives a step its variables, event, files and GITHUB_TOKEN, and the tokens handed out, which tests check no log shows. |
|
internal/where
Package where decides whether an action is inside the organization or outside it (specs/0007-actions.md, Where an action is).
|
Package where decides whether an action is inside the organization or outside it (specs/0007-actions.md, Where an action is). |
|
save-cache
command
Command save-cache is the save-cache action's program (specs/0007-actions.md, save-cache): it asks the runner service for a version of a cache to save, walks a directory, uploads its files and symlinks in shards, and its directories, as compressed archives to Cloud Storage, all at once, and then commits the version.
|
Command save-cache is the save-cache action's program (specs/0007-actions.md, save-cache): it asks the runner service for a version of a cache to save, walks a directory, uploads its files and symlinks in shards, and its directories, as compressed archives to Cloud Storage, all at once, and then commits the version. |
|
cmd
|
|
|
runners
command
Command runners is the service, on Cloud Run (specs/0001-architecture.md).
|
Command runners is the service, on Cloud Run (specs/0001-architecture.md). |
|
Package config is the service's configuration: the organization's ID, shapes, the runner version and what goes into the base images.
|
Package config is the service's configuration: the organization's ID, shapes, the runner version and what goes into the base images. |
|
Package conformance is the interface's test suite (specs/0005-interface.md): one set of cases that this repository runs, in CI, against both its service emulator, emulators/service, and the real service wired to its emulators of GitHub, Compute Engine, Google's issuers, Pub/Sub and Cloud Storage.
|
Package conformance is the interface's test suite (specs/0005-interface.md): one set of cases that this repository runs, in CI, against both its service emulator, emulators/service, and the real service wired to its emulators of GitHub, Compute Engine, Google's issuers, Pub/Sub and Cloud Storage. |
|
emulators
|
|
|
compute
Package compute emulates the parts of Compute Engine the service uses, as Google's REST client (google.golang.org/api/compute/v1) calls them over HTTP: instances, with their labels, metadata, guest attributes and serial output; disks, attached and detached; images; and zone and global operations.
|
Package compute emulates the parts of Compute Engine the service uses, as Google's REST client (google.golang.org/api/compute/v1) calls them over HTTP: instances, with their labels, metadata, guest attributes and serial output; disks, attached and detached; images; and zone and global operations. |
|
fault
Package fault makes an emulator fail requests as the real service does: before doing the work, after doing it with the response lost, slowly, or by dropping the connection.
|
Package fault makes an emulator fail requests as the real service does: before doing the work, after doing it with the response lost, slowly, or by dropping the connection. |
|
github
Package github emulates the parts of GitHub the service uses: the REST API as go-github calls it, authenticated as a GitHub App installation; an Actions OIDC issuer; and signed webhook deliveries.
|
Package github emulates the parts of GitHub the service uses: the REST API as go-github calls it, authenticated as a GitHub App installation; an Actions OIDC issuer; and signed webhook deliveries. |
|
github/cmd/standin
command
Command standin is the GitHub emulator's runner stand-in as a program, in place of the runner's run.sh: configured from its environment as the runner is, it takes one job, runs its job-started hook and steps, reports it and exits.
|
Command standin is the GitHub emulator's runner stand-in as a program, in place of the runner's run.sh: configured from its environment as the runner is, it takes one job, runs its job-started hook and steps, reports it and exits. |
|
google
Package google emulates Google's ID token issuer, as Cloud Scheduler and Pub/Sub push subscriptions sign their calls: tokens for a service account's email, with the audience the caller was configured with; the bodies of Pub/Sub's pushes; and Pub/Sub's publishing (PubSub).
|
Package google emulates Google's ID token issuer, as Cloud Scheduler and Pub/Sub push subscriptions sign their calls: tokens for a service account's email, with the audience the caller was configured with; the bodies of Pub/Sub's pushes; and Pub/Sub's publishing (PubSub). |
|
oidc
Package oidc is an OpenID Connect issuer with its own signing keys and published key set, for emulating GitHub's Actions tokens and Google's ID tokens.
|
Package oidc is an OpenID Connect issuer with its own signing keys and published key set, for emulating GitHub's Actions tokens and Google's ID tokens. |
|
service
Package service emulates this repository's service as its interface for actions describes it (specs/0005-interface.md), and nothing more: runs bound at their first job's check, as the service binds them, work disks, always empty, and caches, restored from the versions of the run's restore chain and saved into the caches' bucket of a Cloud Storage emulator.
|
Package service emulates this repository's service as its interface for actions describes it (specs/0005-interface.md), and nothing more: runs bound at their first job's check, as the service binds them, work disks, always empty, and caches, restored from the versions of the run's restore chain and saved into the caches' bucket of a Cloud Storage emulator. |
|
storage
Package storage emulates Cloud Storage's JSON and XML APIs, as cloud.google.com/go/storage calls them over HTTP: buckets of objects with generations, preconditions, reads, lists by prefix and deletes, and uploads in one request or resumable, in chunks.
|
Package storage emulates Cloud Storage's JSON and XML APIs, as cloud.google.com/go/storage calls them over HTTP: buckets of objects with generations, preconditions, reads, lists by prefix and deletes, and uploads in one request or resumable, in chunks. |
|
Package endpoints is where the service is, and the one organization it serves, as the actions that call it rely on (specs/0005-interface.md, Where the service is).
|
Package endpoints is where the service is, and the one organization it serves, as the actions that call it rely on (specs/0005-interface.md, Where the service is). |
|
internal
|
|
|
auth
Package auth authenticates the service's callers (specs/0001-architecture.md, Endpoints): GitHub's webhook deliveries by their HMAC signature, Google's signed calls from the scheduler and push subscriptions, and the service's machines by their Compute Engine identity tokens.
|
Package auth authenticates the service's callers (specs/0001-architecture.md, Endpoints): GitHub's webhook deliveries by their HMAC signature, Google's signed calls from the scheduler and push subscriptions, and the service's machines by their Compute Engine identity tokens. |
|
bases
Package bases makes the service's base images (specs/0003-disks.md, Base images): one per architecture, lsr-base-<arch>-<key>, whose key covers everything that goes into it.
|
Package bases makes the service's base images (specs/0003-disks.md, Base images): one per architecture, lsr-base-<arch>-<key>, whose key covers everything that goes into it. |
|
binding
Package binding binds each run's scope, once, in the bucket (specs/0002-machines.md, Binding a run).
|
Package binding binds each run's scope, once, in the bucket (specs/0002-machines.md, Binding a run). |
|
compute
Package compute is the service's view of Compute Engine: its machines, their disks and the images they boot, in one project, through Google's REST client.
|
Package compute is the service's view of Compute Engine: its machines, their disks and the images they boot, in one project, through Google's REST client. |
|
consumer
Package consumer reads what a consumer's repository says to the service (specs/0005-interface.md, A consumer's files): its .github/runners.json, and the keys of its caches (specs/0003-disks.md, Keys).
|
Package consumer reads what a consumer's repository says to the service (specs/0005-interface.md, A consumer's files): its .github/runners.json, and the keys of its caches (specs/0003-disks.md, Keys). |
|
deploy
Package deploy orders the service's deploys, so that a revision a later deploy replaced makes no more machines or base images' builders (specs/0004-deployment.md, Which revision makes machines).
|
Package deploy orders the service's deploys, so that a revision a later deploy replaced makes no more machines or base images' builders (specs/0004-deployment.md, Which revision makes machines). |
|
disks
Package disks keeps consumers' caches, and makes resume images of the work disks of jobs lost to a preemption or to the age limit (specs/0003-disks.md, specs/0002-machines.md, Preemption).
|
Package disks keeps consumers' caches, and makes resume images of the work disks of jobs lost to a preemption or to the age limit (specs/0003-disks.md, specs/0002-machines.md, Preemption). |
|
github
Package github is the service's view of GitHub: what it reads, as the organization's GitHub App installation, with every answer classed as confirmed or not.
|
Package github is the service's view of GitHub: what it reads, as the organization's GitHub App installation, with every answer classed as confirmed or not. |
|
lease
Package lease keeps a lease in the bucket: an object taken with a generation precondition, valid for a fixed time unless renewed, and released by deleting exactly the generation its holder last wrote (specs/0001-architecture.md, Passes).
|
Package lease keeps a lease in the bucket: an object taken with a generation precondition, valid for a fixed time unless renewed, and released by deleting exactly the generation its holder last wrote (specs/0001-architecture.md, Passes). |
|
logging
Package logging reads the service's machines' boot logs from Cloud Logging (specs/0002-machines.md, A machine's life): Compute Engine sends a machine's serial console there, and serves a stopped or deleted machine's console from nowhere else.
|
Package logging reads the service's machines' boot logs from Cloud Logging (specs/0002-machines.md, A machine's life): Compute Engine sends a machine's serial console there, and serves a stopped or deleted machine's console from nowhere else. |
|
machines
Package machines gives queued jobs machines and ends their lives (specs/0002-machines.md, A machine's life): a pass makes a machine for each job that may have one, from one pool for every consumer, oldest job first, and deletes what's finished; the job-started check decides, from GitHub's records, whether the job a machine's runner took may run there; an admitted job asks for its work disk and its save in its steps; and the supervisor's report says the job is done.
|
Package machines gives queued jobs machines and ends their lives (specs/0002-machines.md, A machine's life): a pass makes a machine for each job that may have one, from one pool for every consumer, oldest job first, and deletes what's finished; the job-started check decides, from GitHub's records, whether the job a machine's runner took may run there; an admitted job asks for its work disk and its save in its steps; and the supervisor's report says the job is done. |
|
pass
Package pass runs the reconciler's passes one at a time, under the lease (specs/0001-architecture.md, Passes): taken at the start, renewed every minute, released at the end, with an absolute deadline that caps every call a pass makes, and a stop to everything once a renewal fails.
|
Package pass runs the reconciler's passes one at a time, under the lease (specs/0001-architecture.md, Passes): taken at the start, renewed every minute, released at the end, with an absolute deadline that caps every call a pass makes, and a stop to everything once a renewal fails. |
|
pubsub
Package pubsub publishes the webhook's checked deliveries to Pub/Sub (specs/0001-architecture.md, Components): each delivery's body as a message's data, with its event as the attribute "event", for the push subscription to deliver to the reconcile endpoint.
|
Package pubsub publishes the webhook's checked deliveries to Pub/Sub (specs/0001-architecture.md, Components): each delivery's body as a message's data, with its event as the attribute "event", for the push subscription to deliver to the reconcile endpoint. |
|
scope
Package scope is a run's scope: where it may read and save disks (specs/0002-machines.md, Scope).
|
Package scope is a run's scope: where it may read and save disks (specs/0002-machines.md, Scope). |
|
selector
Package selector reads the one label a job asks for a machine by (specs/0002-machines.md, Selectors):
|
Package selector reads the one label a job asks for a machine by (specs/0002-machines.md, Selectors): |
|
server
Package server is the service's HTTP interface, versioned under /v1/ (specs/0001-architecture.md, Endpoints).
|
Package server is the service's HTTP interface, versioned under /v1/ (specs/0001-architecture.md, Endpoints). |
|
servicetest
Package servicetest wires the real service, its machines, disks and webhook, to this repository's emulators of GitHub, Google's issuers, Pub/Sub, Compute Engine and Cloud Storage, as a service.World: what the conformance suite drives.
|
Package servicetest wires the real service, its machines, disks and webhook, to this repository's emulators of GitHub, Google's issuers, Pub/Sub, Compute Engine and Cloud Storage, as a service.World: what the conformance suite drives. |
|
store
Package store keeps the service's records in its Cloud Storage bucket, with generation preconditions so that concurrent writers never overwrite each other unknowingly.
|
Package store keeps the service's records in its Cloud Storage bucket, with generation preconditions so that concurrent writers never overwrite each other unknowingly. |
|
tokens
Package tokens mints OAuth access tokens downscoped to one prefix of the caches' bucket, with Google's Credential Access Boundaries, from the service's own credentials (specs/0003-disks.md, Caches): a job gets one that may only read a version's objects, or one that may only create objects under its own version's prefix.
|
Package tokens mints OAuth access tokens downscoped to one prefix of the caches' bucket, with Google's Credential Access Boundaries, from the service's own credentials (specs/0003-disks.md, Caches): a job gets one that may only read a version's objects, or one that may only create objects under its own version's prefix. |
|
Package machine holds what the service puts on its base images, embedded in the service's binary so that nothing in a consumer's repository can change what a machine does before its job starts or after it ends (specs/0004-deployment.md): the sources of the service's three programs, the supervisor, the job-started hook's program and the program that mounts the work disk, each using only Go's standard library and building from its own files alone, as a statically linked binary; the job-started hook's script, which only runs its program; and the units and rule that start the others (specs/0002-machines.md, A machine's life); and the builder's script, which installs them and everything else a base image holds (specs/0003-disks.md, Making a base image).
|
Package machine holds what the service puts on its base images, embedded in the service's binary so that nothing in a consumer's repository can change what a machine does before its job starts or after it ends (specs/0004-deployment.md): the sources of the service's three programs, the supervisor, the job-started hook's program and the program that mounts the work disk, each using only Go's standard library and building from its own files alone, as a statically linked binary; the job-started hook's script, which only runs its program; and the units and rule that start the others (specs/0002-machines.md, A machine's life); and the builder's script, which installs them and everything else a base image holds (specs/0003-disks.md, Making a base image). |
|
hook
command
Command job-started is the job-started hook's program (specs/0002-machines.md, The job-started check).
|
Command job-started is the job-started hook's program (specs/0002-machines.md, The job-started check). |
|
mountwork
command
Command mount-work mounts the work disk at /work (specs/0002-machines.md, The work disk).
|
Command mount-work mounts the work disk at /work (specs/0002-machines.md, The work disk). |
|
supervisor
command
Command supervisor is the service's own program on every machine (specs/0002-machines.md, A machine's life).
|
Command supervisor is the service's own program on every machine (specs/0002-machines.md, A machine's life). |
Click to show internal directories.
Click to hide internal directories.