You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 716e33f
Browse filesBrowse the repository at this point in the historyBrowse files
fix(file-search): reject docx markup bombs before parsing and stop requeueing killed builds (#10616)
A small .docx can hold tens of MB of one-character elements or attribute-heavy elements: it
passes the zip guard's byte and ratio ceilings, but mammoth expands objects per XML node and
attribute before any of our budgets run, so one such file takes an indexing worker past its
memory limit. The kill skips every failure hook, so Trigger.dev retries and then the stale-claim
reaper requeued the same file forever.
- zip guard: optional parsed-markup budget, estimated from the bytes the verification pass
already inflates (every `<` and every `=`, calibrated against mammoth under Bun); docx, doc,
live file text and the Word empty-package check use a 2 GiB word-processing budget
- revision stamps build_started_at while a run is inside a build; the run clears it however it
leaves and publishing clears it, so the next run to begin a build counts a stamp it finds as a
killed predecessor and marks the revision failed (build_abandoned) at two
- a render keeps a killed run's stamp and count for the same artifact, clears the stamp of a live
build it supersedes, never requeues a revision stopped for that artifact, and gives changed
inputs a fresh count
- migration 0485 adds the three columns with IF NOT EXISTS
0 commit comments