-
Notifications
You must be signed in to change notification settings - Fork 154
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
base: main
Are you sure you want to change the base?
Migrate integration tests to test_eagle #1828
Conversation
# Conflicts: # test/integration/test_noise_learner.py
# Conflicts: # test/ibm_test_case.py # test/integration/test_estimator.py # test/integration/test_job.py # test/integration/test_options.py # test/integration/test_sampler.py # test/integration/test_session.py
# Conflicts: # test/integration/test_noise_learner.py
There was a problem hiding this 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
test/decorators.py
Outdated
if not all([channel, token, url]): | ||
print(f"Channel: {channel}, Token: {token}, url: {url}") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
print(f"Channel: {channel}, Token: {token}, url: {url}") |
estimator = EstimatorV2(session=session) | ||
estimator.options.environment = {"job_tags": [".".join(self.id().split(".")[-2:])]} |
There was a problem hiding this comment.
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?
test/integration/test_ibm_job.py
Outdated
@@ -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]) |
There was a problem hiding this comment.
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
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, theQISKIT_IBM_INSTANCE
value should be verified.