Skip to content

[AZINTS-4026] Make lfo collection step non-blocking#41

Merged
benjjs merged 1 commit into
mainfrom
benjamin.johnsonstaub/azints-4026/log-collection-not-blocking
Oct 20, 2025
Merged

[AZINTS-4026] Make lfo collection step non-blocking#41
benjjs merged 1 commit into
mainfrom
benjamin.johnsonstaub/azints-4026/log-collection-not-blocking

Conversation

@benjjs
Copy link
Copy Markdown
Collaborator

@benjjs benjjs commented Oct 20, 2025

Motivation

We don't need to block the rest of the flow when log forwarders can't be collected for whatever reason. As long as we're monitoring for error messages, it's fine to let the user proceed.

Summary

Add a new "required' flag on the report step context manager that defaults to true, and make the collect lfo step not required. When we hit an error in a step that isn't required, we still do all of the things we would normally do (report the error, stop showing the loading spinner, etc.) we just swallow the error at the end instead of re-raising it.

We'll need a change to the UI as well to show the error without blocking.

Testing

Introduce an error into the lfo collection step. Run the script. It successfully makes it past the lfo collection step
Screenshot 2025-10-20 at 2 37 36 PM

@benjjs benjjs requested a review from a team as a code owner October 20, 2025 18:47
@benjjs
Copy link
Copy Markdown
Collaborator Author

benjjs commented Oct 20, 2025

/merge

@dd-devflow-routing-codex
Copy link
Copy Markdown

dd-devflow-routing-codex Bot commented Oct 20, 2025

View all feedbacks in Devflow UI.

2025-10-20 18:49:45 UTC ℹ️ Start processing command /merge


2025-10-20 18:49:49 UTC ℹ️ MergeQueue: pull request added to the queue

The expected merge time in main is approximately 1m (p90).


2025-10-20 18:56:29 UTC ⚠️ MergeQueue: This merge request build was cancelled

benjamin.johnsonstaub@datadoghq.com cancelled this merge request build

@benjjs
Copy link
Copy Markdown
Collaborator Author

benjjs commented Oct 20, 2025

/merge -c

@dd-devflow-routing-codex
Copy link
Copy Markdown

dd-devflow-routing-codex Bot commented Oct 20, 2025

View all feedbacks in Devflow UI.

2025-10-20 18:56:24 UTC ℹ️ Start processing command /merge -c

@benjjs benjjs merged commit 27b66e3 into main Oct 20, 2025
1 of 2 checks passed
@benjjs benjjs deleted the benjamin.johnsonstaub/azints-4026/log-collection-not-blocking branch October 20, 2025 18:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants