Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update pipeline for multithreaded analysis. #2627

Merged
merged 5 commits into from
Feb 28, 2023
Merged

Conversation

michaelcfanning
Copy link
Member

@michaelcfanning michaelcfanning commented Feb 27, 2023

This change deprecates a duplicative single exception for runtime failures expressed as MulthreadedAnalyzeCommandBase.EngineException and IAnalysisContext.RuntimeException, in favor of a new property, IAnalysisContext.RuntimeExceptions, that can hold multiple exceptions.

This allows for tracking errors across multiple threads, e.g., an unhandled exception in a rule as well as a timeout exception.

Otherwise, this change cleans up error handling in the core threading model.

@@ -53,7 +53,7 @@ public virtual IEnumerable<IOption> GetOptions()
public virtual IEnumeratedArtifact CurrentTarget { get; set; }
public virtual string MimeType { get; set; }
public virtual HashData Hashes { get; set; }
public virtual Exception RuntimeException { get; set; }
public virtual IList<Exception> RuntimeExceptions { get; set; }
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

RuntimeExceptions

We will retain exceptions across multiple threads in some cases.

@michaelcfanning michaelcfanning enabled auto-merge (squash) February 28, 2023 00:56
@michaelcfanning michaelcfanning merged commit 6de1ecf into main Feb 28, 2023
@michaelcfanning michaelcfanning deleted the pipeline-updates branch February 28, 2023 01:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant