{"action":"opened","number":47,"pull_request":{"url":"https://api.github.com/repos/ldc-developers/ldc2.snap/pulls/47","id":166978373,"html_url":"https://github.com/ldc-developers/ldc2.snap/pull/47","diff_url":"https://github.com/ldc-developers/ldc2.snap/pull/47.diff","patch_url":"https://github.com/ldc-developers/ldc2.snap/pull/47.patch","issue_url":"https://api.github.com/repos/ldc-developers/ldc2.snap/issues/47","number":47,"state":"open","locked":false,"title":"Disable std.process tests for LDC 1.5.0+","user":{"login":"WebDrake","id":125075,"avatar_url":"https://avatars3.githubusercontent.com/u/125075?v=4","gravatar_id":"","url":"https://api.github.com/users/WebDrake","html_url":"https://github.com/WebDrake","followers_url":"https://api.github.com/users/WebDrake/followers","following_url":"https://api.github.com/users/WebDrake/following{/other_user}","gists_url":"https://api.github.com/users/WebDrake/gists{/gist_id}","starred_url":"https://api.github.com/users/WebDrake/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WebDrake/subscriptions","organizations_url":"https://api.github.com/users/WebDrake/orgs","repos_url":"https://api.github.com/users/WebDrake/repos","events_url":"https://api.github.com/users/WebDrake/events{/privacy}","received_events_url":"https://api.github.com/users/WebDrake/received_events","type":"User","site_admin":false},"body":"This is a bit of a sledgehammer to crack a walnut, but comes down to the fact that at least one `std.process` unittest fails when the Launchpad build system is running it, for LDC 1.5.0+ (i.e. phobos 2.075+):\r\n\r\n```\r\n391: Test command:\r\n/build/ldc2-1.5/parts/ldc/build/runtime/phobos2-test-runner\r\n\"std.process\"\r\n391: Test timeout computed to be: 9.99988e+06\r\n391: sh: 0: getcwd() failed: No such file or directory\r\n391: /bin/sh: 0: Can't open /tmp/std.process temporary file\r\n4c760c9b-f557-4216-a10f-a2c09428404a\r\n391: ****** FAIL release64 std.process\r\n391: core.exception.AssertError@std/process.d(1095): assertThrown\r\nfailed: No ProcessException was thrown.\r\n391: ----------------\r\n391: ??:? pure @safe void\r\nstd.exception.assertThrown!(std.process.ProcessException,\r\nstd.process.Pid).assertThrown(lazy std.process.Pid, immutable(char)[],\r\nimmutable(char)[], ulong) [0x4b0250c]\r\n391: ??:? void std.process.__unittestL1075_11() [0x4b02e42]\r\n391: ??:? [0x4b0efe0]\r\n391: ??:? void test_runner.doTest(object.ModuleInfo*, ref bool)\r\n[0x34351bf]\r\n391: ??:? bool test_runner.testModules() [0x34350c8]\r\n391: ??:? runModuleUnitTests [0x4b2ae1d]\r\n391: ??:? _d_run_main [0x4b1b4ad]\r\n391: ??:? __libc_start_main [0x34ad82f]\r\n391: ??:? _start [0x3434e58]\r\n391/1568 Test #391: std.process\r\n..................................................................***Failed\r\n0.68 sec\r\nsh: 0: getcwd() failed: No such file or directory\r\n/bin/sh: 0: Can't open /tmp/std.process temporary file\r\n4c760c9b-f557-4216-a10f-a2c09428404a\r\n****** FAIL release64 std.process\r\ncore.exception.AssertError@std/process.d(1095): assertThrown failed: No\r\nProcessException was thrown.\r\n```\r\n\r\nThe failing `getcwd()` call appears to be being triggered by the call to `std.process.uniqueTempPath()` introduced in this patch:\r\ndlang/phobos@8bc0ab6\r\n\r\n... which under the hood calls `std.file.tempDir()`, which then calls `getcwd()`.\r\n\r\nThis seems most likely to be failing because it clashes with permissions available in the Launchpad system (as the same tests pass just fine when run locally).  For this reason it seems best, in the short term, to just disable `std.process` tests for the snap package for LDC 1.5 and higher.\r\n\r\nLonger term, it may be worth looking into a CI/build system that is less picky about what a program can do.","created_at":"2018-02-03T20:13:21Z","updated_at":"2018-02-03T20:13:21Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"milestone":null,"commits_url":"https://api.github.com/repos/ldc-developers/ldc2.snap/pulls/47/commits","review_comments_url":"https://api.github.com/repos/ldc-developers/ldc2.snap/pulls/47/comments","review_comment_url":"https://api.github.com/repos/ldc-developers/ldc2.snap/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ldc-developers/ldc2.snap/issues/47/comments","statuses_url":"https://api.github.com/repos/ldc-developers/ldc2.snap/statuses/aa0ef75477e274137d5d8e150934011503104f9d","head":{"label":"WebDrake:disable-std-process","ref":"disable-std-process","sha":"aa0ef75477e274137d5d8e150934011503104f9d","user":{"login":"WebDrake","id":125075,"avatar_url":"https://avatars3.githubusercontent.com/u/125075?v=4","gravatar_id":"","url":"https://api.github.com/users/WebDrake","html_url":"https://github.com/WebDrake","followers_url":"https://api.github.com/users/WebDrake/followers","following_url":"https://api.github.com/users/WebDrake/following{/other_user}","gists_url":"https://api.github.com/users/WebDrake/gists{/gist_id}","starred_url":"https://api.github.com/users/WebDrake/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WebDrake/subscriptions","organizations_url":"https://api.github.com/users/WebDrake/orgs","repos_url":"https://api.github.com/users/WebDrake/repos","events_url":"https://api.github.com/users/WebDrake/events{/privacy}","received_events_url":"https://api.github.com/users/WebDrake/received_events","type":"User","site_admin":false},"repo":{"id":80153878,"name":"ldc2.snap","full_name":"WebDrake/ldc2.snap","owner":{"login":"WebDrake","id":125075,"avatar_url":"https://avatars3.githubusercontent.com/u/125075?v=4","gravatar_id":"","url":"https://api.github.com/users/WebDrake","html_url":"https://github.com/WebDrake","followers_url":"https://api.github.com/users/WebDrake/followers","following_url":"https://api.github.com/users/WebDrake/following{/other_user}","gists_url":"https://api.github.com/users/WebDrake/gists{/gist_id}","starred_url":"https://api.github.com/users/WebDrake/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WebDrake/subscriptions","organizations_url":"https://api.github.com/users/WebDrake/orgs","repos_url":"https://api.github.com/users/WebDrake/repos","events_url":"https://api.github.com/users/WebDrake/events{/privacy}","received_events_url":"https://api.github.com/users/WebDrake/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/WebDrake/ldc2.snap","description":"Snap package for LDC, the LLVM-based D compiler","fork":true,"url":"https://api.github.com/repos/WebDrake/ldc2.snap","forks_url":"https://api.github.com/repos/WebDrake/ldc2.snap/forks","keys_url":"https://api.github.com/repos/WebDrake/ldc2.snap/keys{/key_id}","collaborators_url":"https://api.github.com/repos/WebDrake/ldc2.snap/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/WebDrake/ldc2.snap/teams","hooks_url":"https://api.github.com/repos/WebDrake/ldc2.snap/hooks","issue_events_url":"https://api.github.com/repos/WebDrake/ldc2.snap/issues/events{/number}","events_url":"https://api.github.com/repos/WebDrake/ldc2.snap/events","assignees_url":"https://api.github.com/repos/WebDrake/ldc2.snap/assignees{/user}","branches_url":"https://api.github.com/repos/WebDrake/ldc2.snap/branches{/branch}","tags_url":"https://api.github.com/repos/WebDrake/ldc2.snap/tags","blobs_url":"https://api.github.com/repos/WebDrake/ldc2.snap/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/WebDrake/ldc2.snap/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/WebDrake/ldc2.snap/git/refs{/sha}","trees_url":"https://api.github.com/repos/WebDrake/ldc2.snap/git/trees{/sha}","statuses_url":"https://api.github.com/repos/WebDrake/ldc2.snap/statuses/{sha}","languages_url":"https://api.github.com/repos/WebDrake/ldc2.snap/languages","stargazers_url":"https://api.github.com/repos/WebDrake/ldc2.snap/stargazers","contributors_url":"https://api.github.com/repos/WebDrake/ldc2.snap/contributors","subscribers_url":"https://api.github.com/repos/WebDrake/ldc2.snap/subscribers","subscription_url":"https://api.github.com/repos/WebDrake/ldc2.snap/subscription","commits_url":"https://api.github.com/repos/WebDrake/ldc2.snap/commits{/sha}","git_commits_url":"https://api.github.com/repos/WebDrake/ldc2.snap/git/commits{/sha}","comments_url":"https://api.github.com/repos/WebDrake/ldc2.snap/comments{/number}","issue_comment_url":"https://api.github.com/repos/WebDrake/ldc2.snap/issues/comments{/number}","contents_url":"https://api.github.com/repos/WebDrake/ldc2.snap/contents/{+path}","compare_url":"https://api.github.com/repos/WebDrake/ldc2.snap/compare/{base}...{head}","merges_url":"https://api.github.com/repos/WebDrake/ldc2.snap/merges","archive_url":"https://api.github.com/repos/WebDrake/ldc2.snap/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/WebDrake/ldc2.snap/downloads","issues_url":"https://api.github.com/repos/WebDrake/ldc2.snap/issues{/number}","pulls_url":"https://api.github.com/repos/WebDrake/ldc2.snap/pulls{/number}","milestones_url":"https://api.github.com/repos/WebDrake/ldc2.snap/milestones{/number}","notifications_url":"https://api.github.com/repos/WebDrake/ldc2.snap/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/WebDrake/ldc2.snap/labels{/name}","releases_url":"https://api.github.com/repos/WebDrake/ldc2.snap/releases{/id}","deployments_url":"https://api.github.com/repos/WebDrake/ldc2.snap/deployments","created_at":"2017-01-26T20:46:18Z","updated_at":"2017-01-26T20:44:43Z","pushed_at":"2018-02-03T20:12:13Z","git_url":"git://github.com/WebDrake/ldc2.snap.git","ssh_url":"git@github.com:WebDrake/ldc2.snap.git","clone_url":"https://github.com/WebDrake/ldc2.snap.git","svn_url":"https://github.com/WebDrake/ldc2.snap","homepage":"","size":50,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"1.2"}},"base":{"label":"ldc-developers:1.5","ref":"1.5","sha":"4a4ed6f53e096d1b3bc570f76ab0679b5642e884","user":{"login":"ldc-developers","id":960112,"avatar_url":"https://avatars2.githubusercontent.com/u/960112?v=4","gravatar_id":"","url":"https://api.github.com/users/ldc-developers","html_url":"https://github.com/ldc-developers","followers_url":"https://api.github.com/users/ldc-developers/followers","following_url":"https://api.github.com/users/ldc-developers/following{/other_user}","gists_url":"https://api.github.com/users/ldc-developers/gists{/gist_id}","starred_url":"https://api.github.com/users/ldc-developers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ldc-developers/subscriptions","organizations_url":"https://api.github.com/users/ldc-developers/orgs","repos_url":"https://api.github.com/users/ldc-developers/repos","events_url":"https://api.github.com/users/ldc-developers/events{/privacy}","received_events_url":"https://api.github.com/users/ldc-developers/received_events","type":"Organization","site_admin":false},"repo":{"id":79969549,"name":"ldc2.snap","full_name":"ldc-developers/ldc2.snap","owner":{"login":"ldc-developers","id":960112,"avatar_url":"https://avatars2.githubusercontent.com/u/960112?v=4","gravatar_id":"","url":"https://api.github.com/users/ldc-developers","html_url":"https://github.com/ldc-developers","followers_url":"https://api.github.com/users/ldc-developers/followers","following_url":"https://api.github.com/users/ldc-developers/following{/other_user}","gists_url":"https://api.github.com/users/ldc-developers/gists{/gist_id}","starred_url":"https://api.github.com/users/ldc-developers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ldc-developers/subscriptions","organizations_url":"https://api.github.com/users/ldc-developers/orgs","repos_url":"https://api.github.com/users/ldc-developers/repos","events_url":"https://api.github.com/users/ldc-developers/events{/privacy}","received_events_url":"https://api.github.com/users/ldc-developers/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ldc-developers/ldc2.snap","description":"Snap package definition for LDC, the LLVM-based D compiler","fork":false,"url":"https://api.github.com/repos/ldc-developers/ldc2.snap","forks_url":"https://api.github.com/repos/ldc-developers/ldc2.snap/forks","keys_url":"https://api.github.com/repos/ldc-developers/ldc2.snap/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ldc-developers/ldc2.snap/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ldc-developers/ldc2.snap/teams","hooks_url":"https://api.github.com/repos/ldc-developers/ldc2.snap/hooks","issue_events_url":"https://api.github.com/repos/ldc-developers/ldc2.snap/issues/events{/number}","events_url":"https://api.github.com/repos/ldc-developers/ldc2.snap/events","assignees_url":"https://api.github.com/repos/ldc-developers/ldc2.snap/assignees{/user}","branches_url":"https://api.github.com/repos/ldc-developers/ldc2.snap/branches{/branch}","tags_url":"https://api.github.com/repos/ldc-developers/ldc2.snap/tags","blobs_url":"https://api.github.com/repos/ldc-developers/ldc2.snap/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ldc-developers/ldc2.snap/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ldc-developers/ldc2.snap/git/refs{/sha}","trees_url":"https://api.github.com/repos/ldc-developers/ldc2.snap/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ldc-developers/ldc2.snap/statuses/{sha}","languages_url":"https://api.github.com/repos/ldc-developers/ldc2.snap/languages","stargazers_url":"https://api.github.com/repos/ldc-developers/ldc2.snap/stargazers","contributors_url":"https://api.github.com/repos/ldc-developers/ldc2.snap/contributors","subscribers_url":"https://api.github.com/repos/ldc-developers/ldc2.snap/subscribers","subscription_url":"https://api.github.com/repos/ldc-developers/ldc2.snap/subscription","commits_url":"https://api.github.com/repos/ldc-developers/ldc2.snap/commits{/sha}","git_commits_url":"https://api.github.com/repos/ldc-developers/ldc2.snap/git/commits{/sha}","comments_url":"https://api.github.com/repos/ldc-developers/ldc2.snap/comments{/number}","issue_comment_url":"https://api.github.com/repos/ldc-developers/ldc2.snap/issues/comments{/number}","contents_url":"https://api.github.com/repos/ldc-developers/ldc2.snap/contents/{+path}","compare_url":"https://api.github.com/repos/ldc-developers/ldc2.snap/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ldc-developers/ldc2.snap/merges","archive_url":"https://api.github.com/repos/ldc-developers/ldc2.snap/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ldc-developers/ldc2.snap/downloads","issues_url":"https://api.github.com/repos/ldc-developers/ldc2.snap/issues{/number}","pulls_url":"https://api.github.com/repos/ldc-developers/ldc2.snap/pulls{/number}","milestones_url":"https://api.github.com/repos/ldc-developers/ldc2.snap/milestones{/number}","notifications_url":"https://api.github.com/repos/ldc-developers/ldc2.snap/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ldc-developers/ldc2.snap/labels{/name}","releases_url":"https://api.github.com/repos/ldc-developers/ldc2.snap/releases{/id}","deployments_url":"https://api.github.com/repos/ldc-developers/ldc2.snap/deployments","created_at":"2017-01-25T00:43:12Z","updated_at":"2017-10-03T20:57:58Z","pushed_at":"2018-02-01T00:07:26Z","git_url":"git://github.com/ldc-developers/ldc2.snap.git","ssh_url":"git@github.com:ldc-developers/ldc2.snap.git","clone_url":"https://github.com/ldc-developers/ldc2.snap.git","svn_url":"https://github.com/ldc-developers/ldc2.snap","homepage":"","size":48,"stargazers_count":5,"watchers_count":5,"language":null,"has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"archived":false,"open_issues_count":3,"license":null,"forks":2,"open_issues":3,"watchers":5,"default_branch":"1.4"}},"_links":{"self":{"href":"https://api.github.com/repos/ldc-developers/ldc2.snap/pulls/47"},"html":{"href":"https://github.com/ldc-developers/ldc2.snap/pull/47"},"issue":{"href":"https://api.github.com/repos/ldc-developers/ldc2.snap/issues/47"},"comments":{"href":"https://api.github.com/repos/ldc-developers/ldc2.snap/issues/47/comments"},"review_comments":{"href":"https://api.github.com/repos/ldc-developers/ldc2.snap/pulls/47/comments"},"review_comment":{"href":"https://api.github.com/repos/ldc-developers/ldc2.snap/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ldc-developers/ldc2.snap/pulls/47/commits"},"statuses":{"href":"https://api.github.com/repos/ldc-developers/ldc2.snap/statuses/aa0ef75477e274137d5d8e150934011503104f9d"}},"author_association":"CONTRIBUTOR","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":true,"commits":1,"additions":1,"deletions":1,"changed_files":1}}
{"actor":{"display_login":"WebDrake"}}