Commit 83c6e2f
Guillaume Lessard
fix(release): smoke test called a function that does not exist
The dry run caught this before a tag did. Every wheel job ran:
from qector_decoder_v3 import get_decoder_info
and `get_decoder_info` does not exist. The only occurrence in the tree is inside
a changelog string, and it is absent from expected_symbols.txt, so the
public-surface contract does not carry it either. The Windows job failed with
"cannot import name 'get_decoder_info' ... Did you mean: 'get_decoder_pool'?"
and all six would have failed identically on the first `v0.7.0` tag.
Replace it with a test that proves something. Importing shows the extension
loads; it does not show the compiled core decodes correctly. The wheel now
builds a repetition-code layout, decodes a syndrome through UnionFindDecoder and
BlossomDecoder, and asserts H @ c == s (mod 2) - the syndrome-faithfulness
property every decoder here must satisfy - so a wheel that compiles but decodes
wrongly cannot reach PyPI.
Kept strictly ASCII. The block is fed to `python -` on stdin, and the Windows
runner decodes that with the system codepage, where a stray non-ASCII byte is a
decode error rather than cosmetic.
Verified locally against the installed wheel: both decoders return H @ c == s.
Note the dry run also settled the open question about wheel construction: the
Windows wheel BUILT successfully under `--no-default-features --features
abi3,cuda`, so maturin does supply extension-module from [tool.maturin] features.
That risk is closed; only the smoke test was broken.1 parent 4e705c8 commit 83c6e2f
1 file changed
Lines changed: 26 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
103 | 103 | | |
104 | 104 | | |
105 | 105 | | |
| 106 | + | |
106 | 107 | | |
| 108 | + | |
107 | 109 | | |
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 | + | |
110 | 134 | | |
111 | 135 | | |
112 | 136 | | |
| |||
0 commit comments