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

Migrate integration tests to test_eagle #1828

Open
wants to merge 55 commits into
base: main
Choose a base branch
from

Conversation

ptristan3
Copy link
Collaborator

@ptristan3 ptristan3 commented Jul 30, 2024

Summary

Fixes #1683

Details and comments

Before merging, the QISKIT_IBM_DEVICE var should be added for all the environments we run the integration tests. Also, the QISKIT_IBM_INSTANCE value should be verified.

@ptristan3 ptristan3 marked this pull request as ready for review August 5, 2024 12:10
Copy link
Member

@kt474 kt474 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Looks good, just some minor comments.

I'd prefer to hold off on merging until we're more comfortable with the reliability of the test eagle devices

if not all([channel, token, url]):
print(f"Channel: {channel}, Token: {token}, url: {url}")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
print(f"Channel: {channel}, Token: {token}, url: {url}")

estimator = EstimatorV2(session=session)
estimator.options.environment = {"job_tags": [".".join(self.id().split(".")[-2:])]}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need job tags in this test?

@@ -117,7 +122,7 @@ def test_retrieve_completed_jobs(self):
backend_name=self.sim_backend.name, limit=3, pending=False
)
for job in completed_job_list:
self.assertTrue(job.status() in ["DONE", "CANCELLED", "ERROR"])
self.assertTrue(job.status() in [JobStatus.DONE, JobStatus.CANCELLED, JobStatus.ERROR])
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't the job statuses be strings? All jobs should be RuntimeJobV2

test/integration/test_retrieve_job.py Outdated Show resolved Hide resolved
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

Successfully merging this pull request may close these issues.

Update integration tests to use test_eagle
2 participants