Repository navigation
Expand file tree
/
Copy pathMakefile
More file actions
225 lines (195 loc) · 20.2 KB
/
Copy pathMakefile
File metadata and controls
225 lines (195 loc) · 20.2 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
.PHONY: help test test-magna-catalogue-json test-magna-checkpoint-json test-magna-task-json test-magna-controller-json check build-shot-viewer fetch-doc-artifacts build-site release rsmp-v1-readiness publication-evidence-check bench-surface-smoke bench-surface-full surface-decoder-compare-smoke surface-decoder-compare-full bb-circuit-bposd-compare-smoke bb-circuit-bposd-compare-plot-smoke bb-circuit-bposd-compare-full qec-code-random-window-bench-smoke qec-code-random-window-bench-full qec-code-random-window-bench-no-target-smoke qec-code-random-window-bench-no-target-multiseed-smoke qec-code-random-window-bench-no-target-ladder-smoke qec-code-random-window-bench-issue225-readiness-smoke
DEFAULT_BRANCH ?= master
.PHONY: magna-paper-evidence-check
# Cross-platform sed in-place: macOS needs -i '', Linux needs -i
SED_I := sed -i$(shell if [ "$$(uname)" = "Darwin" ]; then echo " ''"; fi)
QEC_CODE_RANDOM_WINDOW_OUT ?= benchmarks/out/qec_code_random_window
QEC_CODE_RANDOM_WINDOW_SMOKE_DIR := $(QEC_CODE_RANDOM_WINDOW_OUT)/smoke
QEC_CODE_RANDOM_WINDOW_FULL_DIR := $(QEC_CODE_RANDOM_WINDOW_OUT)/full
QEC_CODE_RANDOM_WINDOW_NO_TARGET_SMOKE_DIR := $(QEC_CODE_RANDOM_WINDOW_OUT)/no-target-smoke
QEC_CODE_RANDOM_WINDOW_NO_TARGET_MULTISEED_SMOKE_DIR := $(QEC_CODE_RANDOM_WINDOW_OUT)/no-target-multiseed-smoke
QEC_CODE_RANDOM_WINDOW_NO_TARGET_LADDER_SMOKE_DIR := $(QEC_CODE_RANDOM_WINDOW_OUT)/no-target-ladder-smoke
QEC_CODE_RANDOM_WINDOW_ISSUE225_READINESS_SMOKE_DIR := $(QEC_CODE_RANDOM_WINDOW_OUT)/issue225-readiness-smoke
QEC_CODE_RANDOM_WINDOW_SMOKE_CASES := benchmarks/qec_code_random_window/cases.smoke.toml
QEC_CODE_RANDOM_WINDOW_FULL_CASES := benchmarks/qec_code_random_window/cases.full.toml
QEC_CODE_RANDOM_WINDOW_NO_TARGET_SMOKE_CASES := benchmarks/qec_code_random_window/cases.no-target-smoke.toml
QEC_CODE_RANDOM_WINDOW_NO_TARGET_LADDER_SMOKE_CASES := benchmarks/qec_code_random_window/cases.no-target-ladder-smoke.toml
QEC_CODE_RANDOM_WINDOW_ISSUE225_EVIDENCE := benchmarks/qec_code_random_window/issue225_evidence.json
QEC_CODE_RANDOM_WINDOW_BASELINE_HEADER := case_id,paper_case,baseline_method,baseline_upper_bound,baseline_elapsed_s,source_file,source_sheet,source_row
help:
@echo "Available targets:"
@echo " test - Run workspace tests"
@echo " test-magna-catalogue-json - Check exact catalogue JSON across serde features"
@echo " test-magna-checkpoint-json - Check statistics and task-stream checkpoints across serde features"
@echo " check - Run cargo check for the workspace"
@echo " test-magna-task-json - Check task and sampling JSON across serde feature combinations"
@echo " test-magna-controller-json - Check strict controller wire types across serde features"
@echo " build-site - Build the benchmarked documentation site into _site"
@echo " fetch-doc-artifacts - Fetch the pinned generated docs and evidence artifacts"
@echo " build-shot-viewer - Rebuild the version-matched interactive-shot web bundle"
@echo " rsmp-v1-readiness - Run the deterministic rsmp v1 readiness gate"
@echo " publication-evidence-check - Validate the publication benchmark evidence bundle (issue #601)"
@echo " magna-paper-evidence-check - Regenerate the sealed Magna paper evidence offline"
@echo " bench-surface-smoke - Run the smoke surface decoder benchmark framework flow"
@echo " bench-surface-full - Run the full surface decoder benchmark framework flow"
@echo " surface-decoder-compare-smoke - Run the smoke surface decoder comparison benchmark"
@echo " surface-decoder-compare-full - Run the full surface decoder comparison benchmark"
@echo " bb-circuit-bposd-compare-smoke - Run the BB circuit rbposd vs ldpc/bposd smoke comparison"
@echo " bb-circuit-bposd-compare-plot-smoke - Run tiny BB72/BB144 batched compare and plot smoke"
@echo " bb-circuit-bposd-compare-full - Run the full BB72/BB144 batched compare suite"
@echo " qec-code-random-window-bench-smoke - Run qec-code random-window smoke evidence pipeline"
@echo " qec-code-random-window-bench-full - Run qec-code random-window full pipeline using CODEDISTANCE_PAPER_RESULTS_DIR"
@echo " qec-code-random-window-bench-no-target-smoke - Run release/no-target random-window fixed-budget smoke"
@echo " qec-code-random-window-bench-no-target-multiseed-smoke - Run release/no-target random-window three-seed smoke"
@echo " qec-code-random-window-bench-no-target-ladder-smoke - Run release/no-target-ladder random-window smoke"
@echo " qec-code-random-window-bench-issue225-readiness-smoke - Run issue-225 readiness report smoke"
@echo " release V=x.y.z - Bump crate versions, commit, tag, and push a release"
test:
cargo test --locked --workspace --features rstim/ilp,rsinter/full,rstim/benchmark-tools,rstim/cli,rstim/codegen-css,rstim/shot-viewer,qec-code/cli,qec-ilp-core/highs
test-magna-task-json:
cargo test --locked -p rmagna --test task --test sampling_declarations
cargo test --locked -p rmagna --features serde_json/arbitrary_precision --test task --test sampling_declarations
cargo test --locked -p rmagna --features serde_json/float_roundtrip --test task --test sampling_declarations
test-magna-controller-json:
cargo test --locked -p rmagna --test controller_process
cargo test --locked -p rmagna --features serde_json/arbitrary_precision --test controller_process
cargo test --locked -p rmagna --features serde_json/float_roundtrip --test controller_process
cargo test --locked -p rmagna --features serde_json/arbitrary_precision,serde_json/float_roundtrip --test controller_process
test-magna-catalogue-json:
cargo test --locked -p rmagna --test phase_catalogue
cargo test --locked -p rmagna --features serde_json/arbitrary_precision --test phase_catalogue
test-magna-checkpoint-json:
cargo test --locked -p rmagna --test statistics_checkpoint --test statistics_checkpoint_shape --test task_stream_checkpoint --test file_stream --test cli_stream
cargo test --locked -p rmagna --features serde_json/arbitrary_precision --test statistics_checkpoint --test statistics_checkpoint_shape --test task_stream_checkpoint --test file_stream --test cli_stream
cargo test --locked -p rmagna --features serde_json/float_roundtrip --test statistics_checkpoint --test statistics_checkpoint_shape --test task_stream_checkpoint --test file_stream --test cli_stream
cargo test --locked -p rmagna --features serde_json/arbitrary_precision,serde_json/float_roundtrip --test statistics_checkpoint --test statistics_checkpoint_shape --test task_stream_checkpoint --test file_stream --test cli_stream
check:
cargo check --locked --workspace
rsmp-v1-readiness:
@python3 tools/check_rsmp_v1_readiness.py --repo-root . --out-dir benchmarks/out/rsmp-v1
publication-evidence-check:
@python3 tools/check_publication_benchmark_evidence.py --self-test
@python3 tools/check_publication_benchmark_evidence.py \
--manifest benchmarks/publication_evidence/manifest.toml \
--results-dir benchmarks/publication_evidence/results \
--report-out /tmp/rstim-publication-evidence-report.md \
--readiness-out /tmp/rstim-publication-evidence-readiness.json
@cmp /tmp/rstim-publication-evidence-report.md benchmarks/publication_evidence/report.md
@cmp /tmp/rstim-publication-evidence-readiness.json benchmarks/publication_evidence/readiness.json
magna-paper-evidence-check:
@python3 -E -S -B benchmarks/magna_reproduction/paper_evidence.py \
--results "$${MAGNA_PAPER_EVIDENCE_ROOT:?set MAGNA_PAPER_EVIDENCE_ROOT to the sealed evidence directory}"
build-shot-viewer:
tools/build_shot_viewer.sh
fetch-doc-artifacts:
python3 tools/fetch_docs_artifacts.py
build-site: build-shot-viewer fetch-doc-artifacts
python3 tools/prepare_site_docs.py
python3 tools/build_cli_reference.py
python3 tools/build_atom_loss_circuit_crops.py
rm -rf _site
zola --root site build --output-dir $(CURDIR)/_site $(if $(DOCS_SITE_BASE_URL),--base-url "$(DOCS_SITE_BASE_URL)")
mkdir -p _site/examples _site/data
cp rstim/doc/qp101.schema.json _site/qp101.schema.json
cp rstim/doc/QP101-ZY.md _site/QP101-ZY.md
mkdir -p _site/support _site/benchmarks/atom_loss/readiness/resources
cp docs/envelope-support.json _site/support/envelope-support.json
cp docs/envelope-compatibility-policy.md _site/support/envelope-compatibility-policy.md
cp docs/envelope-mle-scope.json _site/support/envelope-mle-scope.json
cp benchmarks/atom_loss/readiness/resources/report.md _site/benchmarks/atom_loss/readiness/resources/report.md
cp qp101-viz/examples/basic.qp101.json _site/examples/basic.qp101.json
cp qp101-viz/examples/repeat-detector.qp101.json _site/examples/repeat-detector.qp101.json
cp qp101-viz/examples/atom-loss-sample.qp101.json _site/examples/atom-loss-sample.qp101.json
cargo run --locked -q -p rstim --features cli --bin rstim -- render_svg --in site/static/examples/getting-started.stim --out _site/examples/getting-started-circuit.svg
cargo run --locked -q -p rstim --features cli --bin rstim -- render_svg --sample_shot --seed 86 --in site/static/examples/getting-started.stim --out _site/examples/getting-started.svg
target/debug/rstim surface-code-ler --distances 3,5,7 --rounds 9,15,21 --physical-error-rates 0.008,0.009,0.01,0.011,0.012 --shots 10000 --seed 86 --out-dir _site/examples
python3 tools/build_qp101_gallery.py --repo-root . --out-dir _site/gallery
python3 tools/copy_site_benchmark_data.py --repo-root . --site-root _site site/benchmark-site.json
python3 tools/build_docs_search.py --site-root _site
python3 tools/site_versions.py index --site-root _site
bench-surface-smoke:
cargo run --locked -p rsinter --features full --bin rsinter -- bench run --spec benchmarks/surface_decoder/spec.toml --language rust --out benchmarks/out/surface_decoder/smoke-rust
.venv-surface-decoder/bin/python -m benchmarks.python_runners.surface_decoder.run --spec benchmarks/surface_decoder/spec.toml --language python --out benchmarks/out/surface_decoder/smoke-python
cargo run --locked -p rsinter --features full --bin rsinter -- bench merge --spec benchmarks/surface_decoder/spec.toml --input benchmarks/out/surface_decoder/smoke-rust/rmatching/test-run/results.jsonl --input benchmarks/out/surface_decoder/smoke-rust/rbposd/test-run/results.jsonl --input benchmarks/out/surface_decoder/smoke-rust/rilpqec/test-run/results.jsonl --input benchmarks/out/surface_decoder/smoke-python/pymatching/test-run/results.jsonl --input benchmarks/out/surface_decoder/smoke-python/ilpqec/test-run/results.jsonl --input benchmarks/out/surface_decoder/smoke-python/ldpc/test-run/results.jsonl --out benchmarks/out/surface_decoder/merged/smoke.jsonl
cargo run --locked -p rsinter --features full --bin rsinter -- bench plot --spec benchmarks/surface_decoder/spec.toml --input benchmarks/out/surface_decoder/merged/smoke.jsonl --out benchmarks/out/surface_decoder/plots/smoke.svg
bench-surface-full:
cargo run --locked -p rsinter --features full --bin rsinter -- bench run --spec benchmarks/surface_decoder/full.toml --language rust --out benchmarks/out/surface_decoder/full-rust
.venv-surface-decoder/bin/python -m benchmarks.python_runners.surface_decoder.run --spec benchmarks/surface_decoder/full.toml --language python --out benchmarks/out/surface_decoder/full-python
cargo run --locked -p rsinter --features full --bin rsinter -- bench merge --spec benchmarks/surface_decoder/full.toml --input benchmarks/out/surface_decoder/full-rust/rmatching/test-run/results.jsonl --input benchmarks/out/surface_decoder/full-rust/rbposd/test-run/results.jsonl --input benchmarks/out/surface_decoder/full-rust/rilpqec/test-run/results.jsonl --input benchmarks/out/surface_decoder/full-python/pymatching/test-run/results.jsonl --input benchmarks/out/surface_decoder/full-python/ilpqec/test-run/results.jsonl --input benchmarks/out/surface_decoder/full-python/ldpc/test-run/results.jsonl --out benchmarks/out/surface_decoder/merged/full.jsonl
cargo run --locked -p rsinter --features full --bin rsinter -- bench plot --spec benchmarks/surface_decoder/full.toml --input benchmarks/out/surface_decoder/merged/full.jsonl --out benchmarks/out/surface_decoder/plots/full.svg
surface-decoder-compare-smoke:
.venv-surface-decoder/bin/python -m benchmarks.surface_decoder_compare.run_compare --tier smoke
cargo run --locked -p rsinter --features full --bin rsinter -- bench plot-surface-compare-csv --spec benchmarks/surface_decoder/spec.toml --input benchmarks/surface_decoder_compare/results/smoke/results.csv --out benchmarks/surface_decoder_compare/results/smoke/surface_decoder_compare.png
surface-decoder-compare-full:
.venv-surface-decoder/bin/python -m benchmarks.surface_decoder_compare.run_compare --tier full
cargo run --locked -p rsinter --features full --bin rsinter -- bench plot-surface-compare-csv --spec benchmarks/surface_decoder/full.toml --input benchmarks/surface_decoder_compare/results/full/results.csv --out benchmarks/surface_decoder_compare/results/full/surface_decoder_compare.png
bb-circuit-bposd-compare-smoke:
python3 -m benchmarks.bb_circuit_bposd_compare.run_compare --tier smoke --output-dir benchmarks/bb_circuit_bposd_compare/results/smoke
python3 -m benchmarks.bb_circuit_bposd_compare.verify_smoke benchmarks/bb_circuit_bposd_compare/results/smoke/results.csv
bb-circuit-bposd-compare-plot-smoke:
cargo build --locked --release -p rsinter --features full
.venv-surface-decoder/bin/python -m benchmarks.bb_circuit_bposd_compare.run_compare --tier bb72-bb144-plot-smoke --output-dir benchmarks/bb_circuit_bposd_compare/results/plot-smoke --rust-binary target/release/rsinter --batch-size 10
bb-circuit-bposd-compare-full:
cargo build --locked --release -p rsinter --features full
.venv-surface-decoder/bin/python -m benchmarks.bb_circuit_bposd_compare.run_compare --tier full --output-dir benchmarks/bb_circuit_bposd_compare/results/full --rust-binary target/release/rsinter --batch-size 500
qec-code-random-window-bench-smoke:
rm -rf $(QEC_CODE_RANDOM_WINDOW_SMOKE_DIR)
mkdir -p $(QEC_CODE_RANDOM_WINDOW_SMOKE_DIR)
python3 -m benchmarks.qec_code_random_window.validate_cases $(QEC_CODE_RANDOM_WINDOW_SMOKE_CASES)
cargo build --locked -p qec-code --features cli
python3 -m benchmarks.qec_code_random_window.run_local --cases $(QEC_CODE_RANDOM_WINDOW_SMOKE_CASES) --out $(QEC_CODE_RANDOM_WINDOW_SMOKE_DIR)/local-runs.jsonl --qec-code-bin target/debug/qec-code
python3 -m benchmarks.qec_code_random_window.summarize --cases $(QEC_CODE_RANDOM_WINDOW_SMOKE_CASES) --runs $(QEC_CODE_RANDOM_WINDOW_SMOKE_DIR)/local-runs.jsonl --out-dir $(QEC_CODE_RANDOM_WINDOW_SMOKE_DIR)/summary
printf '%s\n' '$(QEC_CODE_RANDOM_WINDOW_BASELINE_HEADER)' > $(QEC_CODE_RANDOM_WINDOW_SMOKE_DIR)/paper-baselines.empty.csv
python3 -m benchmarks.qec_code_random_window.compare_paper --cases $(QEC_CODE_RANDOM_WINDOW_SMOKE_CASES) --local-summary $(QEC_CODE_RANDOM_WINDOW_SMOKE_DIR)/summary/summary.csv --paper-baselines $(QEC_CODE_RANDOM_WINDOW_SMOKE_DIR)/paper-baselines.empty.csv --out-dir $(QEC_CODE_RANDOM_WINDOW_SMOKE_DIR)/comparison
qec-code-random-window-bench-full:
rm -rf $(QEC_CODE_RANDOM_WINDOW_FULL_DIR)
mkdir -p $(QEC_CODE_RANDOM_WINDOW_FULL_DIR)
python3 -m benchmarks.qec_code_random_window.validate_cases $(QEC_CODE_RANDOM_WINDOW_FULL_CASES)
cargo build --locked -p qec-code --features cli
python3 -m benchmarks.qec_code_random_window.run_local --cases $(QEC_CODE_RANDOM_WINDOW_FULL_CASES) --out $(QEC_CODE_RANDOM_WINDOW_FULL_DIR)/local-runs.jsonl --qec-code-bin target/debug/qec-code
python3 -m benchmarks.qec_code_random_window.summarize --cases $(QEC_CODE_RANDOM_WINDOW_FULL_CASES) --runs $(QEC_CODE_RANDOM_WINDOW_FULL_DIR)/local-runs.jsonl --out-dir $(QEC_CODE_RANDOM_WINDOW_FULL_DIR)/summary
# CODEDISTANCE_PAPER_RESULTS_DIR controls paper baseline import source
python3 -m benchmarks.qec_code_random_window.import_paper_baselines --cases $(QEC_CODE_RANDOM_WINDOW_FULL_CASES) --out $(QEC_CODE_RANDOM_WINDOW_FULL_DIR)/paper-baselines.csv
python3 -m benchmarks.qec_code_random_window.compare_paper --cases $(QEC_CODE_RANDOM_WINDOW_FULL_CASES) --local-summary $(QEC_CODE_RANDOM_WINDOW_FULL_DIR)/summary/summary.csv --paper-baselines $(QEC_CODE_RANDOM_WINDOW_FULL_DIR)/paper-baselines.csv --out-dir $(QEC_CODE_RANDOM_WINDOW_FULL_DIR)/comparison --strict-baselines
qec-code-random-window-bench-no-target-smoke:
rm -rf $(QEC_CODE_RANDOM_WINDOW_NO_TARGET_SMOKE_DIR)
mkdir -p $(QEC_CODE_RANDOM_WINDOW_NO_TARGET_SMOKE_DIR)
python3 -m benchmarks.qec_code_random_window.validate_cases $(QEC_CODE_RANDOM_WINDOW_NO_TARGET_SMOKE_CASES)
cargo build --locked --release -p qec-code --features cli
python3 -m benchmarks.qec_code_random_window.run_local --cases $(QEC_CODE_RANDOM_WINDOW_NO_TARGET_SMOKE_CASES) --out $(QEC_CODE_RANDOM_WINDOW_NO_TARGET_SMOKE_DIR)/local-runs.jsonl --qec-code-bin target/release/qec-code --build-profile release
python3 -m benchmarks.qec_code_random_window.summarize --cases $(QEC_CODE_RANDOM_WINDOW_NO_TARGET_SMOKE_CASES) --runs $(QEC_CODE_RANDOM_WINDOW_NO_TARGET_SMOKE_DIR)/local-runs.jsonl --out-dir $(QEC_CODE_RANDOM_WINDOW_NO_TARGET_SMOKE_DIR)/summary
qec-code-random-window-bench-no-target-multiseed-smoke:
rm -rf $(QEC_CODE_RANDOM_WINDOW_NO_TARGET_MULTISEED_SMOKE_DIR)
mkdir -p $(QEC_CODE_RANDOM_WINDOW_NO_TARGET_MULTISEED_SMOKE_DIR)
python3 -m benchmarks.qec_code_random_window.validate_cases $(QEC_CODE_RANDOM_WINDOW_NO_TARGET_SMOKE_CASES)
cargo build --locked --release -p qec-code --features cli
set -e; run_status=0; python3 -m benchmarks.qec_code_random_window.run_local --cases $(QEC_CODE_RANDOM_WINDOW_NO_TARGET_SMOKE_CASES) --out $(QEC_CODE_RANDOM_WINDOW_NO_TARGET_MULTISEED_SMOKE_DIR)/local-runs.jsonl --qec-code-bin target/release/qec-code --build-profile release --seeds 7 11 17 || run_status=$$?; if [ -f $(QEC_CODE_RANDOM_WINDOW_NO_TARGET_MULTISEED_SMOKE_DIR)/local-runs.jsonl ]; then python3 -m benchmarks.qec_code_random_window.summarize --cases $(QEC_CODE_RANDOM_WINDOW_NO_TARGET_SMOKE_CASES) --runs $(QEC_CODE_RANDOM_WINDOW_NO_TARGET_MULTISEED_SMOKE_DIR)/local-runs.jsonl --out-dir $(QEC_CODE_RANDOM_WINDOW_NO_TARGET_MULTISEED_SMOKE_DIR)/summary --expected-seeds 7 11 17; fi; exit $$run_status
qec-code-random-window-bench-no-target-ladder-smoke:
rm -rf $(QEC_CODE_RANDOM_WINDOW_NO_TARGET_LADDER_SMOKE_DIR)
mkdir -p $(QEC_CODE_RANDOM_WINDOW_NO_TARGET_LADDER_SMOKE_DIR)
python3 -m benchmarks.qec_code_random_window.validate_cases $(QEC_CODE_RANDOM_WINDOW_NO_TARGET_LADDER_SMOKE_CASES) --no-target-ladder-smoke
cargo build --locked --release -p qec-code --features cli
python3 -m benchmarks.qec_code_random_window.run_local --cases $(QEC_CODE_RANDOM_WINDOW_NO_TARGET_LADDER_SMOKE_CASES) --out $(QEC_CODE_RANDOM_WINDOW_NO_TARGET_LADDER_SMOKE_DIR)/local-runs.jsonl --qec-code-bin target/release/qec-code --build-profile release
python3 -m benchmarks.qec_code_random_window.summarize --cases $(QEC_CODE_RANDOM_WINDOW_NO_TARGET_LADDER_SMOKE_CASES) --runs $(QEC_CODE_RANDOM_WINDOW_NO_TARGET_LADDER_SMOKE_DIR)/local-runs.jsonl --out-dir $(QEC_CODE_RANDOM_WINDOW_NO_TARGET_LADDER_SMOKE_DIR)/summary
qec-code-random-window-bench-issue225-readiness-smoke:
rm -rf $(QEC_CODE_RANDOM_WINDOW_ISSUE225_READINESS_SMOKE_DIR)
mkdir -p $(QEC_CODE_RANDOM_WINDOW_ISSUE225_READINESS_SMOKE_DIR)
$(MAKE) qec-code-random-window-bench-no-target-ladder-smoke
$(MAKE) qec-code-random-window-bench-no-target-multiseed-smoke
python3 -m benchmarks.qec_code_random_window.issue225_readiness --evidence $(QEC_CODE_RANDOM_WINDOW_ISSUE225_EVIDENCE) --ladder-runs $(QEC_CODE_RANDOM_WINDOW_NO_TARGET_LADDER_SMOKE_DIR)/local-runs.jsonl --ladder-summary $(QEC_CODE_RANDOM_WINDOW_NO_TARGET_LADDER_SMOKE_DIR)/summary/summary.csv --multiseed-runs $(QEC_CODE_RANDOM_WINDOW_NO_TARGET_MULTISEED_SMOKE_DIR)/local-runs.jsonl --multiseed-summary $(QEC_CODE_RANDOM_WINDOW_NO_TARGET_MULTISEED_SMOKE_DIR)/summary/summary.csv --out-dir $(QEC_CODE_RANDOM_WINDOW_ISSUE225_READINESS_SMOKE_DIR)
# Release a new version: make release V=0.2.0
release:
ifeq ($(strip $(V)),)
$(error Usage: make release V=x.y.z)
endif
$(SED_I) 's/^version = ".*"/version = "$(V)"/' rstim/Cargo.toml
$(SED_I) 's/^version = ".*"/version = "$(V)"/' rsinter/Cargo.toml
$(SED_I) 's/^version = ".*"/version = "$(V)"/' rbposd/Cargo.toml
$(SED_I) 's/^version = ".*"/version = "$(V)"/' rmatching/Cargo.toml
cargo check --offline --workspace
cargo check --locked --workspace
git add rstim/Cargo.toml rsinter/Cargo.toml rbposd/Cargo.toml rmatching/Cargo.toml Cargo.lock
git commit -m "release: v$(V)"
git tag -a "v$(V)" -m "Release v$(V)"
git push origin $(DEFAULT_BRANCH) --tags
@echo "v$(V) pushed - GitHub Actions will create a GitHub Release"