Open Bug 1472171 Opened 5 years ago Updated 1 year ago

Upload raw structured logs as artifacts from Python unit tests


(Testing :: Python Test, enhancement)

Version 2


(Not tracked)



(Reporter: davehunt, Assigned: davehunt)



(1 file)

Tests run via |mach python-test| do not currently produce and upload structured logs, and therefore results are not available in ActiveData. As we're already using mozlog's pytest plugin, we should be able to generate a raw structured log and upload the resulting file as an artifact.
Assignee: nobody → dave.hunt
ahal: This is basically your patch applied with no changes, but it appears to be working. I've pushed to try, and the results look good:

The py3 jobs are uploading empty log files, which is due to mozlog not yet supporting py3, but the result of the jobs themselves don't appear to be affected.
Comment on attachment 8988727 [details]
Bug 1472171 - Upload raw structured logs as artifacts from Python unit tests;

I think having a single suite for the entire run should be a blocker to getting this landed. As it stands, it will cause a lot of extra variability in ActiveData (would probably double or triple the number of suite records) and might make a bunch of queries/dashboards less useful as a result. Tbh, I'm not even sure that ActiveData would pick this up automatically or not.

I also probably shouldn't review my own code :).
Attachment #8988727 - Flags: review?(ahal) → review-
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.