{"action":"created","issue":{"url":"https://api.github.com/repos/saltstack/salt/issues/35585","repository_url":"https://api.github.com/repos/saltstack/salt","labels_url":"https://api.github.com/repos/saltstack/salt/issues/35585/labels{/name}","comments_url":"https://api.github.com/repos/saltstack/salt/issues/35585/comments","events_url":"https://api.github.com/repos/saltstack/salt/issues/35585/events","html_url":"https://github.com/saltstack/salt/issues/35585","id":172048775,"number":35585,"title":"Option to disable fetching gitfs remotes in standalone/masterless mode","user":{"login":"jerrykan","id":377632,"avatar_url":"https://avatars.githubusercontent.com/u/377632?v=3","gravatar_id":"","url":"https://api.github.com/users/jerrykan","html_url":"https://github.com/jerrykan","followers_url":"https://api.github.com/users/jerrykan/followers","following_url":"https://api.github.com/users/jerrykan/following{/other_user}","gists_url":"https://api.github.com/users/jerrykan/gists{/gist_id}","starred_url":"https://api.github.com/users/jerrykan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jerrykan/subscriptions","organizations_url":"https://api.github.com/users/jerrykan/orgs","repos_url":"https://api.github.com/users/jerrykan/repos","events_url":"https://api.github.com/users/jerrykan/events{/privacy}","received_events_url":"https://api.github.com/users/jerrykan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-08-19T03:45:42Z","updated_at":"2016-08-19T19:34:59Z","closed_at":null,"body":"While developing new states I am frequently running `salt-call --local state.apply` as I iterate on changes being made to state files. Unfortunately I've noticed that running salt has progressively gotten slower and slower as I add new remotes to `gitfs_remotes`. This seems to be because salt is checking the remotes on every single run to see if there are any new changes. 99% of the time I am running salt I know there are no new changes to be pulled from any of the remotes, so this is just wasting time when the cached version is perfectly fine to use.\r\n\r\nTo give you an idea, while using 6 `gitfs_remotes` I get the following timed results:\r\n\r\n    $ time salt-call --local state.apply\r\n\r\n    ... (snip) ...\r\n\r\n    Summary for local\r\n    -------------\r\n    Succeeded: 31\r\n    Failed:     0\r\n    -------------\r\n    Total states run:     31\r\n    Total run time:    2.117 s\r\n\r\n    real    0m26.542s\r\n    user    0m1.452s\r\n    sys     0m2.456s\r\n\r\nThat is ~20 seconds wasted just checking for new updates that don't exist. This has a reasonable impact on the speed of iteration on the development of new states, and is likely to only get worse as more remotes are added.\r\n\r\nI experience this problem both with v2016.3.2 and the current develop branch.\r\n\r\nIt would be good if an option/setting could be implemented that prevents the cache being invalidated and checking for new updates from remotes.\r\n"},"comment":{"url":"https://api.github.com/repos/saltstack/salt/issues/comments/241114348","html_url":"https://github.com/saltstack/salt/issues/35585#issuecomment-241114348","issue_url":"https://api.github.com/repos/saltstack/salt/issues/35585","id":241114348,"user":{"login":"Ch3LL","id":6886822,"avatar_url":"https://avatars.githubusercontent.com/u/6886822?v=3","gravatar_id":"","url":"https://api.github.com/users/Ch3LL","html_url":"https://github.com/Ch3LL","followers_url":"https://api.github.com/users/Ch3LL/followers","following_url":"https://api.github.com/users/Ch3LL/following{/other_user}","gists_url":"https://api.github.com/users/Ch3LL/gists{/gist_id}","starred_url":"https://api.github.com/users/Ch3LL/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ch3LL/subscriptions","organizations_url":"https://api.github.com/users/Ch3LL/orgs","repos_url":"https://api.github.com/users/Ch3LL/repos","events_url":"https://api.github.com/users/Ch3LL/events{/privacy}","received_events_url":"https://api.github.com/users/Ch3LL/received_events","type":"User","site_admin":false},"created_at":"2016-08-19T19:34:59Z","updated_at":"2016-08-19T19:34:59Z","body":"@jerrykan I believe this is a duplicate of #35333  . The issue speaks to runners but the truth of the issue is to add an option to not always refresh gitfs. Would you be okay with closing this issue and commenting on that issue so we can track adding an option to not refresh gitfs during commands there?"}}
{"actor":{"display_login":"Ch3LL"}}