buck2-quokka 0.1.1

A better external test runner for Buck2
Documentation
// This file is @generated by prost-build.
/// A command that ran locally.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct LocalCommand {
    /// (upstream fields 1=argv, 2=env omitted: skipped on decode)
    #[prost(string, tag = "3")]
    pub action_digest: ::prost::alloc::string::String,
}
/// A command that ran locally, omitted from the record for brevity.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct OmittedLocalCommand {
    #[prost(string, tag = "1")]
    pub action_digest: ::prost::alloc::string::String,
}
/// A command used to initialize a local worker.
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct WorkerInitCommand {}
/// A command executed by a local worker.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct WorkerCommand {
    /// (upstream fields 1=argv, 2=env, 4=fallback_exe omitted)
    #[prost(string, tag = "3")]
    pub action_digest: ::prost::alloc::string::String,
}
/// A command executed remotely (possibly served from the RE action cache).
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RemoteCommand {
    #[prost(string, tag = "1")]
    pub action_digest: ::prost::alloc::string::String,
    #[prost(bool, tag = "2")]
    pub cache_hit: bool,
    /// (upstream field 3=queue_time, 4=details omitted)
    #[prost(enumeration = "CacheHitType", tag = "5")]
    pub cache_hit_type: i32,
}
/// How a command was executed. The runner uses this to classify each test action
/// as a cache hit, remote execution, or local execution for its metrics and
/// historical-duration database.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CommandExecutionKind {
    #[prost(oneof = "command_execution_kind::Command", tags = "1, 2, 3, 4, 5")]
    pub command: ::core::option::Option<command_execution_kind::Command>,
}
/// Nested message and enum types in `CommandExecutionKind`.
pub mod command_execution_kind {
    #[derive(Clone, PartialEq, ::prost::Oneof)]
    pub enum Command {
        #[prost(message, tag = "1")]
        LocalCommand(super::LocalCommand),
        #[prost(message, tag = "2")]
        RemoteCommand(super::RemoteCommand),
        #[prost(message, tag = "3")]
        OmittedLocalCommand(super::OmittedLocalCommand),
        #[prost(message, tag = "4")]
        WorkerInitCommand(super::WorkerInitCommand),
        #[prost(message, tag = "5")]
        WorkerCommand(super::WorkerCommand),
    }
}
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum CacheHitType {
    ActionCache = 0,
    RemoteDepFileCache = 1,
    /// not a cache hit
    Executed = 2,
}
impl CacheHitType {
    /// String value of the enum field names used in the ProtoBuf definition.
    ///
    /// The values are not transformed in any way and thus are considered stable
    /// (if the ProtoBuf definition does not change) and safe for programmatic use.
    pub fn as_str_name(&self) -> &'static str {
        match self {
            Self::ActionCache => "ACTION_CACHE",
            Self::RemoteDepFileCache => "REMOTE_DEP_FILE_CACHE",
            Self::Executed => "EXECUTED",
        }
    }
    /// Creates an enum from field names used in the ProtoBuf definition.
    pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
        match value {
            "ACTION_CACHE" => Some(Self::ActionCache),
            "REMOTE_DEP_FILE_CACHE" => Some(Self::RemoteDepFileCache),
            "EXECUTED" => Some(Self::Executed),
            _ => None,
        }
    }
}