-
Notifications
You must be signed in to change notification settings - Fork 0
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
Investigate reuse strategies for docker image #59
Comments
Using a stripped playbook I measured a total duration of 35 seconds. When using the full playbook the
|
Comments from @tkilias
|
See https://stackoverflow.com/questions/27985334/why-is-copying-a-directory-with-ansible-so-slow: |
See also https://docs.pytest.org/en/7.4.x/how-to/capture-stdout-stderr.html def test_disabling_capturing(capsys):
print("this output is captured")
with capsys.disabled():
print("output not captured, going directly to sys.stdout")
print("this output is also captured") You tried to access the function scoped fixture capsys with a session scoped request object, involved factories: |
I used - name: Copy notebook content
ansible.builtin.synchronize:
src: "roles/jupyter/files/notebook/"
dest: /root/notebooks
rsync_opts:
- "--chmod=0644" And got error message
After adding Unfortunately installing rsync itself takes 31 seconds: 🙁 |
Capturing stdout in But when these cli options are provided capturing is not required anymore, as pytest will log ansible output anyway. |
For reusing a Docker Image in pytest DSS added support for CLI option |
Potential use cases
UC-1
UC-2
UC-3
The text was updated successfully, but these errors were encountered: