-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enable support for taskprov in the latest draft. The main technical hurdle is to ensure the Leader can advertise the taskprov config to the Helper in an HTTP Header. The simplest solution is to add the information to `DapTaskConfig` that is needed in order to reconstruct the serialized taskprov config, in particular the "task_info" field. To do this, we add a new `method` field to the `DapTaskConfig` struct that conveys the method by which the task was configured. The method has type `enum DapTaskConfigMethod`, of which there are two variants. The first is `Taskprov` and includes the "task_info". The second is `Unknown` and is a catch-all for existing, manually configured tasks. Accordingly, we deprecate the `taskprov` field of the `DapTaskConfig` struct. We've kept the field in the struct for backwards compatibility: there are some situations for which the indication is sufficient; in situations where the "task_info" field is needed, we must abort. This change also includes a number of related, but minor changes: * Have `resolve_advertised_task_config()` return a `DapAbort` rather than a `DapError` (an error in this flow always leads to an abort and is never an internal error). * Opt-out of the task unless (1) the "none" variant for "DpConfig" is indicated and (2) the indicated max batch query count is 1. Other values for these parameters are not currently supported by Daphne. * Introduce a type `DapTaskParameters` that encapsulates the parameters used to configure a task and implement a method for generating a task config using the taskprov method. This change is intended to simplify the test code, but should be independently useful.
- Loading branch information
Showing
9 changed files
with
487 additions
and
173 deletions.
There are no files selected for viewing
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
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
Oops, something went wrong.