Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature flag for extension inference and validation #784

Closed
ss2165 opened this issue Jan 5, 2024 · 0 comments · Fixed by #786
Closed

feature flag for extension inference and validation #784

ss2165 opened this issue Jan 5, 2024 · 0 comments · Fixed by #786
Assignees
Milestone

Comments

@ss2165
Copy link
Member

ss2165 commented Jan 5, 2024

Extension inference and validation are not complete - there is work yet to do to be able to infer lift nodes (if we need them at all) and to avoid annotations in DFG etc. see #426. For release 0.1 just put the inference and validation behind an experimental feature flag (and record that in the readme - that it doesn't work). CI need not test with this flag on. Existing tests should pass, and new tests can be written more simply that won't pass if the flag is turned on.

@ss2165 ss2165 added the P-high label Jan 5, 2024
@ss2165 ss2165 added this to the v0.1.0 milestone Jan 5, 2024
github-merge-queue bot pushed a commit that referenced this issue Jan 8, 2024
Add a feature flag "extension_inference", without which
`Hugr::infer_extensions` is replaced by a dummy method, and
`ValidationContext` doesn't use a `ExtensionValidator`, and tests that
require extension inference to be done are disabled.
Our CI runs tests and benchmarks once with default features, then again
with all features, so extension inference is still being tested by CI.
The workflow has only been altered to tell `clippy` to run with all
features as well.

Resolves #784
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants