microsoft / microsoft/tyger

Run fails if input buffer is only partially read

Open
#242 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Go
Stars
74
Forks
23
Avg merge
6d 16h
Merged PRs (30d)
7

Description

It is possible to write a codespec that only partially reads from an input buffer, causing the run to fail, even if the job returns exit code 0.

Example: Copy stdin to stdout up to a maximum number of bytes, then exit successfully.

It is not required that a codespec read its input buffers. However, once the codespec begins reading from stdin or a named input pipe, should it be required to read that stream until EOF? If so, we'll document it. If not, then perhaps we need to change the logic to allow partial reads, and respect the return code of the main container.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the described codespec that copies only a bounded amount from stdin or a named input pipe and exits with code 0. Trace the run handling for partially read input, then determine whether the completed behavior should document an EOF requirement or permit partial reads while honoring the main container's return code.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
backend
Issue type
Bug
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.