GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — cycles-protocol/Makefile at main · runcycles/cycles-protocol

Expand file tree

/

Makefile

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
82 lines (67 loc) · 2.73 KB
/

Makefile

Copy path

File metadata and controls

82 lines (67 loc) · 2.73 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
.PHONY: install lint lint-sources lint-merged lint-all validate merge merge-check changelog-check spec-index-check client-recovery-check clean
# Canonical source specs — all linted in CI.
SOURCE_SPECS := \
cycles-protocol-v0.yaml \
cycles-governance-admin-v0.1.25.yaml \
cycles-action-kinds-v0.1.26.yaml \
cycles-protocol-extensions-v0.1.26.yaml \
cycles-governance-extensions-v0.1.26.yaml \
cycles-evidence-v0.2.yaml
PROTOCOL_MERGED := merged/cycles-openapi-protocol-merged.yaml
ADMIN_MERGED := merged/cycles-openapi-admin-merged.yaml
MERGED_SPECS := $(PROTOCOL_MERGED) $(ADMIN_MERGED)
## Install validation tooling
install:
npm ci
## Lint all canonical source specs (fails on errors only)
lint-sources: install
@for spec in $(SOURCE_SPECS); do \
echo ">> Linting $$spec"; \
npx spectral lint $$spec --fail-severity=error || exit 1; \
done
## Lint pre-built merged artifacts (catches merge-script bugs that produce invalid OpenAPI)
lint-merged: install
@for spec in $(MERGED_SPECS); do \
echo ">> Linting $$spec"; \
npx spectral lint $$spec --fail-severity=error || exit 1; \
done
## Lint everything (sources + merged)
lint-all: lint-sources lint-merged
## Legacy alias — lint the runtime base only. Use lint-all in CI.
lint: install
npx spectral lint cycles-protocol-v0.yaml --fail-severity=error
## Alias for full validation
validate: lint-all merge-check changelog-check spec-index-check client-recovery-check
## Verify each source spec's info.x-changelog points at an existing changelog
## file and the latest version heading matches info.version.
changelog-check:
python scripts/validate_changelogs.py
## Verify indexed spec versions and the canonical publication inventory.
spec-index-check:
python scripts/validate_spec_index_versions.py
## Validate the SDK recovery catalog and process-adapter runner.
client-recovery-check:
python scripts/validate_client_recovery_scenarios.py
python scripts/test_client_recovery_runner.py
## Regenerate merged OpenAPI artifacts (protocol plane + admin plane)
merge:
python scripts/merge_specs.py
## Verify committed merged artifacts match a fresh merge (idempotency / drift check).
## Fails CI if a contributor modified a source spec without running `make merge`.
merge-check:
python scripts/merge_specs.py
@if ! git diff --exit-code --quiet merged/; then \
echo ""; \
echo "ERROR: Committed merged artifacts are out of date."; \
echo "A source spec was modified without running 'make merge'."; \
echo ""; \
echo "Diff:"; \
git --no-pager diff merged/; \
echo ""; \
echo "To fix: run 'make merge' locally, commit the regenerated files."; \
exit 1; \
fi
@echo ">> Merge drift check passed: committed artifacts match sources."
## Remove installed dependencies
clean:
rm -rf node_modules
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.