Node documentation

Configure cache reads and package pulls against runner-ru.test-pr.space, then sign in as an operator.

Quickstart

Export your CI worker token as TESTPR_CACHE_TOKEN. In committed files, use the placeholder <TENANT_TOKEN>.

Gradle 8+ pull-request builds

Feature branches pull verified jars from main-branch CI caches with isPush = false, so untrusted builds cannot poison the shared cache.

build-cache.init.gradle.kts
gradle.settingsEvaluated {
    buildCache {
        remote<HttpBuildCache> {
            url = uri("https://runner-ru.test-pr.space/cache/")
            isPush = false
            isAllowInsecureProtocol = false
            credentials {
                username = "ci-reader"
                password = providers
                    .environmentVariable("TESTPR_CACHE_TOKEN")
                    .get()
            }
        }
    }
}

Bazel monorepo workers

Linux and macOS workers share compiled object blobs by SHA-256 Content-Digest over HTTPS.

.bazelrc
build --remote_cache=https://runner-ru.test-pr.space/cache
build --remote_header=Authorization="Bearer <TENANT_TOKEN>"
build --remote_upload_local_results=false

Pull-through package mirrors

Ephemeral build containers resolve Maven Central, PyPI, npm, and Go module tarballs from this node. The first request reads through to the upstream registry, and the authentic upstream SHA-256 hashes are preserved. See the distribution catalog for the prefixes.

settings.xml, pip, npm
<!-- ~/.m2/settings.xml -->
<mirror>
  <id>testpr</id>
  <mirrorOf>central</mirrorOf>
  <url>https://runner-ru.test-pr.space/dist/v1/pkg/maven/</url>
</mirror>

# pip
pip config set global.index-url https://runner-ru.test-pr.space/dist/v1/pkg/pypi/simple/

# npm
npm config set registry https://runner-ru.test-pr.space/dist/v1/pkg/npm/

For Go, set the module download endpoint described in go help environment to https://runner-ru.test-pr.space/dist/v1/pkg/go/.

Engineering FAQ

Why default pull-request workers to isPush = false?

A remote cache serves whatever it stores. Letting unreviewed branches write means a crafted output could reach the next build with the same key. Read-only pull policies keep write credentials with main-branch CI.

How is upstream SHA-256 verified on the mirrors?

The mirror compares each downloaded Maven, PyPI, npm, or Go artifact with the hash the upstream registry publishes before storing it, then serves the original bytes unchanged.

Action Cache hit or CAS transfer?

An Action Cache hit is a small metadata answer that names output digests. A CAS transfer is the larger read of each blob by SHA-256 digest, and ranged reads answer with HTTP 206.

Operator access

Password logins are disabled. Engineers authenticate with an active OIDC identity session or with an offline operator access key that unlocks a read-only workspace bundle in this browser.

Leave the field empty to check only your OIDC session. The key stays in this page and is never stored.