You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We can test functions that don't post-process results using the IBM test backends. This will submit jobs that should run very quickly and return nonsense results. We'll need to add some more patching code, but it'll hopefully mean we can test these notebooks on PR, which would be great.
Todo:
Identify candidate notebooks (that is, any notebooks that don't post-process results)
Add feature to patch these notebooks and prevent writing results
Add candidate notebooks to PR checks
The text was updated successfully, but these errors were encountered:
There are three changes in this PR
1. (2d2fb9c) **Make notebooks runnable
with nb-tester**
This commit modifies some of the notebooks to make them executable from
start to finish. Most common change is defining `instance` and
`backend_name` in a hidden cell and giving example values through a
comment, rather than having `backend_name = '<your-backend>'`.
2. (945b8d7) **Add extended strategy
and reclassify notebooks**
Adds a new "extended" test that runs the notebooks on IBM Quantum's
`test-eagle` device.
This device accepts jobs and returns random bit strings in a very short
time period, which is great for testing notebooks that submit jobs too
large for a local simulator. This also allows us to test functions
notebooks, which take a backend name (string) of an IBM Quantum device,
rather than the backend object itself.
3. (9f3df9e) **Add extended notebook
tests action**
I originally hoped we could test notebooks with test-eagle in CI, but
the jobs can be flaky and take just a little too long to complete.
Running these jobs on every commit is too expensive and could block
writers.
Instead, I've added a new "extended" test that we can trigger manually
on branches when we need it. Examples could be dependabot PRs, or PRs to
functions notebooks; when the PR is ready, we'll trigger the workflow on
the PR branch to check the notebooks run correctly. To trigger the
workflow, go to Actions > Test notebook (extended) > Run workflow, then
select the PR branch and click "Run workflow".
***
Fixes#2240, fixes#2239, and fixes#2198.
We can test functions that don't post-process results using the IBM test backends. This will submit jobs that should run very quickly and return nonsense results. We'll need to add some more patching code, but it'll hopefully mean we can test these notebooks on PR, which would be great.
Todo:
The text was updated successfully, but these errors were encountered: