{"action":"created","issue":{"url":"https://api.github.com/repos/Slicer/Slicer/issues/561","repository_url":"https://api.github.com/repos/Slicer/Slicer","labels_url":"https://api.github.com/repos/Slicer/Slicer/issues/561/labels{/name}","comments_url":"https://api.github.com/repos/Slicer/Slicer/issues/561/comments","events_url":"https://api.github.com/repos/Slicer/Slicer/issues/561/events","html_url":"https://github.com/Slicer/Slicer/pull/561","id":169261782,"number":561,"title":"WIP: CI: set DISPLAY in CircleCI; check if image updated before re-saving","user":{"login":"ihnorton","id":327706,"avatar_url":"https://avatars.githubusercontent.com/u/327706?v=3","gravatar_id":"","url":"https://api.github.com/users/ihnorton","html_url":"https://github.com/ihnorton","followers_url":"https://api.github.com/users/ihnorton/followers","following_url":"https://api.github.com/users/ihnorton/following{/other_user}","gists_url":"https://api.github.com/users/ihnorton/gists{/gist_id}","starred_url":"https://api.github.com/users/ihnorton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ihnorton/subscriptions","organizations_url":"https://api.github.com/users/ihnorton/orgs","repos_url":"https://api.github.com/users/ihnorton/repos","events_url":"https://api.github.com/users/ihnorton/events{/privacy}","received_events_url":"https://api.github.com/users/ihnorton/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Slicer/Slicer/labels/feedback","name":"feedback","color":"d4c5f9"},{"url":"https://api.github.com/repos/Slicer/Slicer/labels/wip","name":"wip","color":"fad8c7"}],"state":"open","locked":false,"assignee":{"login":"MayeulChassagnard","id":20341270,"avatar_url":"https://avatars.githubusercontent.com/u/20341270?v=3","gravatar_id":"","url":"https://api.github.com/users/MayeulChassagnard","html_url":"https://github.com/MayeulChassagnard","followers_url":"https://api.github.com/users/MayeulChassagnard/followers","following_url":"https://api.github.com/users/MayeulChassagnard/following{/other_user}","gists_url":"https://api.github.com/users/MayeulChassagnard/gists{/gist_id}","starred_url":"https://api.github.com/users/MayeulChassagnard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MayeulChassagnard/subscriptions","organizations_url":"https://api.github.com/users/MayeulChassagnard/orgs","repos_url":"https://api.github.com/users/MayeulChassagnard/repos","events_url":"https://api.github.com/users/MayeulChassagnard/events{/privacy}","received_events_url":"https://api.github.com/users/MayeulChassagnard/received_events","type":"User","site_admin":false},"assignees":[{"login":"MayeulChassagnard","id":20341270,"avatar_url":"https://avatars.githubusercontent.com/u/20341270?v=3","gravatar_id":"","url":"https://api.github.com/users/MayeulChassagnard","html_url":"https://github.com/MayeulChassagnard","followers_url":"https://api.github.com/users/MayeulChassagnard/followers","following_url":"https://api.github.com/users/MayeulChassagnard/following{/other_user}","gists_url":"https://api.github.com/users/MayeulChassagnard/gists{/gist_id}","starred_url":"https://api.github.com/users/MayeulChassagnard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MayeulChassagnard/subscriptions","organizations_url":"https://api.github.com/users/MayeulChassagnard/orgs","repos_url":"https://api.github.com/users/MayeulChassagnard/repos","events_url":"https://api.github.com/users/MayeulChassagnard/events{/privacy}","received_events_url":"https://api.github.com/users/MayeulChassagnard/received_events","type":"User","site_admin":false}],"milestone":null,"comments":7,"created_at":"2016-08-03T23:59:35Z","updated_at":"2016-08-24T21:25:40Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/Slicer/Slicer/pulls/561","html_url":"https://github.com/Slicer/Slicer/pull/561","diff_url":"https://github.com/Slicer/Slicer/pull/561.diff","patch_url":"https://github.com/Slicer/Slicer/pull/561.patch"},"body":"This seems to work -- I can't shell in to a running build container itself because CircleCI doesn't support `docker exec`, but launching a new instance does allow to connect to the X server on the host.\r\n\r\nFor now this hard-codes the default IP address used for the `docker0` bridge and client. We can do a little more work with some awk'ing to get the values dynamically.\r\n\r\nAlso adds a check for whether `docker pull` actually updated anything, to avoid re-saving the image unnecessarily (saves 3-5 minutes)."},"comment":{"url":"https://api.github.com/repos/Slicer/Slicer/issues/comments/242213423","html_url":"https://github.com/Slicer/Slicer/pull/561#issuecomment-242213423","issue_url":"https://api.github.com/repos/Slicer/Slicer/issues/561","id":242213423,"user":{"login":"pieper","id":126077,"avatar_url":"https://avatars.githubusercontent.com/u/126077?v=3","gravatar_id":"","url":"https://api.github.com/users/pieper","html_url":"https://github.com/pieper","followers_url":"https://api.github.com/users/pieper/followers","following_url":"https://api.github.com/users/pieper/following{/other_user}","gists_url":"https://api.github.com/users/pieper/gists{/gist_id}","starred_url":"https://api.github.com/users/pieper/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pieper/subscriptions","organizations_url":"https://api.github.com/users/pieper/orgs","repos_url":"https://api.github.com/users/pieper/repos","events_url":"https://api.github.com/users/pieper/events{/privacy}","received_events_url":"https://api.github.com/users/pieper/received_events","type":"User","site_admin":false},"created_at":"2016-08-24T21:25:39Z","updated_at":"2016-08-24T21:25:39Z","body":"+1 to working on the SlicerDocker\n\nOn Wed, Aug 24, 2016 at 5:12 PM, Jean-Christophe Fillion-Robin <\nnotifications@github.com> wrote:\n\n> @thewtex <https://github.com/thewtex> Instead of re-using the mesa\n> approach, I suggest @MayeulChassagnard\n> <https://github.com/MayeulChassagnard> looks into finalizing\n> thewtex/SlicerDocker#5 <https://github.com/thewtex/SlicerDocker/pull/5>\n> What do you think ?\n>\n> for reference, we tried\n>\n> XSOCK=/tmp/.X11-unix\n> XAUTH=/tmp/.docker.xauth\n> touch $XAUTH\n> xauth nlist $DISPLAY | sed -e 's/^..../ffff/' | xauth -f $XAUTH nmerge -\n>\n> docker run \\\n>     -v $XSOCK:$XSOCK:rw \\\n>     -v $XAUTH:$XAUTH:rw \\\n>     --device=/dev/dri/card0:/dev/dri/card0 \\\n>     -e DISPLAY=$DISPLAY \\\n>         -e XAUTHORITY=$XAUTH \\\n>         -ti slicer/slicer-build bash\n>\n> then\n>\n> cmake -DBUILD_TESTING:BOOL=ON\n> ninja qSlicerBaseQTGUICxxTests\n> ctest -R qSlicerWidgetTest2 -V\n>\n> but it fails (as expected, since VTK is not built with mesa) with:\n>\n> 281: Test command: /usr/src/Slicer-build/Slicer-build/Slicer \"--launcher-no-splash\" \"--launch\" \"/usr/src/Slicer-build/Slicer-build/bin/qSlicerBaseQTGUICxxTests\" \"qSlicerWidgetTest2\"\n> 281: Test timeout computed to be: 1800\n> 281: X Error: BadValue (integer parameter out of range for operation) 2\n> 281:   Extension:    154 (Uknown extension)\n> 281:   Minor opcode: 3 (Unknown request)\n> 281:   Resource id:  0x0\n> 281: X Error: GLXBadContext 169\n> 281:   Extension:    154 (Uknown extension)\n> 281:   Minor opcode: 5 (Unknown request)\n> 281:   Resource id:  0x5400011\n> 281: X Error: GLXBadContext 169\n> 281:   Extension:    154 (Uknown extension)\n> 281:   Minor opcode: 5 (Unknown request)\n> 281:   Resource id:  0x5400011\n> 281: error: [/usr/src/Slicer-build/Slicer-build/bin/qSlicerBaseQTGUICxxTests] exit abnormally - Report the problem.\n>\n> —\n> You are receiving this because you are subscribed to this thread.\n> Reply to this email directly, view it on GitHub\n> <https://github.com/Slicer/Slicer/pull/561#issuecomment-242209711>, or mute\n> the thread\n> <https://github.com/notifications/unsubscribe-auth/AAHsfTilo0bmvqRxpD8tClYIu2hwznlUks5qjLO6gaJpZM4JcNsb>\n> .\n>\n"}}
{"actor":{"display_login":"pieper"}}