Skip to content

Fixing isolation in isolated notebook tests #4202

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

Merged
merged 10 commits into from
Jun 14, 2021

Conversation

balopat
Copy link
Contributor

@balopat balopat commented Jun 14, 2021

Fixes isolation in isolated notebook tests.

Also fixes notebooks that are broken.

With the cirq.kraus renaming change, couple of notebooks are failing, however the isolated notebook tests did not capture the errors. This is because they were not truly isolated as they inherited the PYTHONPATH env var and never tested the execution path where cirq is not installed.

@balopat balopat requested review from cduck, vtomole and a team as code owners June 14, 2021 17:29
@balopat balopat requested a review from viathor June 14, 2021 17:29
@google-cla google-cla bot added the cla: yes Makes googlebot stop complaining. label Jun 14, 2021
@review-notebook-app
Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@balopat balopat added the automerge Tells CirqBot to sync and merge this PR. (If it's running.) label Jun 14, 2021
@CirqBot CirqBot added the front_of_queue_automerge CirqBot uses this label to indicate (and remember) what's being merged next. label Jun 14, 2021
@CirqBot
Copy link
Collaborator

CirqBot commented Jun 14, 2021

Automerge cancelled: A status check is failing.

@CirqBot CirqBot removed automerge Tells CirqBot to sync and merge this PR. (If it's running.) front_of_queue_automerge CirqBot uses this label to indicate (and remember) what's being merged next. labels Jun 14, 2021
@balopat balopat added the automerge Tells CirqBot to sync and merge this PR. (If it's running.) label Jun 14, 2021
@CirqBot CirqBot added the front_of_queue_automerge CirqBot uses this label to indicate (and remember) what's being merged next. label Jun 14, 2021
@CirqBot CirqBot merged commit 6af64a2 into quantumlib:master Jun 14, 2021
@CirqBot CirqBot removed automerge Tells CirqBot to sync and merge this PR. (If it's running.) front_of_queue_automerge CirqBot uses this label to indicate (and remember) what's being merged next. labels Jun 14, 2021
rht pushed a commit to rht/Cirq that referenced this pull request May 1, 2023
Fixes isolation in isolated notebook tests.

Also fixes notebooks that are broken. 

With the cirq.kraus renaming change, couple of notebooks are failing, however the isolated notebook tests did not capture the errors. This is because they were not truly isolated as they inherited the `PYTHONPATH` env var and never tested the execution path where cirq is not installed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes Makes googlebot stop complaining.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants