The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 802 - File: showthread.php PHP 7.2.10-0ubuntu0.18.04.1 (Linux)
File Line Function
/showthread.php 802 errorHandler->error

Current time: 01-23-2019, 02:06 PM Hello There, Guest! (LoginRegister)

Post Reply 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
WPT Rest API & "discard" Parameter
06-05-2018, 07:52 AM
Post: #1
WPT Rest API & "discard" Parameter

I've recently been handed an old application that sends test requests to the WPT API every so often. It's an older application and none of its original authors are around, so I'm learning as I go, and I've hit a bug of sorts. Tests that are submitted for 5 runs are ceasing operation after the first run. I've tracked this down to the undocumented "discard" parameter. If I remove that, the tests run through to completion.

I've tried to go through WPT's source code to figure out precisely what "discard" is meant to do, but I'm having trouble determining anything. My guess is that it tells WPT to ignore there results of the first X runs, but I can't confirm that.

Here's the (nearly) full set of parameters I'm passing. Some omitted for security reasons.

Quote:'noopt': 1,
'runs': 6,
'discard': 1,
'ignoreSSL': 1,
'f': 'xml',
'url': '',
'timeline': 1,
'private': 1,
'label': 'not-optimized cc',
'r': 12345,
'fvonly': 1,
'location': 'London_EC2.Native',
'time': 7,
'video': 1

Can anyone tell why the "discard" would be causing WPT to evidently crash after a test's first run?

Bonus points for anyone who can define exactly what "discard" is meant to do...

Find all posts by this user
Quote this message in a reply
Post Reply 

Messages In This Thread
WPT Rest API & "discard" Parameter - dmittner - 06-05-2018 07:52 AM

Forum Jump:

User(s) browsing this thread: 1 Guest(s)