Skip to content

Dev#2401

Merged
JamesPasta merged 3 commits into
testfrom
dev
May 6, 2026
Merged

Dev#2401
JamesPasta merged 3 commits into
testfrom
dev

Conversation

@JamesPasta
Copy link
Copy Markdown
Collaborator

No description provided.

jacobwillsmith and others added 3 commits April 30, 2026 16:13
Replace the byte[]-based attachment extraction pipeline with a streaming
one to avoid full in-memory buffering of CHEFS attachments when generating
AI summaries.

- ISubmissionAppService gains GetChefsFileAttachmentStream returning a
  ChefsFileAttachmentStream (Stream + content-type) backed by a temp file
  with FileOptions.DeleteOnClose. Implementation uses
  HttpCompletionOption.ResponseHeadersRead so the HTTP layer streams the
  response body directly to disk instead of buffering it. Temp file is
  cleaned up on copy/open failure.
- IResilientHttpRequest.HttpAsync gains an optional HttpCompletionOption
  parameter (default ResponseContentRead preserves all existing callers).
- ITextExtractionService.ExtractTextAsync now takes a Stream. The
  byte[] overload, the byte[] extractor dictionary, and the per-format
  byte[] private methods are removed. PDF/Word/Excel/PowerPoint
  extractors consume the stream directly; the text-file extractor reads
  incrementally via StreamReader.
- AttachmentSummaryRequest drops byte[] FileContent and gains
  string? ExtractedText. AttachmentSummaryService streams the file,
  extracts text once, and passes ExtractedText to the AI runtime.
- OpenAIRuntimeService.GenerateAttachmentSummaryAsync uses
  request.ExtractedText directly; the byte[] extraction fallback,
  sizeBytes payload field, and ITextExtractionService dependency are
  removed.

Build clean. Application.Tests 337/337 and Web.Tests 16/16 pass.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…ts-lower-memory-ai-processing

Feature/ab#32302 stream attachments lower memory ai processing
@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud Bot commented May 6, 2026

@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 6, 2026

🧪 Unit Test Results (Parallel Execution)

Tests

📊 Summary

Result Count
✅ Passed 632
❌ Failed 0
⚠️ Skipped 0

📄 HTML Reports

  • Merged Tests (HTML): Included in artifacts
    Generated automatically by CI.

@JamesPasta JamesPasta merged commit ed4be03 into test May 6, 2026
33 checks passed
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.

2 participants