Created
July 26, 2021 19:26
-
-
Save bhearsum/2c171e943d4becca213f9c5328c055e6 to your computer and use it in GitHub Desktop.
quick hack to update reftest manifests
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# grab logs for the failing tests | |
taskcluster group list -f Fa4JHX5tSI-Oixr27vL5sQ | grep ' test' | grep mochitest-browser-chrome | awk '{print $1}' | sed -e 's,\(.*\),https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/\1/runs/0/artifacts/public/logs/live.log,' | xargs -P32 wget | |
for i in *; do mv $i $i.gz && gunzip $i; done | |
# update manifests -- run this from the root of the gecko repo | |
while read line; do | |
# split out the dir name from the test name | |
fulltest=$(echo $line | cut -f1 -d\=) | |
dir=$(echo $fulltest | sed -e 's,\(.*\)/.*,\1,') | |
test=$(echo -n $fulltest | sed -e 's,.*/,,') | |
# find the test in the manifest; prepend with a fails-if | |
sed -i -e "s/\(.*$test\)/fails-if(appleSilicon) \1/" $dir/reftest.list | |
done < <(grep UNEXPECTED-FAIL ~/tmp/2021-07-26/reftest/* | cut -f2 -d\|) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment