)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":6816,"name":"Jesse Pretorius","email":"jesse@odyssey4.me","username":"jesse-pretorius"},"change_message_id":"603e88a282a36bb0e899fa7391216c815d8e6b80","unresolved":false,"context_lines":[{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Added ability to cleanup venv tgz"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Also, use the find module instead of the shell module."},{"line_number":10,"context_line":""},{"line_number":11,"context_line":"Change-Id: Iab98039a84bb4b0e787c439d67fa81b7e108c3ff"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":3,"id":"df87a7cf_1c33ba63","line":9,"range":{"start_line":9,"start_character":0,"end_line":9,"end_character":54},"updated":"2017-12-12 14:18:54.000000000","message":"This doesn\u0027t make much sense - looks like it was meant to be some sort of adjustment to the existing commit message, but it removed everything.\n\nCan you just add a short description of why this is useful here?","commit_id":"39f8714ee84d5f0bde1ae01c4f8acf2b2f831192"},{"author":{"_account_id":819,"name":"Adrien Cunin","email":"adrien@adriencunin.fr","username":"adri2000"},"change_message_id":"5f74f954c88ba0474507839304f4c40ea3d94fe1","unresolved":false,"context_lines":[{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Added ability to cleanup venv tgz"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Also, use the find module instead of the shell module."},{"line_number":10,"context_line":""},{"line_number":11,"context_line":"Change-Id: Iab98039a84bb4b0e787c439d67fa81b7e108c3ff"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":3,"id":"df87a7cf_bc52ce33","line":9,"range":{"start_line":9,"start_character":0,"end_line":9,"end_character":54},"in_reply_to":"df87a7cf_1c33ba63","updated":"2017-12-12 14:31:13.000000000","message":"The cleanup-venvs playbook already has one feature (clean up venvs directories) and is implemented using the shell module.\n\nThis patch set includes two things actually:\n * new feature: clean up venv tgz\n * implementation improvement: usage of the find module for both features, thus getting rid of the usage of the shell module","commit_id":"39f8714ee84d5f0bde1ae01c4f8acf2b2f831192"},{"author":{"_account_id":6816,"name":"Jesse Pretorius","email":"jesse@odyssey4.me","username":"jesse-pretorius"},"change_message_id":"e54deec712dbff7aa0872386aeb02ba238244372","unresolved":false,"context_lines":[{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Added ability to cleanup venv tgz"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Also, use the find module instead of the shell module."},{"line_number":10,"context_line":""},{"line_number":11,"context_line":"Change-Id: Iab98039a84bb4b0e787c439d67fa81b7e108c3ff"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":3,"id":"df87a7cf_bc008e03","line":9,"range":{"start_line":9,"start_character":0,"end_line":9,"end_character":54},"in_reply_to":"df87a7cf_bc52ce33","updated":"2017-12-12 14:35:16.000000000","message":"If you can just modify the commit msg to reflect a summary of what\u0027s changing, and why that\u0027s good, then that\u0027d be great.","commit_id":"39f8714ee84d5f0bde1ae01c4f8acf2b2f831192"}],"ansible_tools/playbooks/cleanup-venvs.yml":[{"author":{"_account_id":17068,"name":"Jean-Philippe Evrard","email":"openstack@a.spamming.party","username":"evrardjp"},"change_message_id":"b73e1d964024913c6060d306acdb37dfa2a7e43a","unresolved":false,"context_lines":[{"line_number":31,"context_line":"- name: Remove older venv tgz"},{"line_number":32,"context_line":"  hosts: all"},{"line_number":33,"context_line":"  tasks:"},{"line_number":34,"context_line":"  - name: List older venv tgz"},{"line_number":35,"context_line":"    shell: \"ls -1 /var/cache | grep \u0027{{ ansible_architecture | lower }}.tgz$\u0027 | grep -v \u0027{{ venv_tag }}-{{ ansible_architecture | lower }}.tgz$\u0027\""},{"line_number":36,"context_line":"    register: files"},{"line_number":37,"context_line":"    when: venv_tag is defined"}],"source_content_type":"text/x-yaml","patch_set":1,"id":"ff82abbf_ecfbdb43","line":34,"updated":"2017-11-29 09:52:46.000000000","message":"Why not using find:\nyou have patterns there.\n\nThen you can also apply a var for minimum age, and use the found files into the next task.","commit_id":"cb5b0fbdf8b2bda49026fdb4c0a1ff8d6485753f"},{"author":{"_account_id":17068,"name":"Jean-Philippe Evrard","email":"openstack@a.spamming.party","username":"evrardjp"},"change_message_id":"77746fc14cec38da392136fcb7e70afae918ea46","unresolved":false,"context_lines":[{"line_number":35,"context_line":"    find:"},{"line_number":36,"context_line":"      paths: /var/cache"},{"line_number":37,"context_line":"      file_type: file"},{"line_number":38,"context_line":"      patterns: \"*-*-{{ ansible_architecture | lower }}.tgz\""},{"line_number":39,"context_line":"    register: result"},{"line_number":40,"context_line":"  - name: Delete older tgz"},{"line_number":41,"context_line":"    file:"}],"source_content_type":"text/x-yaml","patch_set":2,"id":"ff82abbf_21c0ac50","line":38,"range":{"start_line":38,"start_character":6,"end_line":38,"end_character":60},"updated":"2017-12-01 08:48:26.000000000","message":"What do you think of:\n\npatterns: \u0027.*(?\u003c!{{ venv_tag }})-{{ ansible_architecture \" lower }}\\.tgz\u0027\nuse_regex: yes","commit_id":"0f94a1fbf7d040e56ad7c6917c9638af77d8c622"},{"author":{"_account_id":819,"name":"Adrien Cunin","email":"adrien@adriencunin.fr","username":"adri2000"},"change_message_id":"e07d805faa202f4d4289edd703bc5adba2ec1e99","unresolved":false,"context_lines":[{"line_number":35,"context_line":"    find:"},{"line_number":36,"context_line":"      paths: /var/cache"},{"line_number":37,"context_line":"      file_type: file"},{"line_number":38,"context_line":"      patterns: \"*-*-{{ ansible_architecture | lower }}.tgz\""},{"line_number":39,"context_line":"    register: result"},{"line_number":40,"context_line":"  - name: Delete older tgz"},{"line_number":41,"context_line":"    file:"}],"source_content_type":"text/x-yaml","patch_set":2,"id":"df87a7cf_dc4c7243","line":38,"range":{"start_line":38,"start_character":6,"end_line":38,"end_character":60},"in_reply_to":"ff82abbf_21c0ac50","updated":"2017-12-12 14:06:57.000000000","message":"Nice :)","commit_id":"0f94a1fbf7d040e56ad7c6917c9638af77d8c622"},{"author":{"_account_id":17068,"name":"Jean-Philippe Evrard","email":"openstack@a.spamming.party","username":"evrardjp"},"change_message_id":"4ba83dc280209e0392b8b23a619f541f1e774e7f","unresolved":false,"context_lines":[{"line_number":42,"context_line":"      path: \"{{ item }}\""},{"line_number":43,"context_line":"      state: absent"},{"line_number":44,"context_line":"    with_items: \"{{ result.files | map(attribute\u003d\u0027path\u0027) | list }}\""},{"line_number":45,"context_line":"    when: not item | search(\"{{ venv_tag }}-{{ ansible_architecture | lower }}.tgz$\")"}],"source_content_type":"text/x-yaml","patch_set":2,"id":"ff82abbf_29098e30","line":45,"updated":"2017-11-30 15:27:12.000000000","message":"can\u0027t this be fed directly into patterns above? That sounds complex!","commit_id":"0f94a1fbf7d040e56ad7c6917c9638af77d8c622"}]}
