-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Fix docker #4230
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
Fix docker #4230
Conversation
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.
Thank you, I think this looks good. As mentioned in the issue, can you add a test to ensure that it builds the right thing? I'm thinking of something simple, like, after building the image, assert that docker run cirq-image python -c "import cirq; assert cirq.__version__ is not None"
succeeds or something similar.
I've added have the test , but unfortunately will need to disable it since the Github actions image does not have docker in it. The added test is also a |
This is great! We don't need the marker - we should just limit that test to Linux only. |
Is there a way to selectively run tests based on os type/version? |
I'd pull out the Cirq/dev_tools/bash_scripts_test.py Line 24 in 700a6c0
|
Hmm...the Mac platform might match posix. We should use platform. Also, as it's just a single test, an even simpler approach is just to have a simple if statement on top of the test which tests for |
@balopat requesting review |
I like the combined stable / pre multi-stage image. |
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.
LGTM, thank you, it's much better for now.
Eventually we can evolve this further if there is user feedback.
Automerge cancelled: A required status check is not present. Missing statuses: ['cla/google'] |
xref #3736 |
#4134