Skip to content

Instantly share code, notes, and snippets.

@jryans
Last active January 7, 2016 22:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jryans/4e4aa49cd781738626a5 to your computer and use it in GitHub Desktop.
Save jryans/4e4aa49cd781738626a5 to your computer and use it in GitHub Desktop.
Pull failures from a try run
curl -s 'https://treeherder.mozilla.org/api/project/try/jobs/?count=2000&result_set_id=83940&return_type=list' | jq '.results | map(select(.[9] == "testfailed")) | .[] | .[10]' | gxargs -I '{}' -P 0 curl -s 'https://treeherder.mozilla.org/api/project/try/artifact/?job_id={}&name=Bug+suggestions&type=json' | jq '.[0].blob | .[] | .search' | cut -d'|' -f 2- | cut -d' ' -f 2-
curl -s 'https://treeherder.mozilla.org/api/project/try/jobs/?count=2000&result_set_id=83940&return_type=list' | jq '.results | map(select(.[9] == "testfailed")) | .[] | .[10]' | gxargs -I '{}' -P 0 curl -s 'https://treeherder.mozilla.org/api/project/try/artifact/?job_id={}&name=Bug+suggestions&type=json' | jq '.[0].blob | .[] | .search' | cut -d'|' -f 2- | cut -d' ' -f 2- | sort | uniq -c | gsed -r 's/^.{5}/&| /'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment