This repository was archived by the owner on Sep 15, 2026. It is now read-only.
Repository navigation
Expand file tree
/
Copy pathTaskfile.yml
More file actions
101 lines (84 loc) · 2.91 KB
/
Copy pathTaskfile.yml
File metadata and controls
101 lines (84 loc) · 2.91 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
version: '3'
vars:
BUF_VERSION: v1.57.2
tasks:
test:
cmds:
- task: console:check
- go test ./...
- task: proto:check
- task: terraform:check
stability:fast:
desc: Run the deterministic, unprivileged recovery fault matrix
cmds:
- go run ./cmd/autback-stability --mode fast --artifacts .tmp/stability/fast {{.CLI_ARGS}}
stability:full:
desc: Run the complete recovery matrix, including real Docker/Swarm cleanup
cmds:
- go run ./cmd/autback-stability --mode full --artifacts .tmp/stability/full {{.CLI_ARGS}}
generate:
desc: Regenerate typed console contracts and embedded browser assets
cmds:
- go generate ./internal/console
- bun install --frozen-lockfile
- bun run build:console
console:check:
desc: Generate, typecheck, test, and build the read-only governance console
cmds:
- bun install --frozen-lockfile
- go generate ./internal/console
- bun run test:console
- bun run typecheck:console
- bun run build:console
proto:check:
desc: Lint protobufs, reject v1 breakage, and verify committed generated clients
cmds:
- go run github.com/bufbuild/buf/cmd/buf@{{.BUF_VERSION}} lint
- go run github.com/bufbuild/buf/cmd/buf@{{.BUF_VERSION}} breaking --against api/compat/control-v1.binpb
- go run github.com/bufbuild/buf/cmd/buf@{{.BUF_VERSION}} generate
- git diff --exit-code -- internal/gen
terraform:check:
desc: Initialize providers without a backend and validate the Terraform module
cmds:
- terraform -chdir=infra fmt -check -recursive
- |
set -eu
validation_dir="$(mktemp -d)"
trap 'rm -rf "${validation_dir}"' EXIT
TF_DATA_DIR="${validation_dir}" terraform -chdir=infra init -backend=false -input=false
TF_DATA_DIR="${validation_dir}" terraform -chdir=infra validate
fmt:
cmds:
- gofmt -w cmd internal examples
- terraform -chdir=infra fmt -recursive
provision:
cmds:
- ./scripts/provision.zsh
deploy:
desc: Deploy the shared service to an explicitly supplied existing host; never provisions
cmds:
- ./scripts/deploy-swarm.zsh
deploy:service:
desc: Alias for the canonical deployment
cmds:
- task: deploy
e2e:
desc: Run the complete shared-service proof locally
cmds:
- ./scripts/e2e-service-local.zsh
e2e:service:local:
desc: Alias for the canonical local proof
cmds:
- task: e2e
e2e:service:
desc: Run the shared-service proof against an explicitly supplied existing host
cmds:
- ./scripts/e2e-service.zsh
benchmark:
desc: Prime and measure a real project command through autback
cmds:
- ./scripts/benchmark.zsh {{.CLI_ARGS}}
benchmark:compare:
desc: Run a controlled multi-candidate command benchmark from a JSON specification
cmds:
- go run ./cmd/autback-benchmark {{.CLI_ARGS}}