NAME

Google::Devtools::Resultstore::V2::Action - Compiled Protocol Buffers messages for google/devtools/resultstore/v2/action.proto

SYNOPSIS

use Google::Devtools::Resultstore::V2::Action;

my $msg = Google::Devtools::Resultstore::V2::Action::Action->new({
    name => $name,
    id => $id,
    status_attributes => $status_attributes,
    timing => $timing,
});

# Read or update a field
my $val = $msg->name();

# Binary wire-format roundtrip
my $bytes   = $msg->serialize();
my $decoded = Google::Devtools::Resultstore::V2::Action::Action->parse($bytes);

# Canonical ProtoJSON
my $json = $msg->to_json();

DESCRIPTION

Auto-generated Protobuf message classes compiled from google/devtools/resultstore/v2/action.proto. All message classes inherit from Protobuf::Message and support new(), serialize(), parse(), to_json(), from_json(), to_text(), and to_perl().

MESSAGES

Google::Devtools::Resultstore::V2::Action::Action

An action that happened as part of a configured target. This action could be a build, a test, or another type of action, as specified in action_type oneof.

Each parent ConfiguredTarget resource should have at least one Action as its child resource before the invocation is finalized. For a simple build, at least one build action should be created to represent the build result, and at least one test action should be created to represent the test result, if any.

Inherits from Protobuf::Message.

Accessors

  • $msg->name() / $msg->name($value)

    Type: String

    The resource name. Its format must be: invocations/${INVOCATION_ID}/targets/${url_encode(TARGET_ID)}/configuredTargets/url_encode(${CONFIG_ID})/actions/${url_encode(ACTION_ID)}

    See CreateActionRequest proto for more information.

  • $msg->id() / $msg->id($value)

    Type: Message (Google::Devtools::Resultstore::V2::Action::Action::Id)

    The resource ID components that identify the Action. They must match the resource name after proper encoding.

  • $msg->status_attributes() / $msg->status_attributes($value)

    Type: Message (Google::Devtools::Resultstore::V2::Common::StatusAttributes)

    The status of the action.

  • $msg->timing() / $msg->timing($value)

    Type: Message (Google::Devtools::Resultstore::V2::Common::Timing)

    The timing of the whole action. For TestActions, the start time may be before the test actually started, and the duration may last until after the test actually finished.

  • $msg->build_action() / $msg->build_action($value)

    Type: Message (Google::Devtools::Resultstore::V2::Action::BuildAction)

    Used only when this action represents a build action.

  • $msg->test_action() / $msg->test_action($value)

    Type: Message (Google::Devtools::Resultstore::V2::Action::TestAction)

    Only for test actions.

  • $msg->action_attributes() / $msg->action_attributes($value)

    Type: Message (Google::Devtools::Resultstore::V2::Action::ActionAttributes)

    General attributes of the action.

  • $msg->action_dependencies() / $msg->action_dependencies($value)

    Type: Message (Google::Devtools::Resultstore::V2::Common::Dependency)

    A list of resources that this action depended upon. May be used to provide the cause of a build failure in the case of a failed build action.

  • $msg->properties() / $msg->properties($value)

    Type: Message (Google::Devtools::Resultstore::V2::Common::Property)

    Arbitrary name-value pairs. This is implemented as a multi-map. Multiple properties are allowed with the same key. Properties will be returned in lexicographical order by key.

  • $msg->files() / $msg->files($value)

    Type: Message (Google::Devtools::Resultstore::V2::File::File)

    A list of file references for action level files. The file IDs must be unique within this list. Duplicate file IDs will result in an error. Files will be returned in lexicographical order by ID.

    Files with the following reserved file IDs cause specific post-processing or have special handling. These files must be immediately available to ResultStore for processing when the reference is uploaded.

    For build actions: stdout: The stdout of the action stderr: The stderr of the action baseline.lcov: Baseline coverage file to be parsed by the server. This uses a stripped down implementation of the LCOV standard. http://ltp.sourceforge.net/coverage/lcov/geninfo.1.php

    For test actions: test.xml: The test suite / test case data in XML format. test.log: The combined stdout and stderr of the test process. test.lcov: Coverage file to be parsed by the server. This uses a stripped down implementation of the LCOV standard. http://ltp.sourceforge.net/coverage/lcov/geninfo.1.php

  • $msg->file_sets() / $msg->file_sets($value)

    Type: String

    List of names of file sets that are referenced from this Action. Each name must point to a file set under the same Invocation. The name format must be: invocations/${INVOCATION_ID}/fileSets/${FILE_SET_ID}

  • $msg->coverage() / $msg->coverage($value)

    Type: Message (Google::Devtools::Resultstore::V2::Coverage::ActionCoverage)

    Coverage data was collected while running the build or test action. This usually includes line coverage, and may also include branch coverage. For test actions, this is usually only for the source files which were actually executed by that particular action. For build actions, this is the baseline coverage, which captures the instrumented files and lines, without any lines being executed. This ensures files that are never covered at all are included.

  • $msg->file_processing_errors() / $msg->file_processing_errors($value)

    Type: Message (Google::Devtools::Resultstore::V2::FileProcessingError::FileProcessingErrors)

    ResultStore will read and parse Files with reserved IDs listed above. Read and parse errors for all these Files are reported here. This is implemented as a map, with one FileProcessingErrors for each file. Typically produced when parsing Files, but may also be provided directly by clients.

