test(e2e): Add neural-network integration test.#385
Open
sitaowang1998 wants to merge 26 commits into
Open
Conversation
Contributor
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Run ID: ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
WalkthroughAdds a layered neural-network workload to the Huntsman e2e crate, including deterministic wiring, MessagePack payload helpers, Spider execution validation, and exclusion of e2e tests from the unit-test executor. ChangesNeural network end-to-end validation
Estimated code review effort: 4 (Complex) | ~45 minutes Sequence Diagram(s)sequenceDiagram
participant test_nn
participant NeuralNetwork
participant SpiderTestDriver
participant Spider
test_nn->>NeuralNetwork: simulate deterministic inputs
test_nn->>NeuralNetwork: build task graph
test_nn->>SpiderTestDriver: submit graph and encoded inputs
SpiderTestDriver->>Spider: execute dense-neuron tasks
Spider-->>SpiderTestDriver: return outputs
SpiderTestDriver-->>test_nn: decode output payload
test_nn->>test_nn: compare outputs with simulation
Possibly related PRs
Suggested reviewers: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
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.
Description
This PR adds neural-network integration test, with the following change:
tests/huntsman/e2e/src/nn: New mod contains neural network helpers.neuron.rs:Neuronactivation enums and mapping to task name and evaluate function.wiring.rs: Wiring outputs to inputs.network.rs:NeuralNetworkstruct that holds all neural network information and conversion toTaskGraph.tests/huntsman/e2e/payload_serde.rs: Helpers that serialize/deserialize taskmsgpackinput/output payload.taskfiles/test.yaml: Excludese2etests fromtest:rust-unit-teststask.Checklist
breaking change.
Validation performed
Summary by CodeRabbit