-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
111 lines (79 loc) · 2.82 KB
/
Makefile
File metadata and controls
111 lines (79 loc) · 2.82 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
102
103
104
105
106
107
108
109
110
111
SHELL := /bin/bash
GO ?= go
PKGS := ./...
GOFILES := $(shell git ls-files '*.go')
DOCS_SITE_NPM_CACHE ?= $(CURDIR)/.tmp/npm-cache
.PHONY: fmt lint lint-fast test test-fast test-integration test-e2e test-contracts test-scenarios \
test-hardening test-chaos test-perf test-agent-benchmarks test-risk-lane build hooks prepush prepush-full codeql lint-ci \
test-docs-consistency test-docs-storyline test-adapter-parity test-v1-acceptance test-uat-local test-release-smoke \
docs-site-install docs-site-lint docs-site-build docs-site-check docs-site-audit-prod
fmt:
@if [[ -n "$(GOFILES)" ]]; then \
gofmt -w $(GOFILES); \
fi
lint-fast:
@scripts/check_toolchain_pins.sh
@scripts/check_no_latest.sh
@scripts/check_repo_hygiene.sh
@scripts/check_branch_protection_contract.sh
@$(GO) vet $(PKGS)
lint: lint-fast
test-fast:
@$(GO) test ./... -count=1
test: test-fast
test-integration:
@$(GO) test ./... -run Integration -count=1
test-e2e:
@$(GO) test ./... -run E2E -count=1
test-contracts:
@$(GO) test ./testinfra/... -count=1
test-scenarios:
@scripts/validate_scenarios.sh
@$(GO) test ./internal/scenarios -count=1 -tags=scenario
test-hardening:
@scripts/test_hardening_all.sh
test-chaos:
@scripts/test_chaos_all.sh
test-perf:
@scripts/test_perf_budgets.sh
test-agent-benchmarks:
@scripts/run_agent_benchmarks.sh --output .tmp/agent-benchmarks.json
test-risk-lane: test-contracts test-scenarios test-hardening test-chaos test-perf test-agent-benchmarks
test-docs-consistency:
@scripts/check_docs_cli_parity.sh
@scripts/check_docs_storyline.sh
@scripts/check_docs_consistency.sh
test-docs-storyline:
@scripts/run_docs_smoke.sh --subset
docs-site-install:
@mkdir -p "$(DOCS_SITE_NPM_CACHE)"
@cd docs-site && NPM_CONFIG_CACHE="$(DOCS_SITE_NPM_CACHE)" npm ci
docs-site-lint:
@mkdir -p "$(DOCS_SITE_NPM_CACHE)"
@cd docs-site && NPM_CONFIG_CACHE="$(DOCS_SITE_NPM_CACHE)" npm run lint
docs-site-build:
@mkdir -p "$(DOCS_SITE_NPM_CACHE)"
@cd docs-site && NPM_CONFIG_CACHE="$(DOCS_SITE_NPM_CACHE)" npm run build
docs-site-check:
@cd docs-site && NPM_CONFIG_CACHE="$(DOCS_SITE_NPM_CACHE)" npm run test:smoke
@python3 scripts/check_docs_site_validation.py --report wrkr-out/docs_site_validation_report.json
docs-site-audit-prod:
@mkdir -p "$(DOCS_SITE_NPM_CACHE)"
@cd docs-site && NPM_CONFIG_CACHE="$(DOCS_SITE_NPM_CACHE)" npm audit --omit=dev --audit-level=high
test-adapter-parity:
@scripts/test_adapter_parity.sh
build:
@mkdir -p .tmp
@$(GO) build -o .tmp/wrkr ./cmd/wrkr
hooks:
@pre-commit install
prepush: fmt lint-fast test-fast test-contracts build
test-v1-acceptance:
@scripts/run_v1_acceptance.sh
test-uat-local:
@scripts/test_uat_local.sh
test-release-smoke:
@scripts/test_uat_local.sh --skip-global-gates
prepush-full: prepush lint test test-integration test-e2e test-scenarios codeql
codeql:
@scripts/run_codeql.sh