| kind | reference/ci | |
|---|---|---|
| tags |
|
|
| last_verified | 2026-11-04 |
QA covers Console Secrets, OpenShell security and lifecycle, local installation, OIDC Agent chat and native Agent browsing on disposable Compose/Kubernetes installations with real dependencies. Results gate neither merge nor publication.
| Trigger | Jobs selected |
|---|---|
Schedule on main, every 6 hours at minute 17 UTC |
All four groups |
Manual on main with blank test_file or all |
All four groups |
Manual on main with an exact test_file |
Jobs that run that file |
Eligible PR with full-qa |
All four groups |
Eligible PR with only qa-openshell-compose |
Compose OpenShell first-Agent job only |
Eligible PR with qa-keycloak-installation |
Keycloak installation shard only |
Eligible PR with qa-openclaw-model-ui |
Kubernetes / OpenClaw / model-ui only |
Push to main, when QA_ADVISORY_ON_PUSH=true |
QA matrix, native Agent browser and all OpenShell jobs; no local installation job |
Maintainers label reviewed same-repository PRs. Dependabot authors and triggers
are ineligible. Narrow labels select their union. full-qa runs Codex
console-secrets, Compose agent-audit, and http-chat in both presets and
placements. Compose checks native redeployment and required workers on Kubernetes.
New commits replace opted-in merge-commit runs. Unrelated labels leave runs unchanged. Remove QA labels before pushing unreviewed code. Active runs and eligible main pushes finish independently. Authors triage regressions. Verify PR source before labeling.
Keycloak needs no model credential and allows 180 minutes; OpenClaw allows 120. Together they allow 300 runtime runner-minutes per attempt, plus selection—not a duration or billing estimate. Both require sandboxed packaged Chrome.
OpenClaw requires OPENAI_API_KEY and nonblank OCC_TEST_OPENAI_MODEL in
integration-qa-pr, mapped to OCC_TEST_QA_OPENAI_MODEL. Missing inputs fail
before the lane. Each cell materializes only its provider credential, removed
after success or failure.
The schedule does not require QA_ADVISORY_ON_PUSH. Credentialed QA and OpenShell
jobs use integration-qa-pr.
The QA matrix preserves existing clusters and kubeconfig. Setup checks Google Workspace for OpenClaw and Linear for Codex.
| Scenario | In advisory | Presets | Checks |
|---|---|---|---|
sandbox-policy |
Yes — OpenShell jobs | Codex | Discover and preview configuration, then apply, update, and withdraw OpenShell network policy in a prepared environment. |
plugin-install |
Yes — OpenShell jobs | Codex | Install a dedicated Codex plugin, find it after the Codex process restarts, then remove it from the Agent selection. |
model-ui |
Focused label only | OpenClaw | Real model turn and native browser response. |
scratch-volume |
Yes — OpenShell job | Codex | Admitted scratch and workspace access through real tools, frozen selection, and missing/wrong-UID claim refusal. |
oidc-agent-chat |
Yes, separate job | OpenClaw | First-login Default user enrollment, returning Keycloak sign-in, signed admission claims, owner creation and deployment, browser reply, administrative and sibling-Agent denial. |
console-secrets |
Yes (Codex) | OpenClaw, Codex | Create and manage Console Secrets referenced by Agent drafts. Refusing Namespace deletion identifies the deployed Agent and links to its cleanup controls. |
agent-audit |
Yes (Compose) | Codex | Check the exact Agent grant and link the deployed Agent's queue, claim, and result records. Check the record for a successful Agent read. |
git-write |
No | OpenClaw, Codex | Clone, edit, commit, push to the run's granted branch, dispose credentials. |
git-push-denied |
No | Codex | Reject a push to any other branch and dispose credentials. |
slack |
No | Codex | Threaded reply and new root message. |
channel-egress-upgrade |
No | Codex | One-off channel upgrade. |
openshell-linear-read |
No | Codex | Opt-in shipped OpenShell setup, Linear installation and verified native read. |
codex-search-config |
No | Codex | API-key Agent user configuration with omitted, false and true capability declarations; persistence after supported stop/deploy. |
openshell-template-resources |
No | Codex | Template resource delivery. |
openshell-provider-replacement |
No | Codex | Managed Provider replacement, network changes, model turns and peer isolation. |
openshell-git-replacement |
No | Codex | Managed Git recovery, workspace retention and revision-scoped repository grants. |
Source: QA matrix, scenario selection.
To run OpenShell scenarios locally, prepare the matching fixture for network policy, scratch storage, or plugin installation.
model-ui checks Console sign-in and Agent use, then redeploys with a provider
alias, the existing Secret, and OCE_MODEL_API_KEY for a real model turn.
openshell-optional-plugin-withdrawal: native optional Plugin withdrawal.
harness-overrides runs dedicated Codex and OpenClaw on Kubernetes/OpenShell. It deploys two Agents with
distinct authorized destinations and a third inheriting the default, performs real
model turns, restarts the controllers with changed and removed defaults, and
withdraws one Agent's source while the other Agents continue serving.
Select OCC_TEST_QA_INSTALLATION=kubernetes, OCC_TEST_QA_PRESET=all, and
OCC_TEST_QA_SCENARIOS=harness-overrides. Provide two authorized HTTPS port-443
endpoints in OCC_TEST_QA_HARNESS_ENDPOINT_A and _B, protected API-key file paths
in OCC_TEST_QA_HARNESS_KEY_FILE_A and _B, and a model authorized at both endpoints
in OCC_TEST_QA_HARNESS_MODEL. Use the normal source-built QA images and disposable
cluster prerequisites. Missing inputs fail before setup. This scenario is explicit
until hosted credentials for both destinations are configured; ordinary PR checks
run HTTP and PostgreSQL override coverage. The scenario does not collect independent
upstream access logs.
OpenShell needs Landlock, unavailable on QA's Blacksmith runners. Each file
runs on an Ubuntu 24.04 VM with a Landlock check, Docker daemon, cluster and
private state. Job names use QA advisory (OpenShell / <test-file-basename>).
run-ci-lane selects each OpenShell
test-file separately (lane: openshell). qa-openshell-compose selects the first row only.
| Test (source) | Coverage |
|---|---|
| Compose first Agent | Compose control plane with Kubernetes workloads: Agent deployment and reuse, key replacement denial, native redeployment, retained session/files, and required-worker execution. |
| OpenShell installation | Pinned OpenShell installation with Kubernetes-only and Compose control planes. |
| Gateway tool policy | Gateway model tool restrictions, positive administrator controls, and policy replacement. |
| Namespace isolation | Bootstrap gateways and Workspaces before Agents, then run Agents in both Namespaces. |
| Credential lifecycle | Credential routing, replacement, non-model sources, and absence from Agent material. |
| Live credential withdrawal | Credential update, revocation without restarting the Harness, embedded refusal, and authenticated native policy scopes. |
| Upstream outages | Untrusted model TLS, tool outages, and model provider outages with recovery. |
| Gateway and OAuth recovery | Gateway restart, fresh OAuth minting, rotation, revocation, expiry, and source deletion. |
| Sandbox enforcement | Provider credential delivery, authenticated Codex access, filesystem enforcement, and Agent network policy. |
| Scratch storage | Real scratch and workspace writes, immutable binding, and missing/wrong-UID claim refusal. |
| Kubernetes first Agent | The first-Agent and native redeployment workflow with the control plane in Kubernetes. |
| Codex plugin installation | Selected Codex plugin installation and retention through the OpenShell Agent workflow. |
For finite Git conversation checks, persisted reply; read=… means the model
returned the expected nonce. The readback category identifies the failed check.
For example, answer_missing means the reader found the prompt but no matching
assistant answer in its bounded transcript window. The prompt and terminal answer
must belong to the logical run returned by the Gateway. Codex can finish that run
on a new native turn after an internal retry.
The check sends each authenticated nonce prompt once.
The runner requires credentials, expected tests, and cleanup. Local installation uses one runner per manifest file and requires the six original cases: input and network-policy refusals, Kubernetes and Compose profiles, and Keycloak sign-in and recovery. Peer jobs continue after a failure. Hosted preparation builds first-Agent images from the checkout with read-only caches. Local Setup creates and cleans up each installation without duplicate clusters. See OpenShell CI preparation and timing for images, runner requirements, and setup and model-execution timings.
Full Integration can also run this suite with
lane=openshell or lane=all; that workflow runs the same files serially.
The separately prepared OAuth and Linear tests are not
included in advisory coverage.
Configure hosted credentials. Set test_file
to an exact catalog path. Invalid or ambiguous paths stop selection. Omit
test_file or use all for the full advisory.
gh workflow run qa-advisory.yml --repo openclaw/openclaw-enterprise --ref main \
-f test_file=tests/integration/harness-topology-k3d-routing-real.test.mjsFor only OpenShell, use Full Integration
with lane=openshell.
Local instructions run the QA matrix only. For other suites, follow OpenShell setup or local installation tests.
OCC_TEST_QA_INSTALLATION accepts all (default), compose, kubernetes;
OCC_TEST_QA_PRESET accepts all (default), OpenClaw, Codex.
OCC_TEST_QA_SCENARIOS accepts all (default) or comma-separated selectors.
all excludes native-restart, namespace-lifecycle, sandbox-policy, scratch-volume, plugin-install,
openshell-linear-read, codex-search-config, harness-overrides and
oidc-agent-chat selectors.
Invalid selections fail before provisioning; missing
inputs fail selected checks. Omitting OCC_TEST_QA_MATRIX=1 skips the suite.
For native-restart, see recovery qualification.
Select agent-audit with compose and Codex. It uses the standard Codex
deployment fixture and development audit settings. It requires the usual Codex
credential file for Agent startup.
Select oidc-agent-chat alone with kubernetes and OpenClaw. It uses the
gateway-routing lane to prepare Keycloak, PostgreSQL, native routing and
runtime images. Follow the native browser proof
for inputs, execution and proof limits. It does not use the ordinary matrix's
installation launcher.
Select scratch-volume with kubernetes and Codex. The
fixture uses an OpenAI API key for
https://api.openai.com/v1. NVMe and node-loss recovery need separate proof.
Select codex-search-config alone. It requires OCC_TEST_QA_CODEX_MODEL_BASE_URL,
OCC_TEST_QA_CODEX_MODEL, and an API key through OCC_TEST_QA_MODEL_API_KEY or
OCC_TEST_QA_OPENAI_KEY_FILE. Environment keys are redacted and excluded from
launcher children; key files must be private regular files, not symlinks. This
scenario checks configuration persistence and native startup, not live web-search
results. Its API-key setup differs from the scheduled account-login tests.
Ordinary matrix cells check startup and authenticated console login. Only Git
scenarios start the broker. openshell-linear-read instead starts its own
OpenShell stack and needs a connected identity and
Linear read fixture.
OCC_TEST_QA_CONCURRENCY=1..4 selects workers (default 2); installations and
Slack run sequentially. Allow up to 4 GiB per gateway beyond shared services.
Prepare Kubernetes and Compose:
workspace dependencies, Docker, k3d, kubectl, Helm, Go, OpenSSL, Chromium/Playwright,
and certutil. Store selected inputs in a private environment file. Credential
files must be regular files without group/other permissions. Hosted settings
are under integration environments.
| Scenario/preset | Inputs |
|---|---|
| OpenClaw model | OCC_TEST_QA_OPENAI_KEY_FILE |
| Codex | OCC_TEST_QA_CODEX_TOKEN_FILE: authorized service-account PAT |
| Scratch storage | OCC_TEST_QA_OPENAI_KEY_FILE, OCC_TEST_QA_OPENAI_MODEL, and OCC_TEST_QA_SANDBOX_ENV: protected prepared OpenShell environment file, including its migrator connection. |
| Git | OCC_TEST_QA_REPOSITORY_AUTHORIZED=1, OCC_TEST_QA_REPOSITORY_INPUT_DIRECTORY, and OCC_TEST_QA_GITHUB_OBSERVER_TOKEN_FILE or absolute managed OCC_TEST_QA_GITHUB_OBSERVER_BINARY |
| Slack | OCC_TEST_QA_SLACK_APP_TOKEN_FILE, OCC_TEST_QA_SLACK_BOT_TOKEN_FILE, OCC_TEST_QA_SLACK_SENDER_TOKEN_FILE, OCC_TEST_QA_SLACK_CHANNEL_ID |
Slack sender and gateway bot must be distinct channel members; the sender needs post/history/reply access. Reserve the Socket Mode app for this run.
Git's private input directory contains registry.json, private-key.pem, and
upstream-cidrs.json. Follow fixture setup:
exactly one authorized repository, ${OCC_INITIAL_NAMESPACE_ID}, approved IPv4 /32
endpoints, and run-branch push permissions. The run grants git-write with git-only
transport on one branch, oce-qa-<run>, and opens no PR. The run generates the
worker's custody key.
OCC_TEST_QA_GITHUB_OBSERVER_APP_INPUT_DIRECTORY instead supplies an isolated
observer App's registry.json and private-key.pem. Observer credentials stay outside Agents and clean
only verified run-owned refs.
OCC_TEST_QA_ARTIFACTS selects private results; otherwise the runner prints its
temporary path. Set OCC_TEST_QA_CONTROLLER_IMAGE and OCC_TEST_QA_RUNTIME_IMAGE
together to reuse prebuilt images; OCC_TEST_QA_REPOSITORY_IMAGE selects the
broker. Model defaults are in shared configuration; the manifest
lists overrides.
Prebuild Kubernetes QA images from a clean checkout with immutable references
and matching source labels. Use the
same local Unix-socket Docker context with the containerd image store for both
build and QA. Use Buildx, Node.js 24+, and CLI and daemon support for
docker image save --platform (API 1.48+).
The commands select the daemon's Linux amd64 or arm64 platform.
In a fresh Bash shell at the repository root, replace the builder name with an existing builder you own. No QA credentials are needed.
set -euo pipefail
umask 077
qa_builder="your-existing-builder"
qa_platform="$(docker version --format '{{.Server.Os}}/{{.Server.Arch}}')"
[[ "$qa_platform" == linux/amd64 || "$qa_platform" == linux/arm64 ]]
unset OCC_TEST_QA_CONTROLLER_IMAGE OCC_TEST_QA_RUNTIME_IMAGE
qa_commit="$(git rev-parse HEAD)"
qa_status="$(git status --porcelain --untracked-files=all)"
[[ -z "$qa_status" ]]
qa_metadata="$(mktemp -d)"
qa_prefix="localhost/oce-qa-$(date +%s)-$$"
qa_node_base="$(node -p 'require("./scripts/ci/test-suites/images-packaging.json").prepare.defaultEnv.NODE_BASE_IMAGE')"
qa_source="$(node scripts/lib/openclaw-source.ts build-args)"
qa_runtime_args=()
while IFS= read -r argument; do
qa_runtime_args+=(--build-arg "$argument")
done <<< "$qa_source"
docker buildx inspect "$qa_builder"
for role in controller runtime; do
qa_recipe=(--target runtime)
if [[ "$role" == runtime ]]; then
qa_recipe=(-f deploy/runtime/Dockerfile "${qa_runtime_args[@]}")
fi
docker buildx build --builder "$qa_builder" --platform "$qa_platform" \
--load --provenance=false --sbom=false "${qa_recipe[@]}" \
--build-arg NODE_BASE_IMAGE="$qa_node_base" \
--build-arg OCC_BUILD_REVISION="$qa_commit" \
--label "org.opencontainers.image.revision=$qa_commit" \
--metadata-file "$qa_metadata/$role.json" \
--tag "$qa_prefix/$role:source" .
qa_digest="$(node -p 'JSON.parse(require("node:fs").readFileSync(process.argv[1]))["containerimage.digest"]' "$qa_metadata/$role.json")"
[[ "$qa_digest" =~ ^sha256:[a-f0-9]{64}$ ]]
qa_ref="$qa_prefix/$role@$qa_digest"
[[ "$(docker image inspect --format '{{.Os}}/{{.Architecture}}' "$qa_ref")" == "$qa_platform" ]]
[[ "$(docker image inspect --format '{{ index .Config.Labels "org.opencontainers.image.revision" }}' "$qa_ref")" == "$qa_commit" ]]
if [[ "$role" == controller ]]; then
CONTROLLER_IMAGE="$qa_ref"
else
RUNTIME_IMAGE="$qa_ref"
fi
done
qa_status="$(git status --porcelain --untracked-files=all)"
qa_final_commit="$(git rev-parse HEAD)"
[[ "$qa_final_commit" == "$qa_commit" && -z "$qa_status" ]]
printf 'Build metadata: %s\n' "$qa_metadata"Failed digest resolution or inspection stops the procedure. Do not substitute tags
or invent digests. These images omit publication attestations; source labels prove
consistency, not provenance. Retain metadata through qualification.
Keep CONTROLLER_IMAGE and RUNTIME_IMAGE unchanged. In the
image checks, skip both pulls and run the
command starting with OCC_TEST_PRODUCTION_IMAGE=. After all required cases pass
without skips, select the pair:
export OCC_TEST_QA_CONTROLLER_IMAGE="$CONTROLLER_IMAGE"
export OCC_TEST_QA_RUNTIME_IMAGE="$RUNTIME_IMAGE"Reuse the builder's intermediate cache with consistent
platform and build arguments. Loading final images does not restore intermediate
cache. For portability, use Docker's cache export/import options;
mode=max includes intermediate stages. Hosted CI cache is separate. These commands
do not export cache, change networking, or select a global builder.
After preparing those inputs, run from the repository root:
pnpm cli:build
OCC_TEST_QA_MATRIX=1 node --env-file="$TEST_ENV_FILE" \
--test tests/integration/qa-matrix-real.test.mjsTEST_ENV_FILE names that private file.
Check that the selected tests and cleanup passed for the tested commit. The
selection summary records the run, attempt, and SHA. For focused PR runs, compare
the result's sourceSha with the recorded merge SHA and its base and head commits.
For focused Keycloak, require both manifest cases and their cleanup to pass.
For OpenClaw, inspect matrix.json: one kubernetes/OpenClaw cell with only
model-ui, successful real model/browser stages, and Agent/installation cleanup.
Its partial:selected scope is intentional; missing stages or artifacts leave
verification incomplete. Preserve the job link and attempt-specific results.
| Results | Where to look |
|---|---|
QA matrix stages (passed, failed, or blocked) |
matrix.json in qa-advisory-<installation>-<run-id>-<attempt> |
| OpenShell tests | qa-advisory-<test-file-basename>-openshell (omit .test.mjs or .test.ts) |
| Native Agent browser | qa-advisory-oidc-agent-chat-gateway-routing; browser media and review procedure |
| Local installation tests | qa-advisory-local-installation-<test-file-basename>-dev-up-k3d |
Startup failures report elapsed time, the 1,100,000 ms limit, and the observed
exit code or signal. timed out identifies deadline expiry. A later SIGPIPE
can follow teardown closing output pipes. Failure detail is redacted and
command arguments and protected output stay private.
The startup timings message names a JSON file with up to 64 recognized CLI
timings and the number of older records omitted. Each timing gives the stage,
elapsed milliseconds, and failure status of a finished command. Durations can
overlap. Protected output, unrecognized records, and other stdout stay private.
Artifacts expire after seven days. Each OpenShell job reports scope: focused
because it runs one file; complete advisory OpenShell coverage requires every
manifest file to pass.
In matrix.json, scope: full means both installations and presets with the
all scenarios; advisory QA has narrower coverage. See
Select scenarios for the exclusions from all.
First-Agent timing results include overlapping stages; do not sum them as elapsed time. A Codex timeout alone does not permit a retry: the client must report model capacity exhaustion before any action started.
Cleanup stops the Agents and installations created by the run. If credential disposal is uncertain, cleanup keeps the installation and reports the required recovery.
Keep its broker until sessions are DISPOSED without active uses or pending,
uncertain or auxiliary cleanup. Preserve other runs' resources. For Git TLS
errors, compare broker DNS with approved endpoints/NetworkPolicy,
refresh approved inputs,
complete disposal, then recreate only this run's installation.
- Advisory workflow: eligibility, parallel OpenShell runners, and artifact names.
- QA manifest and OpenShell manifest: exact files and requirements.
- QA matrix test: Agent scenarios.
- Scenario selection: presets, selectors, and required inputs.
- Hosted credentials: environment preparation.