Coder Social home page Coder Social logo

Comments (9)

nphias avatar nphias commented on June 6, 2024 1

example here:
https://github.com/nphias/invitations-test

use: npm test

from holochain.

ThetaSinner avatar ThetaSinner commented on June 6, 2024

@nphias do you already have a project/branch with a reproduction that you could share?

from holochain.

ThetaSinner avatar ThetaSinner commented on June 6, 2024

Thank you @nphias, this is on my list to look at

from holochain.

ThetaSinner avatar ThetaSinner commented on June 6, 2024

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.

nphias avatar nphias commented on June 6, 2024

problem continues with holochain version 0.1.5

from holochain.

ThetaSinner avatar ThetaSinner commented on June 6, 2024

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.

ThetaSinner avatar ThetaSinner commented on June 6, 2024

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.

nphias avatar nphias commented on June 6, 2024

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.

ThetaSinner avatar ThetaSinner commented on June 6, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.