{"action":"created","issue":{"url":"https://api.github.com/repos/gslab-econ/template/issues/9","repository_url":"https://api.github.com/repos/gslab-econ/template","labels_url":"https://api.github.com/repos/gslab-econ/template/issues/9/labels{/name}","comments_url":"https://api.github.com/repos/gslab-econ/template/issues/9/comments","events_url":"https://api.github.com/repos/gslab-econ/template/issues/9/events","html_url":"https://github.com/gslab-econ/template/issues/9","id":176469184,"number":9,"title":"Test symlink with scons cache","user":{"login":"lboxell","id":13038185,"avatar_url":"https://avatars.githubusercontent.com/u/13038185?v=3","gravatar_id":"","url":"https://api.github.com/users/lboxell","html_url":"https://github.com/lboxell","followers_url":"https://api.github.com/users/lboxell/followers","following_url":"https://api.github.com/users/lboxell/following{/other_user}","gists_url":"https://api.github.com/users/lboxell/gists{/gist_id}","starred_url":"https://api.github.com/users/lboxell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lboxell/subscriptions","organizations_url":"https://api.github.com/users/lboxell/orgs","repos_url":"https://api.github.com/users/lboxell/repos","events_url":"https://api.github.com/users/lboxell/events{/privacy}","received_events_url":"https://api.github.com/users/lboxell/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"lboxell","id":13038185,"avatar_url":"https://avatars.githubusercontent.com/u/13038185?v=3","gravatar_id":"","url":"https://api.github.com/users/lboxell","html_url":"https://github.com/lboxell","followers_url":"https://api.github.com/users/lboxell/followers","following_url":"https://api.github.com/users/lboxell/following{/other_user}","gists_url":"https://api.github.com/users/lboxell/gists{/gist_id}","starred_url":"https://api.github.com/users/lboxell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lboxell/subscriptions","organizations_url":"https://api.github.com/users/lboxell/orgs","repos_url":"https://api.github.com/users/lboxell/repos","events_url":"https://api.github.com/users/lboxell/events{/privacy}","received_events_url":"https://api.github.com/users/lboxell/received_events","type":"User","site_admin":false},"assignees":[{"login":"lboxell","id":13038185,"avatar_url":"https://avatars.githubusercontent.com/u/13038185?v=3","gravatar_id":"","url":"https://api.github.com/users/lboxell","html_url":"https://github.com/lboxell","followers_url":"https://api.github.com/users/lboxell/followers","following_url":"https://api.github.com/users/lboxell/following{/other_user}","gists_url":"https://api.github.com/users/lboxell/gists{/gist_id}","starred_url":"https://api.github.com/users/lboxell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lboxell/subscriptions","organizations_url":"https://api.github.com/users/lboxell/orgs","repos_url":"https://api.github.com/users/lboxell/repos","events_url":"https://api.github.com/users/lboxell/events{/privacy}","received_events_url":"https://api.github.com/users/lboxell/received_events","type":"User","site_admin":false}],"milestone":null,"comments":1,"created_at":"2016-09-12T19:58:27Z","updated_at":"2016-09-22T21:03:06Z","closed_at":null,"body":"Test using a symlink to some shared drive (such as hsfiles) that is mounted locally as the cache."},"comment":{"url":"https://api.github.com/repos/gslab-econ/template/issues/comments/249027092","html_url":"https://github.com/gslab-econ/template/issues/9#issuecomment-249027092","issue_url":"https://api.github.com/repos/gslab-econ/template/issues/9","id":249027092,"user":{"login":"lboxell","id":13038185,"avatar_url":"https://avatars.githubusercontent.com/u/13038185?v=3","gravatar_id":"","url":"https://api.github.com/users/lboxell","html_url":"https://github.com/lboxell","followers_url":"https://api.github.com/users/lboxell/followers","following_url":"https://api.github.com/users/lboxell/following{/other_user}","gists_url":"https://api.github.com/users/lboxell/gists{/gist_id}","starred_url":"https://api.github.com/users/lboxell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lboxell/subscriptions","organizations_url":"https://api.github.com/users/lboxell/orgs","repos_url":"https://api.github.com/users/lboxell/repos","events_url":"https://api.github.com/users/lboxell/events{/privacy}","received_events_url":"https://api.github.com/users/lboxell/received_events","type":"User","site_admin":false},"created_at":"2016-09-22T21:03:05Z","updated_at":"2016-09-22T21:03:05Z","body":"@M-R-Sullivan,\r\n\r\nCould you check this at some point when you get the chance? \r\n\r\nSteps:\r\n - Mount hsfiles to mac. (Username should be `WIN\\[SUNetID]` and pass should be pass for SUNetID\r\n - Symbolically link 'cache' directory in hsfiles(should be `/Volumes/economics/cache` to `/Users/$USER/hsfiles_cache`\r\n - Checkout `issue9_symlinkcache` template branch and run `scons mode=cache`. \r\n - If everything works correctly, scons should just pull the build file from the cache. \r\n - Move `build/data/data.txt` to `build/data/data_real.txt`\r\n - Create symbolic link from `build/data/data_real.txt` to `build/data/data.txt`\r\n - Run `scons`\r\n - If everything works correct, scons should not rebuild anything.\r\n\r\nThis shows two things:\r\n - Implementation of using hsfiles for caching and using a symbolic link to the cache.\r\n - For scons, the hash of a symbolic link is the same as the hash of the original file. (You can also do `md5 data.txt` and `md5 data_real.txt` in terminal to compare the md5 hash that mac os will give you for each. Spoiler: they are the same.). "}}
{"actor":{"display_login":"lboxell"}}