{"action":"opened","number":2170,"pull_request":{"url":"https://api.github.com/repos/flatpak/flatpak/pulls/2170","id":219721788,"node_id":"MDExOlB1bGxSZXF1ZXN0MjE5NzIxNzg4","html_url":"https://github.com/flatpak/flatpak/pull/2170","diff_url":"https://github.com/flatpak/flatpak/pull/2170.diff","patch_url":"https://github.com/flatpak/flatpak/pull/2170.patch","issue_url":"https://api.github.com/repos/flatpak/flatpak/issues/2170","number":2170,"state":"open","locked":false,"title":"tests: Autogenerate test matrix","user":{"login":"alexlarsson","id":990736,"node_id":"MDQ6VXNlcjk5MDczNg==","avatar_url":"https://avatars2.githubusercontent.com/u/990736?v=4","gravatar_id":"","url":"https://api.github.com/users/alexlarsson","html_url":"https://github.com/alexlarsson","followers_url":"https://api.github.com/users/alexlarsson/followers","following_url":"https://api.github.com/users/alexlarsson/following{/other_user}","gists_url":"https://api.github.com/users/alexlarsson/gists{/gist_id}","starred_url":"https://api.github.com/users/alexlarsson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexlarsson/subscriptions","organizations_url":"https://api.github.com/users/alexlarsson/orgs","repos_url":"https://api.github.com/users/alexlarsson/repos","events_url":"https://api.github.com/users/alexlarsson/events{/privacy}","received_events_url":"https://api.github.com/users/alexlarsson/received_events","type":"User","site_admin":false},"body":"Several tests have alternative wrappers that just set some feature\r\nflags. For instance to switch between user and system and with or\r\nwithout deltas. This change makes those wrappers automatically\r\ngenerated from a simple description of the features.\r\n\r\nFor example the test-run.sh test goes from:\r\n-       tests/test-run.sh \\\r\n-       tests/test-run-system.sh \\\r\n-       tests/test-run-deltas.sh \\\r\n-       tests/test-run-system-deltas.sh \\\r\nto\r\n+       tests/test-run.sh{{user+system},{nodeltas+deltas}} \\\r\n\r\nThere is some complexity here because the TESTS variable in automake\r\ncan't be runtime generated, so we rewrite it during \"make\r\nupdate-test-matrix\" and commit the result to git.\r\n\r\nThe way it works is that make update-test-matrix takes the\r\nTEST_MATRIX_SOURCE list, passes it to tests/expand-test-matrix.sh\r\nwhich generates all the combinations in tests/Makefile-test-matrix.am.inc\r\nwhere a test like tests/test-foo.sh{user+system} will get\r\nconverted to tests/test-foo.sh@user.wrap and tests/test-foo.sh@system.wrap.\r\n\r\nWe then have a pattern rule matchin tests/*.wrap which will generate\r\na wrapper that sets the right environment flags based on $0 and then\r\nspawns the wrapper.","created_at":"2018-10-02T14:21:18Z","updated_at":"2018-10-02T14:21:18Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/flatpak/flatpak/pulls/2170/commits","review_comments_url":"https://api.github.com/repos/flatpak/flatpak/pulls/2170/comments","review_comment_url":"https://api.github.com/repos/flatpak/flatpak/pulls/comments{/number}","comments_url":"https://api.github.com/repos/flatpak/flatpak/issues/2170/comments","statuses_url":"https://api.github.com/repos/flatpak/flatpak/statuses/28b71aaf4195135b07b0c6e2caad043250da2b3a","head":{"label":"alexlarsson:split-tests","ref":"split-tests","sha":"28b71aaf4195135b07b0c6e2caad043250da2b3a","user":{"login":"alexlarsson","id":990736,"node_id":"MDQ6VXNlcjk5MDczNg==","avatar_url":"https://avatars2.githubusercontent.com/u/990736?v=4","gravatar_id":"","url":"https://api.github.com/users/alexlarsson","html_url":"https://github.com/alexlarsson","followers_url":"https://api.github.com/users/alexlarsson/followers","following_url":"https://api.github.com/users/alexlarsson/following{/other_user}","gists_url":"https://api.github.com/users/alexlarsson/gists{/gist_id}","starred_url":"https://api.github.com/users/alexlarsson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexlarsson/subscriptions","organizations_url":"https://api.github.com/users/alexlarsson/orgs","repos_url":"https://api.github.com/users/alexlarsson/repos","events_url":"https://api.github.com/users/alexlarsson/events{/privacy}","received_events_url":"https://api.github.com/users/alexlarsson/received_events","type":"User","site_admin":false},"repo":{"id":60786210,"node_id":"MDEwOlJlcG9zaXRvcnk2MDc4NjIxMA==","name":"flatpak","full_name":"alexlarsson/flatpak","private":false,"owner":{"login":"alexlarsson","id":990736,"node_id":"MDQ6VXNlcjk5MDczNg==","avatar_url":"https://avatars2.githubusercontent.com/u/990736?v=4","gravatar_id":"","url":"https://api.github.com/users/alexlarsson","html_url":"https://github.com/alexlarsson","followers_url":"https://api.github.com/users/alexlarsson/followers","following_url":"https://api.github.com/users/alexlarsson/following{/other_user}","gists_url":"https://api.github.com/users/alexlarsson/gists{/gist_id}","starred_url":"https://api.github.com/users/alexlarsson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexlarsson/subscriptions","organizations_url":"https://api.github.com/users/alexlarsson/orgs","repos_url":"https://api.github.com/users/alexlarsson/repos","events_url":"https://api.github.com/users/alexlarsson/events{/privacy}","received_events_url":"https://api.github.com/users/alexlarsson/received_events","type":"User","site_admin":false},"html_url":"https://github.com/alexlarsson/flatpak","description":"Linux application sandboxing and distribution framework (formerly xdg-app)","fork":true,"url":"https://api.github.com/repos/alexlarsson/flatpak","forks_url":"https://api.github.com/repos/alexlarsson/flatpak/forks","keys_url":"https://api.github.com/repos/alexlarsson/flatpak/keys{/key_id}","collaborators_url":"https://api.github.com/repos/alexlarsson/flatpak/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/alexlarsson/flatpak/teams","hooks_url":"https://api.github.com/repos/alexlarsson/flatpak/hooks","issue_events_url":"https://api.github.com/repos/alexlarsson/flatpak/issues/events{/number}","events_url":"https://api.github.com/repos/alexlarsson/flatpak/events","assignees_url":"https://api.github.com/repos/alexlarsson/flatpak/assignees{/user}","branches_url":"https://api.github.com/repos/alexlarsson/flatpak/branches{/branch}","tags_url":"https://api.github.com/repos/alexlarsson/flatpak/tags","blobs_url":"https://api.github.com/repos/alexlarsson/flatpak/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/alexlarsson/flatpak/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/alexlarsson/flatpak/git/refs{/sha}","trees_url":"https://api.github.com/repos/alexlarsson/flatpak/git/trees{/sha}","statuses_url":"https://api.github.com/repos/alexlarsson/flatpak/statuses/{sha}","languages_url":"https://api.github.com/repos/alexlarsson/flatpak/languages","stargazers_url":"https://api.github.com/repos/alexlarsson/flatpak/stargazers","contributors_url":"https://api.github.com/repos/alexlarsson/flatpak/contributors","subscribers_url":"https://api.github.com/repos/alexlarsson/flatpak/subscribers","subscription_url":"https://api.github.com/repos/alexlarsson/flatpak/subscription","commits_url":"https://api.github.com/repos/alexlarsson/flatpak/commits{/sha}","git_commits_url":"https://api.github.com/repos/alexlarsson/flatpak/git/commits{/sha}","comments_url":"https://api.github.com/repos/alexlarsson/flatpak/comments{/number}","issue_comment_url":"https://api.github.com/repos/alexlarsson/flatpak/issues/comments{/number}","contents_url":"https://api.github.com/repos/alexlarsson/flatpak/contents/{+path}","compare_url":"https://api.github.com/repos/alexlarsson/flatpak/compare/{base}...{head}","merges_url":"https://api.github.com/repos/alexlarsson/flatpak/merges","archive_url":"https://api.github.com/repos/alexlarsson/flatpak/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/alexlarsson/flatpak/downloads","issues_url":"https://api.github.com/repos/alexlarsson/flatpak/issues{/number}","pulls_url":"https://api.github.com/repos/alexlarsson/flatpak/pulls{/number}","milestones_url":"https://api.github.com/repos/alexlarsson/flatpak/milestones{/number}","notifications_url":"https://api.github.com/repos/alexlarsson/flatpak/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/alexlarsson/flatpak/labels{/name}","releases_url":"https://api.github.com/repos/alexlarsson/flatpak/releases{/id}","deployments_url":"https://api.github.com/repos/alexlarsson/flatpak/deployments","created_at":"2016-06-09T15:38:25Z","updated_at":"2018-09-13T09:52:53Z","pushed_at":"2018-10-02T14:20:56Z","git_url":"git://github.com/alexlarsson/flatpak.git","ssh_url":"git@github.com:alexlarsson/flatpak.git","clone_url":"https://github.com/alexlarsson/flatpak.git","svn_url":"https://github.com/alexlarsson/flatpak","homepage":"http://flatpak.org","size":14911,"stargazers_count":0,"watchers_count":0,"language":"C","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"lgpl-2.1","name":"GNU Lesser General Public License v2.1","spdx_id":"LGPL-2.1","url":"https://api.github.com/licenses/lgpl-2.1","node_id":"MDc6TGljZW5zZTEx"},"forks":1,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"flatpak:master","ref":"master","sha":"7c5751a4f92b8a8f0fc70710f491a8e10cae1585","user":{"login":"flatpak","id":19473042,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE5NDczMDQy","avatar_url":"https://avatars0.githubusercontent.com/u/19473042?v=4","gravatar_id":"","url":"https://api.github.com/users/flatpak","html_url":"https://github.com/flatpak","followers_url":"https://api.github.com/users/flatpak/followers","following_url":"https://api.github.com/users/flatpak/following{/other_user}","gists_url":"https://api.github.com/users/flatpak/gists{/gist_id}","starred_url":"https://api.github.com/users/flatpak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/flatpak/subscriptions","organizations_url":"https://api.github.com/users/flatpak/orgs","repos_url":"https://api.github.com/users/flatpak/repos","events_url":"https://api.github.com/users/flatpak/events{/privacy}","received_events_url":"https://api.github.com/users/flatpak/received_events","type":"Organization","site_admin":false},"repo":{"id":59213200,"node_id":"MDEwOlJlcG9zaXRvcnk1OTIxMzIwMA==","name":"flatpak","full_name":"flatpak/flatpak","private":false,"owner":{"login":"flatpak","id":19473042,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE5NDczMDQy","avatar_url":"https://avatars0.githubusercontent.com/u/19473042?v=4","gravatar_id":"","url":"https://api.github.com/users/flatpak","html_url":"https://github.com/flatpak","followers_url":"https://api.github.com/users/flatpak/followers","following_url":"https://api.github.com/users/flatpak/following{/other_user}","gists_url":"https://api.github.com/users/flatpak/gists{/gist_id}","starred_url":"https://api.github.com/users/flatpak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/flatpak/subscriptions","organizations_url":"https://api.github.com/users/flatpak/orgs","repos_url":"https://api.github.com/users/flatpak/repos","events_url":"https://api.github.com/users/flatpak/events{/privacy}","received_events_url":"https://api.github.com/users/flatpak/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/flatpak/flatpak","description":"Linux application sandboxing and distribution framework (formerly xdg-app)","fork":false,"url":"https://api.github.com/repos/flatpak/flatpak","forks_url":"https://api.github.com/repos/flatpak/flatpak/forks","keys_url":"https://api.github.com/repos/flatpak/flatpak/keys{/key_id}","collaborators_url":"https://api.github.com/repos/flatpak/flatpak/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/flatpak/flatpak/teams","hooks_url":"https://api.github.com/repos/flatpak/flatpak/hooks","issue_events_url":"https://api.github.com/repos/flatpak/flatpak/issues/events{/number}","events_url":"https://api.github.com/repos/flatpak/flatpak/events","assignees_url":"https://api.github.com/repos/flatpak/flatpak/assignees{/user}","branches_url":"https://api.github.com/repos/flatpak/flatpak/branches{/branch}","tags_url":"https://api.github.com/repos/flatpak/flatpak/tags","blobs_url":"https://api.github.com/repos/flatpak/flatpak/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/flatpak/flatpak/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/flatpak/flatpak/git/refs{/sha}","trees_url":"https://api.github.com/repos/flatpak/flatpak/git/trees{/sha}","statuses_url":"https://api.github.com/repos/flatpak/flatpak/statuses/{sha}","languages_url":"https://api.github.com/repos/flatpak/flatpak/languages","stargazers_url":"https://api.github.com/repos/flatpak/flatpak/stargazers","contributors_url":"https://api.github.com/repos/flatpak/flatpak/contributors","subscribers_url":"https://api.github.com/repos/flatpak/flatpak/subscribers","subscription_url":"https://api.github.com/repos/flatpak/flatpak/subscription","commits_url":"https://api.github.com/repos/flatpak/flatpak/commits{/sha}","git_commits_url":"https://api.github.com/repos/flatpak/flatpak/git/commits{/sha}","comments_url":"https://api.github.com/repos/flatpak/flatpak/comments{/number}","issue_comment_url":"https://api.github.com/repos/flatpak/flatpak/issues/comments{/number}","contents_url":"https://api.github.com/repos/flatpak/flatpak/contents/{+path}","compare_url":"https://api.github.com/repos/flatpak/flatpak/compare/{base}...{head}","merges_url":"https://api.github.com/repos/flatpak/flatpak/merges","archive_url":"https://api.github.com/repos/flatpak/flatpak/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/flatpak/flatpak/downloads","issues_url":"https://api.github.com/repos/flatpak/flatpak/issues{/number}","pulls_url":"https://api.github.com/repos/flatpak/flatpak/pulls{/number}","milestones_url":"https://api.github.com/repos/flatpak/flatpak/milestones{/number}","notifications_url":"https://api.github.com/repos/flatpak/flatpak/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/flatpak/flatpak/labels{/name}","releases_url":"https://api.github.com/repos/flatpak/flatpak/releases{/id}","deployments_url":"https://api.github.com/repos/flatpak/flatpak/deployments","created_at":"2016-05-19T14:19:21Z","updated_at":"2018-10-02T06:43:15Z","pushed_at":"2018-10-02T06:43:11Z","git_url":"git://github.com/flatpak/flatpak.git","ssh_url":"git@github.com:flatpak/flatpak.git","clone_url":"https://github.com/flatpak/flatpak.git","svn_url":"https://github.com/flatpak/flatpak","homepage":"http://flatpak.org","size":15082,"stargazers_count":1605,"watchers_count":1605,"language":"C","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":180,"mirror_url":null,"archived":false,"open_issues_count":343,"license":{"key":"lgpl-2.1","name":"GNU Lesser General Public License v2.1","spdx_id":"LGPL-2.1","url":"https://api.github.com/licenses/lgpl-2.1","node_id":"MDc6TGljZW5zZTEx"},"forks":180,"open_issues":343,"watchers":1605,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/flatpak/flatpak/pulls/2170"},"html":{"href":"https://github.com/flatpak/flatpak/pull/2170"},"issue":{"href":"https://api.github.com/repos/flatpak/flatpak/issues/2170"},"comments":{"href":"https://api.github.com/repos/flatpak/flatpak/issues/2170/comments"},"review_comments":{"href":"https://api.github.com/repos/flatpak/flatpak/pulls/2170/comments"},"review_comment":{"href":"https://api.github.com/repos/flatpak/flatpak/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/flatpak/flatpak/pulls/2170/commits"},"statuses":{"href":"https://api.github.com/repos/flatpak/flatpak/statuses/28b71aaf4195135b07b0c6e2caad043250da2b3a"}},"author_association":"MEMBER","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":true,"commits":1,"additions":189,"deletions":193,"changed_files":13}}
{"actor":{"display_login":"alexlarsson"}}