{"action":"created","issue":{"url":"https://api.github.com/repos/gradle/gradle/issues/793","repository_url":"https://api.github.com/repos/gradle/gradle","labels_url":"https://api.github.com/repos/gradle/gradle/issues/793/labels{/name}","comments_url":"https://api.github.com/repos/gradle/gradle/issues/793/comments","events_url":"https://api.github.com/repos/gradle/gradle/issues/793/events","html_url":"https://github.com/gradle/gradle/pull/793","id":187019527,"number":793,"title":"Call script to flush OS caches in performance tests","user":{"login":"lhotari","id":66864,"avatar_url":"https://avatars.githubusercontent.com/u/66864?v=3","gravatar_id":"","url":"https://api.github.com/users/lhotari","html_url":"https://github.com/lhotari","followers_url":"https://api.github.com/users/lhotari/followers","following_url":"https://api.github.com/users/lhotari/following{/other_user}","gists_url":"https://api.github.com/users/lhotari/gists{/gist_id}","starred_url":"https://api.github.com/users/lhotari/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lhotari/subscriptions","organizations_url":"https://api.github.com/users/lhotari/orgs","repos_url":"https://api.github.com/users/lhotari/repos","events_url":"https://api.github.com/users/lhotari/events{/privacy}","received_events_url":"https://api.github.com/users/lhotari/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"lhotari","id":66864,"avatar_url":"https://avatars.githubusercontent.com/u/66864?v=3","gravatar_id":"","url":"https://api.github.com/users/lhotari","html_url":"https://github.com/lhotari","followers_url":"https://api.github.com/users/lhotari/followers","following_url":"https://api.github.com/users/lhotari/following{/other_user}","gists_url":"https://api.github.com/users/lhotari/gists{/gist_id}","starred_url":"https://api.github.com/users/lhotari/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lhotari/subscriptions","organizations_url":"https://api.github.com/users/lhotari/orgs","repos_url":"https://api.github.com/users/lhotari/repos","events_url":"https://api.github.com/users/lhotari/events{/privacy}","received_events_url":"https://api.github.com/users/lhotari/received_events","type":"User","site_admin":false},"assignees":[{"login":"lhotari","id":66864,"avatar_url":"https://avatars.githubusercontent.com/u/66864?v=3","gravatar_id":"","url":"https://api.github.com/users/lhotari","html_url":"https://github.com/lhotari","followers_url":"https://api.github.com/users/lhotari/followers","following_url":"https://api.github.com/users/lhotari/following{/other_user}","gists_url":"https://api.github.com/users/lhotari/gists{/gist_id}","starred_url":"https://api.github.com/users/lhotari/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lhotari/subscriptions","organizations_url":"https://api.github.com/users/lhotari/orgs","repos_url":"https://api.github.com/users/lhotari/repos","events_url":"https://api.github.com/users/lhotari/events{/privacy}","received_events_url":"https://api.github.com/users/lhotari/received_events","type":"User","site_admin":false},{"login":"oehme","id":1191797,"avatar_url":"https://avatars.githubusercontent.com/u/1191797?v=3","gravatar_id":"","url":"https://api.github.com/users/oehme","html_url":"https://github.com/oehme","followers_url":"https://api.github.com/users/oehme/followers","following_url":"https://api.github.com/users/oehme/following{/other_user}","gists_url":"https://api.github.com/users/oehme/gists{/gist_id}","starred_url":"https://api.github.com/users/oehme/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oehme/subscriptions","organizations_url":"https://api.github.com/users/oehme/orgs","repos_url":"https://api.github.com/users/oehme/repos","events_url":"https://api.github.com/users/oehme/events{/privacy}","received_events_url":"https://api.github.com/users/oehme/received_events","type":"User","site_admin":false}],"milestone":null,"comments":8,"created_at":"2016-11-03T10:14:13Z","updated_at":"2016-11-03T13:01:49Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/gradle/gradle/pulls/793","html_url":"https://github.com/gradle/gradle/pull/793","diff_url":"https://github.com/gradle/gradle/pull/793.diff","patch_url":"https://github.com/gradle/gradle/pull/793.patch"},"body":"Operating system cache state can affect performance test results. This change calls a hook script before warmup runs if such script exists in the environment where the performance tests get run.\r\n\r\nOn CI there now is a script `/usr/local/bin/gradle_perf_test_prepare_next.sh` on each node.\r\nThis script has been configured to gain proper sudo access for the TC build agents.\r\n\r\nThe current content of the script in our CI is:\r\n```\r\n#!/bin/bash\r\n# Prepares for doing performance test measurements \r\n# This script gets called by org.gradle.performance.fixture.BuildExperimentRunner#runOsPrepareNextTestScript\r\n\r\n# call script with sudo if running as non-root\r\nif [[ $EUID -ne 0 ]]; then\r\n    exec sudo \"$0\" \"$@\"\r\nfi\r\n\r\n# sync pending changes to disk\r\nsync\r\n# drops operating system caches\r\necho 3 >/proc/sys/vm/drop_caches\r\n```"},"comment":{"url":"https://api.github.com/repos/gradle/gradle/issues/comments/258135780","html_url":"https://github.com/gradle/gradle/pull/793#issuecomment-258135780","issue_url":"https://api.github.com/repos/gradle/gradle/issues/793","id":258135780,"user":{"login":"oehme","id":1191797,"avatar_url":"https://avatars.githubusercontent.com/u/1191797?v=3","gravatar_id":"","url":"https://api.github.com/users/oehme","html_url":"https://github.com/oehme","followers_url":"https://api.github.com/users/oehme/followers","following_url":"https://api.github.com/users/oehme/following{/other_user}","gists_url":"https://api.github.com/users/oehme/gists{/gist_id}","starred_url":"https://api.github.com/users/oehme/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oehme/subscriptions","organizations_url":"https://api.github.com/users/oehme/orgs","repos_url":"https://api.github.com/users/oehme/repos","events_url":"https://api.github.com/users/oehme/events{/privacy}","received_events_url":"https://api.github.com/users/oehme/received_events","type":"User","site_admin":false},"created_at":"2016-11-03T13:01:49Z","updated_at":"2016-11-03T13:01:49Z","body":"Like discussed on our call, we'll merge this and revisit it together with the other changes once we have stable performance suite."}}
{"actor":{"display_login":"oehme"}}