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

Flaky ComputeUncompute test in CI #10179

Closed
jakelishman opened this issue May 30, 2023 · 0 comments
Closed

Flaky ComputeUncompute test in CI #10179

jakelishman opened this issue May 30, 2023 · 0 comments
Assignees
Labels
bug Something isn't working mod: algorithms Related to the Algorithms module

Comments

@jakelishman
Copy link
Member

Environment

What is happening?

CI reported a failure in an algorithms test that I've not seen before. It doesn't appear to be related to the PR in question (#10172), since it passed CI when up-to-date and not in the queue, and only failed when re-running the exact same commit in the queue.

This is my first time noticing this particular failure, so it could be that it's super rare. It'd be good to know for sure, though - the traceback below makes it look like there might be some mistaken handling of parameters somewhere.

How can we reproduce the issue?

Traceback from CI:

test.python.algorithms.state_fidelities.test_compute_uncompute.TestComputeUncompute.test_symmetry
-------------------------------------------------------------------------------------------------

Captured traceback:
~~~~~~~~~~~~~~~~~~~
    Traceback (most recent call last):

      File "/Users/runner/work/1/s/qiskit/algorithms/state_fidelities/compute_uncompute.py", line 161, in _run
    result = job.result()

      File "/Users/runner/work/1/s/qiskit/primitives/primitive_job.py", line 55, in result
    return self._future.result()

      File "/Users/runner/hostedtoolcache/Python/3.8.16/x64/lib/python3.8/concurrent/futures/_base.py", line 437, in result
    return self.__get_result()

      File "/Users/runner/hostedtoolcache/Python/3.8.16/x64/lib/python3.8/concurrent/futures/_base.py", line 389, in __get_result
    raise self._exception

      File "/Users/runner/hostedtoolcache/Python/3.8.16/x64/lib/python3.8/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)

      File "/Users/runner/work/1/s/qiskit/primitives/sampler.py", line 88, in _call
    if len(value) != len(self._parameters[i]):

    IndexError: list index out of range

    
The above exception was the direct cause of the following exception:

    Traceback (most recent call last):

      File "/Users/runner/work/1/s/test/python/algorithms/state_fidelities/test_compute_uncompute.py", line 105, in test_symmetry
    results_2 = job_2.result()

      File "/Users/runner/work/1/s/qiskit/primitives/primitive_job.py", line 55, in result
    return self._future.result()

      File "/Users/runner/hostedtoolcache/Python/3.8.16/x64/lib/python3.8/concurrent/futures/_base.py", line 437, in result
    return self.__get_result()

      File "/Users/runner/hostedtoolcache/Python/3.8.16/x64/lib/python3.8/concurrent/futures/_base.py", line 389, in __get_result
    raise self._exception

      File "/Users/runner/hostedtoolcache/Python/3.8.16/x64/lib/python3.8/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)

      File "/Users/runner/work/1/s/qiskit/algorithms/state_fidelities/compute_uncompute.py", line 163, in _run
    raise AlgorithmError("Sampler job failed!") from exc

    qiskit.algorithms.exceptions.AlgorithmError: 'Sampler job failed!'

What should happen?

Stable CI.

Any suggestions?

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working mod: algorithms Related to the Algorithms module
Projects
None yet
Development

No branches or pull requests

2 participants