Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add run_info and timestamps to wptreport #10811

Merged
merged 1 commit into from
May 3, 2018
Merged

Conversation

Hexcles
Copy link
Member

@Hexcles Hexcles commented May 3, 2018

The first stab at #10511 , adding the simplest fields to make sure I understand correctly @jgraham

Meanwhile, how shall I pass the version of the browser? Via run_info? FWIW, there's run_info['version'] which is the version of my OS (and it seems to overlap with run_info['os_version'] a bit).


This change is Reviewable

@Hexcles Hexcles requested a review from jgraham May 3, 2018 00:39
@wpt-pr-bot wpt-pr-bot requested a review from gsnedders May 3, 2018 00:39
@Hexcles Hexcles changed the title Add OS and browser to wptreport Add OS, browser and timestamps to wptreport May 3, 2018
self.results = {}

def suite_start(self, data):
self.results['browser'] = data['run_info']['product']
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would be tempted to just dump run_info directly into the results.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah let's do that.

Meanwhile, could you answer the question I had regarding these fields in run_info?

"linux_distro": "Debian",
"os": "linux",
"os_version": "sid",
"version": "Debian sid",

They seem to present an overlapping set of information. Is this intended? Notably, what's version? Is it intended to be the version of the product or the OS?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All I know is what I can figure out from https://searchfox.org/mozilla-central/source/testing/mozbase/mozinfo/mozinfo/mozinfo.py. So version is what you get from uname and os_version has a more custom implementation.

Copy link
Member Author

@Hexcles Hexcles May 3, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Alright, then I'll need to add a browser_version to run_info.

Just updated the PR to include the whole run_info. PTAL.

@jugglinmike
Copy link
Contributor

Since we're interested in building on this data from external projects, what do you think about documenting this format in the docts/ directory?

@Hexcles
Copy link
Member Author

Hexcles commented May 3, 2018

@jugglinmike First of all, I'm going to document some of the mandatory fields in my design doc, including the browser info and revision, which will solve the most pressing issue for uploading results.

Later we can more formally document the whole wptreport here as a doc and/or JSON schema.

run_info includes OS and browser info.

This is the first stab at #10511 .
@Hexcles Hexcles changed the title Add OS, browser and timestamps to wptreport Add run_info and timestamps to wptreport May 3, 2018
@Hexcles Hexcles merged commit b2b367b into master May 3, 2018
@Hexcles Hexcles deleted the more-info-in-wptreport branch May 3, 2018 20:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants