Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upWrite a tool that extracts failures from WPT test logs #7481
Comments
|
I'd like to try this one. If I start working on this, where should I put the code in the source tree? |
|
Let's put it inside |
|
I have a question: am I supposed to extract the failures from the raw log files generated by this command: |
|
Yep, that's the one. If we don't pass
whenever it encounters a mismatch in the results[1]. The argument makes [1]: The intermittent issues might give some insight on the different test results. |
|
No, we should probably go for analyzing the generated log file - piping doesn't make any sense here. |
|
I think we should parse the default stdout output, since the raw logs are 50-100mb and will be slow to transfer. |
|
And specifically I'm thinking of the |
|
Any progress @AgostonSzepessy? Any questions? |
|
@jdm Yes, I've started writing the code. I've run the wpt-tests and saved the output to a file so I can just |
|
That sounds like you're doing the right thing :) Formatting the output in structured JSON or something would be valuable. |
|
And one more thing, do I need to extract the tests don't have status of |
|
AFAIU, we want all unexpected results, be them |
|
@AgostonSzepessy Are you still working on this? |
|
Yes I am. Sorry it's been so slow; I've been really busy with end of school projects and studying for exams. I need to check for a few more tests that I haven't checked for yet and clean up the code a bit, and then it should be ready. The program produces this output when I pipe in the tests:http://paste.pound-python.org/show/AGzKKwVddQqHjGTapm94/ Is this what's required? |
|
No worries, just wanted to check :) To clarify, if the script is exposed to an stdout like this, we'll get a JSON like the one you've shown, right? |
|
Yes. When you run
And then parse them. |
|
@jdm I guess it's time to take this to highfive? |
|
@highfive can do this now even though it's intermittent. |
This will be easy to integrate with https://github.com/jdm/highfive to automatically report test failures to the PR when they occur.
Relevant prior art for dissecting logs: https://dxr.mozilla.org/mozilla-central/source/testing/mozbase/mozlog/mozlog/scripts/unstable.py