Coder Social home page Coder Social logo

Comments (6)

ThetaSinner avatar ThetaSinner commented on May 28, 2024 2

I am nearly done working through the sys_validation workflow which is a priority right now but this is a pretty serious thing to not have working so I'd like to look at this next. @abe-njama for discussion in our meeting later please

from holochain.

ThetaSinner avatar ThetaSinner commented on May 28, 2024

Thanks for raising this @nphias. My preliminary investigation suggests this is indeed not implemented correctly.

So in this test the code relies on all_cells which ends up looking at role_assignments in here https://github.com/holochain/holochain/blob/develop-0.2/crates/holochain/src/conductor/tests/install_app_bundle.rs#L82

Now following what happens with those role assignments
CloneOnly is recognised as needing the ProvisionOnly strategy https://github.com/holochain/holochain/blob/develop-0.2/crates/holochain_types/src/app/app_bundle.rs#L210
That results in role assignments being updated here https://github.com/holochain/holochain/blob/develop-0.2/crates/holochain_types/src/app/app_bundle.rs#L109. But notice the line above, where dnas_to_register is also set
Next, in the conductor it will ask for cells_to_create https://github.com/holochain/holochain/blob/develop-0.2/crates/holochain/src/conductor/conductor.rs#L1389. That is entirely based on dnas_to_register https://github.com/holochain/holochain/blob/develop-0.2/crates/holochain_types/src/app/app_bundle.rs#L297 and NOT the actual role assignments.
Now the conductor goes ahead and runs genesis for those cells https://github.com/holochain/holochain/blob/develop-0.2/crates/holochain/src/conductor/conductor.rs#L1417
Only after genesis succeeds does the conductor check the actual role assignments to report the conductor state https://github.com/holochain/holochain/blob/develop-0.2/crates/holochain/src/conductor/conductor.rs#L1420

from holochain.

ThetaSinner avatar ThetaSinner commented on May 28, 2024

I think I've got a fix for this, just waiting to see that it doesn't break anything else but I think that's reasonably unlikely :)

from holochain.

ThetaSinner avatar ThetaSinner commented on May 28, 2024

This can be back-ported as soon as it's approved and merged so if all goes well it will be in the first 0.2.4 release candidate

from holochain.

ThetaSinner avatar ThetaSinner commented on May 28, 2024

Keeping this open for the backport

from holochain.

ThetaSinner avatar ThetaSinner commented on May 28, 2024

Back-ported in #3121 and will be released with 0.2.4 as planned

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.