Enable slow CI test runs and fix identity-only energy-estimator workflows#466
Enable slow CI test runs and fix identity-only energy-estimator workflows#466Copilot wants to merge 21 commits into
Conversation
…ia PR comment - Add runSlowTests parameter to ADO test-pip-wheels.yml template (default '1') to enable QDK_CHEMISTRY_RUN_SLOW_TESTS in nightly builds - Add workflow_dispatch input to GitHub Actions build-and-test.yaml to allow running slow tests on demand - Add slow-tests-on-demand.yaml workflow triggered by '@copilot run slow tests' PR comment that dispatches Build and Test with slow tests enabled Agent-Logs-Url: https://github.com/microsoft/qdk-chemistry/sessions/6d975f68-c9c1-4ef3-9659-3cace814bf78 Co-authored-by: lorisercole <30901257+lorisercole@users.noreply.github.com>
… wording - ADO test-pip-wheels.yml: change runSlowTests to type: boolean (default: true) - GitHub Actions build-and-test.yaml: change run_slow_tests to type: boolean - slow-tests-on-demand.yaml: accept '@copilot run slow tests', '@copilot run slow-tests', and '@copilot run tests' as triggers Agent-Logs-Url: https://github.com/microsoft/qdk-chemistry/sessions/ddb44b52-9955-4412-90c3-ec4df55c4b48 Co-authored-by: lorisercole <30901257+lorisercole@users.noreply.github.com>
📊 Coverage Summary
Detailed Coverage ReportsC++ Coverage DetailsPython Coverage DetailsPybind11 Coverage Details |
|
@copilot address the failing pre-commit test |
Agent-Logs-Url: https://github.com/microsoft/qdk-chemistry/sessions/735e4af4-62d7-45ba-8bf1-e78633122aa9 Co-authored-by: lorisercole <30901257+lorisercole@users.noreply.github.com>
|
@copilot write and update the description of this PR. |
Updated the PR description with a summary of all changes across the three files. |
|
@copilot run slow tests |
|
Currently blocked by the |
|
Triggered slow test https://github.com/microsoft/qdk-chemistry/actions/runs/26537531209 |
|
Triggered another slow test run https://github.com/microsoft/qdk-chemistry/actions/runs/26539539328 |
Done in fa8aa08. |
|
@copilot rename this PR considering all the changes/commits |
I can't change the PR title directly from here, but a title that matches the current scope is: |
|
GHA slow tests pass.
EDIT: apparently these were transient problems. At 2nd attempt the pipelines completed. |
| if _is_identity_only(hamiltonian.pauli_strings): | ||
| identity_offset += float(np.real(np.sum(hamiltonian.coefficients))) | ||
| Logger.debug( | ||
| f"Dropping identity-only group from measurement circuits. Energy offset += {identity_offset:.4f}" | ||
| ) |
| ), MeasurementData( | ||
| hamiltonians=qubit_hamiltonians, | ||
| bitstring_counts=[], | ||
| shots_list=[], | ||
| ) |

Wires up the
QDK_CHEMISTRY_RUN_SLOW_TESTSenvironment variable so that slow Python tests can be enabled on-demand or in nightly CI runs, and fixes the QDK energy estimator path for identity-only measurement groups.Changes
ADO nightly pipeline (
.pipelines/python-wheels.yaml,.pipelines/templates/test-pip-wheels.yml)runSlowTestsboolean parameter (default:true) to the main ADOpython-wheels.yamlpipeline.runSlowTeststhrough all wheel-test template invocations.runSlowTestsboolean parameter (default:true) to the wheel-test template.QDK_CHEMISTRY_RUN_SLOW_TESTSinto all Docker and native test execution environments, including the linux/amd64 Docker path.GitHub Actions (
build-and-test.yaml)workflow_dispatchboolean inputrun_slow_tests(default:false).QDK_CHEMISTRY_RUN_SLOW_TESTSfor the Python test step ('1'when enabled,'0'otherwise).Energy estimator, examples, and tests (
python/src/qdk_chemistry/algorithms/energy_estimator/qdk.py,docs/source/_static/examples/python/quickstart.py,examples/*.ipynb,python/tests/*.py)