Skip to content

Commit

Permalink
Ignore in-progress pipeline events in integration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
nikita-tkachenko-datadog committed Feb 2, 2024
1 parent 6cb5bd1 commit 50ed31c
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,11 @@ private static final class StubTraceWriteStrategy implements TraceWriteStrategy
@Nullable
@Override
public Payload serialize(BuildData buildData, Run<?, ?> run) {
if (!buildData.isCompleted()) {
// ignore in-progress pipeline events for now
return null;
}

if (isWebhook) {
JSONObject json = new DatadogWebhookBuildLogic().toJson(buildData, run);
if (json == null) {
Expand Down

0 comments on commit 50ed31c

Please sign in to comment.