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

Connection refused in the CI #9

Closed
alecandido opened this issue Feb 28, 2024 · 10 comments
Closed

Connection refused in the CI #9

alecandido opened this issue Feb 28, 2024 · 10 comments
Assignees

Comments

@alecandido
Copy link
Member

Tests are failing.

https://github.com/qiboteam/qibo-cloud-backends/actions/runs/8084328381/job/22089366544

I just took a quick glance, and I believe you should add the tokens as secrets in the repo, such that you could access them from the workflow.

@BrunoLiegiBastonLiegi
Copy link
Contributor

Ah, so you can add some private files in the repo, how do you do that?
Shouls I use my personal IBM token or should we create something like a TII/qibo IBM account?

@alecandido
Copy link
Member Author

alecandido commented Feb 29, 2024

Ah, so you can add some private files in the repo, how do you do that?

They are not files, but really tokens. From the Settings tab (ask @scarrazza) you can add some key-value pairs, and they are accessible during workflows.

image

https://docs.github.com/en/actions/security-guides/using-secrets-in-github-actions

Shouls I use my personal IBM token or should we create something like a TII/qibo IBM account?

It's not your personal repo, so you should not use your personal token :)

@scarrazza
Copy link
Member

Thanks, could you please use the new secrets: IBMQ_TOKEN and QIBO_CLIENT_TII_TOKEN?

@BrunoLiegiBastonLiegi
Copy link
Contributor

Thanks, could you please use the new secrets: IBMQ_TOKEN and QIBO_CLIENT_TII_TOKEN?

Ok thanks, so are they some kind of shell variables that I can read with os.environ?

@scarrazza
Copy link
Member

Yes, exactly. Load from secrets and assign with environment.

@BrunoLiegiBastonLiegi
Copy link
Contributor

Okay, I managed to make the tests run. Unfortunately I had to copy the rule_poetry.yaml from the workflows/ repo as, apparently, environment variables are not supported for reusable workflows, it would have been nice if they mentioned this in the docs....

Anyway, the IBMQ one passes, but the qibo-client one gets a refused connection error.

@scarrazza
Copy link
Member

Does it work outside tests? (I am using the test token that you have)

@BrunoLiegiBastonLiegi
Copy link
Contributor

Does it work outside tests? (I am using the test token that you have)

No I am still getting the connection error:

requests.exceptions.ConnectionError: HTTPConnectionPool(host='www.qrccluster.com', port=80): Max retries exceeded with url: /qibo_version/ (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f239d89a2f0>: Failed to establish a new connection: [Errno 111] Connection refused'))

By default it's using port 80 though, should I change it?

@scarrazza
Copy link
Member

No, at the moment we are using 8080.

@scarrazza
Copy link
Member

Solved in #11.

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

3 participants