{"action":"opened","number":26,"pull_request":{"url":"https://api.github.com/repos/spacetelescope/ci_watson/pulls/26","id":242041450,"node_id":"MDExOlB1bGxSZXF1ZXN0MjQyMDQxNDUw","html_url":"https://github.com/spacetelescope/ci_watson/pull/26","diff_url":"https://github.com/spacetelescope/ci_watson/pull/26.diff","patch_url":"https://github.com/spacetelescope/ci_watson/pull/26.patch","issue_url":"https://api.github.com/repos/spacetelescope/ci_watson/issues/26","number":26,"state":"open","locked":false,"title":"Make Artifactory upload spec files human-readable JSON","user":{"login":"jdavies-st","id":17088869,"node_id":"MDQ6VXNlcjE3MDg4ODY5","avatar_url":"https://avatars2.githubusercontent.com/u/17088869?v=4","gravatar_id":"","url":"https://api.github.com/users/jdavies-st","html_url":"https://github.com/jdavies-st","followers_url":"https://api.github.com/users/jdavies-st/followers","following_url":"https://api.github.com/users/jdavies-st/following{/other_user}","gists_url":"https://api.github.com/users/jdavies-st/gists{/gist_id}","starred_url":"https://api.github.com/users/jdavies-st/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jdavies-st/subscriptions","organizations_url":"https://api.github.com/users/jdavies-st/orgs","repos_url":"https://api.github.com/users/jdavies-st/repos","events_url":"https://api.github.com/users/jdavies-st/events{/privacy}","received_events_url":"https://api.github.com/users/jdavies-st/received_events","type":"User","site_admin":false},"body":"If a test fails, a JSON upload spec file can be generated using the functions `generate_upload_schema()` and `generate_upload_params()` in order to push the failed results to Artifactory.  This is currently not very human-readable.\r\n\r\nSince these files are small and get overwritten when new tests are run, it would be useful to have them be more human-readable.\r\n\r\nSo an Artifactory upload spec file for a failed test currently looks like:\r\n```\r\n{\"files\": [{\"pattern\": \"/Users/jdavies/scratch/test_miri_lrs_bkgnod0/test_lrs1_bsub.fits\", \"target\": \"jwst-pipeline-results/2019-01-03_NOT_CI_jdavies_0/test_miri_lrs_bkgnod0/\", \"props\": null, \"recursive\": \"false\", \"flat\": \"true\", \"regexp\": \"false\", \"explode\": \"false\", \"excludePatterns\": []}]}\r\n```\r\nThis PR would change it to:\r\n```\r\n{\r\n  \"files\": [\r\n    {\r\n      \"pattern\": \"/Users/jdavies/scratch/test_miri_lrs_bkgnod0/test_lrs1_bsub.fits\",\r\n      \"target\": \"jwst-pipeline-results/2019-01-03_NOT_CI_jdavies_0/test_miri_lrs_bkgnod0/\",\r\n      \"props\": null,\r\n      \"recursive\": \"false\",\r\n      \"flat\": \"true\",\r\n      \"regexp\": \"false\",\r\n      \"explode\": \"false\",\r\n      \"excludePatterns\": []\r\n    }\r\n  ]\r\n}\r\n```","created_at":"2019-01-03T16:18:14Z","updated_at":"2019-01-03T16:18:14Z","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/spacetelescope/ci_watson/pulls/26/commits","review_comments_url":"https://api.github.com/repos/spacetelescope/ci_watson/pulls/26/comments","review_comment_url":"https://api.github.com/repos/spacetelescope/ci_watson/pulls/comments{/number}","comments_url":"https://api.github.com/repos/spacetelescope/ci_watson/issues/26/comments","statuses_url":"https://api.github.com/repos/spacetelescope/ci_watson/statuses/85c58edde49422ae3aefa3651bd1e9cf2606dcbe","head":{"label":"jdavies-st:json-indent","ref":"json-indent","sha":"85c58edde49422ae3aefa3651bd1e9cf2606dcbe","user":{"login":"jdavies-st","id":17088869,"node_id":"MDQ6VXNlcjE3MDg4ODY5","avatar_url":"https://avatars2.githubusercontent.com/u/17088869?v=4","gravatar_id":"","url":"https://api.github.com/users/jdavies-st","html_url":"https://github.com/jdavies-st","followers_url":"https://api.github.com/users/jdavies-st/followers","following_url":"https://api.github.com/users/jdavies-st/following{/other_user}","gists_url":"https://api.github.com/users/jdavies-st/gists{/gist_id}","starred_url":"https://api.github.com/users/jdavies-st/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jdavies-st/subscriptions","organizations_url":"https://api.github.com/users/jdavies-st/orgs","repos_url":"https://api.github.com/users/jdavies-st/repos","events_url":"https://api.github.com/users/jdavies-st/events{/privacy}","received_events_url":"https://api.github.com/users/jdavies-st/received_events","type":"User","site_admin":false},"repo":{"id":159356438,"node_id":"MDEwOlJlcG9zaXRvcnkxNTkzNTY0Mzg=","name":"ci_watson","full_name":"jdavies-st/ci_watson","private":false,"owner":{"login":"jdavies-st","id":17088869,"node_id":"MDQ6VXNlcjE3MDg4ODY5","avatar_url":"https://avatars2.githubusercontent.com/u/17088869?v=4","gravatar_id":"","url":"https://api.github.com/users/jdavies-st","html_url":"https://github.com/jdavies-st","followers_url":"https://api.github.com/users/jdavies-st/followers","following_url":"https://api.github.com/users/jdavies-st/following{/other_user}","gists_url":"https://api.github.com/users/jdavies-st/gists{/gist_id}","starred_url":"https://api.github.com/users/jdavies-st/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jdavies-st/subscriptions","organizations_url":"https://api.github.com/users/jdavies-st/orgs","repos_url":"https://api.github.com/users/jdavies-st/repos","events_url":"https://api.github.com/users/jdavies-st/events{/privacy}","received_events_url":"https://api.github.com/users/jdavies-st/received_events","type":"User","site_admin":false},"html_url":"https://github.com/jdavies-st/ci_watson","description":"CI helper for STScI Jenkins","fork":true,"url":"https://api.github.com/repos/jdavies-st/ci_watson","forks_url":"https://api.github.com/repos/jdavies-st/ci_watson/forks","keys_url":"https://api.github.com/repos/jdavies-st/ci_watson/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jdavies-st/ci_watson/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jdavies-st/ci_watson/teams","hooks_url":"https://api.github.com/repos/jdavies-st/ci_watson/hooks","issue_events_url":"https://api.github.com/repos/jdavies-st/ci_watson/issues/events{/number}","events_url":"https://api.github.com/repos/jdavies-st/ci_watson/events","assignees_url":"https://api.github.com/repos/jdavies-st/ci_watson/assignees{/user}","branches_url":"https://api.github.com/repos/jdavies-st/ci_watson/branches{/branch}","tags_url":"https://api.github.com/repos/jdavies-st/ci_watson/tags","blobs_url":"https://api.github.com/repos/jdavies-st/ci_watson/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jdavies-st/ci_watson/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jdavies-st/ci_watson/git/refs{/sha}","trees_url":"https://api.github.com/repos/jdavies-st/ci_watson/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jdavies-st/ci_watson/statuses/{sha}","languages_url":"https://api.github.com/repos/jdavies-st/ci_watson/languages","stargazers_url":"https://api.github.com/repos/jdavies-st/ci_watson/stargazers","contributors_url":"https://api.github.com/repos/jdavies-st/ci_watson/contributors","subscribers_url":"https://api.github.com/repos/jdavies-st/ci_watson/subscribers","subscription_url":"https://api.github.com/repos/jdavies-st/ci_watson/subscription","commits_url":"https://api.github.com/repos/jdavies-st/ci_watson/commits{/sha}","git_commits_url":"https://api.github.com/repos/jdavies-st/ci_watson/git/commits{/sha}","comments_url":"https://api.github.com/repos/jdavies-st/ci_watson/comments{/number}","issue_comment_url":"https://api.github.com/repos/jdavies-st/ci_watson/issues/comments{/number}","contents_url":"https://api.github.com/repos/jdavies-st/ci_watson/contents/{+path}","compare_url":"https://api.github.com/repos/jdavies-st/ci_watson/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jdavies-st/ci_watson/merges","archive_url":"https://api.github.com/repos/jdavies-st/ci_watson/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jdavies-st/ci_watson/downloads","issues_url":"https://api.github.com/repos/jdavies-st/ci_watson/issues{/number}","pulls_url":"https://api.github.com/repos/jdavies-st/ci_watson/pulls{/number}","milestones_url":"https://api.github.com/repos/jdavies-st/ci_watson/milestones{/number}","notifications_url":"https://api.github.com/repos/jdavies-st/ci_watson/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jdavies-st/ci_watson/labels{/name}","releases_url":"https://api.github.com/repos/jdavies-st/ci_watson/releases{/id}","deployments_url":"https://api.github.com/repos/jdavies-st/ci_watson/deployments","created_at":"2018-11-27T15:23:34Z","updated_at":"2018-12-10T21:17:53Z","pushed_at":"2019-01-03T16:06:19Z","git_url":"git://github.com/jdavies-st/ci_watson.git","ssh_url":"git@github.com:jdavies-st/ci_watson.git","clone_url":"https://github.com/jdavies-st/ci_watson.git","svn_url":"https://github.com/jdavies-st/ci_watson","homepage":"https://ci_watson.readthedocs.io","size":66,"stargazers_count":0,"watchers_count":0,"language":"Python","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":{"key":"bsd-3-clause","name":"BSD 3-Clause \"New\" or \"Revised\" License","spdx_id":"BSD-3-Clause","url":"https://api.github.com/licenses/bsd-3-clause","node_id":"MDc6TGljZW5zZTU="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"spacetelescope:master","ref":"master","sha":"d3f301ba68bbe3275ecf04a01dab5ffd4aaf9602","user":{"login":"spacetelescope","id":2751928,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI3NTE5Mjg=","avatar_url":"https://avatars3.githubusercontent.com/u/2751928?v=4","gravatar_id":"","url":"https://api.github.com/users/spacetelescope","html_url":"https://github.com/spacetelescope","followers_url":"https://api.github.com/users/spacetelescope/followers","following_url":"https://api.github.com/users/spacetelescope/following{/other_user}","gists_url":"https://api.github.com/users/spacetelescope/gists{/gist_id}","starred_url":"https://api.github.com/users/spacetelescope/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spacetelescope/subscriptions","organizations_url":"https://api.github.com/users/spacetelescope/orgs","repos_url":"https://api.github.com/users/spacetelescope/repos","events_url":"https://api.github.com/users/spacetelescope/events{/privacy}","received_events_url":"https://api.github.com/users/spacetelescope/received_events","type":"Organization","site_admin":false},"repo":{"id":143923649,"node_id":"MDEwOlJlcG9zaXRvcnkxNDM5MjM2NDk=","name":"ci_watson","full_name":"spacetelescope/ci_watson","private":false,"owner":{"login":"spacetelescope","id":2751928,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI3NTE5Mjg=","avatar_url":"https://avatars3.githubusercontent.com/u/2751928?v=4","gravatar_id":"","url":"https://api.github.com/users/spacetelescope","html_url":"https://github.com/spacetelescope","followers_url":"https://api.github.com/users/spacetelescope/followers","following_url":"https://api.github.com/users/spacetelescope/following{/other_user}","gists_url":"https://api.github.com/users/spacetelescope/gists{/gist_id}","starred_url":"https://api.github.com/users/spacetelescope/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spacetelescope/subscriptions","organizations_url":"https://api.github.com/users/spacetelescope/orgs","repos_url":"https://api.github.com/users/spacetelescope/repos","events_url":"https://api.github.com/users/spacetelescope/events{/privacy}","received_events_url":"https://api.github.com/users/spacetelescope/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/spacetelescope/ci_watson","description":"CI helper for STScI Jenkins","fork":false,"url":"https://api.github.com/repos/spacetelescope/ci_watson","forks_url":"https://api.github.com/repos/spacetelescope/ci_watson/forks","keys_url":"https://api.github.com/repos/spacetelescope/ci_watson/keys{/key_id}","collaborators_url":"https://api.github.com/repos/spacetelescope/ci_watson/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/spacetelescope/ci_watson/teams","hooks_url":"https://api.github.com/repos/spacetelescope/ci_watson/hooks","issue_events_url":"https://api.github.com/repos/spacetelescope/ci_watson/issues/events{/number}","events_url":"https://api.github.com/repos/spacetelescope/ci_watson/events","assignees_url":"https://api.github.com/repos/spacetelescope/ci_watson/assignees{/user}","branches_url":"https://api.github.com/repos/spacetelescope/ci_watson/branches{/branch}","tags_url":"https://api.github.com/repos/spacetelescope/ci_watson/tags","blobs_url":"https://api.github.com/repos/spacetelescope/ci_watson/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/spacetelescope/ci_watson/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/spacetelescope/ci_watson/git/refs{/sha}","trees_url":"https://api.github.com/repos/spacetelescope/ci_watson/git/trees{/sha}","statuses_url":"https://api.github.com/repos/spacetelescope/ci_watson/statuses/{sha}","languages_url":"https://api.github.com/repos/spacetelescope/ci_watson/languages","stargazers_url":"https://api.github.com/repos/spacetelescope/ci_watson/stargazers","contributors_url":"https://api.github.com/repos/spacetelescope/ci_watson/contributors","subscribers_url":"https://api.github.com/repos/spacetelescope/ci_watson/subscribers","subscription_url":"https://api.github.com/repos/spacetelescope/ci_watson/subscription","commits_url":"https://api.github.com/repos/spacetelescope/ci_watson/commits{/sha}","git_commits_url":"https://api.github.com/repos/spacetelescope/ci_watson/git/commits{/sha}","comments_url":"https://api.github.com/repos/spacetelescope/ci_watson/comments{/number}","issue_comment_url":"https://api.github.com/repos/spacetelescope/ci_watson/issues/comments{/number}","contents_url":"https://api.github.com/repos/spacetelescope/ci_watson/contents/{+path}","compare_url":"https://api.github.com/repos/spacetelescope/ci_watson/compare/{base}...{head}","merges_url":"https://api.github.com/repos/spacetelescope/ci_watson/merges","archive_url":"https://api.github.com/repos/spacetelescope/ci_watson/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/spacetelescope/ci_watson/downloads","issues_url":"https://api.github.com/repos/spacetelescope/ci_watson/issues{/number}","pulls_url":"https://api.github.com/repos/spacetelescope/ci_watson/pulls{/number}","milestones_url":"https://api.github.com/repos/spacetelescope/ci_watson/milestones{/number}","notifications_url":"https://api.github.com/repos/spacetelescope/ci_watson/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/spacetelescope/ci_watson/labels{/name}","releases_url":"https://api.github.com/repos/spacetelescope/ci_watson/releases{/id}","deployments_url":"https://api.github.com/repos/spacetelescope/ci_watson/deployments","created_at":"2018-08-07T20:28:54Z","updated_at":"2018-12-11T20:12:56Z","pushed_at":"2018-12-11T20:12:55Z","git_url":"git://github.com/spacetelescope/ci_watson.git","ssh_url":"git@github.com:spacetelescope/ci_watson.git","clone_url":"https://github.com/spacetelescope/ci_watson.git","svn_url":"https://github.com/spacetelescope/ci_watson","homepage":"https://ci_watson.readthedocs.io","size":66,"stargazers_count":1,"watchers_count":1,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"archived":false,"open_issues_count":3,"license":{"key":"bsd-3-clause","name":"BSD 3-Clause \"New\" or \"Revised\" License","spdx_id":"BSD-3-Clause","url":"https://api.github.com/licenses/bsd-3-clause","node_id":"MDc6TGljZW5zZTU="},"forks":5,"open_issues":3,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/spacetelescope/ci_watson/pulls/26"},"html":{"href":"https://github.com/spacetelescope/ci_watson/pull/26"},"issue":{"href":"https://api.github.com/repos/spacetelescope/ci_watson/issues/26"},"comments":{"href":"https://api.github.com/repos/spacetelescope/ci_watson/issues/26/comments"},"review_comments":{"href":"https://api.github.com/repos/spacetelescope/ci_watson/pulls/26/comments"},"review_comment":{"href":"https://api.github.com/repos/spacetelescope/ci_watson/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/spacetelescope/ci_watson/pulls/26/commits"},"statuses":{"href":"https://api.github.com/repos/spacetelescope/ci_watson/statuses/85c58edde49422ae3aefa3651bd1e9cf2606dcbe"}},"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":"jdavies-st"}}