Repository navigation
Expand file tree
/
Copy pathMakefile
More file actions
683 lines (544 loc) · 40.1 KB
/
Copy pathMakefile
File metadata and controls
683 lines (544 loc) · 40.1 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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
.PHONY: build build-core prod-dry-run prod-dry-run-agent-server restore-core test test-prod-style test-framework-prod-first test-prime-time test-prime-time-full test-cross-platform test-portable test-multi-env test-all-platforms test-all-platforms-ephemeral ci-verify meai-pipeline-gate kernel-gate kernel-gate-tier-b kernel-gate-tier-c kernel-gate-tier-d kernel-gate-tier-e kernel-gate-full application-gate application-gate-tier-a application-gate-tier-b application-gate-tier-c application-gate-tier-d application-gate-full composition-mesh-gate composition-mesh-gate-tier-a composition-mesh-gate-tier-b composition-mesh-gate-tier-c composition-mesh-gate-tier-d composition-mesh-gate-full dependency-boundary-gate ship-gate ship-gate-tier-a ship-gate-tier-b ship-gate-tier-c ship-gate-tier-d ship-gate-full ops-gate ops-gate-tier-a ops-gate-tier-b ops-gate-tier-c ops-gate-tier-d ops-gate-tier-e ops-gate-full security-gate security-gate-tier-a security-gate-tier-b security-gate-tier-c security-gate-tier-d security-gate-tier-e security-gate-full rc-gate rc-gate-tier-a rc-gate-tier-b rc-gate-tier-c rc-gate-tier-d rc-gate-tier-e rc-gate-full perf-gate perf-gate-tier-a perf-gate-tier-b perf-gate-tier-c perf-gate-tier-d perf-gate-full compat-gate compat-gate-tier-a compat-gate-tier-b compat-gate-tier-c compat-gate-full dr-gate dr-gate-tier-a dr-gate-tier-b dr-gate-tier-c dr-gate-full waterproofing-gate-full ashlar-ready-gate bootstrap-mesh-lab-env validate-safe review-summary clean-test-artifacts test-readiness-gate release-preflight release-gate release-dispatch release-staging verify-staging release-staging-and-verify verify-external-product-shape mesh-lab-e2e mesh-lab-e2e-workers mesh-lab-e2e-deep mesh-lab-e2e-stress mesh-lab-up mesh-lab-verify mesh-lab-verify-deep mesh-lab-verify-entitlements mesh-lab-verify-governance mesh-lab-verify-director-cli mesh-lab-verify-persistence mesh-lab-verify-network-negative mesh-lab-verify-post-stress mesh-lab-stress mesh-lab-down test-mesh-lab
# External product shape: packed Ashlar.* feed → authored brick + thin host + HTTP client (no repo refs).
verify-external-product-shape:
bash scripts/verify-external-product-shape.sh
# Local checks before tagging a release (graph alignment + NuGet sample). Usage: make release-preflight VERSION=1.2.3
release-preflight:
@test -n "$(VERSION)" || (echo "Set VERSION=1.2.3 (semver, no v prefix)"; exit 1)
bash scripts/release-preflight-local.sh "$(VERSION)"
# Trigger Runtime Release Gate in CI (requires: gh auth login)
release-gate:
gh workflow run "Runtime Release Gate" --ref $${ASHLAR_RELEASE_PREFLIGHT_REF:-master}
# Trigger full Release workflow (GHCR + NuGet). Requires: gh auth login. Usage: make release-dispatch VERSION=1.2.3 REF=master
release-dispatch:
@test -n "$(VERSION)" || (echo "Set VERSION=1.2.3"; exit 1)
gh workflow run Release --ref $${REF:-master} -f version="$(VERSION)" -f skip_multi_arch=false
# Staging-only release dispatch (guarded; refuses when NUGET_PUBLISH_MODE enables nuget.org).
release-staging:
@test -n "$(VERSION)" || (echo "Set VERSION=x.y.z"; exit 1)
DRY_RUN=$(DRY_RUN) ASHLAR_RELEASE_STAGING_REF=$${REF:-} bash scripts/release-staging.sh "$(VERSION)"
verify-staging:
@test -n "$(VERSION)" || (echo "Set VERSION=x.y.z"; exit 1)
bash scripts/verify-staging.sh "$(VERSION)"
release-staging-and-verify:
@test -n "$(VERSION)" || (echo "Set VERSION=x.y.z"; exit 1)
$(MAKE) release-staging VERSION="$(VERSION)" DRY_RUN="$(DRY_RUN)"
@if [ "$(DRY_RUN)" != "1" ]; then $(MAKE) verify-staging VERSION="$(VERSION)"; fi
# All automated test projects in Ashlar.PrimeTime.slnf (seven Ashlar.Tests.* assemblies).
PRIME_TIME_SLNF := Ashlar.PrimeTime.slnf
# Build the solution (root holds several .sln/.slnf; a bare `dotnet build` fails with MSB1011)
build:
dotnet build Ashlar.sln
# Restore/build a small slice (CLI + domain tests + infra tests) — avoids full Ashlar.sln workload requirements
restore-core:
dotnet restore Ashlar.LocalDevCore.slnf
build-core:
dotnet build Ashlar.LocalDevCore.slnf -v minimal
# Production-shaped Compose dry run (portal or agent-server) — see docs/prod-dry-run.md
prod-dry-run:
bash scripts/prod-dry-run.sh --portal
prod-dry-run-agent-server:
bash scripts/prod-dry-run.sh --agent-server
# Production-like integration (Category=ProdStyle): Ashlar.Tests.Infrastructure only — real DI hosts / graphs.
# Run this before the full suite when validating framework behaviour locally or in CI-style gates.
#
# Every --blame-hang-timeout in this file is checked by LaneBlameWindowConventionTests, which reads
# the real [Fact(Timeout = ...)] values out of the assembly and each lane's own --filter, and
# requires the window to be at least 1.5x the widest deadline the lane can select. Do not shrink one
# to make a local loop feel snappier: below that relation a stall stops being a named failing test
# and becomes a killed host with the whole run's results discarded. This filter is byte-for-byte the
# one `ashlar ci verify` runs, and it sat at 120s over 480s nets until that check existed.
test-prod-style:
dotnet build src/Ashlar.Tests.Infrastructure/Ashlar.Tests.Infrastructure.csproj -v minimal
rm -f test-results/test-prod-style/test-prod-style.trx
ASHLAR_ALLOW_MOCK=1 dotnet test src/Ashlar.Tests.Infrastructure/Ashlar.Tests.Infrastructure.csproj -f net8.0 --no-build \
--filter "Category=ProdStyle&FullyQualifiedName!~ForgeEndpointsTests&FullyQualifiedName!~FrameworkVirtualProdDemosTests" \
--logger "trx;LogFileName=test-prod-style.trx" --results-directory test-results/test-prod-style \
--blame-hang-timeout 720s --blame-hang-dump-type none
bash scripts/ci/zero-test-guard.sh test-results/test-prod-style/test-prod-style.trx
# Runs test-prod-style then the full LocalDevCore test slice (Domain + Infrastructure + CLI harness).
# ProdStyle runs once in test-prod-style; the second pass excludes Category=ProdStyle.
test-framework-prod-first: test-prod-style
dotnet test Ashlar.LocalDevCore.slnf --no-build \
--filter "Category!=ProdStyle" \
--blame-hang-timeout 900s --blame-hang-dump-type none
# Prime-time gate: Category=ProdStyle across Ashlar.PrimeTime.slnf (all test assemblies).
test-prime-time:
dotnet build $(PRIME_TIME_SLNF) -v minimal
dotnet test $(PRIME_TIME_SLNF) --no-build \
--filter "Category=ProdStyle" \
--blame-hang-timeout 720s --blame-hang-dump-type none
# Full PrimeTime matrix after ProdStyle gate (ProdStyle excluded on this pass).
test-prime-time-full: test-prime-time
dotnet test $(PRIME_TIME_SLNF) --no-build \
--filter "Category!=ProdStyle" \
--blame-hang-timeout 900s --blame-hang-dump-type none
# Run tests locally (blame-hang-timeout prevents indefinite freeze from hung tests)
# --blame-hang-dump-type none avoids 6GB+ hang dumps that accumulate in TestResults/
# ASHLAR_ALLOW_MOCK=1 matches CI so ProviderFactory / mock-provider tests pass on net10.0.
# 900s, not the 120s this carried, because an unfiltered solution run includes
# RuntimeStudioBlackBoxPlaygroundTests and its three [Fact(Timeout = 600_000)] — see test-prod-style.
test:
ASHLAR_ALLOW_MOCK=1 dotnet test Ashlar.sln --blame-hang-timeout 900s --blame-hang-dump-type none
# Run tests on all target platforms: local + Docker (ubuntu, alpine, debian).
# For native macOS/Windows/Linux use: make test-cross-platform (triggers CI).
test-all-platforms:
@echo "=== Local (current OS) ==="
dotnet build Ashlar.sln -v minimal
dotnet test Ashlar.sln --no-build --verbosity minimal --blame-hang-timeout 900s --blame-hang-dump-type none
@echo "=== Docker: Ubuntu 8.0 ==="
docker build -f .docker/Dockerfile.test-caching --build-arg DOTNET_VERSION=8.0 -t ashlar-test-ubuntu:8.0 .
mkdir -p test-results
docker run --rm -v "$$(pwd)/test-results:/workspace/test-results" ashlar-test-ubuntu:8.0 \
bash -c "dotnet test src/Ashlar.Tests.Infrastructure/Ashlar.Tests.Infrastructure.csproj --blame-hang-timeout 60s --filter 'FullyQualifiedName~BaseFrameworkSmokeTests' --logger 'console;verbosity=minimal' --logger 'trx;LogFileName=ubuntu-8.0-base.trx' --results-directory /workspace/test-results"
@echo "=== Docker: Alpine 8.0 ==="
docker build -f .docker/Dockerfile.test-caching-alpine --build-arg DOTNET_VERSION=8.0 -t ashlar-test-alpine:8.0 .
docker run --rm -v "$$(pwd)/test-results:/workspace/test-results" ashlar-test-alpine:8.0 \
bash -c "dotnet test src/Ashlar.Tests.Infrastructure/Ashlar.Tests.Infrastructure.csproj --blame-hang-timeout 60s --filter 'FullyQualifiedName~BaseFrameworkSmokeTests' --logger 'console;verbosity=minimal' --logger 'trx;LogFileName=alpine-8.0-base.trx' --results-directory /workspace/test-results"
@echo "=== Docker: Debian 8.0 ==="
docker build -f .docker/Dockerfile.test-caching-debian --build-arg DOTNET_VERSION=8.0 -t ashlar-test-debian:8.0 .
docker run --rm -v "$$(pwd)/test-results:/workspace/test-results" ashlar-test-debian:8.0 \
bash -c "dotnet test src/Ashlar.Tests.Infrastructure/Ashlar.Tests.Infrastructure.csproj --blame-hang-timeout 60s --filter 'FullyQualifiedName~BaseFrameworkSmokeTests' --logger 'console;verbosity=minimal' --logger 'trx;LogFileName=debian-8.0-base.trx' --results-directory /workspace/test-results"
@echo "=== All target platforms (local + ubuntu + alpine + debian) completed ==="
# Ephemeral: run tests in containers with no volume mounts; results discarded when container is removed
test-all-platforms-ephemeral:
@echo "=== Ephemeral multi-platform tests (no host artifacts) ==="
dotnet build Ashlar.sln -v minimal
dotnet run --project application/src/Ashlar.CLI -- test --platforms ubuntu alpine debian --ephemeral
# Run tests on all platforms (C#-driven; works on Windows, macOS, Linux, mobile)
test-all:
dotnet run --project application/src/Ashlar.CLI -- test --platforms ubuntu alpine debian android ios windows
# Run tests on specific platform
test-platform:
dotnet run --project application/src/Ashlar.CLI -- test --platforms $(PLATFORM)
# Trigger cross-platform tests in CI (Mac, Windows, Linux from one place)
# Requires: gh auth login. Workflows are manual-first — see .github/workflows/README.md
# Usage: make test-cross-platform [SCOPE=smoke|persistence|full]
test-cross-platform:
gh workflow run "Cross-Platform Tests" --ref master -f scope=$${SCOPE:-smoke}
# Trigger full platform readiness gate: setup + discovery + dry-run on all target platforms.
# Runs on Linux, macOS, Windows (native) + Ubuntu, Alpine, Debian (container) + Docker CLI image.
# Requires: gh auth login. Manual-first — see .github/workflows/README.md
test-readiness-gate:
gh workflow run "Full Platform Readiness Gate" --ref master
# Portable tests: C#-driven (replaces scripts/portable-test.sh). Works on Windows, macOS, Linux, mobile.
# Usage: make test-portable [SCOPE=persistence|smoke|all]. Use --list to see targets: dotnet run --project application/src/Ashlar.CLI -- test portable --list
test-portable:
dotnet run --project application/src/Ashlar.CLI -- test portable --scope $${SCOPE:-persistence}
# Multi-env framework/caching/persistence tests (C#-driven; replaces test-framework-multi-env.sh etc.)
test-multi-env:
dotnet run --project application/src/Ashlar.CLI -- test multi-env --suite framework --all
# Air-gapped multi-env: run containers with --network none (no egress). Validates air-gapped deployment.
test-multi-env-no-network:
dotnet run --project application/src/Ashlar.CLI -- test multi-env --suite framework --all --no-network
# Air-gapped CI validation: framework + adaptation suites with zero network egress (ubuntu-8.0).
test-airgapped:
dotnet run --project application/src/Ashlar.CLI -- test multi-env --suite framework --env ubuntu-8.0 --no-network
dotnet run --project application/src/Ashlar.CLI -- test multi-env --suite adaptation --env ubuntu-8.0 --no-network
# Linear adaptation tests across all Docker environments
test-adaptation-all-envs:
dotnet run --project application/src/Ashlar.CLI -- test multi-env --suite adaptation --all
# CI verification: build + checks (C#-driven; replaces scripts/ci-verify.sh)
ci-verify:
dotnet run --project application/src/Ashlar.CLI -- ci verify
# Pre-application kernel gate: runtime graph build + hosting resolution matrix + pipeline tests.
# Optional: KERNEL_GATE_MESH=1 (Docker mesh-lab-verify), KERNEL_GATE_PRODSTYLE=1 (full ProdStyle slice).
# Coverlet floors as enforced by scripts/ci/kernel-coverage-gate.sh: Domain 100%, Infrastructure 80%, Core.Application 67% (see docs/production-readiness/CoverageGates-v1.md).
kernel-coverage-gate:
bash scripts/ci/kernel-coverage-gate.sh
# PR policy: gap freeze, ProdStyle wiring (see docs/architecture/TestingStrategyPivot-v1.md).
testing-strategy-gate:
bash scripts/ci/pr-testing-strategy-gate.sh origin/master
dependency-boundary-gate:
bash scripts/dependency-boundary-gate.sh
# MEAI governed pipeline + VectorData RAG architecture tests (net8).
meai-pipeline-gate:
dotnet test src/Ashlar.Tests.AI.Pipeline/Ashlar.Tests.AI.Pipeline.csproj -f net8.0 -c Release --nologo \
--blame-hang-timeout 120s --blame-hang-dump-type none
kernel-gate:
dotnet build Ashlar.Runtime.sln -v minimal
dotnet build src/Ashlar.Tests.Infrastructure/Ashlar.Tests.Infrastructure.csproj -v minimal
rm -f test-results/kernel-gate/kernel-gate-hosting.trx test-results/kernel-gate/kernel-gate-pipeline.trx
ASHLAR_ALLOW_MOCK=1 dotnet test src/Ashlar.Tests.Infrastructure/Ashlar.Tests.Infrastructure.csproj -f net8.0 --no-build \
--filter "FullyQualifiedName~KernelPhaseResolutionTests|FullyQualifiedName~HostingDeploymentProfileTests|FullyQualifiedName~HostingE2ESmokeTests" \
--logger "trx;LogFileName=kernel-gate-hosting.trx" --results-directory test-results/kernel-gate \
--blame-hang-timeout 180s --blame-hang-dump-type none
bash scripts/ci/zero-test-guard.sh test-results/kernel-gate/kernel-gate-hosting.trx
ASHLAR_ALLOW_MOCK=1 dotnet test src/Ashlar.Tests.Infrastructure/Ashlar.Tests.Infrastructure.csproj -f net8.0 --no-build \
--filter "FullyQualifiedName~PipelineTemplateValidatorTests|FullyQualifiedName~PipelineLifecycleE2ETests" \
--logger "trx;LogFileName=kernel-gate-pipeline.trx" --results-directory test-results/kernel-gate \
--blame-hang-timeout 180s --blame-hang-dump-type none
bash scripts/ci/zero-test-guard.sh test-results/kernel-gate/kernel-gate-pipeline.trx
$(MAKE) meai-pipeline-gate
@if [ "$${KERNEL_GATE_PRODSTYLE:-0}" = "1" ]; then $(MAKE) test-prod-style; fi
@if [ "$${KERNEL_GATE_MESH:-0}" = "1" ]; then $(MAKE) mesh-lab-verify; fi
# Tier B: CLI pipeline ops + cross-process LiteDB resume (see scripts/kernel-gate-tier-b.sh).
kernel-gate-tier-b:
bash scripts/kernel-gate-tier-b.sh
# Tier C: ProdStyle + workflow + transport + air-gapped profile (+ mesh if .env.mesh-lab).
kernel-gate-tier-c:
bash scripts/kernel-gate-tier-c.sh
bootstrap-mesh-lab-env:
bash scripts/bootstrap-mesh-lab-env.sh
# Tier D: NuGet pack alignment + StableSdkHostSample consumer (local feed).
kernel-gate-tier-d:
bash scripts/kernel-gate-tier-d.sh
# Tier E: observability + perf-scoped tests + prod Compose dry run (Docker).
kernel-gate-tier-e:
bash scripts/kernel-gate-tier-e.sh
# Tier A–E (skip tiers with KERNEL_GATE_SKIP_TIER_*=1).
kernel-gate-full: kernel-gate kernel-gate-tier-b
@if [ "$${KERNEL_GATE_SKIP_TIER_C:-0}" != "1" ]; then $(MAKE) kernel-gate-tier-c; fi
@if [ "$${KERNEL_GATE_SKIP_TIER_D:-0}" != "1" ]; then $(MAKE) kernel-gate-tier-d; fi
@if [ "$${KERNEL_GATE_SKIP_TIER_E:-0}" != "1" ]; then $(MAKE) kernel-gate-tier-e; fi
# Application gate (after kernel): product solution, CLI, API HTTP, agent-server dry run.
# Prerequisite: make kernel-gate-full (or APPLICATION_GATE_REQUIRE_KERNEL=1 on application-gate-full).
application-gate-tier-a:
bash scripts/application-gate-tier-a.sh
application-gate-tier-b:
bash scripts/application-gate-tier-b.sh
application-gate-tier-c:
bash scripts/application-gate-tier-c.sh
application-gate-tier-d:
bash scripts/application-gate-tier-d.sh
application-gate: application-gate-tier-a
application-gate-full:
@if [ "$${APPLICATION_GATE_REQUIRE_KERNEL:-0}" = "1" ]; then $(MAKE) kernel-gate-full; fi
APPLICATION_GATE_SKIP_KERNEL=1 $(MAKE) application-gate-tier-a
$(MAKE) application-gate-tier-b
$(MAKE) application-gate-tier-c
@if [ "$${APPLICATION_GATE_SKIP_TIER_D:-0}" != "1" ]; then $(MAKE) application-gate-tier-d; fi
# Composition + mesh gate: pipeline templates/orchestration + clustered mesh tasks.
# Prerequisite: make application-gate-full (or kernel-gate-full minimum).
composition-mesh-gate-tier-a:
bash scripts/composition-mesh-gate-tier-a.sh
composition-mesh-gate-tier-b:
bash scripts/composition-mesh-gate-tier-b.sh
composition-mesh-gate-tier-c:
bash scripts/composition-mesh-gate-tier-c.sh
composition-mesh-gate-tier-d:
bash scripts/composition-mesh-gate-tier-d.sh
composition-mesh-gate: composition-mesh-gate-tier-a composition-mesh-gate-tier-b composition-mesh-gate-tier-c
composition-mesh-gate-full: composition-mesh-gate
@if [ "$${COMPOSITION_MESH_GATE_STRESS:-0}" = "1" ]; then \
MESH_LAB_E2E_WORKERS=1 MESH_LAB_VERIFY_DEEP=1 MESH_LAB_RUN_STRESS=1 bash scripts/run-mesh-lab-e2e.sh; \
elif [ "$${COMPOSITION_MESH_GATE_SKIP_TIER_D:-0}" != "1" ]; then \
$(MAKE) composition-mesh-gate-tier-d; \
fi
# Ship gate: production readiness CLI + ci verify + release preflight + release bundle.
ship-gate-tier-a:
bash scripts/ship-gate-tier-a.sh
ship-gate-tier-b:
bash scripts/ship-gate-tier-b.sh
ship-gate-tier-c:
bash scripts/ship-gate-tier-c.sh
ship-gate-tier-d:
bash scripts/ship-gate-tier-d.sh
ship-gate: ship-gate-tier-a
ship-gate-full:
@if [ "$${SHIP_GATE_SKIP_PRIOR:-0}" != "1" ]; then \
COMPOSITION_MESH_GATE_SKIP_TIER_D=1 $(MAKE) composition-mesh-gate; \
fi
$(MAKE) ship-gate-tier-a
@if [ "$${SHIP_GATE_SKIP_TIER_B:-0}" != "1" ]; then $(MAKE) ship-gate-tier-b; fi
@if [ "$${SHIP_GATE_SKIP_TIER_C:-0}" != "1" ]; then $(MAKE) ship-gate-tier-c; fi
@if [ "$${SHIP_GATE_SKIP_TIER_D:-0}" != "1" ]; then $(MAKE) ship-gate-tier-d; fi
# Ops gate: dogfood self-improvement + optional mesh chaos + oh-shit demo.
ops-gate-tier-a:
bash scripts/ops-gate-tier-a.sh
ops-gate-tier-b:
bash scripts/ops-gate-tier-b.sh
ops-gate-tier-c:
bash scripts/ops-gate-tier-c.sh
ops-gate-tier-d:
bash scripts/ops-gate-tier-d.sh
ops-gate-tier-e:
bash scripts/ops-gate-tier-e.sh
ops-gate: ops-gate-tier-a ops-gate-tier-b ops-gate-tier-c ops-gate-tier-e
# Security & trust gate: trust boundary, API auth, mesh security, supply chain, air-gapped.
security-gate-tier-a:
bash scripts/security-gate-tier-a.sh
security-gate-tier-b:
bash scripts/security-gate-tier-b.sh
security-gate-tier-c:
bash scripts/security-gate-tier-c.sh
security-gate-tier-d:
bash scripts/security-gate-tier-d.sh
security-gate-tier-e:
bash scripts/security-gate-tier-e.sh
security-gate: security-gate-tier-a security-gate-tier-b security-gate-tier-c
security-gate-full:
@if [ "$${SECURITY_GATE_SKIP_PRIOR:-0}" != "1" ]; then SHIP_GATE_SKIP_PRIOR=1 $(MAKE) ship-gate-full; fi
$(MAKE) security-gate-tier-a
$(MAKE) security-gate-tier-b
$(MAKE) security-gate-tier-c
@if [ "$${SECURITY_GATE_SKIP_TIER_D:-0}" != "1" ]; then $(MAKE) security-gate-tier-d; fi
@if [ "$${SECURITY_GATE_SKIP_TIER_E:-0}" != "1" ]; then $(MAKE) security-gate-tier-e; fi
# RC gate: release candidate (ship bundle + evidence + GitHub workflows).
rc-gate-tier-a:
bash scripts/rc-gate-tier-a.sh
rc-gate-tier-b:
bash scripts/rc-gate-tier-b.sh
rc-gate-tier-c:
bash scripts/rc-gate-tier-c.sh
rc-gate-tier-d:
bash scripts/rc-gate-tier-d.sh
rc-gate: rc-gate-tier-b rc-gate-tier-c rc-gate-tier-d
rc-gate-full:
bash scripts/rc-gate.sh
rc-gate-tier-e:
bash scripts/rc-gate-tier-e.sh
# Perf gate: regression backstop (after RC).
perf-gate-tier-a:
bash scripts/perf-gate-tier-a.sh
perf-gate-tier-b:
bash scripts/perf-gate-tier-b.sh
perf-gate-tier-c:
bash scripts/perf-gate-tier-c.sh
perf-gate-tier-d:
bash scripts/perf-gate-tier-d.sh
perf-gate: perf-gate-tier-a perf-gate-tier-b perf-gate-tier-c
perf-gate-full:
bash scripts/perf-gate.sh
# Compat gate: migration + CLI durability + config/doctor.
compat-gate-tier-a:
bash scripts/compat-gate-tier-a.sh
compat-gate-tier-b:
bash scripts/compat-gate-tier-b.sh
compat-gate-tier-c:
bash scripts/compat-gate-tier-c.sh
compat-gate: compat-gate-tier-a compat-gate-tier-b compat-gate-tier-c
compat-gate-full:
bash scripts/compat-gate.sh
# DR gate: backup/restore for pipeline + knowledge + mesh.
dr-gate-tier-a:
bash scripts/dr-gate-tier-a.sh
dr-gate-tier-b:
bash scripts/dr-gate-tier-b.sh
dr-gate-tier-c:
bash scripts/dr-gate-tier-c.sh
dr-gate: dr-gate-tier-a dr-gate-tier-b dr-gate-tier-c
dr-gate-full:
bash scripts/dr-gate.sh
# Post-RC waterproofing: perf → compat → DR → RC policy.
waterproofing-gate-full:
bash scripts/waterproofing-gate.sh
ops-gate-full:
@if [ "$${OPS_GATE_SKIP_PRIOR:-0}" != "1" ]; then SHIP_GATE_SKIP_PRIOR=1 $(MAKE) ship-gate-full; fi
$(MAKE) ops-gate-tier-a
$(MAKE) ops-gate-tier-b
$(MAKE) ops-gate-tier-c
@if [ "$${OPS_GATE_SKIP_TIER_D:-0}" != "1" ]; then $(MAKE) ops-gate-tier-d; fi
$(MAKE) ops-gate-tier-e
# Meta gate: full readiness stack (skip Docker tiers with ASHLAR_READY_SKIP_DOCKER=1).
ashlar-ready-gate:
bash scripts/ashlar-ready-gate.sh
# Safe validation: sequential, minimal memory. Run from external terminal to avoid Cursor memory explosion.
# Equivalent to ci-verify but via shell script; use when ci-verify causes high memory usage.
validate-safe:
@bash scripts/validate-safe.sh
# Every dogfood target runs each target framework as its OWN invocation with its own TRX, then
# scripts/ci/zero-test-guard.sh over both. One invocation without -f runs both frameworks and
# the second overwrites the first's TRX, so a framework that matched nothing would be invisible.
# Dogfood Block 1: verify observation pipeline watches Ashlar's own dev workflow
dogfood-block1:
dotnet build src/Ashlar.Tests.Infrastructure/Ashlar.Tests.Infrastructure.csproj -v minimal
rm -f test-results/dogfood/dogfood-block1-net8.0.trx test-results/dogfood/dogfood-block1-net10.0.trx
dotnet test src/Ashlar.Tests.Infrastructure/Ashlar.Tests.Infrastructure.csproj -f net8.0 --filter "FullyQualifiedName~DogfoodBlock1Tests" --no-build -v minimal --logger "trx;LogFileName=dogfood-block1-net8.0.trx" --results-directory test-results/dogfood
dotnet test src/Ashlar.Tests.Infrastructure/Ashlar.Tests.Infrastructure.csproj -f net10.0 --filter "FullyQualifiedName~DogfoodBlock1Tests" --no-build -v minimal --logger "trx;LogFileName=dogfood-block1-net10.0.trx" --results-directory test-results/dogfood
bash scripts/ci/zero-test-guard.sh test-results/dogfood/dogfood-block1-net8.0.trx test-results/dogfood/dogfood-block1-net10.0.trx
# Dogfood Block 2: verify static analyzer runs against Block 1 (Observation) code
dogfood-block2:
dotnet build src/Ashlar.Tests.Infrastructure/Ashlar.Tests.Infrastructure.csproj -v minimal
rm -f test-results/dogfood/dogfood-block2-net8.0.trx test-results/dogfood/dogfood-block2-net10.0.trx
dotnet test src/Ashlar.Tests.Infrastructure/Ashlar.Tests.Infrastructure.csproj -f net8.0 --filter "FullyQualifiedName~DogfoodBlock2Tests" --no-build -v minimal --logger "trx;LogFileName=dogfood-block2-net8.0.trx" --results-directory test-results/dogfood
dotnet test src/Ashlar.Tests.Infrastructure/Ashlar.Tests.Infrastructure.csproj -f net10.0 --filter "FullyQualifiedName~DogfoodBlock2Tests" --no-build -v minimal --logger "trx;LogFileName=dogfood-block2-net10.0.trx" --results-directory test-results/dogfood
bash scripts/ci/zero-test-guard.sh test-results/dogfood/dogfood-block2-net8.0.trx test-results/dogfood/dogfood-block2-net10.0.trx
# Dogfood Block 3: adaptation engine decomposes/recompiles Ashlar brick
dogfood-block3:
dotnet build src/Ashlar.Tests.Infrastructure/Ashlar.Tests.Infrastructure.csproj -v minimal
rm -f test-results/dogfood/dogfood-block3-net8.0.trx test-results/dogfood/dogfood-block3-net10.0.trx
dotnet test src/Ashlar.Tests.Infrastructure/Ashlar.Tests.Infrastructure.csproj -f net8.0 --filter "FullyQualifiedName~DogfoodBlock3Tests" --no-build -v minimal --logger "trx;LogFileName=dogfood-block3-net8.0.trx" --results-directory test-results/dogfood
dotnet test src/Ashlar.Tests.Infrastructure/Ashlar.Tests.Infrastructure.csproj -f net10.0 --filter "FullyQualifiedName~DogfoodBlock3Tests" --no-build -v minimal --logger "trx;LogFileName=dogfood-block3-net10.0.trx" --results-directory test-results/dogfood
bash scripts/ci/zero-test-guard.sh test-results/dogfood/dogfood-block3-net8.0.trx test-results/dogfood/dogfood-block3-net10.0.trx
# Dogfood Block 4: promote Ashlar fix via inheritance
dogfood-block4:
dotnet build src/Ashlar.Tests.Infrastructure/Ashlar.Tests.Infrastructure.csproj -v minimal
rm -f test-results/dogfood/dogfood-block4-net8.0.trx test-results/dogfood/dogfood-block4-net10.0.trx
dotnet test src/Ashlar.Tests.Infrastructure/Ashlar.Tests.Infrastructure.csproj -f net8.0 --filter "FullyQualifiedName~DogfoodBlock4Tests" --no-build -v minimal --logger "trx;LogFileName=dogfood-block4-net8.0.trx" --results-directory test-results/dogfood
dotnet test src/Ashlar.Tests.Infrastructure/Ashlar.Tests.Infrastructure.csproj -f net10.0 --filter "FullyQualifiedName~DogfoodBlock4Tests" --no-build -v minimal --logger "trx;LogFileName=dogfood-block4-net10.0.trx" --results-directory test-results/dogfood
bash scripts/ci/zero-test-guard.sh test-results/dogfood/dogfood-block4-net8.0.trx test-results/dogfood/dogfood-block4-net10.0.trx
# Dogfood Block 5: autonomy controls on Ashlar dev workflow
dogfood-block5:
dotnet build src/Ashlar.Tests.Infrastructure/Ashlar.Tests.Infrastructure.csproj -v minimal
rm -f test-results/dogfood/dogfood-block5-net8.0.trx test-results/dogfood/dogfood-block5-net10.0.trx
dotnet test src/Ashlar.Tests.Infrastructure/Ashlar.Tests.Infrastructure.csproj -f net8.0 --filter "FullyQualifiedName~DogfoodBlock5Tests" --no-build -v minimal --logger "trx;LogFileName=dogfood-block5-net8.0.trx" --results-directory test-results/dogfood
dotnet test src/Ashlar.Tests.Infrastructure/Ashlar.Tests.Infrastructure.csproj -f net10.0 --filter "FullyQualifiedName~DogfoodBlock5Tests" --no-build -v minimal --logger "trx;LogFileName=dogfood-block5-net10.0.trx" --results-directory test-results/dogfood
bash scripts/ci/zero-test-guard.sh test-results/dogfood/dogfood-block5-net8.0.trx test-results/dogfood/dogfood-block5-net10.0.trx
# Dogfood Block 6: SelfContextAssembler answers 24h question
dogfood-block6:
dotnet build src/Ashlar.Tests.Infrastructure/Ashlar.Tests.Infrastructure.csproj -v minimal
rm -f test-results/dogfood/dogfood-block6-net8.0.trx test-results/dogfood/dogfood-block6-net10.0.trx
dotnet test src/Ashlar.Tests.Infrastructure/Ashlar.Tests.Infrastructure.csproj -f net8.0 --filter "FullyQualifiedName~DogfoodBlock6Tests" --no-build -v minimal --logger "trx;LogFileName=dogfood-block6-net8.0.trx" --results-directory test-results/dogfood
dotnet test src/Ashlar.Tests.Infrastructure/Ashlar.Tests.Infrastructure.csproj -f net10.0 --filter "FullyQualifiedName~DogfoodBlock6Tests" --no-build -v minimal --logger "trx;LogFileName=dogfood-block6-net10.0.trx" --results-directory test-results/dogfood
bash scripts/ci/zero-test-guard.sh test-results/dogfood/dogfood-block6-net8.0.trx test-results/dogfood/dogfood-block6-net10.0.trx
# Dogfood Block 7: Composition engine composes for Ashlar problem
dogfood-block7:
dotnet build src/Ashlar.Tests.Infrastructure/Ashlar.Tests.Infrastructure.csproj -v minimal
rm -f test-results/dogfood/dogfood-block7-net8.0.trx test-results/dogfood/dogfood-block7-net10.0.trx
dotnet test src/Ashlar.Tests.Infrastructure/Ashlar.Tests.Infrastructure.csproj -f net8.0 --filter "FullyQualifiedName~DogfoodBlock7Tests" --no-build -v minimal --logger "trx;LogFileName=dogfood-block7-net8.0.trx" --results-directory test-results/dogfood
dotnet test src/Ashlar.Tests.Infrastructure/Ashlar.Tests.Infrastructure.csproj -f net10.0 --filter "FullyQualifiedName~DogfoodBlock7Tests" --no-build -v minimal --logger "trx;LogFileName=dogfood-block7-net10.0.trx" --results-directory test-results/dogfood
bash scripts/ci/zero-test-guard.sh test-results/dogfood/dogfood-block7-net8.0.trx test-results/dogfood/dogfood-block7-net10.0.trx
# Dogfood Block 8: Parallel test matrix against Ashlar tests
dogfood-block8:
dotnet build src/Ashlar.Tests.Infrastructure/Ashlar.Tests.Infrastructure.csproj -v minimal
rm -f test-results/dogfood/dogfood-block8-net8.0.trx test-results/dogfood/dogfood-block8-net10.0.trx
dotnet test src/Ashlar.Tests.Infrastructure/Ashlar.Tests.Infrastructure.csproj -f net8.0 --filter "FullyQualifiedName~DogfoodBlock8Tests" --no-build -v minimal --logger "trx;LogFileName=dogfood-block8-net8.0.trx" --results-directory test-results/dogfood
dotnet test src/Ashlar.Tests.Infrastructure/Ashlar.Tests.Infrastructure.csproj -f net10.0 --filter "FullyQualifiedName~DogfoodBlock8Tests" --no-build -v minimal --logger "trx;LogFileName=dogfood-block8-net10.0.trx" --results-directory test-results/dogfood
bash scripts/ci/zero-test-guard.sh test-results/dogfood/dogfood-block8-net8.0.trx test-results/dogfood/dogfood-block8-net10.0.trx
# Phase D: Composition-driven testing (Block 7–8)
dogfood-block8-composed:
dotnet build src/Ashlar.Tests.Infrastructure/Ashlar.Tests.Infrastructure.csproj -v minimal
rm -f test-results/dogfood/dogfood-block8-composed-net8.0.trx test-results/dogfood/dogfood-block8-composed-net10.0.trx
dotnet test src/Ashlar.Tests.Infrastructure/Ashlar.Tests.Infrastructure.csproj -f net8.0 --filter "FullyQualifiedName~DogfoodBlock8ComposedTests" --no-build -v minimal --logger "trx;LogFileName=dogfood-block8-composed-net8.0.trx" --results-directory test-results/dogfood
dotnet test src/Ashlar.Tests.Infrastructure/Ashlar.Tests.Infrastructure.csproj -f net10.0 --filter "FullyQualifiedName~DogfoodBlock8ComposedTests" --no-build -v minimal --logger "trx;LogFileName=dogfood-block8-composed-net10.0.trx" --results-directory test-results/dogfood
bash scripts/ci/zero-test-guard.sh test-results/dogfood/dogfood-block8-composed-net8.0.trx test-results/dogfood/dogfood-block8-composed-net10.0.trx
# Dogfood Block 9: Instance mesh discover/advertise
dogfood-block9:
dotnet build src/Ashlar.Tests.Infrastructure/Ashlar.Tests.Infrastructure.csproj -v minimal
rm -f test-results/dogfood/dogfood-block9-net8.0.trx test-results/dogfood/dogfood-block9-net10.0.trx
dotnet test src/Ashlar.Tests.Infrastructure/Ashlar.Tests.Infrastructure.csproj -f net8.0 --filter "FullyQualifiedName~DogfoodBlock9Tests" --no-build -v minimal --logger "trx;LogFileName=dogfood-block9-net8.0.trx" --results-directory test-results/dogfood
dotnet test src/Ashlar.Tests.Infrastructure/Ashlar.Tests.Infrastructure.csproj -f net10.0 --filter "FullyQualifiedName~DogfoodBlock9Tests" --no-build -v minimal --logger "trx;LogFileName=dogfood-block9-net10.0.trx" --results-directory test-results/dogfood
bash scripts/ci/zero-test-guard.sh test-results/dogfood/dogfood-block9-net8.0.trx test-results/dogfood/dogfood-block9-net10.0.trx
# Phase E: Local IPC mesh - two instances share capability
dogfood-block9-ipc:
dotnet build src/Ashlar.Tests.Infrastructure/Ashlar.Tests.Infrastructure.csproj -v minimal
rm -f test-results/dogfood/dogfood-block9-ipc-net8.0.trx test-results/dogfood/dogfood-block9-ipc-net10.0.trx
dotnet test src/Ashlar.Tests.Infrastructure/Ashlar.Tests.Infrastructure.csproj -f net8.0 --filter "FullyQualifiedName~DogfoodBlock9LocalIpcTests" --no-build -v minimal --logger "trx;LogFileName=dogfood-block9-ipc-net8.0.trx" --results-directory test-results/dogfood
dotnet test src/Ashlar.Tests.Infrastructure/Ashlar.Tests.Infrastructure.csproj -f net10.0 --filter "FullyQualifiedName~DogfoodBlock9LocalIpcTests" --no-build -v minimal --logger "trx;LogFileName=dogfood-block9-ipc-net10.0.trx" --results-directory test-results/dogfood
bash scripts/ci/zero-test-guard.sh test-results/dogfood/dogfood-block9-ipc-net8.0.trx test-results/dogfood/dogfood-block9-ipc-net10.0.trx
# Dogfood Blocks 1–6 (Phase C validation)
dogfood-phase-c:
$(MAKE) dogfood-block1
$(MAKE) dogfood-block2
$(MAKE) dogfood-block3
$(MAKE) dogfood-block4
$(MAKE) dogfood-block5
$(MAKE) dogfood-block6
# Dogfood Blocks 7–9 (Phase D+E validation)
dogfood-phase-de:
$(MAKE) dogfood-block7
$(MAKE) dogfood-block8
$(MAKE) dogfood-block9
# Dogfood Phase F: closed-loop improve on Ashlar
dogfood-closedloop:
dotnet build src/Ashlar.Tests.Infrastructure/Ashlar.Tests.Infrastructure.csproj -v minimal
rm -f test-results/dogfood/dogfood-closedloop-net8.0.trx test-results/dogfood/dogfood-closedloop-net10.0.trx
dotnet test src/Ashlar.Tests.Infrastructure/Ashlar.Tests.Infrastructure.csproj -f net8.0 --filter "FullyQualifiedName~DogfoodClosedLoopTests" --no-build -v minimal --logger "trx;LogFileName=dogfood-closedloop-net8.0.trx" --results-directory test-results/dogfood
dotnet test src/Ashlar.Tests.Infrastructure/Ashlar.Tests.Infrastructure.csproj -f net10.0 --filter "FullyQualifiedName~DogfoodClosedLoopTests" --no-build -v minimal --logger "trx;LogFileName=dogfood-closedloop-net10.0.trx" --results-directory test-results/dogfood
bash scripts/ci/zero-test-guard.sh test-results/dogfood/dogfood-closedloop-net8.0.trx test-results/dogfood/dogfood-closedloop-net10.0.trx
# Phase F: Continuous self-improvement loop (changelog, test failure store)
dogfood-phasef:
dotnet build src/Ashlar.Tests.Infrastructure/Ashlar.Tests.Infrastructure.csproj -v minimal
rm -f test-results/dogfood/dogfood-phasef-net8.0.trx test-results/dogfood/dogfood-phasef-net10.0.trx
dotnet test src/Ashlar.Tests.Infrastructure/Ashlar.Tests.Infrastructure.csproj -f net8.0 --filter "FullyQualifiedName~DogfoodPhaseFTests" --no-build -v minimal --logger "trx;LogFileName=dogfood-phasef-net8.0.trx" --results-directory test-results/dogfood
dotnet test src/Ashlar.Tests.Infrastructure/Ashlar.Tests.Infrastructure.csproj -f net10.0 --filter "FullyQualifiedName~DogfoodPhaseFTests" --no-build -v minimal --logger "trx;LogFileName=dogfood-phasef-net10.0.trx" --results-directory test-results/dogfood
bash scripts/ci/zero-test-guard.sh test-results/dogfood/dogfood-phasef-net8.0.trx test-results/dogfood/dogfood-phasef-net10.0.trx
# All dogfood blocks (1–9) + Phase F closed-loop + Phase F
dogfood-all:
$(MAKE) dogfood-phase-c
$(MAKE) dogfood-phase-de
$(MAKE) dogfood-closedloop
$(MAKE) dogfood-phasef
# Review summary Markdown from JSON (C#-driven; replaces scripts/review-summary-md.sh)
review-summary:
dotnet run --project application/src/Ashlar.CLI -- review summary
# Mutation testing: validates tests catch deliberate bugs. Install: dotnet tool install -g dotnet-stryker
mutation-test:
@bash scripts/run-mutation-tests.sh
@echo "Open ./StrykerOutput/*/reports/mutation-report.html to review"
# Remove test artifacts: hang dumps (~6GB each), .trx, coverage, per-run TestResults dirs.
# Run after tests to reclaim disk space. Safe to run anytime.
clean-test-artifacts:
@echo "Cleaning test artifacts..."
@find src -type d -name "TestResults" -exec rm -rf {} + 2>/dev/null; true
@rm -rf test-results
@echo "Done."
# Pack NuGet library packages (Ashlar.Hosting, Ashlar.CLI tool)
pack:
dotnet pack src/Ashlar.Hosting/Ashlar.Hosting.csproj -c Release -o dist/nuget
dotnet pack application/src/Ashlar.CLI/Ashlar.CLI.csproj -c Release -o dist/nuget
# ── Mesh virtual lab (Docker bridge network; automated HTTP checks) ────────────
# Full cycle: compose up → scripts/mesh-lab-verify.sh → compose down -v.
# Requires Docker running. Optional: COMPOSE_PROJECT_NAME=… mesh-lab-e2e
mesh-lab-e2e:
bash scripts/run-mesh-lab-e2e.sh
# Same as mesh-lab-e2e but starts the Compose `workers` profile (Basic + API key paths on worker).
mesh-lab-e2e-workers:
MESH_LAB_E2E_WORKERS=1 bash scripts/run-mesh-lab-e2e.sh
# Workers profile + standard verify + mesh-lab-verify-deep (checkpoint / migrate / reschedule).
mesh-lab-e2e-deep:
MESH_LAB_E2E_WORKERS=1 MESH_LAB_VERIFY_DEEP=1 bash scripts/run-mesh-lab-e2e.sh
# Full lab gate + deep + worker stress ramp (scale replicas + parallel /health bursts).
mesh-lab-e2e-stress:
MESH_LAB_E2E_WORKERS=1 MESH_LAB_VERIFY_DEEP=1 MESH_LAB_RUN_STRESS=1 bash scripts/run-mesh-lab-e2e.sh
# HTTPS director via Caddy + scripts/mesh-lab-tls-certs.sh — see deploy/compose/docker-compose.mesh-lab-tls.override.yml
mesh-lab-e2e-tls:
bash scripts/run-mesh-lab-e2e-tls.sh
# Long-lived lab using gitignored .env.mesh-lab (copy docs/config/mesh-lab.env.example).
# Optional: MESH_LAB_WORKERS=1 make mesh-lab-up → includes --profile workers
mesh-lab-up:
@test -f .env.mesh-lab || (echo "Missing .env.mesh-lab — cp docs/config/mesh-lab.env.example .env.mesh-lab && edit secrets"; exit 1)
ifeq ($(strip $(MESH_LAB_WORKERS)),1)
DOCKER_DEFAULT_PLATFORM=$${DOCKER_DEFAULT_PLATFORM:-linux/amd64} COMPOSE_PROJECT_NAME=ashlar_mesh_lab_local docker compose --profile workers -f deploy/compose/docker-compose.mesh-lab.yml --env-file .env.mesh-lab up -d --build
else
DOCKER_DEFAULT_PLATFORM=$${DOCKER_DEFAULT_PLATFORM:-linux/amd64} COMPOSE_PROJECT_NAME=ashlar_mesh_lab_local docker compose -f deploy/compose/docker-compose.mesh-lab.yml --env-file .env.mesh-lab up -d --build
endif
mesh-lab-verify:
@test -f .env.mesh-lab || (echo "Missing .env.mesh-lab"; exit 1)
DOCKER_DEFAULT_PLATFORM=$${DOCKER_DEFAULT_PLATFORM:-linux/amd64} COMPOSE_PROJECT_NAME=ashlar_mesh_lab_local ./scripts/mesh-lab-verify.sh .env.mesh-lab
mesh-lab-verify-deep:
@test -f .env.mesh-lab || (echo "Missing .env.mesh-lab"; exit 1)
DOCKER_DEFAULT_PLATFORM=$${DOCKER_DEFAULT_PLATFORM:-linux/amd64} COMPOSE_PROJECT_NAME=ashlar_mesh_lab_local ./scripts/mesh-lab-verify-deep.sh .env.mesh-lab
mesh-lab-verify-entitlements:
@test -f .env.mesh-lab || (echo "Missing .env.mesh-lab"; exit 1)
DOCKER_DEFAULT_PLATFORM=$${DOCKER_DEFAULT_PLATFORM:-linux/amd64} COMPOSE_PROJECT_NAME=ashlar_mesh_lab_local ./scripts/mesh-lab-verify-entitlements.sh .env.mesh-lab
mesh-lab-verify-governance:
@test -f .env.mesh-lab || (echo "Missing .env.mesh-lab"; exit 1)
DOCKER_DEFAULT_PLATFORM=$${DOCKER_DEFAULT_PLATFORM:-linux/amd64} COMPOSE_PROJECT_NAME=ashlar_mesh_lab_local ./scripts/mesh-lab-verify-governance.sh .env.mesh-lab
mesh-lab-verify-director-cli:
@test -f .env.mesh-lab || (echo "Missing .env.mesh-lab"; exit 1)
DOCKER_DEFAULT_PLATFORM=$${DOCKER_DEFAULT_PLATFORM:-linux/amd64} COMPOSE_PROJECT_NAME=ashlar_mesh_lab_local ./scripts/mesh-lab-verify-director-cli.sh .env.mesh-lab
mesh-lab-verify-persistence:
@test -f .env.mesh-lab || (echo "Missing .env.mesh-lab"; exit 1)
DOCKER_DEFAULT_PLATFORM=$${DOCKER_DEFAULT_PLATFORM:-linux/amd64} COMPOSE_PROJECT_NAME=ashlar_mesh_lab_local ./scripts/mesh-lab-verify-persistence.sh .env.mesh-lab
mesh-lab-verify-network-negative:
@test -f .env.mesh-lab || (echo "Missing .env.mesh-lab"; exit 1)
DOCKER_DEFAULT_PLATFORM=$${DOCKER_DEFAULT_PLATFORM:-linux/amd64} COMPOSE_PROJECT_NAME=ashlar_mesh_lab_local ./scripts/mesh-lab-verify-network-negative.sh .env.mesh-lab
mesh-lab-verify-tls:
@test -f .env.mesh-lab || (echo "Missing .env.mesh-lab"; exit 1)
DOCKER_DEFAULT_PLATFORM=$${DOCKER_DEFAULT_PLATFORM:-linux/amd64} COMPOSE_PROJECT_NAME=ashlar_mesh_lab_tls_local \
docker compose -f deploy/compose/docker-compose.mesh-lab.yml -f deploy/compose/docker-compose.mesh-lab-tls.override.yml --env-file .env.mesh-lab up -d
DOCKER_DEFAULT_PLATFORM=$${DOCKER_DEFAULT_PLATFORM:-linux/amd64} ./scripts/mesh-lab-verify-tls.sh .env.mesh-lab
mesh-lab-verify-post-stress:
@test -f .env.mesh-lab || (echo "Missing .env.mesh-lab"; exit 1)
DOCKER_DEFAULT_PLATFORM=$${DOCKER_DEFAULT_PLATFORM:-linux/amd64} COMPOSE_PROJECT_NAME=ashlar_mesh_lab_local ./scripts/mesh-lab-verify-post-stress.sh .env.mesh-lab
# Requires lab up with workers: MESH_LAB_WORKERS=1 make mesh-lab-up
mesh-lab-stress:
@test -f .env.mesh-lab || (echo "Missing .env.mesh-lab"; exit 1)
DOCKER_DEFAULT_PLATFORM=$${DOCKER_DEFAULT_PLATFORM:-linux/amd64} COMPOSE_PROJECT_NAME=ashlar_mesh_lab_local ./scripts/mesh-lab-stress-ramp.sh .env.mesh-lab
mesh-lab-down:
@test -f .env.mesh-lab || (echo "Missing .env.mesh-lab"; exit 1)
DOCKER_DEFAULT_PLATFORM=$${DOCKER_DEFAULT_PLATFORM:-linux/amd64} COMPOSE_PROJECT_NAME=ashlar_mesh_lab_local docker compose --profile workers -f deploy/compose/docker-compose.mesh-lab.yml --env-file .env.mesh-lab down -v
# Optional dotnet gate mirroring mesh-lab-gate (compose + mesh-lab-verify*.sh). Requires Docker + python3.
test-mesh-lab:
ASHLAR_RUN_MESH_LAB=1 dotnet test src/Ashlar.Tests.Infrastructure/Ashlar.Tests.Infrastructure.csproj -f net8.0 \
--filter "Category=MeshLab" \
--blame-hang-timeout 2700s --blame-hang-dump-type none
# Build CLI Docker image (linux/amd64 for portability)
docker-cli:
docker build --platform linux/amd64 -f .docker/Dockerfile.cli -t ashlar-cli:latest .
# Generate API docs (requires: dotnet tool install -g docfx)
docs-api:
dotnet build Ashlar.sln -c Release
cd docs/api && docfx