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

Tests failing in main #37

Open
BrunoLiegiBastonLiegi opened this issue Sep 25, 2024 · 1 comment
Open

Tests failing in main #37

BrunoLiegiBastonLiegi opened this issue Sep 25, 2024 · 1 comment

Comments

@BrunoLiegiBastonLiegi
Copy link
Contributor

BrunoLiegiBastonLiegi commented Sep 25, 2024

Some tests are failing in main:

FAILED tests/test_backends.py::test_qibo_client_backend[None] - requests.exceptions.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
FAILED tests/test_backends.py::test_qibo_client_backend[xxxxxxxxx] - requests.exceptions.JSONDecodeError: Expecting value: line 2 column 1 (char 1)

These seem to be a problem of qibo-client.

FAILED tests/test_backends.py::test_set_backend[qiskit-client-xxxxxxxxx] - qiskit_ibm_provider.api.exceptions.RequestsApiError: '403 Client Error: Forbidden for url: https://auth.qua...
FAILED tests/test_backends.py::test_qiskit_client_backend_initial_state[True] - qiskit_ibm_provider.api.exceptions.RequestsApiError: '403 Client Error: Forbidden for url: https://auth.qua...
FAILED tests/test_backends.py::test_qiskit_client_backend_initial_state[False] - qiskit_ibm_provider.api.exceptions.RequestsApiError: '403 Client Error: Forbidden for url: https://auth.qua...

These are related to being unable to connect to IBMQ I believe. I tried accesing IBMQ directly with my account and received this message:
"Your IBM Quantum account has been disabled. Learn more: https://ibm.biz/BdfaME."
I had to fill a form and now I am waiting to check if I can get access again, probably the same has to be done for the account used by the tests here.

On top of that I noticed that there is a descrepancy between which names are assigned to the environment variables for the qibo client token. In the tests we called it:

QIBO_TK = os.environ.get("QIBO_CLIENT_TII_TOKEN")

whereas, in the backend:

token = os.environ["QIBO_CLIENT_TOKEN"]

I am not sure which name is assigned to the environment variable in the workflows though. In general, I would suggest to have more generic names:

QiboClientBackend --> QIBO_CLIENT_TOKEN
QiskitClientBackend --> QISKIT_CLIENT_TOKEN

This is probably a good moment to address #23 and #24 ...

@scarrazza
Copy link
Member

We have stored: QIBO_CLIENT_TOKEN and IBMQ_TOKEN.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants