~ knotless Search/
↑↓ move↵ open⇧↵ all results

socialweb.computer/socialweb-computer-kcp

socialweb.computer: a compute market on atproto (kcp)

1 collaborator
0
0
111 lines · 3.7 KB Raw History
{
	"name": "staging",
	"description": "The staging stand-up (tests/compositions/staging): one nested-virt VM running dev up --profile market-network, or (layout multi) small VMs (atproto, `bidders` bidder VMs, gateway) joined by one network value.",
	"actions": [
		{
			"entry": "run",
			"label": "Stand up staging",
			"description": "Rent, install, dev up, dev status, dev down; the result says pass, the phase and the readings."
		}
	],
	"config": [
		{
			"key": "name",
			"label": "name",
			"type": "string",
			"description": "the run; the VM's invocation is <name>-vm"
		},
		{
			"key": "layout",
			"label": "layout",
			"type": "string",
			"description": "single (default): one nested-virt VM; multi: atproto 4/8, bidder-1 to bidder-<bidders> 4/8 nested, gateway 4/8 on one meshd overlay, joined by the atproto VM's network value"
		},
		{
			"key": "provision",
			"label": "provision",
			"type": "string",
			"description": "layout multi: request (default; one held run request per VM) or infra (one EphemeralInfra stg-<run> of the run requester stg, its contracts stg-atproto, stg-bidder-1 to stg-bidder-<bidders>, stg-gateway; deleting it releases them)"
		},
		{
			"key": "cpus",
			"label": "cpus",
			"type": "integer",
			"description": "the VM's vCPUs (default 4)"
		},
		{
			"key": "mem",
			"label": "mem",
			"type": "string",
			"description": "the VM's memory (default 8G)"
		},
		{
			"key": "suite",
			"label": "suite",
			"type": "boolean",
			"description": "true: the gate (tests/gate.sh, every entry of tests/entries.txt) runs inside the network as its bob and alice; false: the stand-up only"
		},
		{
			"key": "compat",
			"label": "compat",
			"type": "string",
			"description": "0006:compat's requester: sha:<the previous rc's commit>"
		},
		{
			"key": "gateVms",
			"label": "gate VMs",
			"type": "integer",
			"description": "the VMs the gate's entries hold at once on the network's bidders (gate.sh GATE_VMS; layout multi: default `bidders`, one guest slot per bidder VM)"
		},
		{
			"key": "shard",
			"label": "shard",
			"type": "string",
			"description": "i/n: the gate runs share i of the n its entries are dealt into (gate.sh GATE_SHARD), one of n networks side by side (by hand: scripts/ci-test.sh CI_SHARD); unset: every entry (CI)"
		},
		{
			"key": "freezeTtl",
			"label": "freeze",
			"type": "integer",
			"description": "seconds a failed entry stays frozen inside the network (gate.sh GATE_FREEZE_TTL, default 300)"
		},
		{
			"key": "deadlineMin",
			"label": "deadline",
			"type": "integer",
			"description": "minutes for the whole run (default 180)"
		},
		{
			"key": "bidders",
			"label": "bidders",
			"type": "integer",
			"description": "layout single: dev up's bidders on the VM (default 1); layout multi: the bidder VMs bidder-1 to bidder-<n>, handles bob2 to bob<n+1>, each 4 vCPU / 8G nested virt (default 4; 2 for a constrained run)"
		},
		{
			"key": "fault",
			"label": "fault",
			"type": "string",
			"description": "status: that step fails (dev status of an instance the VM does not have), the proof of a failed run's logs/"
		},
		{
			"key": "requester",
			"label": "requester",
			"type": "string",
			"description": "the binary installed on the VM: release:<tag>, sha:<commit> or oci:<ref>@sha256:<digest> (the target's requester)"
		}
	],
	"calls": [
		"computer.socialweb.test.request.start",
		"computer.socialweb.test.request.ssh",
		"computer.socialweb.test.request.put",
		"computer.socialweb.test.requester.start",
		"computer.socialweb.test.staging.pki",
		"computer.socialweb.test.requester.ssh",
		"computer.socialweb.test.logs.fetchRuns",
		"com.fedfork.exec.kube.get",
		"com.fedfork.exec.kube.apply",
		"com.fedfork.exec.kube.delete",
		"com.atproto.repo.getRecord"
	],
	"hooks": []
}