Comments (9)
example here:
https://github.com/nphias/invitations-test
use: npm test
from holochain.
@nphias do you already have a project/branch with a reproduction that you could share?
from holochain.
Thank you @nphias, this is on my list to look at
from holochain.
Confirming the reproduction looks good. Thank you for that!
I'm not sure right now when this will get looked at but it definitely seems worth trying to trace down
from holochain.
problem continues with holochain version 0.1.5
from holochain.
Okay, I have good news on this because I think I have it figured out. The extern crate
vs. 'copy the code' approaches do yield different WASMs which I cannot explain but what I can say is that either way you get the exact same functions exposed and they do the same thing. Maybe somebody who knows more about the details of how Rust code gets transformed into WASM could explain the difference but I don't think it actually matters a great deal here.
What is much more important is that integrity zomes are strictly excluded from signalling. That isn't something I was looking for exactly but it's quite evident from the Holochain code once you dig deep enough trying to trace what the conductor is doing. So that led me to looking at where the signals are being sent from. The invitations
zome that does the signalling is being loaded as an integrity zome and the integrity zome isn't being loaded at all.
@nphias Could you update your workdir/dna/dna.yaml
to look like this:
---
manifest_version: "1"
name: group
integrity:
network_seed: ~
properties: ~
origin_time: 1669136217555883
zomes:
- name: profiles_integrity
hash: ~
bundled: "../../target/wasm32-unknown-unknown/release/profiles_integrity.wasm"
dependencies: ~
- name: invitations_integrity
hash: ~
bundled: "../../target/wasm32-unknown-unknown/release/invitations_integrity.wasm"
dependencies: ~
coordinator:
zomes:
- name: profiles
bundled: "../../target/wasm32-unknown-unknown/release/profiles.wasm"
dependencies:
- name: profiles_integrity
- name: invitations
bundled: "../../target/wasm32-unknown-unknown/release/invitations.wasm"
dependencies:
- name: invitations_integrity
and re-run the tests? I believe this is enough to address the problem. I am seeing test 4.
fail, but it doesn't appear to be related to signals so I'll hold off looking at that unless something else is happening unexpectedly there.
from holochain.
There is also a small bug here https://github.com/nphias/invitations-test/blob/main/crates/coordinator/invitations/Cargo.toml#L11C1-L11C33
This should read hc_coordinator_zome_invitations = {git = "https://github.com/holochain-open-dev/invitations.git", branch = "crates-only"}
I believe? Then the lib contains extern crate hc_coordinator_zome_invitations;
from holochain.
Thanks ThetaSinner,
So it seems it was a problem with my dna.yaml file which i fixed .. mentioning both coordinator and integrity zomes and using correct indentation . The outcome of this enquiry might be that it would be better to have a warning if not all zomes are referenced in the yaml file.. maybe a parser for the yaml.. some useful error/warning messages instead of silent failure
from holochain.
Thanks @nphias, I've opened #2710 to catch DNA manifest errors which I think can quickly be done with this.
I've also opened an internal ticket to look at rejecting HDK calls from integrity zomes because that can still happen with a valid manifest.
from holochain.
Related Issues (20)
- Check TOML formatting on CI
- Release automation can't handle self deps with a version
- Dry run releases are broken due to a missing label HOT 4
- The release automation produces TOML which is not correctly formatted
- A bad return value from a callback crashes the conductor HOT 2
- [Release automation] Fix toml formatting HOT 1
- Release automation dep `crate-util` requires newer Rust version 1.76
- Simplification of the release process HOT 1
- Review of Key Manager Browser Extension HOT 1
- Review of Launcher with Key Management
- (Must have) Run the HoloFuel sweettest test
- Atomic Holonix updates HOT 1
- (Must have) Manual testing, using a happ that we know is reasonably reliable
- (Must have) Leave a conductor running for a longer period of time
- (Nice to have) Automated (or at least semi) testing, maybe with HoloFuel?
- (Medium) Wind Tunnel simple baseline
- [BUG] Unable to open Database file on Windows 10
- Holochain dependency, dependencies updates
- Workflows review 2nd iteration HOT 2
- [Integrity] Write helper to collectively return missing dependencies from must_get calls
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from holochain.