Repository navigation
fix: a file that the file source cannot read is a problem of its rows, not a 500 - #257
Merged
Merged
Conversation
When the file source raised while the workspace resolved a file, such as a mount gone or a catalogue that timed out, the exception went through Client.resolve and Batch.state to the page: GET api/state and an edit answered 500, and the page showed nothing. The workspace now turns an OSError of the file source's resolve or metadata into a refusal of the file, as it does for an unknown file. So the refusal touches only the request, or the row of a batch, that names the file: the row reads incomplete with the reason at its cell, a step of Follow reduces the other rows and tries the row again at the next step, and a refusal is not kept, so the next state resolves the cell again. Any other exception of the file source is a defect and is still raised. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Nov 20, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
fix: the batch page answered 500 and showed nothing when the file source raised while a file of a row was resolved (defect 9 of #219). A mount that goes away or a catalogue that times out does this.
The workspace now treats a file that its file source cannot read as it treats a file it does not know: it refuses the value. A
FileSourcethat cannot answer raisesOSErrorfromresolveormetadata; the contract inprotocol.pysays so.incompletewith the reason at the cell.doneif its cell names the file as its record holds it.Why in the workspace and not in the batch.
client.resolvechecks the cells of all rows in one call, so the batch cannot tell which value failed. The workspace already turns an unknown file into a refusal at the parameter that names it, and the same path gives everything above. The cost is a change ofClient.submit: for such a file it raisesSubmitErrorwith the reason at the parameter, where it raisedOSError. A submit that is refused writes no record, so a failure of the file system that passes does not leave a failed row behind (compare #68).Only
OSErroris caught (TimeoutError,ConnectionErrorand the errors of a mount are subclasses). Anything else a file source raises is a defect and is still raised; a test pins this.Not covered: a
files.csvthat cannot be parsed (csv.Error) still answers 500, and one without afilecolumn reads as "unknown file".FileSource.pathraising is not caught.🤖 Generated with Claude Code