)]}'
{"id":"openstack%2Fcliff~736641","triplet_id":"openstack%2Fcliff~master~I6d20ff0843f3fcaf24d269b7ac23606209764a4e","project":"openstack/cliff","branch":"master","topic":"optimization/pip-no-cache-dir","hashtags":[],"change_id":"I6d20ff0843f3fcaf24d269b7ac23606209764a4e","subject":"optimize size and time using --no-cache-dir","status":"ABANDONED","created":"2020-06-18 11:36:46.000000000","updated":"2020-06-18 12:13:38.000000000","total_comment_count":5,"unresolved_comment_count":0,"has_review_started":true,"meta_rev_id":"de240027070dabcefd8be74d0161887ac427c7f7","_number":736641,"virtual_id_number":736641,"owner":{"_account_id":31020,"name":"Pratik raj","email":"Rajpratik71@gmail.com","username":"rajpratik71"},"actions":{},"labels":{"Verified":{"all":[{"_account_id":2,"name":"Monty Taylor","email":"mordred@inaugust.com","username":"mordred"}],"values":{"-2":"Fails","-1":"Doesn\u0027t seem to work"," 0":"No score","+1":"Works for me","+2":"Verified"},"description":"","default_value":0,"optional":true},"Code-Review":{"disliked":{"_account_id":2,"name":"Monty Taylor","email":"mordred@inaugust.com","username":"mordred"},"all":[{"value":-1,"date":"2020-06-18 11:44:58.000000000","permitted_voting_range":{"min":-1,"max":1},"_account_id":2,"name":"Monty Taylor","email":"mordred@inaugust.com","username":"mordred"}],"values":{"-2":"Do not merge","-1":"This patch needs further work before it can be merged"," 0":"No score","+1":"Looks good to me, but someone else must approve","+2":"Looks good to me (core reviewer)"},"description":"","value":-1,"default_value":0,"optional":true},"Workflow":{"all":[{"_account_id":2,"name":"Monty Taylor","email":"mordred@inaugust.com","username":"mordred"}],"values":{"-1":"Work in progress"," 0":"Ready for reviews","+1":"Approved"},"description":"","default_value":0,"optional":true}},"removable_reviewers":[],"reviewers":{"REVIEWER":[{"_account_id":2,"name":"Monty Taylor","email":"mordred@inaugust.com","username":"mordred"}]},"pending_reviewers":{},"reviewer_updates":[{"updated":"2020-06-18 11:44:58.000000000","updated_by":{"_account_id":2,"name":"Monty Taylor","email":"mordred@inaugust.com","username":"mordred"},"reviewer":{"_account_id":2,"name":"Monty Taylor","email":"mordred@inaugust.com","username":"mordred"},"state":"REVIEWER"}],"messages":[{"id":"bf6597164a542328c6c90df83ca90c86b4676ef9","author":{"_account_id":31020,"name":"Pratik raj","email":"Rajpratik71@gmail.com","username":"rajpratik71"},"date":"2020-06-18 11:36:46.000000000","message":"Uploaded patch set 1.","accounts_in_message":[],"_revision_number":1},{"id":"c22e2c664307bc4d59aec816119b6158bac0d48d","author":{"_account_id":2,"name":"Monty Taylor","email":"mordred@inaugust.com","username":"mordred"},"date":"2020-06-18 11:44:58.000000000","message":"Patch Set 1: Code-Review-1\n\n(5 comments)\n\nI think this should be fine for the integration tests. For the docs, it\u0027s not appropriate. We don\u0027t need to be telling our end-users actions to take on their systems.\n\nAlso - that article is about optimizing size in docker images. While that\u0027s all well and good, python-openstackclient uses a builder image pattern via opendevorg/python-builder and opendevorg/python-base images that optimize the install by building wheels for all dependencies in a builder image. In openstack, I\u0027d recommend using opendevorg/python-builder before I\u0027d recommend having anything pip install anything directly in a final image - because doing so can avoid needing development headers in the final image which is a much larger size reduction.","accounts_in_message":[],"_revision_number":1},{"id":"c018b320bfbfdc19a8349bffc3facfb5cca9e7db","author":{"_account_id":11904,"name":"Sean McGinnis","email":"sean.mcginnis@gmail.com","username":"SeanM"},"date":"2020-06-18 12:13:38.000000000","message":"Abandoned","accounts_in_message":[],"_revision_number":1}],"current_revision_number":1,"current_revision":"b621a7fc0bda7ee703e60cc7860da0d7a355242b","revisions":{"b621a7fc0bda7ee703e60cc7860da0d7a355242b":{"kind":"REWORK","_number":1,"created":"2020-06-18 11:36:46.000000000","uploader":{"_account_id":31020,"name":"Pratik raj","email":"Rajpratik71@gmail.com","username":"rajpratik71"},"ref":"refs/changes/41/736641/1","fetch":{"anonymous http":{"url":"https://review.opendev.org/openstack/cliff","ref":"refs/changes/41/736641/1","commands":{"Checkout":"git fetch https://review.opendev.org/openstack/cliff refs/changes/41/736641/1 \u0026\u0026 git checkout FETCH_HEAD","Cherry Pick":"git fetch https://review.opendev.org/openstack/cliff refs/changes/41/736641/1 \u0026\u0026 git cherry-pick FETCH_HEAD","Format Patch":"git fetch https://review.opendev.org/openstack/cliff refs/changes/41/736641/1 \u0026\u0026 git format-patch -1 --stdout FETCH_HEAD","Pull":"git pull https://review.opendev.org/openstack/cliff refs/changes/41/736641/1"}}},"commit":{"parents":[{"commit":"8099c98249dfc9caa9cdbac4cbe7afba4279c734","subject":"Remove cap on cmd2","web_links":[{"name":"gitea","tooltip":"Open in GitWeb","url":"https://opendev.org/openstack/cliff/commit/8099c98249dfc9caa9cdbac4cbe7afba4279c734"}]}],"author":{"name":"Pratik Raj","email":"rajpratik71@gmail.com","date":"2020-06-18 09:52:10.000000000","tz":330},"committer":{"name":"Pratik Raj","email":"rajpratik71@gmail.com","date":"2020-06-18 11:36:39.000000000","tz":330},"subject":"optimize size and time using --no-cache-dir","message":"optimize size and time using --no-cache-dir\n\nUsing --no-cache-dir flag in pip install ,make sure dowloaded packages\nby pip don\u0027t cached on system . This is a best practise which make sure\nto fetch ftom repo instead of using local cached one . Further , in case\nof Docker Containers , by restricing caching , we can reduce image size.\nIn term of stats , it depends upon the number of python packages\nmultiplied by their respective size . e.g for heavy packages with a lot\nof dependencies it reduce a lot by don\u0027t caching pip packages.\n\nFurther , more detail information can be found at\n\nhttps://medium.com/sciforce/strategies-of-docker-images-optimization-2ca9cc5719b6\n\nChange-Id: I6d20ff0843f3fcaf24d269b7ac23606209764a4e\nSigned-off-by: Pratik Raj \u003crajpratik71@gmail.com\u003e\n","web_links":[{"name":"gitea","tooltip":"Open in GitWeb","url":"https://opendev.org/openstack/cliff/commit/b621a7fc0bda7ee703e60cc7860da0d7a355242b"}],"resolve_conflicts_web_links":[{"name":"gitea","tooltip":"Open in GitWeb","url":"https://opendev.org/openstack/cliff/commit/b621a7fc0bda7ee703e60cc7860da0d7a355242b"}]},"branch":"refs/heads/master"}},"requirements":[],"submit_records":[],"submit_requirements":[]}
