{"action":"created","issue":{"url":"https://api.github.com/repos/bazelbuild/bazel/issues/1118","repository_url":"https://api.github.com/repos/bazelbuild/bazel","labels_url":"https://api.github.com/repos/bazelbuild/bazel/issues/1118/labels{/name}","comments_url":"https://api.github.com/repos/bazelbuild/bazel/issues/1118/comments","events_url":"https://api.github.com/repos/bazelbuild/bazel/issues/1118/events","html_url":"https://github.com/bazelbuild/bazel/issues/1118","id":145955463,"node_id":"MDU6SXNzdWUxNDU5NTU0NjM=","number":1118,"title":"Support coverage","user":{"login":"ulfjack","id":7355745,"node_id":"MDQ6VXNlcjczNTU3NDU=","avatar_url":"https://avatars0.githubusercontent.com/u/7355745?v=4","gravatar_id":"","url":"https://api.github.com/users/ulfjack","html_url":"https://github.com/ulfjack","followers_url":"https://api.github.com/users/ulfjack/followers","following_url":"https://api.github.com/users/ulfjack/following{/other_user}","gists_url":"https://api.github.com/users/ulfjack/gists{/gist_id}","starred_url":"https://api.github.com/users/ulfjack/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ulfjack/subscriptions","organizations_url":"https://api.github.com/users/ulfjack/orgs","repos_url":"https://api.github.com/users/ulfjack/repos","events_url":"https://api.github.com/users/ulfjack/events{/privacy}","received_events_url":"https://api.github.com/users/ulfjack/received_events","type":"User","site_admin":false},"labels":[{"id":192364134,"node_id":"MDU6TGFiZWwxOTIzNjQxMzQ=","url":"https://api.github.com/repos/bazelbuild/bazel/labels/P1","name":"P1","color":"d93f0b","default":false},{"id":406295849,"node_id":"MDU6TGFiZWw0MDYyOTU4NDk=","url":"https://api.github.com/repos/bazelbuild/bazel/labels/category:%20rules%20%3E%20misc%20native","name":"category: rules > misc native","color":"d4c5f9","default":false},{"id":920235609,"node_id":"MDU6TGFiZWw5MjAyMzU2MDk=","url":"https://api.github.com/repos/bazelbuild/bazel/labels/coverage","name":"coverage","color":"FFC0CB","default":false},{"id":106503261,"node_id":"MDU6TGFiZWwxMDY1MDMyNjE=","url":"https://api.github.com/repos/bazelbuild/bazel/labels/type:%20feature%20request","name":"type: feature request","color":"0052cc","default":false}],"state":"open","locked":false,"assignee":{"login":"iirina","id":1687706,"node_id":"MDQ6VXNlcjE2ODc3MDY=","avatar_url":"https://avatars3.githubusercontent.com/u/1687706?v=4","gravatar_id":"","url":"https://api.github.com/users/iirina","html_url":"https://github.com/iirina","followers_url":"https://api.github.com/users/iirina/followers","following_url":"https://api.github.com/users/iirina/following{/other_user}","gists_url":"https://api.github.com/users/iirina/gists{/gist_id}","starred_url":"https://api.github.com/users/iirina/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iirina/subscriptions","organizations_url":"https://api.github.com/users/iirina/orgs","repos_url":"https://api.github.com/users/iirina/repos","events_url":"https://api.github.com/users/iirina/events{/privacy}","received_events_url":"https://api.github.com/users/iirina/received_events","type":"User","site_admin":false},"assignees":[{"login":"iirina","id":1687706,"node_id":"MDQ6VXNlcjE2ODc3MDY=","avatar_url":"https://avatars3.githubusercontent.com/u/1687706?v=4","gravatar_id":"","url":"https://api.github.com/users/iirina","html_url":"https://github.com/iirina","followers_url":"https://api.github.com/users/iirina/followers","following_url":"https://api.github.com/users/iirina/following{/other_user}","gists_url":"https://api.github.com/users/iirina/gists{/gist_id}","starred_url":"https://api.github.com/users/iirina/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iirina/subscriptions","organizations_url":"https://api.github.com/users/iirina/orgs","repos_url":"https://api.github.com/users/iirina/repos","events_url":"https://api.github.com/users/iirina/events{/privacy}","received_events_url":"https://api.github.com/users/iirina/received_events","type":"User","site_admin":false},{"login":"lberki","id":3524818,"node_id":"MDQ6VXNlcjM1MjQ4MTg=","avatar_url":"https://avatars1.githubusercontent.com/u/3524818?v=4","gravatar_id":"","url":"https://api.github.com/users/lberki","html_url":"https://github.com/lberki","followers_url":"https://api.github.com/users/lberki/followers","following_url":"https://api.github.com/users/lberki/following{/other_user}","gists_url":"https://api.github.com/users/lberki/gists{/gist_id}","starred_url":"https://api.github.com/users/lberki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lberki/subscriptions","organizations_url":"https://api.github.com/users/lberki/orgs","repos_url":"https://api.github.com/users/lberki/repos","events_url":"https://api.github.com/users/lberki/events{/privacy}","received_events_url":"https://api.github.com/users/lberki/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/bazelbuild/bazel/milestones/5","html_url":"https://github.com/bazelbuild/bazel/milestone/5","labels_url":"https://api.github.com/repos/bazelbuild/bazel/milestones/5/labels","id":1717213,"node_id":"MDk6TWlsZXN0b25lMTcxNzIxMw==","number":5,"title":"0.6","description":"","creator":{"login":"damienmg","id":3721087,"node_id":"MDQ6VXNlcjM3MjEwODc=","avatar_url":"https://avatars2.githubusercontent.com/u/3721087?v=4","gravatar_id":"","url":"https://api.github.com/users/damienmg","html_url":"https://github.com/damienmg","followers_url":"https://api.github.com/users/damienmg/followers","following_url":"https://api.github.com/users/damienmg/following{/other_user}","gists_url":"https://api.github.com/users/damienmg/gists{/gist_id}","starred_url":"https://api.github.com/users/damienmg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/damienmg/subscriptions","organizations_url":"https://api.github.com/users/damienmg/orgs","repos_url":"https://api.github.com/users/damienmg/repos","events_url":"https://api.github.com/users/damienmg/events{/privacy}","received_events_url":"https://api.github.com/users/damienmg/received_events","type":"User","site_admin":false},"open_issues":95,"closed_issues":123,"state":"closed","created_at":"2016-04-19T15:07:50Z","updated_at":"2018-07-19T12:29:43Z","due_on":"2017-06-30T07:00:00Z","closed_at":"2017-11-29T19:06:44Z"},"comments":74,"created_at":"2016-04-05T11:01:29Z","updated_at":"2018-07-30T20:58:03Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"We've gotten a number of requests to support coverage. Here's an email I wrote in response to one of those requests, which I'm reposting here as a feature request:\n\nIdeally, we'd want blaze coverage to exist and work in Bazel, just as it does in Blaze. The code is mostly there, but not quite. The coverage command itself doesn't actually do a lot of work; it sets --collect_code_coverage and a default --instrumentation_filter, and it optionally runs a tool to generate an HTML report (which is almost never used internally, where we push to a service instead). Otherwise it's identical to the test command, and the two flags can be manually set.\n\nInternally, we have a wrapper script (collect_coverage.sh) that wraps an individual test invocation and uses a tool (lcov_merger.par) to merge the coverage data from that invocation, which both aren't in Bazel, and Bazel also doesn't setup the environment correctly to tell the wrapper script about output locations (StandaloneTestStrategy.java).\n\nIf you actually tried, you'd get an error like this one:\nERROR: /usr/local/google/home/ulfjack/Projects/os-bazel/src/test/cpp/BUILD:5:1: output 'src/test/cpp/blaze_util_test/coverage.dat' was not created.\n\nIt doesn't seem very hard to make the necessary Bazel changes, but we can't export the scripts as-is.\n\nFrom my reading of the lcov documentation, lcov --capture looks a lot like what lcov_merger.par does, though I can't be completely certain (the docs are a bit scarce). It may make sense for us to integrate with lcov rather than export lcov_merger.par (or rewrite from scratch).\n"},"comment":{"url":"https://api.github.com/repos/bazelbuild/bazel/issues/comments/409007969","html_url":"https://github.com/bazelbuild/bazel/issues/1118#issuecomment-409007969","issue_url":"https://api.github.com/repos/bazelbuild/bazel/issues/1118","id":409007969,"node_id":"MDEyOklzc3VlQ29tbWVudDQwOTAwNzk2OQ==","user":{"login":"robfig","id":536325,"node_id":"MDQ6VXNlcjUzNjMyNQ==","avatar_url":"https://avatars3.githubusercontent.com/u/536325?v=4","gravatar_id":"","url":"https://api.github.com/users/robfig","html_url":"https://github.com/robfig","followers_url":"https://api.github.com/users/robfig/followers","following_url":"https://api.github.com/users/robfig/following{/other_user}","gists_url":"https://api.github.com/users/robfig/gists{/gist_id}","starred_url":"https://api.github.com/users/robfig/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robfig/subscriptions","organizations_url":"https://api.github.com/users/robfig/orgs","repos_url":"https://api.github.com/users/robfig/repos","events_url":"https://api.github.com/users/robfig/events{/privacy}","received_events_url":"https://api.github.com/users/robfig/received_events","type":"User","site_admin":false},"created_at":"2018-07-30T20:58:03Z","updated_at":"2018-07-30T20:58:03Z","author_association":"NONE","body":"Very much looking forward to this. Will this new set of work include collecting baseline coverage? \r\n\r\nhttps://github.com/bazelbuild/bazel/blob/master/src/main/java/com/google/devtools/build/lib/runtime/commands/CoverageCommand.java#L61"}}
{"actor":{"display_login":"robfig"}}