Open
Conversation
- Update ProcessMessage to accept method parameter for dynamic export invocation - Add method normalization (empty string defaults to 'poll') - Add proper error handling for unknown methods with stream reset - Update all test calls to include method parameter - Maintain backward compatibility with existing code
- Switch from SetStreamHandler to SetStreamHandlerMatch - Add protocol matching for both base protocol and method suffix - Extract method from protocol string (/ww/0.1.0/<proc-id>/<method>) - Update logging to include method information - Maintain backward compatibility for existing clients
- Change method from flag to positional argument (final argument) - Update ArgsUsage to <peer> <proc> [method] - Add argument validation for 2-3 arguments - Update protocol construction to include method suffix when specified - Enhance connection banner to show method being used - Update examples in help text
- Change exported function from 'poll' to 'echo' - Update function name and comments accordingly - This demonstrates the named export functionality
- Rebuild main.wasm with updated echo export function - Binary now exports 'echo' instead of 'poll' function
- Update tests to use 'echo' function instead of 'poll' to match WASM module exports - Add Reset() expectations to mock streams to handle function not found cases - Fix TestProc_Integration_WithRealWasm, TestProc_Poll_WithGomock, TestEcho_Asynchronous, and TestEcho_RepeatedAsync - All tests now pass successfully
- Add system/ipfs.go with complete fs.FS interface implementation - Add system/ipfs_test.go with comprehensive test coverage - Support directory traversal, file reading, and sub-filesystem creation - Integrate with IPFS UnixFS for distributed file access - Add github.com/pkg/errors dependency for error handling This restores the IPFS filesystem functionality that was previously removed, enabling guest filesystem access to IPFS content.
3a046c1 to
abb3ff8
Compare
- Replace require.NoError with t.Skipf for IPFS connection errors - Tests now gracefully skip instead of failing when IPFS is unavailable - Improves test suite robustness in environments without IPFS
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.
system/ipfs*.gowere pulled from git historyMerge after #25