Google::Devtools::Resultstore::V2::Action::BuildAction

A build action, such as building a java library.

Inherits from Protobuf::Message.

Accessors

  • $msg->type() / $msg->type($value)

    Type: String

    The type of the action. This is intended to be a clue as to how the output of the action should be parsed. For example "javac" for a Java compile action.

  • $msg->primary_input_path() / $msg->primary_input_path($value)

    Type: String

    The "primary" input artifact processed by this action. E.g., the .cc file of a C++ compile action. Empty string ("") if the action has no input artifacts or no "primary" input artifact.

  • $msg->primary_output_path() / $msg->primary_output_path($value)

    Type: String

    The "primary" output artifact processed by this action. E.g., the .o file of a C++ compile action. Empty string ("") if the action has no output artifacts or no "primary" output artifact.

Google::Devtools::Resultstore::V2::Action::TestAction

A test action, such as running a JUnit4 test binary.

Inherits from Protobuf::Message.

Accessors

  • $msg->test_timing() / $msg->test_timing($value)

    Type: Message (Google::Devtools::Resultstore::V2::Action::TestTiming)

    Timing data for execution of the test action.

  • $msg->shard_number() / $msg->shard_number($value)

    Type: Int32

    If the test is divided up into shards to improve performance, set this to indicate which shard this test action is for. Value must be in interval [0, total_shard_count). Defaults to 0, which is appropriate if all test cases are run in the same process.

  • $msg->run_number() / $msg->run_number($value)

    Type: Int32

    If the user requested that every test be run multiple times, as is often done to measure flakiness, set this to indicate which run this test action is for. Value must be in interval [0, total_run_count). Defaults to 0, which is appropriate if multiple runs were not requested.

  • $msg->attempt_number() / $msg->attempt_number($value)

    Type: Int32

    If flaky tests are automatically retried, set this to indicate which attempt this test action is for. (e.g. 0 for the first attempt, 1 for second, and so on). Defaults to 0, which is appropriate if this is the only attempt.

  • $msg->test_suite() / $msg->test_suite($value)

    Type: Message (Google::Devtools::Resultstore::V2::TestSuite::TestSuite)

    A tree of test suites and test cases that were run by this test action. Each test case has its own status information, including stack traces. Typically produced by parsing an XML Log, but may also be provided directly by clients.

  • $msg->warnings() / $msg->warnings($value)

    Type: Message (Google::Devtools::Resultstore::V2::Action::TestWarning)

    Warnings for this test action.

  • $msg->estimated_memory_bytes() / $msg->estimated_memory_bytes($value)

    Type: Int64

    Estimated memory consumption of the test action, in bytes. A default value of 0 means there is no memory consumption estimate specified.

Google::Devtools::Resultstore::V2::Action::ActionAttributes

General attributes of an action

Inherits from Protobuf::Message.

Accessors

  • $msg->execution_strategy() / $msg->execution_strategy($value)

    Type: Enum (Google::Devtools::Resultstore::V2::ExecutionStrategy)

    Strategy used for executing the action.

  • $msg->exit_code() / $msg->exit_code($value)

    Type: Int32

    Exit code of the process that ran the action. A non-zero value means failure.

  • $msg->hostname() / $msg->hostname($value)

    Type: String

    Where the action was run.

  • $msg->input_file_info() / $msg->input_file_info($value)

    Type: Message (Google::Devtools::Resultstore::V2::Action::InputFileInfo)

    Information about the input files used in all actions under this configured target.

Google::Devtools::Resultstore::V2::Action::InputFileInfo

File count and size information for the input files to a configured target.

Inherits from Protobuf::Message.

