Skip to content

Commit 82258e3

Browse files
authored
fix: lock azure-storage-blob as breaking tests + enabling ignored tests (#627)
1 parent 99ad5cc commit 82258e3

6 files changed

Lines changed: 214 additions & 242 deletions

File tree

azure-quantum/requirements.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
azure-core>=1.30,<2.0
22
azure-identity>=1.17,<2.0
3-
azure-storage-blob>=12.20,<13.0
3+
# TODO: recent versions break recordings.
4+
# More than one match for "https://mystorage.blob.core.windows.net/.../rawOutputData"
5+
azure-storage-blob==12.20
46
msrest>=0.7.1,<1.0
57
numpy>=1.21.0,<2.0
68
deprecated>=1.2.12,<2.0

azure-quantum/tests/unit/recordings/test_qiskit_submit_to_rigetti.yaml

Lines changed: 211 additions & 228 deletions
Large diffs are not rendered by default.

azure-quantum/tests/unit/test_cirq.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,6 @@ def test_plugins_cirq_nonexistent_target(self):
159159

160160
@pytest.mark.ionq
161161
@pytest.mark.live_test
162-
@pytest.mark.skip(reason="TODO: ignoring for now due to undefined failure reason. Possibly, transient dependency update causing this")
163162
def test_plugins_ionq_cirq(self):
164163
with unittest.mock.patch.object(
165164
Job,

azure-quantum/tests/unit/test_ionq.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,20 +48,17 @@ def test_estimate_cost_ionq(self):
4848

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

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

6159

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

135132
@pytest.mark.ionq
136133
@pytest.mark.live_test
137-
@pytest.mark.skip(reason="TODO: ignoring for now due to undefined failure reason. Possibly, transient dependency update causing this")
138134
def test_job_submit_ionq_cost_estimate(self):
139135
job = self._test_job_submit_ionq(shots=None)
140136
self.assertIsNotNone(job.details)

azure-quantum/tests/unit/test_microsoft_elements_dft.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
class TestMicrosoftElementsDftJob(QuantumTestBase):
1010

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

5352

5453
@pytest.mark.microsoft_elements_dft
55-
@pytest.mark.skip(reason="TODO: ignoring for now due to undefined failure reason. Possibly, transient dependency update causing this")
5654
def test_dft_failure_algorithm_produces_output(self):
5755
dft_input_params = {
5856
"tasks": [

azure-quantum/tests/unit/test_qiskit.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,6 @@ def test_qir_to_qiskit_bitstring(self):
286286
))
287287
self.assertEqual(AzureQuantumJob._qir_to_qiskit_bitstring(bitstring), bitstring)
288288

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

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

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

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

@@ -804,7 +800,6 @@ def test_qiskit_get_ionq_native_gateset(self):
804800

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

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

0 commit comments

Comments
 (0)