Repository navigation
Add support for LintQ as validator - #2
Merged
Merged
Conversation
Signed-off-by: Greta Dolcetti <[email protected]> Signed-off-by: Greta <[email protected]>
Signed-off-by: Greta <[email protected]>
Member
|
Hi Greta - thanks for the PR. Looks good to me! |
gretadolcetti
added a commit
to gretadolcetti/gretadolcetti.github.io
that referenced
this pull request
Oct 28, 2026
- Projects: test-suite validation for the Qiskit IVR example in Mellea (generative-computing/mellea#1716) and the LintQ validator for CodeHelm (IBM/codehelm#2) - Theme toggle next to the contact icons; the choice is saved and applied before first paint, otherwise the site follows the system theme Co-Authored-By: Claude Opus 5.5 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request introduces a new LintQ-based validation workflow for Qiskit code generation, integrating correctness and linting checks into the Mellea orchestration pipeline. It adds a new
ValidatorLintQclass, and provides a runnable example and documentation.LintQ Validation Integration
ValidatorLintQinsrc/codehelm/validator/validator_lintq.py, which wraps a correctness validator (defaulting toValidatorExec) and runs LintQ only if the code passes the tests. It writes per-sample results and a summary, and includes a helper to run LintQ via CodeQL.examples/mellea_lintq/with aREADME.md,config.yaml, andrun.pyto demonstrate end-to-end usage of the new validator with Qiskit HumanEval and Ollama.Orchestration
src/codehelm/orchestration/mellea.pyto support the new validator and repair strategy.Execution Validator Improvements
ValidatorExecinsrc/codehelm/validator/validator_exec.pyto better handle timeouts on non-main threads (such as those used by Mellea), ensuring a more robust timeout behavior.Testing
tests/test_lintq.py.Suggested pipeline to test the PR
examples/mellea_lintq/README.mdto clone and install codeql and LintQ, install the model, export LINTQ_DIR and then runpython examples/mellea_lintq/run.pyfrom the source dir.pytest tests/test_lintq.py.