Accessors

  • $msg->count() / $msg->count($value)

    Type: Int64

    The number of input files (counting every file, even if a duplicate).

  • $msg->distinct_count() / $msg->distinct_count($value)

    Type: Int64

    The number of distinct input files.

  • $msg->count_limit() / $msg->count_limit($value)

    Type: Int64

    The max number of input files allowed by the build system (counting every file, even if a duplicate).

  • $msg->distinct_bytes() / $msg->distinct_bytes($value)

    Type: Int64

    The total size of the distinct input files.

  • $msg->distinct_byte_limit() / $msg->distinct_byte_limit($value)

    Type: Int64

    The max allowed total size of the distinct input files.

Google::Devtools::Resultstore::V2::Action::LocalTestTiming

Timing data for tests executed locally on the machine running the build.

Inherits from Protobuf::Message.

Accessors

  • $msg->test_process_duration() / $msg->test_process_duration($value)

    Type: Message (Google::Protobuf::Duration::Duration)

    Time taken by the test process, typically surrounded by a small wrapper script.

Google::Devtools::Resultstore::V2::Action::RemoteTestAttemptTiming

Timing data for one attempt to execute a test action remotely.

Inherits from Protobuf::Message.

Accessors

  • $msg->queue_duration() / $msg->queue_duration($value)

    Type: Message (Google::Protobuf::Duration::Duration)

    Idle period before the test process is invoked on the remote machine.

  • $msg->upload_duration() / $msg->upload_duration($value)

    Type: Message (Google::Protobuf::Duration::Duration)

    Time to upload data dependencies from the local machine to the remote machine running the test, or to the distributed cache.

  • $msg->machine_setup_duration() / $msg->machine_setup_duration($value)

    Type: Message (Google::Protobuf::Duration::Duration)

    Time to set up the remote machine. Not to be confused with setup time in xUnit test frameworks, which falls within the test_process_time.

  • $msg->test_process_duration() / $msg->test_process_duration($value)

    Type: Message (Google::Protobuf::Duration::Duration)

    Time taken by the test process, typically surrounded by a small wrapper script. For Java tests, this includes JVM setup, flag parsing, class path setup, parsing files to setup the suite, and finally running your test methods. In many cases, only a small fraction of the test process time is spent running the test methods.

  • $msg->download_duration() / $msg->download_duration($value)

    Type: Message (Google::Protobuf::Duration::Duration)

    Time spent retrieving test logs and any other test outputs, back to the local machine.

Google::Devtools::Resultstore::V2::Action::RemoteTestTiming

Timing data for the part of the test execution that is done remotely.

Inherits from Protobuf::Message.

Accessors

Google::Devtools::Resultstore::V2::Action::TestTiming

Timing data for execution of a test action. The action may be performed locally, on the machine running the build, or remotely.

Inherits from Protobuf::Message.

Accessors

  • $msg->local() / $msg->local($value)

    Type: Message (Google::Devtools::Resultstore::V2::Action::LocalTestTiming)

    Used for local test actions.

  • $msg->remote() / $msg->remote($value)

    Type: Message (Google::Devtools::Resultstore::V2::Action::RemoteTestTiming)

    Used for remote test actions.

  • $msg->system_time_duration() / $msg->system_time_duration($value)

    Type: Message (Google::Protobuf::Duration::Duration)

    The amount of CPU time spent by the test process executing system calls within the kernel, as opposed to library code. Time the test process spent blocked does not count towards this figure.

  • $msg->user_time_duration() / $msg->user_time_duration($value)

    Type: Message (Google::Protobuf::Duration::Duration)

    The amount of CPU time spent by the test process executing user-mode code outside the kernel, as opposed to library code. Time the test process spent blocked does not count towards this figure. You can add user_time to system_time to get total CPU time taken by the test process.

  • $msg->test_caching() / $msg->test_caching($value)

    Type: Enum (Google::Devtools::Resultstore::V2::TestCaching)

    Most build systems cache build results to speed up incremental builds. Some also cache test results too. This indicates whether the test results were found in a cache, and where that cache was located.

Google::Devtools::Resultstore::V2::Action::TestWarning

A warning from a test execution.

Inherits from Protobuf::Message.

Accessors

  • $msg->warning_message() / $msg->warning_message($value)

    Type: String

    Contains the message detailing the warning.

SEE ALSO

Protobuf, Protobuf::Message, Google::Devtools::Resultstore::V2::Action::Types, https://protobuf.dev/

LICENSE AND COPYRIGHT

Copyright (C) 2026 Google LLC

This program is released under the Apache 2.0 license.