You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I 100% agree with this.
Most of these hard coded things are not moved to often so we could just make simple code parser and verify that it's the same in python and in Rust. Otherwise making Python bindings for these parts and using the bindings in the model.py could also be helpful.
flowchart LR
build([pixi r build]) --> pixi.exe -- $PIXI_TEST_BIN --> test-schema([pixi r test-schema])
schema([pixi r generate-schema]) --> schema.json --> test-schema
Loading
This would be outside of my wheelhouse, but probably more efficient:
flowchart LR
test-schema([pixi r test-schema])
schema.json --> test([pixi r test])
schema([pixi r generate-schema]) --> schema.json --> test-schema
Problem description
references
elevator pitch
Check for
rust
- (andcargo
-) sensitive changes vs hard-coded values in the generated schema.motivation
New
platforms
have appeared that the schema didn't know about.Changes like this are pretty much guaranteed to happen again, and other classes of issues can be caught per-keystroke.
design ideas
During
pixi r test-schema
, for eachschema/test/invalid/{name}.toml
, e.g.bad_feature_platform.toml
:{name}.{action}.stderr.txt
pixi.toml
$PIXI_BIN {action}
alternatives
schema.json
in therust
-based test suiteThe text was updated successfully, but these errors were encountered: