-
Notifications
You must be signed in to change notification settings - Fork 65
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
Use jobs order provided by the cloud #583
Conversation
job_params[0]["runs"] = 1 | ||
with pytest.raises(RuntimeError, match="Failed to find job ID"): | ||
# Job runs don't match MockJob | ||
fixt.pasqal_cloud.submit( | ||
seq, | ||
job_params=job_params, | ||
emulator=emulator, | ||
config=config, | ||
) | ||
|
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.
Why is this test no longer relevant ?
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.
Because we no longer try to determine the jobs order (the code where this was being raised was deleted)
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.
Okay, that was my guess... So it's no longer an issue that the number of runs in job_params is different than number of runs in "mock_job" ? The two issues seemed independent to me, but I am not I understood the test in the first place...
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.
That manual change was just a way for the job params to not match anymore and thus trigger the fail to find the job ID.
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 for the explanations, looks good to me !
Closes #570 .