payload: {"action":"created","issue":{"url":"https://api.github.com/repos/flux-framework/flux-core/issues/2196","repository_url":"https://api.github.com/repos/flux-framework/flux-core","labels_url":"https://api.github.com/repos/flux-framework/flux-core/issues/2196/labels{/name}","comments_url":"https://api.github.com/repos/flux-framework/flux-core/issues/2196/comments","events_url":"https://api.github.com/repos/flux-framework/flux-core/issues/2196/events","html_url":"https://github.com/flux-framework/flux-core/pull/2196","id":456679506,"node_id":"MDExOlB1bGxSZXF1ZXN0Mjg4NjUwMTUz","number":2196,"title":"flux-shell: add skeleton job shell","user":{"login":"garlick","id":169947,"node_id":"MDQ6VXNlcjE2OTk0Nw==","avatar_url":"https://avatars1.githubusercontent.com/u/169947?v=4","gravatar_id":"","url":"https://api.github.com/users/garlick","html_url":"https://github.com/garlick","followers_url":"https://api.github.com/users/garlick/followers","following_url":"https://api.github.com/users/garlick/following{/other_user}","gists_url":"https://api.github.com/users/garlick/gists{/gist_id}","starred_url":"https://api.github.com/users/garlick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/garlick/subscriptions","organizations_url":"https://api.github.com/users/garlick/orgs","repos_url":"https://api.github.com/users/garlick/repos","events_url":"https://api.github.com/users/garlick/events{/privacy}","received_events_url":"https://api.github.com/users/garlick/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2019-06-16T20:33:52Z","updated_at":"2019-06-16T20:57:05Z","closed_at":null,"author_association":"MEMBER","pull_request":{"url":"https://api.github.com/repos/flux-framework/flux-core/pulls/2196","html_url":"https://github.com/flux-framework/flux-core/pull/2196","diff_url":"https://github.com/flux-framework/flux-core/pull/2196.diff","patch_url":"https://github.com/flux-framework/flux-core/pull/2196.patch"},"body":"Here's an outline of a job shell.\r\n\r\nThus far, it can read jobspec or R from files or from the `job-info` service, can parse R and extract the \"children\" for the local broker rank, and sets up a reactor.\r\n\r\nStill todo to satisfy #2186 \r\n* calculate number of local tasks and starting rank\r\n* tests\r\n\r\nI'm probably done for today and just wanted to post a snapshot and get any early feedback people might have.\r\n\r\nDemo:\r\n```\r\n$ flux jobspec srun -N4 -n8 hostname >j\r\n$ flux job submit j\r\n598812393472\r\n$ flux job info 598812393472 R\r\n{\"version\":1,\"execution\":{\"R_lite\":[{\"rank\":\"0-3\",\"children\":{\"core\":\"0-1\"}}]}}\r\n$ ./flux-shell -h\r\nUsage: flux-shell [OPTIONS] jobid broker-rank\r\n  -h, --help             Display this message.\r\n  -j, --jobspec=FILE     Get jobspec from FILE, not from Flux KVS\r\n  -r, --resources=FILE   Get R from FILE, not from Flux KVS\r\n  -v, --verbose          Log actions to stderr\r\n$ ./flux-shell -v 598812393472 0\r\nflux-shell: R_local: {\"core\":\"0-1\"}\r\n$ /flux-shell -v 598812393472 3\r\nflux-shell: R_local: {\"core\":\"0-1\"}\r\n$ ./flux-shell -v 598812393472 4\r\nflux-shell: R_local is empty\r\n```"},"comment":{"url":"https://api.github.com/repos/flux-framework/flux-core/issues/comments/502485297","html_url":"https://github.com/flux-framework/flux-core/pull/2196#issuecomment-502485297","issue_url":"https://api.github.com/repos/flux-framework/flux-core/issues/2196","id":502485297,"node_id":"MDEyOklzc3VlQ29tbWVudDUwMjQ4NTI5Nw==","user":{"login":"codecov-io","id":8655789,"node_id":"MDQ6VXNlcjg2NTU3ODk=","avatar_url":"https://avatars0.githubusercontent.com/u/8655789?v=4","gravatar_id":"","url":"https://api.github.com/users/codecov-io","html_url":"https://github.com/codecov-io","followers_url":"https://api.github.com/users/codecov-io/followers","following_url":"https://api.github.com/users/codecov-io/following{/other_user}","gists_url":"https://api.github.com/users/codecov-io/gists{/gist_id}","starred_url":"https://api.github.com/users/codecov-io/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codecov-io/subscriptions","organizations_url":"https://api.github.com/users/codecov-io/orgs","repos_url":"https://api.github.com/users/codecov-io/repos","events_url":"https://api.github.com/users/codecov-io/events{/privacy}","received_events_url":"https://api.github.com/users/codecov-io/received_events","type":"User","site_admin":false},"created_at":"2019-06-16T20:57:05Z","updated_at":"2019-06-16T20:57:05Z","author_association":"NONE","body":"# [Codecov](https://codecov.io/gh/flux-framework/flux-core/pull/2196?src=pr&el=h1) Report\n> Merging [#2196](https://codecov.io/gh/flux-framework/flux-core/pull/2196?src=pr&el=desc) into [master](https://codecov.io/gh/flux-framework/flux-core/commit/4c93728c09e8663cf7f93cfa7ae52d3c82385a70?src=pr&el=desc) will **decrease** coverage by `0.02%`.\n> The diff coverage is `0%`.\n\n\n```diff\n@@            Coverage Diff             @@\n##           master    #2196      +/-   ##\n==========================================\n- Coverage   80.86%   80.83%   -0.03%     \n==========================================\n  Files         199      199              \n  Lines       31815    31823       +8     \n==========================================\n- Hits        25728    25725       -3     \n- Misses       6087     6098      +11\n```\n\n\n| [Impacted Files](https://codecov.io/gh/flux-framework/flux-core/pull/2196?src=pr&el=tree) | Coverage Δ | |\n|---|---|---|\n| [src/modules/job-exec/job-exec.c](https://codecov.io/gh/flux-framework/flux-core/pull/2196/diff?src=pr&el=tree#diff-c3JjL21vZHVsZXMvam9iLWV4ZWMvam9iLWV4ZWMuYw==) | `74.36% <ø> (ø)` | :arrow_up: |\n| [src/common/libresource/rset.c](https://codecov.io/gh/flux-framework/flux-core/pull/2196/diff?src=pr&el=tree#diff-c3JjL2NvbW1vbi9saWJyZXNvdXJjZS9yc2V0LmM=) | `80% <0%> (ø)` | |\n| [src/common/libflux/mrpc.c](https://codecov.io/gh/flux-framework/flux-core/pull/2196/diff?src=pr&el=tree#diff-c3JjL2NvbW1vbi9saWJmbHV4L21ycGMuYw==) | `87.79% <0%> (-1.19%)` | :arrow_down: |\n"}}
other: {"actor":{"display_login":"codecov-io"}}