-
Notifications
You must be signed in to change notification settings - Fork 111
[WIP] fix local streaming bug #379
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| --- | ||
| "@workflow/world-local": patch | ||
| --- | ||
|
|
||
| Create a copy of the data when resolving a stream to rpevent detachment |
| Original file line number | Diff line number | Diff line change | ||
|---|---|---|---|---|
|
|
@@ -182,7 +182,8 @@ export function createStreamer(basedir: string): Streamer { | |||
| break; | ||||
| } | ||||
| if (chunk.chunk.byteLength) { | ||||
| controller.enqueue(chunk.chunk); | ||||
| process.stdout.write('.'); | ||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
Debug output code ( View DetailsAnalysisDebug output code accidentally left in stream readerWhat fails: The How to reproduce: Create a stream with multiple chunks and read from it: const streamer = createStreamer('./test-data');
const chunks = ['chunk1', 'chunk2', 'chunk3'];
for (const chunk of chunks) {
await streamer.writeToStream('test-stream', Promise.resolve('run-1'), chunk);
}
await streamer.closeStream('test-stream', Promise.resolve('run-1'));
const stream = await streamer.readFromStream('test-stream');
const reader = stream.getReader();
while (true) {
const { done } = await reader.read();
if (done) break;
// Observe: three dots printed to stdout (one per chunk)
}Result: Three dots appear on stdout, one for each chunk enqueued Expected: No debug output should appear on stdout. The function should silently enqueue chunks without printing to console. Root cause: Commit d6b97db ("another fix") inadvertently added |
||||
| controller.enqueue(Uint8Array.prototype.slice.call(chunk.chunk)); | ||||
| } | ||||
| } | ||||
|
|
||||
|
|
||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The package version was downgraded from 5.0.0-beta.10 to 4.0.0-beta.10, which is backwards and will cause version conflicts.
View Details
Analysis
Version downgrade in @workflow/world-local package
What fails: The version in
packages/world-local/package.jsonwas incorrectly downgraded from5.0.0-beta.10to4.0.0-beta.10, violating semantic versioning and causing version conflicts with package managers.How to reproduce:
Result: Version downgraded from 5.0.0-beta.10 to 4.0.0-beta.10, which is a backward version change. The associated changeset specifies "patch" level changes but the version number went DOWN instead of UP.
Expected: Version should be
5.0.0-beta.11(bumping the patch version from the previous beta.10), maintaining proper semver progression. Per semantic versioning, patch versions must increment monotonically within the same major and minor version.Fixed: Version corrected to
5.0.0-beta.11to maintain proper version ordering and consistency with the "patch" level changeset.