diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8f456f5..6d8562f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -15,9 +15,9 @@ concurrency: env: FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true - ZIG_VERSION: "0.16.0" - ZIG_URL: https://ziglang.org/download/0.16.0/zig-x86_64-linux-0.16.0.tar.xz - ZIG_SHA256: 70e49664a74374b48b51e6f3fdfbf437f6395d42509050588bd49abe52ba3d00 + ZIG_VERSION: "0.17.1" + ZIG_URL: https://ziglang.org/download/0.17.1/zig-x86_64-linux-0.17.1.tar.xz + ZIG_SHA256: 3581863e3cbcfd0fce0efc682ce7e9e93da96668a977791d356a26d2a7e9b17a jobs: python: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 01a9504..4bb7eb2 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -15,9 +15,9 @@ concurrency: env: FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true - ZIG_VERSION: "0.16.0" - ZIG_URL: https://ziglang.org/download/0.16.0/zig-x86_64-linux-0.16.0.tar.xz - ZIG_SHA256: 70e49664a74374b48b51e6f3fdfbf437f6395d42509050588bd49abe52ba3d00 + ZIG_VERSION: "0.17.1" + ZIG_URL: https://ziglang.org/download/0.17.1/zig-x86_64-linux-0.17.1.tar.xz + ZIG_SHA256: 3581863e3cbcfd0fce0efc682ce7e9e93da96668a977791d356a26d2a7e9b17a jobs: build-release: @@ -76,7 +76,7 @@ jobs: run: tar -czf dist/a7-docs-site.tar.gz -C site dist - name: Archive release example artifacts - run: tar -czf dist/a7-example-artifacts-linux-x86_64-zig0.16.0-release.tar.gz -C build release + run: tar -czf dist/a7-example-artifacts-linux-x86_64-zig0.17.1-release.tar.gz -C build release - name: Verify release archive contents run: | @@ -88,7 +88,7 @@ jobs: --require dist/docs/agent-usage.md \ --require dist/docs/release.md \ --require dist/docs/status.md - uv run python scripts/verify_archive_contents.py dist/a7-example-artifacts-linux-x86_64-zig0.16.0-release.tar.gz \ + uv run python scripts/verify_archive_contents.py dist/a7-example-artifacts-linux-x86_64-zig0.17.1-release.tar.gz \ --require release/zig/src/001_hello.zig \ --require release/zig/bin/001_hello \ --require-glob-count "release/zig/src/*.zig=${example_count}" \ @@ -103,7 +103,7 @@ jobs: --require "$sdist" \ --require "$wheel" \ --require dist/a7-docs-site.tar.gz \ - --require dist/a7-example-artifacts-linux-x86_64-zig0.16.0-release.tar.gz + --require dist/a7-example-artifacts-linux-x86_64-zig0.17.1-release.tar.gz uv run python scripts/verify_release_manifest.py dist/SHA256SUMS - name: Generate release artifact attestations @@ -114,7 +114,7 @@ jobs: dist/a7_py-*.tar.gz dist/a7_py-*.whl dist/a7-docs-site.tar.gz - dist/a7-example-artifacts-linux-x86_64-zig0.16.0-release.tar.gz + dist/a7-example-artifacts-linux-x86_64-zig0.17.1-release.tar.gz - name: Upload release bundles uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a @@ -123,7 +123,7 @@ jobs: path: | dist/SHA256SUMS dist/a7-docs-site.tar.gz - dist/a7-example-artifacts-linux-x86_64-zig0.16.0-release.tar.gz + dist/a7-example-artifacts-linux-x86_64-zig0.17.1-release.tar.gz if-no-files-found: error retention-days: 7 @@ -167,4 +167,4 @@ jobs: dist/a7_py-*.tar.gz dist/a7_py-*.whl dist/a7-docs-site.tar.gz - dist/a7-example-artifacts-linux-x86_64-zig0.16.0-release.tar.gz + dist/a7-example-artifacts-linux-x86_64-zig0.17.1-release.tar.gz diff --git a/AGENTS.md b/AGENTS.md index 0c15a4e..4f675db 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -215,7 +215,7 @@ cut the sentence or mark the claim unchecked per S6. or prefix `*` as reference operations; pass lvalues directly to `ref` parameters and use ordinary field access after nil checks. - Native release archives are named with platform/toolchain context - (`a7-example-artifacts-linux-x86_64-zig0.16.0-.tar.gz`); keep + (`a7-example-artifacts-linux-x86_64-zig0.17.1-.tar.gz`); keep any docs or scripts that reference these filenames in sync. - This rule applies to A7 source only. Compiler internals follow the separate no-recursion rule (no recursion anywhere in `a7/`). diff --git a/README.md b/README.md index 5f82b62..0cb9b88 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ The compiler is under development. Read [Status](docs/STATUS.md) for known gaps. ## Quick start Install Python 3.13 or newer, [uv](https://docs.astral.sh/uv/), and -[Zig 0.16.0](https://ziglang.org/download/). Native qualification currently targets +[Zig 0.17.1](https://ziglang.org/download/). Native qualification currently targets Linux x86_64 with Python 3.13. Zig must be on `PATH` for `build` and `run`. ```bash diff --git a/a7/backends/zig.py b/a7/backends/zig.py index c32ccd9..7433716 100644 --- a/a7/backends/zig.py +++ b/a7/backends/zig.py @@ -319,8 +319,9 @@ def visitor(node): " .int, .float => return 0,", " .bool => return false,", " .optional => return null,", - ' .@"enum" => |info| return @field(T, info.fields[0].name),', - " // Fill in place. A `**` constant of many structs makes LLVM take", + # Zig 0.17: enum/struct/union type info uses field_names/field_types. + ' .@"enum" => |info| return @field(T, info.field_names[0]),', + " // Fill in place. A comptime @splat of many structs makes LLVM take", " // minutes on an optimized build.", " .array => |info| {", " var value: T = undefined;", @@ -332,10 +333,12 @@ def visitor(node): " .pointer => |info| return if (info.size == .slice) &.{} else undefined,", ' .@"struct" => |info| {', " var value: T = undefined;", - " inline for (info.fields) |field| @field(value, field.name) = __a7_zero(field.type);", + " inline for (info.field_names, info.field_types) |name, field_type| {", + " @field(value, name) = __a7_zero(field_type);", + " }", " return value;", " },", - ' .@"union" => |info| return @unionInit(T, info.fields[0].name, __a7_zero(info.fields[0].type)),', + ' .@"union" => |info| return @unionInit(T, info.field_names[0], __a7_zero(info.field_types[0])),', ' else => @compileError("a7: no zero value for " ++ @typeName(T)),', " }", "}", @@ -425,8 +428,8 @@ def _emit_preamble(self) -> str: lines.append("pub fn main(init: std.process.Init) void {") lines.append(" __a7_io = init.io;") if "stdout" in self._io_streams_needed: - # writerStreaming, not writer: Zig 0.16.0 File.writer starts - # in positional mode at offset 0, so each fresh writer + # writerStreaming, not writer: File.writer starts in + # positional mode at offset 0, so each fresh writer # overwrote earlier output when the stream is a regular file. lines.append(" __a7_stdout_writer = std.Io.File.stdout().writerStreaming(__a7_io.?, &__a7_stdout_buf);") lines.append(" __a7_stdout_is_tty = std.Io.File.stdout().isTty(__a7_io.?) catch false;") @@ -1872,7 +1875,7 @@ def _visit_const(self, node: ASTNode) -> None: element_type = self._emit_semantic_type(declaration_type.element_type) # Preserve backing constness while normalizing array pointers to slices. annotation = ( - f": (if (@typeInfo(@TypeOf({val})).pointer.is_const) " + f': (if (@typeInfo(@TypeOf({val})).pointer.attrs.@"const") ' f"[]const {element_type} else []{element_type})" ) name = self._declare_var_in_scope(name) if self._in_function else self._file_scope_name(name) @@ -1946,7 +1949,7 @@ def _visit_var(self, node: ASTNode) -> None: element_type = self._emit_semantic_type(declaration_type.element_type) # @TypeOf has no runtime side effects; the initializer executes once. zig_type = ( - f"(if (@typeInfo(@TypeOf({initial_value})).pointer.is_const) " + f'(if (@typeInfo(@TypeOf({initial_value})).pointer.attrs.@"const") ' f"[]const {element_type} else []{element_type})" ) elif concrete_function: @@ -3616,7 +3619,8 @@ def _default_value(self, type_node: ASTNode) -> str: if "__a7_zero(" in inner_default: # Aggregate elements: let the helper fill the array at run time. return f"__a7_zero({self._emit_type_node(type_node)})" - return f"[_]{elem}{{{inner_default}}} ** {size}" + # Zig 0.17 removed array multiplication (`a ** b`); use @splat. + return f"@as([{size}]{elem}, @splat({inner_default}))" elif kind == NodeKind.TYPE_POINTER: return "null" elif kind == NodeKind.TYPE_SLICE: @@ -3653,7 +3657,8 @@ def _default_value_for_elem(self, type_node: ASTNode) -> str: for array in reversed(arrays): elem = self._emit_type_node(array.element_type) size = self._emit_expr(array.size) - value = f"[_]{elem}{{{value}}} ** {size}" + # Zig 0.17 removed array multiplication (`a ** b`); use @splat. + value = f"@as([{size}]{elem}, @splat({value}))" return value # === I/O special-casing === diff --git a/a7/cli.py b/a7/cli.py index 133c53e..0781b2c 100644 --- a/a7/cli.py +++ b/a7/cli.py @@ -79,9 +79,9 @@ f" {name:<8} {summary}" for name, summary in COMMANDS.items() ) -ZIG_VERSION = "0.16.0" +ZIG_VERSION = "0.17.1" DOCTOR_SCHEMA_VERSION = "1.0" -QUALIFICATION_TARGET = "Linux x86_64, Python 3.13, Zig 0.16.0" +QUALIFICATION_TARGET = "Linux x86_64, Python 3.13, Zig 0.17.1" EXIT_CODE_NAMES = { int(ExitCode.SUCCESS): "success", diff --git a/a7/layout.py b/a7/layout.py index 005ed23..c0a7dca 100644 --- a/a7/layout.py +++ b/a7/layout.py @@ -3,7 +3,7 @@ Computes the memory layout the Zig backend produces for each named struct: field offsets, size, alignment, 64B cache lines touched, and line utilization. Zig lays out auto structs by sorting fields by alignment, largest first, with -ties keeping declaration order (verified against @offsetOf on Zig 0.16.0), +ties keeping declaration order (verified against @offsetOf on Zig 0.17.1), then packing sequentially with natural alignment and padding the total to the struct alignment. The numbers are those of a debug or release build; `test/test_layout_matches_zig.py` compares them with Zig's @sizeOf and diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.md index 32c6944..4b961d1 100644 --- a/docs/CHANGELOG.md +++ b/docs/CHANGELOG.md @@ -5,6 +5,11 @@ belong in git history, not in long Markdown logs. ## Unreleased +- Zig toolchain pin moves from 0.16.0 to 0.17.1. CI/release downloads, doctor + checks, archive names (`zig0.17.1`), docs, and version-asserting tests + follow. Emitted array defaults use `@splat` because Zig 0.17 removed + `a ** b` array multiplication. + - Docs, site coverage, README, and feature pins sync cut-surface and `--timings` wording after the surface-cut, perf-baseline, and P-MEM packet tracks. Safety alias / formal-discharge gaps stay open on their own tracks; diff --git a/docs/RELEASE.md b/docs/RELEASE.md index 29be1de..3bde743 100644 --- a/docs/RELEASE.md +++ b/docs/RELEASE.md @@ -24,7 +24,7 @@ A release should contain: - Python 3.13+ - `uv` -- Zig 0.16.0 on `PATH` +- Zig 0.17.1 on `PATH` - Bun 1.3+ for the docs site ## Shared-machine limits @@ -180,7 +180,7 @@ uv run python scripts/verify_release_manifest.py SHA256SUMS gh attestation verify a7_py-*.tar.gz --repo code5717/a7-py gh attestation verify a7_py-*.whl --repo code5717/a7-py gh attestation verify a7-docs-site.tar.gz --repo code5717/a7-py -gh attestation verify a7-example-artifacts-linux-x86_64-zig0.16.0-release.tar.gz --repo code5717/a7-py +gh attestation verify a7-example-artifacts-linux-x86_64-zig0.17.1-release.tar.gz --repo code5717/a7-py ``` When building locally, remove `dist/` before `uv build`. The release workflow diff --git a/docs/STATUS.md b/docs/STATUS.md index dcfcd9b..9d386f7 100644 --- a/docs/STATUS.md +++ b/docs/STATUS.md @@ -3,12 +3,18 @@ This is the single working status document for current gaps, roadmap, and implementation priorities. Keep `docs/CHANGELOG.md` short and release-facing. -The 2026-11-12 push checkpoint passed package build, docs style, secrets, -61 error-stage checks and site checks. The active Zig 0.17.0 conflicts with -required Zig 0.16.0; native qualification remains incomplete. The non-native -run passed 4,657 tests and failed five CLI cases on that version check. -The site dependency audit reports one high-severity markdown-it advisory. -[Push check record](audits/2026-11-12-push-checks.md). +The toolchain pin is Zig 0.17.1 (`a7/cli.py` `ZIG_VERSION`, CI/release +workflows, archive prefix `zig0.17.1`). Native builds require that exact +version on `PATH`. Local verification on this pin: examples E2E 51/51, +debug/release/fast artifacts, error-stage 61/61, docs-style, secrets, +package build, and wheel/sdist native install all passed. Pytest is +5223 passed / 11 failed / 1 xfailed; the 11 failures match `origin/master` +(safety alias / generic-origin / callee-note wording) and are not Zig 0.17 +regressions. +[Zig 0.17.1 upgrade verification](audits/2026-11-12-zig-0.17.1-upgrade.md) +(commit `e493e11`). The earlier +[2026-11-12 push checkpoint](audits/2026-11-12-push-checks.md) remains a +historical record of the host Zig 0.17.0 / required 0.16.0 mismatch. The checked storage-identity adapter passes all sixteen original caller outcomes, including repeated_site_live. Eleven importer invariants, 23 focused diff --git a/docs/audits/2026-11-12-zig-0.17.1-upgrade.md b/docs/audits/2026-11-12-zig-0.17.1-upgrade.md new file mode 100644 index 0000000..e51f473 --- /dev/null +++ b/docs/audits/2026-11-12-zig-0.17.1-upgrade.md @@ -0,0 +1,46 @@ +# Zig 0.17.1 upgrade verification, 2026-11-12 + +Evidence for the toolchain pin move from Zig 0.16.0 to 0.17.1. +This record replaces the incomplete [2026-11-12 push checkpoint](2026-11-12-push-checks.md), +which ran against host Zig 0.17.0 while the repository still required 0.16.0. + +## Snapshot + +| Field | Value | +| --- | --- | +| Branch | `cursor/zig-0.17-upgrade-ac1b` | +| Commit | `e493e11b2436c9a14cfb29688bf5cb5666ce19e3` | +| Zig | `0.17.1` on `PATH` | +| Python | 3.13.15 (uv-managed venv) | +| Platform | V1 qualification target (Linux x86_64) | + +Commits on the branch: `4004f41` (pin + emitter), `4324daf` (layout probe +`field_names`/`field_types`), `e493e11` (STATUS link to this verification). + +## Commands and results + +| Command | Observed result | +| --- | --- | +| `zig version` | `0.17.1` | +| `uv run a7 doctor` | exit 0; `Zig 0.17.1` on qualification target | +| `uv run a7 run examples/001_hello.a7` | `Hello, World!` | +| `uv run a7 run examples/005_for_loop.a7` | expected for-loop output | +| `uv run a7 run examples/035_matrix.a7` | `c = { 6, 8, 10, 12 }` | +| `uv run a7 run examples/042_gradebook.a7` | expected gradebook output | +| Targeted pytest (`test_cli_workflows`, `test_release_tooling`, `test_codegen_zig`, `test_codegen_emit`, `test_layout`, `test_zig_backend_runtime`, `test_pipeline_native`, `test_inferred_slice_declarations`) after emitter fixes | 204 passed | +| `A7_PYTEST_WORKERS=4 ./run_all_tests.sh` (tree with pin + emitter; before layout-probe commit) | 10/11 checks. Pytest: 14 failed, 5220 passed, 1 xfailed (3 layout probe + 11 pre-existing). Examples E2E 51/51. Debug/release/fast artifacts 51/51 each. Bench 17/17. Error-stage 61/61. Docs style, secrets, package build, wheel/sdist native install: pass. | +| `PYTHONPATH=. uv run pytest -q -n 4` after `4324daf` layout-probe fix | **11 failed, 5223 passed, 1 xfailed** | +| Same 11 failing tests on `origin/master` at `5c28441` (semantic/safety only; Zig version irrelevant) | identical 11 failures | + +The 11 remaining pytest failures are exact-array alias lifetimes, generic +array-origin / numeric-match escape cases, and callee-origin note wording. +They are not Zig 0.17.1 regressions. + +## Limits + +- The first full-gate pytest line still includes the three layout failures fixed + in `4324daf`; use the post-fix pytest line above for current counts. +- `./run_all_tests.sh` was not re-run end-to-end after `4324daf`; only the + pytest suite was re-run. Non-pytest checks already passed under Zig 0.17.1 + in the first gate. +- This is not a release tag or V1 qualification. diff --git a/docs/research/language-needs/08-native-release.md b/docs/research/language-needs/08-native-release.md index f9875e6..67d7db9 100644 --- a/docs/research/language-needs/08-native-release.md +++ b/docs/research/language-needs/08-native-release.md @@ -25,9 +25,9 @@ artifact naming/provenance. import in `a7/` except the Zig keyword table (`zig.py:436`). A7 source has no `extern` declaration form; SPEC §Interoperability ("Clean C ABI compatibility") is aspiration, not implementation. -- V1 qualification target is Linux x86-64, Python 3.13, Zig 0.16.0 +- V1 qualification target is Linux x86-64, Python 3.13, Zig 0.17.1 (`a7/cli.py:100-105`). Release workflow pins - `zig-x86_64-linux-0.16.0` (`.github/workflows/release.yml:19`). + `zig-x86_64-linux-0.17.1` (`.github/workflows/release.yml:19`). ## 2. ReleaseFast check-stripping vs L39 @@ -113,7 +113,7 @@ Deferred: async completion, zero-copy mapping, custom allocators. | Tier | Target | Gate | |---|---|---| -| 1 supported | Linux x86-64, Zig 0.16.0 | full gate incl. E2E | +| 1 supported | Linux x86-64, Zig 0.17.1 | full gate incl. E2E | | 2 best-effort | Linux aarch64, macOS arm64 | `build_examples.py` smoke | | 3 declared-unsupported | Windows, 32-bit | clear diagnostic, no silent UB | @@ -126,7 +126,7 @@ state the tier. ## 7. Artifact naming / provenance (current + fix) -- Current: `a7-example-artifacts-linux-x86_64-zig0.16.0-.tar.gz` +- Current: `a7-example-artifacts-linux-x86_64-zig0.17.1-.tar.gz` (release.yml:79) — platform/toolchain/profile encoded. Good. - Provenance: `scripts/generate_release_manifest.py` → `dist/SHA256SUMS`, verified by `verify_release_manifest.py`, plus `gh attestation verify` diff --git a/docs/research/language-needs/16-ecosystem-targets.md b/docs/research/language-needs/16-ecosystem-targets.md index 9b831b3..f45494e 100644 --- a/docs/research/language-needs/16-ecosystem-targets.md +++ b/docs/research/language-needs/16-ecosystem-targets.md @@ -4,7 +4,7 @@ - One backend only: `a7/backends/__init__.py` registers `BACKENDS = {"zig": ...}`. CLI `--backend` accepts only `zig` (`a7/cli.py:234`). -- V1 qualification target is Linux x86-64, Python 3.13, Zig 0.16.0 (`a7/cli.py:101`). +- V1 qualification target is Linux x86-64, Python 3.13, Zig 0.17.1 (`a7/cli.py` `ZIG_VERSION`). - Emit path is `zig build-exe` on the host (`scripts/build_examples.py:120`); no `--target` passthrough exists in `a7/` or `scripts/`. - Stdlib is two virtual modules: `std/io`, `std/math` (`docs/SPEC.md` §10.3). diff --git a/scripts/project_status.py b/scripts/project_status.py index 90388bb..ce3aee8 100644 --- a/scripts/project_status.py +++ b/scripts/project_status.py @@ -18,8 +18,8 @@ def project_status() -> dict[str, object]: "example_count": len(examples), "golden_output_count": len(goldens), "backend": "zig", - "zig_version": "0.16.0", - "release_archive_prefix": "a7-example-artifacts-linux-x86_64-zig0.16.0", + "zig_version": "0.17.1", + "release_archive_prefix": "a7-example-artifacts-linux-x86_64-zig0.17.1", } diff --git a/scripts/verify_wheel_install.py b/scripts/verify_wheel_install.py index 42a3992..e063f0a 100644 --- a/scripts/verify_wheel_install.py +++ b/scripts/verify_wheel_install.py @@ -115,7 +115,7 @@ def verify_wheel(wheel: Path) -> None: raise RuntimeError(f"installed CLI version disagrees with wheel metadata: {version.stdout!r}") doctor = run_cmd([str(a7_cli), "doctor"], cwd=work, env=env) qualified = sys.version_info[:2] == (3, 13) and sys.platform == "linux" and platform.machine() == "x86_64" - if doctor.returncode != (0 if qualified else 2) or "Zig 0.16.0:" not in doctor.stdout: + if doctor.returncode != (0 if qualified else 2) or "Zig 0.17.1:" not in doctor.stdout: raise RuntimeError(f"installed CLI doctor failed: {doctor.stdout}\n{doctor.stderr}") if not qualified and "outside the V1 qualification target" not in doctor.stderr: raise RuntimeError("installed CLI doctor omitted the unsupported-environment diagnostic") diff --git a/site/docs/agent-retrieval.md b/site/docs/agent-retrieval.md index 796cf66..dfef1f2 100644 --- a/site/docs/agent-retrieval.md +++ b/site/docs/agent-retrieval.md @@ -27,7 +27,7 @@ The missing-path probe was `http://127.0.0.1:4174/a7-py/docs/retrieval-missing-p ### Install and run a first program -Pass. `docs/start.md` states the prerequisites: Python 3.13 or newer, uv, Git, and Zig 0.16.0 on PATH. It supplies the following commands: +Pass. `docs/start.md` states the prerequisites: Python 3.13 or newer, uv, Git, and Zig 0.17.1 on PATH. It supplies the following commands: ```bash git clone https://github.com/code5717/a7-py.git diff --git a/site/public/docs/compiler.md b/site/public/docs/compiler.md index 6d8a4f6..f4548b3 100644 --- a/site/public/docs/compiler.md +++ b/site/public/docs/compiler.md @@ -11,7 +11,7 @@ order: 31 The installed entry point is `a7.cli:main`. Run `uv run a7` from a synced checkout, or use the equivalent `uv run python main.py` wrapper. Zig is the only public backend. File-first commands emit Zig. The `build` and `run` -commands also invoke Zig 0.16.0. +commands also invoke Zig 0.17.1. ## Pipeline @@ -48,7 +48,7 @@ Imported modules never need their own `main`. `--timings` prints per-stage wall times (tokenize, parse, semantic, safety, codegen). On `build` and `run` it also reports the Zig `build-exe` hop. JSON payloads always include `stages.*.ms` when a stage ran; emitted Zig is unchanged. -Both native commands require exactly Zig 0.16.0. The default profile is `debug`, +Both native commands require exactly Zig 0.17.1. The default profile is `debug`, which selects Zig Debug. `release` selects ReleaseSafe and keeps runtime checks. `fast` selects ReleaseFast and removes them. No profile closes the current alias or lifetime safety gaps. @@ -208,7 +208,7 @@ compilation is not sandboxing. See [memory](/a7-py/docs/language/memory.md) and ## Zig backend -The public backend targets Zig 0.16.0. Keep compile, build, and run results +The public backend targets Zig 0.17.1. Keep compile, build, and run results separate when reporting a feature's status. Use the debug and release artifact builders on [Release](/a7-py/docs/release.md) for native execution checks. diff --git a/site/public/docs/index.md b/site/public/docs/index.md index 0b6ffc8..b01c573 100644 --- a/site/public/docs/index.md +++ b/site/public/docs/index.md @@ -9,7 +9,7 @@ order: 0 # A7 documentation A7 is an experimental, statically typed systems language. Its Python compiler -checks `.a7` source and emits a single Zig file. Zig 0.16.0 builds the native +checks `.a7` source and emits a single Zig file. Zig 0.17.1 builds the native program. Start below, then read the tour or the language reference. ## Start in two minutes diff --git a/site/public/docs/manifest.json b/site/public/docs/manifest.json index 54869a8..c57f5ce 100644 --- a/site/public/docs/manifest.json +++ b/site/public/docs/manifest.json @@ -2,7 +2,7 @@ "schemaVersion": 1, "sourceRevision": { "kind": "documentation-sha256", - "value": "25773ba15e3ef7b92b58e37330aac6c15291fab8412bda63a6e98570e81f2cf0" + "value": "eb7189210095e32a41842c28da6d205770570dcbeda5d106094c47ea587d26dd" }, "qualification": "Documentation content digest, not a compiler verification result. Evidence links identify the source authority.", "pages": [ diff --git a/site/public/docs/release.md b/site/public/docs/release.md index c7629b2..13e90eb 100644 --- a/site/public/docs/release.md +++ b/site/public/docs/release.md @@ -85,7 +85,7 @@ before release. Fetch live Markdown without JavaScript after deployment. ## Native artifacts Archive filenames carry the platform and toolchain, for example -`a7-example-artifacts-linux-x86_64-zig0.16.0-release.tar.gz`. +`a7-example-artifacts-linux-x86_64-zig0.17.1-release.tar.gz`. The release workflow derives the expected example count through `scripts/project_status.py` and verifies archive membership. diff --git a/site/public/docs/start.md b/site/public/docs/start.md index 755e1f9..4999684 100644 --- a/site/public/docs/start.md +++ b/site/public/docs/start.md @@ -12,12 +12,12 @@ order: 1 - Python 3.13 or newer. - [uv](https://docs.astral.sh/uv/) for the Python environment. -- [Zig 0.16.0](https://ziglang.org/download/) on `PATH` to build native programs. +- [Zig 0.17.1](https://ziglang.org/download/) on `PATH` to build native programs. - Git to clone the repository. The compiler emits Zig source. The `build` and `run` commands invoke Zig. `check` validates the full A7 pipeline without writing files or requiring Zig. -The V1 qualification target is Linux x86_64 with Python 3.13 and Zig 0.16.0. +The V1 qualification target is Linux x86_64 with Python 3.13 and Zig 0.17.1. Bun is only needed for [website contributors](/a7-py/docs/project.md). ## Install @@ -31,7 +31,7 @@ uv run a7 doctor ``` Run the following commands from the `a7-py` repository root. `zig version` -should print `0.16.0`, the toolchain version used by this checkout's release gates. +should print `0.17.1`, the toolchain version used by this checkout's release gates. The release workflow attaches package files to GitHub releases; it does not publish to a package registry. @@ -111,7 +111,7 @@ flags. See [all CLI options](/a7-py/docs/compiler.md). | `a7` not found | Run `uv sync` in the repository root and invoke `uv run a7`. | | Input file cannot be read | Confirm the working directory and source path. Compiler exit code 3 means an I/O failure. | | `zig` not found | Install Zig and add its executable directory to `PATH`. | -| Generated code fails with another Zig version | Check `zig version`; the supported toolchain is 0.16.0. | +| Generated code fails with another Zig version | Check `zig version`; the supported toolchain is 0.17.1. | | Compilation succeeds but there is no executable | The file-first command emits `.zig` source. Use `a7 build FILE` or `a7 run FILE` for native execution. | | A7 rejects a program from the specification | Check its [feature status](/a7-py/docs/language.md) and the diagnostic stage before assuming executable support. | diff --git a/site/public/docs/status.md b/site/public/docs/status.md index efc6239..40ab41b 100644 --- a/site/public/docs/status.md +++ b/site/public/docs/status.md @@ -33,7 +33,7 @@ incomplete. | Area | Status | Qualification | | --- | --- | --- | -| Zig source emission | supported | Only public backend; targets Zig 0.16.0. | +| Zig source emission | supported | Only public backend; targets Zig 0.17.1. | | Primitive values, functions, loops, structs | supported | See the reference and runnable examples for restrictions. | | References and explicit allocation | limited | Nil guards, tracked fields, direct aliases and exact literal-index fixed-array aliases have bounded checks; complete lifetime guarantees remain unavailable. | | Generic functions and structs | limited | Simple top-level specialization works; call-chain propagation is incomplete. | diff --git a/site/public/llms-full.txt b/site/public/llms-full.txt index 6a0b149..4cff57f 100644 --- a/site/public/llms-full.txt +++ b/site/public/llms-full.txt @@ -5,7 +5,7 @@ Source: https://code5717.github.io/a7-py/docs/index.md # A7 documentation A7 is an experimental, statically typed systems language. Its Python compiler -checks `.a7` source and emits a single Zig file. Zig 0.16.0 builds the native +checks `.a7` source and emits a single Zig file. Zig 0.17.1 builds the native program. Start below, then read the tour or the language reference. ## Start in two minutes @@ -104,12 +104,12 @@ Source: https://code5717.github.io/a7-py/docs/start.md - Python 3.13 or newer. - [uv](https://docs.astral.sh/uv/) for the Python environment. -- [Zig 0.16.0](https://ziglang.org/download/) on `PATH` to build native programs. +- [Zig 0.17.1](https://ziglang.org/download/) on `PATH` to build native programs. - Git to clone the repository. The compiler emits Zig source. The `build` and `run` commands invoke Zig. `check` validates the full A7 pipeline without writing files or requiring Zig. -The V1 qualification target is Linux x86_64 with Python 3.13 and Zig 0.16.0. +The V1 qualification target is Linux x86_64 with Python 3.13 and Zig 0.17.1. Bun is only needed for [website contributors](/a7-py/docs/project.md). ## Install @@ -123,7 +123,7 @@ uv run a7 doctor ``` Run the following commands from the `a7-py` repository root. `zig version` -should print `0.16.0`, the toolchain version used by this checkout's release gates. +should print `0.17.1`, the toolchain version used by this checkout's release gates. The release workflow attaches package files to GitHub releases; it does not publish to a package registry. @@ -203,7 +203,7 @@ flags. See [all CLI options](/a7-py/docs/compiler.md). | `a7` not found | Run `uv sync` in the repository root and invoke `uv run a7`. | | Input file cannot be read | Confirm the working directory and source path. Compiler exit code 3 means an I/O failure. | | `zig` not found | Install Zig and add its executable directory to `PATH`. | -| Generated code fails with another Zig version | Check `zig version`; the supported toolchain is 0.16.0. | +| Generated code fails with another Zig version | Check `zig version`; the supported toolchain is 0.17.1. | | Compilation succeeds but there is no executable | The file-first command emits `.zig` source. Use `a7 build FILE` or `a7 run FILE` for native execution. | | A7 rejects a program from the specification | Check its [feature status](/a7-py/docs/language.md) and the diagnostic stage before assuming executable support. | @@ -2015,7 +2015,7 @@ Source: https://code5717.github.io/a7-py/docs/compiler.md The installed entry point is `a7.cli:main`. Run `uv run a7` from a synced checkout, or use the equivalent `uv run python main.py` wrapper. Zig is the only public backend. File-first commands emit Zig. The `build` and `run` -commands also invoke Zig 0.16.0. +commands also invoke Zig 0.17.1. ## Pipeline @@ -2052,7 +2052,7 @@ Imported modules never need their own `main`. `--timings` prints per-stage wall times (tokenize, parse, semantic, safety, codegen). On `build` and `run` it also reports the Zig `build-exe` hop. JSON payloads always include `stages.*.ms` when a stage ran; emitted Zig is unchanged. -Both native commands require exactly Zig 0.16.0. The default profile is `debug`, +Both native commands require exactly Zig 0.17.1. The default profile is `debug`, which selects Zig Debug. `release` selects ReleaseSafe and keeps runtime checks. `fast` selects ReleaseFast and removes them. No profile closes the current alias or lifetime safety gaps. @@ -2212,7 +2212,7 @@ compilation is not sandboxing. See [memory](/a7-py/docs/language/memory.md) and ## Zig backend -The public backend targets Zig 0.16.0. Keep compile, build, and run results +The public backend targets Zig 0.17.1. Keep compile, build, and run results separate when reporting a feature's status. Use the debug and release artifact builders on [Release](/a7-py/docs/release.md) for native execution checks. @@ -2257,7 +2257,7 @@ incomplete. | Area | Status | Qualification | | --- | --- | --- | -| Zig source emission | supported | Only public backend; targets Zig 0.16.0. | +| Zig source emission | supported | Only public backend; targets Zig 0.17.1. | | Primitive values, functions, loops, structs | supported | See the reference and runnable examples for restrictions. | | References and explicit allocation | limited | Nil guards, tracked fields, direct aliases and exact literal-index fixed-array aliases have bounded checks; complete lifetime guarantees remain unavailable. | | Generic functions and structs | limited | Simple top-level specialization works; call-chain propagation is incomplete. | @@ -2562,7 +2562,7 @@ before release. Fetch live Markdown without JavaScript after deployment. ## Native artifacts Archive filenames carry the platform and toolchain, for example -`a7-example-artifacts-linux-x86_64-zig0.16.0-release.tar.gz`. +`a7-example-artifacts-linux-x86_64-zig0.17.1-release.tar.gz`. The release workflow derives the expected example count through `scripts/project_status.py` and verifies archive membership. diff --git a/test/conftest.py b/test/conftest.py index aa385b6..11b45c8 100644 --- a/test/conftest.py +++ b/test/conftest.py @@ -55,7 +55,7 @@ def zig_version(binary: str) -> str: @pytest.fixture(scope="session") def zig() -> str: binary = zig_binary() - assert zig_version(binary) == "0.16.0", f"expected zig 0.16.0, got {zig_version(binary)}" + assert zig_version(binary) == "0.17.1", f"expected zig 0.17.1, got {zig_version(binary)}" return binary diff --git a/test/test_cli_workflows.py b/test/test_cli_workflows.py index 7398290..83124f5 100644 --- a/test/test_cli_workflows.py +++ b/test/test_cli_workflows.py @@ -115,7 +115,7 @@ def test_wrong_zig_and_native_build_failure(tmp_path): env = fake_zig(tmp_path, 'print("0.15.0")\n') rejected = cli(tmp_path, 'build', source, env=env) assert rejected.returncode == 2 and 'found 0.15.0' in rejected.stderr - env = fake_zig(tmp_path, 'import sys\nif sys.argv[1] == "version": print("0.16.0")\nelse:\n print("native build rejected", file=sys.stderr)\n sys.exit(1)\n') + env = fake_zig(tmp_path, 'import sys\nif sys.argv[1] == "version": print("0.17.1")\nelse:\n print("native build rejected", file=sys.stderr)\n sys.exit(1)\n') output = tmp_path / 'previous-binary' output.write_bytes(b'previous good build') failed = cli(tmp_path, 'build', source, '-o', output, env=env) @@ -129,7 +129,7 @@ def test_run_forwards_arguments_cwd_and_exit_at_process_boundary(tmp_path): env = fake_zig(tmp_path, '''import sys from pathlib import Path if sys.argv[1] == 'version': - print('0.16.0') + print('0.17.1') else: output = Path(next(arg.split('=', 1)[1] for arg in sys.argv if arg.startswith('-femit-bin='))) output.write_text('#!' + sys.executable + '\\nimport json, os, sys\\nprint(json.dumps([os.getcwd(), sys.argv[1:]]))\\nsys.exit(23)\\n') @@ -230,7 +230,7 @@ def test_build_refuses_a7_output_and_names_it(tmp_path): # toolchain version check. source = tmp_path / 'dot.a7' source.write_text(LAYOUT_SOURCE) - env = fake_zig(tmp_path, 'print("0.16.0")\n') + env = fake_zig(tmp_path, 'print("0.17.1")\n') target = tmp_path / 'out.a7' result = cli(tmp_path, 'build', source, '-o', target, env=env) assert result.returncode == 3, result.stdout + result.stderr diff --git a/test/test_compound_assignment_types.py b/test/test_compound_assignment_types.py index 8efaab0..bee28cb 100644 --- a/test/test_compound_assignment_types.py +++ b/test/test_compound_assignment_types.py @@ -1,6 +1,6 @@ """Compound-assignment operand types through the real CLI and real Zig. -Rejected cases are programs Zig 0.16.0 rejects after A7 emits them (TYP-05). +Rejected cases are programs Zig 0.17.1 rejects after A7 emits them (TYP-05). Accepted cases are programs Zig builds today; they must stay accepted. Zig checks are compile-only (`build-obj -fno-emit-bin`); nothing is executed. """ @@ -62,9 +62,9 @@ def run_cli(source_path: Path, output_path: Path) -> tuple[subprocess.CompletedP @pytest.fixture(scope="module") def zig(): executable = os.environ.get("A7_TEST_ZIG") or shutil.which("zig") - assert executable, "Zig 0.16.0 required: set A7_TEST_ZIG or PATH" + assert executable, "Zig 0.17.1 required: set A7_TEST_ZIG or PATH" version = subprocess.run([executable, "version"], capture_output=True, text=True) - assert version.returncode == 0 and version.stdout.strip() == "0.16.0", version + assert version.returncode == 0 and version.stdout.strip() == "0.17.1", version return executable diff --git a/test/test_constant_folding_exact.py b/test/test_constant_folding_exact.py index 23d4092..ce8e007 100644 --- a/test/test_constant_folding_exact.py +++ b/test/test_constant_folding_exact.py @@ -1,10 +1,10 @@ """Constant folding must preserve types and exact integer results. Programs are compiled with the real CLI (main.py) and built with the real Zig -0.16.0 toolchain in Debug and ReleaseFast. Expected outputs are written by hand +0.17.1 toolchain in Debug and ReleaseFast. Expected outputs are written by hand from the A7 source, not by running the compiler. Nothing is mocked. -Set A7_TEST_ZIG to a Zig 0.16.0 binary or put zig on PATH. Missing tools fail +Set A7_TEST_ZIG to a Zig 0.17.1 binary or put zig on PATH. Missing tools fail explicitly. A constant its destination cannot represent (a shift past the width, an out-of-range sum) must exit 6. Float constants that overflow f64 are in test_float_nonfinite_folding.py. @@ -33,9 +33,9 @@ @pytest.fixture(scope="module") def zig(): executable = os.environ.get("A7_TEST_ZIG") or shutil.which("zig") - assert executable, "Zig 0.16.0 required: set A7_TEST_ZIG or PATH" + assert executable, "Zig 0.17.1 required: set A7_TEST_ZIG or PATH" version = subprocess.run([executable, "version"], capture_output=True, text=True) - assert version.returncode == 0 and version.stdout.strip() == "0.16.0", version + assert version.returncode == 0 and version.stdout.strip() == "0.17.1", version return executable diff --git a/test/test_exact_constant_arithmetic.py b/test/test_exact_constant_arithmetic.py index a92c851..68786f8 100644 --- a/test/test_exact_constant_arithmetic.py +++ b/test/test_exact_constant_arithmetic.py @@ -2,7 +2,7 @@ Ledger L61 (`docs/plan/decisions.md`) and SPEC 4.2.1. The first half checks `a7/exact_constants.py` directly; the second half runs whole programs through -the compiler and, where they are accepted, through Zig 0.16.0 in the debug and +the compiler and, where they are accepted, through Zig 0.17.1 in the debug and fast profiles. Expected values are worked out by hand from the A7 source. Resource-limit contracts are exercised in test_exact_resource_policy.py. diff --git a/test/test_feature_pins.py b/test/test_feature_pins.py index 1d3f8fd..35475e9 100644 --- a/test/test_feature_pins.py +++ b/test/test_feature_pins.py @@ -53,9 +53,9 @@ def test_bench_corpus_shape_is_pinned(): @pytest.fixture(scope="module") def zig(): executable = os.environ.get("A7_TEST_ZIG") or shutil.which("zig") - assert executable, "Zig 0.16.0 required: set A7_TEST_ZIG or PATH" + assert executable, "Zig 0.17.1 required: set A7_TEST_ZIG or PATH" version = subprocess.run([executable, "version"], capture_output=True, text=True) - assert version.returncode == 0 and version.stdout.strip() == "0.16.0", version + assert version.returncode == 0 and version.stdout.strip() == "0.17.1", version return executable diff --git a/test/test_float_nonfinite_folding.py b/test/test_float_nonfinite_folding.py index 951b8ac..a97c533 100644 --- a/test/test_float_nonfinite_folding.py +++ b/test/test_float_nonfinite_folding.py @@ -8,7 +8,7 @@ Each constant program below has a typed twin that moves one operand into an `f64` variable. The twin must give the IEEE answer and the constant program the exact answer. Expected outputs are derived by hand from the A7 source. -Programs are built with Zig 0.16.0 in Debug and ReleaseFast. +Programs are built with Zig 0.17.1 in Debug and ReleaseFast. NaN is never asserted through its printed text. IEEE 754 does not specify the sign bit of a NaN and Zig prints `nan` or `-nan` depending on where the value diff --git a/test/test_inferred_slice_declarations.py b/test/test_inferred_slice_declarations.py index 64e6042..03428e2 100644 --- a/test/test_inferred_slice_declarations.py +++ b/test/test_inferred_slice_declarations.py @@ -222,7 +222,7 @@ def test_immutable_slice_backend_representation(profile, tmp_path, zig): assertion = ( f" comptime {{ if (@typeInfo(@TypeOf({name})).pointer.size != .slice) " f'@compileError("{name} must be a slice"); ' - f"if (@typeInfo(@TypeOf({name})).pointer.is_const != {is_const}) " + f'if (@typeInfo(@TypeOf({name})).pointer.attrs.@"const" != {is_const}) ' f'@compileError("{name} backing constness changed"); ' f"if (@typeInfo(@TypeOf({name})).pointer.child != {element}) " f'@compileError("{name} element type changed"); }}\n' diff --git a/test/test_layout.py b/test/test_layout.py index 352fb38..55f3a6e 100644 --- a/test/test_layout.py +++ b/test/test_layout.py @@ -1,6 +1,6 @@ """Tests for the struct layout view (`a7 check --layout`). -Expected sizes and offsets in these tests are pinned to Zig 0.16.0's own +Expected sizes and offsets in these tests are pinned to Zig 0.17.1's own @sizeOf/@offsetOf output for the same shapes, not derived from the layout module, so a layout regression cannot silently move them. """ @@ -74,7 +74,7 @@ def test_offsets_match_zig_ground_truth(tmp_path): } """ got = layouts_for(tmp_path, source) - # Zig 0.16.0 @sizeOf/@offsetOf: Person 24 (age@16), Employee 32 + # Zig 0.17.1 @sizeOf/@offsetOf: Person 24 (age@16), Employee 32 # (person@0, id@24), Blob 24 (b@0, d@8, a@20, c@21). person = got["Person"] assert person.size == 24 and person.align == 8 diff --git a/test/test_layout_matches_zig.py b/test/test_layout_matches_zig.py index ac3f4c9..35e4e85 100644 --- a/test/test_layout_matches_zig.py +++ b/test/test_layout_matches_zig.py @@ -55,8 +55,8 @@ test "a7 layout probe" { inline for (.{ %s }) |S| { std.debug.print("LAYOUT {s} size={d} align={d}", .{ @typeName(S), @sizeOf(S), @alignOf(S) }); - inline for (@typeInfo(S).@"struct".fields) |f| { - std.debug.print(" {s}@{d}+{d}", .{ f.name, @offsetOf(S, f.name), @sizeOf(f.type) }); + inline for (@typeInfo(S).@"struct".field_names, @typeInfo(S).@"struct".field_types) |name, field_type| { + std.debug.print(" {s}@{d}+{d}", .{ name, @offsetOf(S, name), @sizeOf(field_type) }); } std.debug.print("\\n", .{}); } diff --git a/test/test_module_alias_shadowing.py b/test/test_module_alias_shadowing.py index 5363bb3..47c92f4 100644 --- a/test/test_module_alias_shadowing.py +++ b/test/test_module_alias_shadowing.py @@ -43,9 +43,9 @@ @pytest.fixture(scope="module") def zig(): executable = os.environ.get("A7_TEST_ZIG") or shutil.which("zig") - assert executable, "Zig 0.16.0 required: set A7_TEST_ZIG or PATH" + assert executable, "Zig 0.17.1 required: set A7_TEST_ZIG or PATH" version = subprocess.run([executable, "version"], capture_output=True, text=True) - assert version.returncode == 0 and version.stdout.strip() == "0.16.0", version + assert version.returncode == 0 and version.stdout.strip() == "0.17.1", version return executable diff --git a/test/test_pipeline_native.py b/test/test_pipeline_native.py index c5cad7e..b32feda 100644 --- a/test/test_pipeline_native.py +++ b/test/test_pipeline_native.py @@ -1,6 +1,6 @@ """Production A7 pipeline plus real Zig builds, with no mocked stages. -Set A7_TEST_ZIG to a Zig 0.16.0 binary or put zig on PATH. Missing tools fail +Set A7_TEST_ZIG to a Zig 0.17.1 binary or put zig on PATH. Missing tools fail explicitly. Compile-only binding checks never execute a generated binary. """ @@ -18,9 +18,9 @@ @pytest.fixture(scope="module") def zig(): executable = os.environ.get("A7_TEST_ZIG") or shutil.which("zig") - assert executable, "Zig 0.16.0 required: set A7_TEST_ZIG or PATH" + assert executable, "Zig 0.17.1 required: set A7_TEST_ZIG or PATH" version = subprocess.run([executable, "version"], capture_output=True, text=True) - assert version.returncode == 0 and version.stdout.strip() == "0.16.0", version + assert version.returncode == 0 and version.stdout.strip() == "0.17.1", version return executable diff --git a/test/test_release_tooling.py b/test/test_release_tooling.py index 69fce0c..8b3de1c 100644 --- a/test/test_release_tooling.py +++ b/test/test_release_tooling.py @@ -547,9 +547,9 @@ def test_native_archive_name_pattern() -> None: cwd=ROOT, text=True, capture_output=True, timeout=10, ) assert prefix.returncode == 0, prefix.stderr or prefix.stdout - assert prefix.stdout.strip() == "a7-example-artifacts-linux-x86_64-zig0.16.0" + assert prefix.stdout.strip() == "a7-example-artifacts-linux-x86_64-zig0.17.1" - pattern = re.compile(r"^a7-example-artifacts-linux-x86_64-zig0\.16\.0-(debug|release)\.tar\.gz$") + pattern = re.compile(r"^a7-example-artifacts-linux-x86_64-zig0\.17\.1-(debug|release)\.tar\.gz$") for profile in ("debug", "release"): name = f"{prefix.stdout.strip()}-{profile}.tar.gz" assert pattern.match(name), name diff --git a/test/test_resume_backend_bindings.py b/test/test_resume_backend_bindings.py index 0cdf33c..24abd67 100644 --- a/test/test_resume_backend_bindings.py +++ b/test/test_resume_backend_bindings.py @@ -1,4 +1,4 @@ -"""Binding and labeled transfer outcomes through A7 CLI and Zig 0.16.0.""" +"""Binding and labeled transfer outcomes through A7 CLI and Zig 0.17.1.""" import pytest diff --git a/test/test_safety_precursors.py b/test/test_safety_precursors.py index 1f19138..0240a3f 100644 --- a/test/test_safety_precursors.py +++ b/test/test_safety_precursors.py @@ -6,7 +6,7 @@ producing or running a binary. Only the file-scope constant case is run, because its divisor is the literal constant 4. -Set A7_TEST_ZIG to a Zig 0.16.0 binary or put zig on PATH. A missing Zig fails +Set A7_TEST_ZIG to a Zig 0.17.1 binary or put zig on PATH. A missing Zig fails the Zig-dependent tests. """ @@ -33,9 +33,9 @@ @pytest.fixture(scope="module") def zig(): executable = os.environ.get("A7_TEST_ZIG") or shutil.which("zig") - assert executable, "Zig 0.16.0 required: set A7_TEST_ZIG or PATH" + assert executable, "Zig 0.17.1 required: set A7_TEST_ZIG or PATH" version = subprocess.run([executable, "version"], capture_output=True, text=True) - assert version.returncode == 0 and version.stdout.strip() == "0.16.0", version + assert version.returncode == 0 and version.stdout.strip() == "0.17.1", version return executable diff --git a/test/test_stdlib_call_resolution.py b/test/test_stdlib_call_resolution.py index 55ab563..e539d57 100644 --- a/test/test_stdlib_call_resolution.py +++ b/test/test_stdlib_call_resolution.py @@ -11,7 +11,7 @@ Nothing is mocked. The programs use no heap, references, indexing, integer division or overflow-prone arithmetic. -Set A7_TEST_ZIG to a Zig 0.16.0 binary or put zig on PATH. A missing Zig fails +Set A7_TEST_ZIG to a Zig 0.17.1 binary or put zig on PATH. A missing Zig fails the tests. """ @@ -31,9 +31,9 @@ @pytest.fixture(scope="module") def zig(): executable = os.environ.get("A7_TEST_ZIG") or shutil.which("zig") - assert executable, "Zig 0.16.0 required: set A7_TEST_ZIG or PATH" + assert executable, "Zig 0.17.1 required: set A7_TEST_ZIG or PATH" version = subprocess.run([executable, "version"], capture_output=True, text=True) - assert version.returncode == 0 and version.stdout.strip() == "0.16.0", version + assert version.returncode == 0 and version.stdout.strip() == "0.17.1", version return executable diff --git a/test/test_zig_backend_runtime.py b/test/test_zig_backend_runtime.py index b822e6f..a9d176b 100644 --- a/test/test_zig_backend_runtime.py +++ b/test/test_zig_backend_runtime.py @@ -5,7 +5,7 @@ values derived by hand from the A7 source. Nothing is mocked. The programs use no heap, references, division, indexing, or overflow-prone arithmetic. -Set A7_TEST_ZIG to a Zig 0.16.0 binary or put zig on PATH. A missing Zig fails +Set A7_TEST_ZIG to a Zig 0.17.1 binary or put zig on PATH. A missing Zig fails the tests. """ @@ -25,9 +25,9 @@ @pytest.fixture(scope="module") def zig(): executable = os.environ.get("A7_TEST_ZIG") or shutil.which("zig") - assert executable, "Zig 0.16.0 required: set A7_TEST_ZIG or PATH" + assert executable, "Zig 0.17.1 required: set A7_TEST_ZIG or PATH" version = subprocess.run([executable, "version"], capture_output=True, text=True) - assert version.returncode == 0 and version.stdout.strip() == "0.16.0", version + assert version.returncode == 0 and version.stdout.strip() == "0.17.1", version return executable