Skip to content

Commit

Permalink
fix: lock azure-storage-blob as breaking tests + enabling ignored tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kikomiss committed Jul 23, 2024
1 parent 99ad5cc commit abbf594
Show file tree
Hide file tree
Showing 6 changed files with 214 additions and 242 deletions.
4 changes: 3 additions & 1 deletion azure-quantum/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
azure-core>=1.30,<2.0
azure-identity>=1.17,<2.0
azure-storage-blob>=12.20,<13.0
# TODO: recent versions break recordings.

Check notice

Code scanning / devskim

A "TODO" or similar was left in source code, possibly indicating incomplete functionality Note

Suspicious comment
# More than one match for "https://mystorage.blob.core.windows.net/.../rawOutputData"
azure-storage-blob==12.20
msrest>=0.7.1,<1.0
numpy>=1.21.0,<2.0
deprecated>=1.2.12,<2.0
Expand Down
439 changes: 211 additions & 228 deletions azure-quantum/tests/unit/recordings/test_qiskit_submit_to_rigetti.yaml

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion azure-quantum/tests/unit/test_cirq.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,6 @@ def test_plugins_cirq_nonexistent_target(self):

@pytest.mark.ionq
@pytest.mark.live_test
@pytest.mark.skip(reason="TODO: ignoring for now due to undefined failure reason. Possibly, transient dependency update causing this")
def test_plugins_ionq_cirq(self):
with unittest.mock.patch.object(
Job,
Expand Down
4 changes: 0 additions & 4 deletions azure-quantum/tests/unit/test_ionq.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,20 +48,17 @@ def test_estimate_cost_ionq(self):

@pytest.mark.ionq
@pytest.mark.live_test
@pytest.mark.skip(reason="TODO: ignoring for now due to undefined failure reason. Possibly, transient dependency update causing this")
def test_job_submit_ionq(self):
self._test_job_submit_ionq(shots=None)

@pytest.mark.ionq
@pytest.mark.live_test
@pytest.mark.skip(reason="TODO: ignoring for now due to undefined failure reason. Possibly, transient dependency update causing this")
def test_job_submit_ionq_100_shots(self):
self._test_job_submit_ionq(shots=100)


@pytest.mark.ionq
@pytest.mark.live_test
@pytest.mark.skip(reason="TODO: ignoring for now due to undefined failure reason. Possibly, transient dependency update causing this")
def test_job_submit_ionq_100_shots_with_deprecated_num_shots(self):
# Call submit with a depteracted 'num_shots' argument, need to emit a deptecation warning.
with pytest.warns(
Expand Down Expand Up @@ -134,7 +131,6 @@ def test_job_submit_ionq_with_conflicting_shots_from_input_params(self):

@pytest.mark.ionq
@pytest.mark.live_test
@pytest.mark.skip(reason="TODO: ignoring for now due to undefined failure reason. Possibly, transient dependency update causing this")
def test_job_submit_ionq_cost_estimate(self):
job = self._test_job_submit_ionq(shots=None)
self.assertIsNotNone(job.details)
Expand Down
2 changes: 0 additions & 2 deletions azure-quantum/tests/unit/test_microsoft_elements_dft.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
class TestMicrosoftElementsDftJob(QuantumTestBase):

@pytest.mark.microsoft_elements_dft
@pytest.mark.skip(reason="TODO: ignoring for now due to undefined failure reason. Possibly, transient dependency update causing this")
def test_dft_success(self):
dft_input_params = {
"tasks": [
Expand Down Expand Up @@ -52,7 +51,6 @@ def test_dft_failure_invalid_input(self):


@pytest.mark.microsoft_elements_dft
@pytest.mark.skip(reason="TODO: ignoring for now due to undefined failure reason. Possibly, transient dependency update causing this")
def test_dft_failure_algorithm_produces_output(self):
dft_input_params = {
"tasks": [
Expand Down
6 changes: 0 additions & 6 deletions azure-quantum/tests/unit/test_qiskit.py
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,6 @@ def test_qir_to_qiskit_bitstring(self):
))
self.assertEqual(AzureQuantumJob._qir_to_qiskit_bitstring(bitstring), bitstring)

@pytest.mark.skip(reason="TODO: ignoring for now due to undefined failure reason. Possibly, transient dependency update causing this")
def test_qiskit_submit_ionq_5_qubit_superposition(self):
workspace = self.create_workspace()
provider = AzureQuantumProvider(workspace=workspace)
Expand Down Expand Up @@ -407,14 +406,12 @@ def test_plugins_estimate_cost_qiskit_ionq(self):

@pytest.mark.ionq
@pytest.mark.live_test
@pytest.mark.skip(reason="TODO: ignoring for now due to undefined failure reason. Possibly, transient dependency update causing this")
def test_plugins_submit_qiskit_to_ionq(self):
circuit = self._3_qubit_ghz()
self._test_qiskit_submit_ionq(circuit)

@pytest.mark.ionq
@pytest.mark.live_test
@pytest.mark.skip(reason="TODO: ignoring for now due to undefined failure reason. Possibly, transient dependency update causing this")
def test_plugins_submit_qiskit_circuit_as_list_to_ionq(self):
circuit = self._3_qubit_ghz()
self._test_qiskit_submit_ionq([circuit])
Expand All @@ -435,7 +432,6 @@ def test_plugins_submit_qiskit_multi_circuit_experiment_to_ionq(self):

@pytest.mark.ionq
@pytest.mark.live_test
@pytest.mark.skip(reason="TODO: ignoring for now due to undefined failure reason. Possibly, transient dependency update causing this")
def test_plugins_submit_qiskit_qobj_to_ionq(self):
from qiskit import assemble

Expand Down Expand Up @@ -804,7 +800,6 @@ def test_qiskit_get_ionq_native_gateset(self):

@pytest.mark.ionq
@pytest.mark.live_test
@pytest.mark.skip(reason="TODO: ignoring for now due to undefined failure reason. Possibly, transient dependency update causing this")
def test_plugins_retrieve_job(self):
workspace = self.create_workspace()
provider = AzureQuantumProvider(workspace=workspace)
Expand Down Expand Up @@ -1096,7 +1091,6 @@ def test_configuration_quantinuum_backends(self):

@pytest.mark.rigetti
@pytest.mark.live_test
@pytest.mark.skip(reason="TODO: ignoring for now due to undefined failure reason. Possibly, transient dependency update causing this")
def test_qiskit_submit_to_rigetti(self):
from azure.quantum.target.rigetti import RigettiTarget

Expand Down

0 comments on commit abbf594

Please sign in to comment.