Kokoro Presubmit Configs for the Ops Agent UAP Plugin - Debian 12 x86_64 only #1880
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
I want to run the Ops Agent integration tests twice in presubmits for each operating system distribution and architecture: once against the regular Ops Agent and once against the Ops Agent UAP Plugin.
Therefore, I created a copy of the Kokoro presubmit configuration for Debian 12 x86_64 for the plugin. The configuration for the UAP plugin differs only in the setting of an environment variable:
IS_OPS_AGENT_UAP_PLUGIN
.The Ops Agent integration tests will be refactored to check for the existence of this environment variable (see pending PR: 1a5c2e3#diff-15aa7b63bef361b26153f2363594f57d087e3def692df377b4d45423b0ec42c1R1054).
If
IS_OPS_AGENT_UAP_PLUGIN
is set, the tests will install the Ops Agent plugin and run against it. If not set, the tests will run against the regular Ops Agent.Related issue
b/381246351
How has this been tested?
Checklist: