Fault Injection & Debugging
Running air-gapped offline firmware CI with --network none
Pin your ct binary, board files and local twin catalog inside an air-gapped runner with zero cloud dependency.
Defense, automotive, medical and railway CI environments prohibit outbound internet calls from build runners. Cloud-only HIL farms cannot pass security review in those networks.
CircuitTwin runs as a single self-contained native binary against local filesystem catalogs (CT_CATALOG_DIR), passing cleanly inside docker run --network none.
Offline CI configuration variables
| Setting | Purpose | Value |
|---|---|---|
CT_CATALOG_DIR | Local filesystem twin catalog directory | /opt/ct-catalog |
--network none | Docker / CLI hard network isolation | Zero DNS or HTTPS egress |
--recheck | Determinism check inside isolated runner | Bit-identical double-run |
Local CLI workflow
Shell - run inside air-gapped Docker container
docker run --rm --network none \
-v "$PWD":/work -v /opt/ct-catalog:/catalog:ro \
-e CT_CATALOG_DIR=/catalog \
my-org/ct-offline-runner:latest \
ct test run --json --junit /work/results/offline.xml /work/tests/suite.yamlSuite & fault configuration
tests/suite.yaml
version: 1
board: nucleo-f767zi
firmware: build/app.elf
tests:
- name: offline-deterministic-smoke
timeout_ms: 2500
expect:
console_contains: "OFFLINE_PASS"
exit_code: 0CI pipeline integration
.gitlab-ci.yml - air-gapped self-hosted runner
offline-firmware-test:
tags: [air-gapped]
variables:
CT_CATALOG_DIR: /opt/ct-catalog
script:
- ct test run --json --recheck --junit results/junit.xml tests/suite.yamlTroubleshooting checklist
| Symptom | Fix |
|---|---|
| Offline run fails with missing twin bundle | Pre-populate CT_CATALOG_DIR on a staging box using ct twin generate or ct catalog pull, then rsync the directory into the enclave. |
Frequently asked questions
| Question | Answer |
|---|---|
| Does ct test run phone home when running against a local catalog? | No. When all required board and component twins exist in CT_CATALOG_DIR, ct executes completely locally and passes inside --network none containers. |