Coder Social home page Coder Social logo

Comments (17)

xlc avatar xlc commented on July 2, 2024 1

To keep things simple, we don’t necessarily need to constantly monitor the chain. We could for example have a github action trigger that takes a block number as input, and manually trigger an action based on the event in that block. In this way we don’t have external server dependency.

from rfcs.

xlc avatar xlc commented on July 2, 2024 1

It is a PoC and therefore don’t cover every edge cases. But it is easy to support in-line proposal.

The pjs apps UI doesn’t offer a way to create inline proposal other than manual construction.

from rfcs.

tomaka avatar tomaka commented on July 2, 2024 1

I guess we can close it per https://github.com/paritytech/opstooling/issues/283

This repository is private and inaccessible for anyone non-Parity.

from rfcs.

rzadp avatar rzadp commented on July 2, 2024

@xlc I'm not sure I understand your proposed workflow.
If I'm manually triggering an action, have the access rights to do so, and I have checked the block number, I could check the output of the referendum and close/merge the PR instead - similar amount of steps.

Isn't the idea to have it 100% automated? If it's somewhat manual, then manual close/merge is the simplest solution, if I'm not missing something here.

from rfcs.

xlc avatar xlc commented on July 2, 2024

It is just like how most of the onchain contracts works. The monitor is offchain and trigger is a permisionless onchain action that verifies some conditions and enforce it.

In this case, the monitor is manual, or could be a server, doesn't matter. The trigger is a permisionless Github Action bot. It could be a comment to the PR for example that anyone can do it. It is the bot/GH action verifies if the RP is indeed approved and then perform the merge. The whole point is following the onchain decision, not depending on some specific admins on this repo.

from rfcs.

tomaka avatar tomaka commented on July 2, 2024

My two cents is that a manual bot is a better idea, just because it's more simple.

If the bot is automatic, that means we need a server, which raises the question of who maintains and monitors the server. The entire point of having a bot is that the process becomes decentralized and not owned by anyone. If someone has to maintain a server, you might as well just ask that person to merge the PRs in this repo instead.

Plus, we all know that the server maintenance will be half-assed and that the bot will likely break down all the time.

And if the bot breaks down (which will definitely happen at some point if it's automatic), we have to fall back to a manual process anyway.

from rfcs.

bkchr avatar bkchr commented on July 2, 2024

It could be a comment to the PR for example that anyone can do it.

Like the bot @rzadp for creating the proposal. I like the idea!

from rfcs.

xlc avatar xlc commented on July 2, 2024

I already have a working PoC.

Demo: xlc#14
GH action code: https://github.com/xlc/fellowship-process-bot

from rfcs.

rzadp avatar rzadp commented on July 2, 2024

I already have a working PoC.

Demo: xlc#14 GH action code: https://github.com/xlc/fellowship-process-bot

Looks neat to me. I see it includes the part where you have to look at a block before the referendum is confirmed to read the data.
@xlc Did you take into account that the referendum proposal can be Inlined, not only made as a Lookup?
In fact Inlining is the approach I took in the PoC bot that facilitates the creation of those referenda.

Also this inspires me to change the bot into a GH action, to remove the need of a running server.

from rfcs.

rzadp avatar rzadp commented on July 2, 2024

I have ported my thing to work as a GitHub Action.

Here it is in action: paritytech/rfc-action#5

from rfcs.

xlc avatar xlc commented on July 2, 2024

So what's the next step? Should we collaborate on rfc-propose or fellowship-rfc-process-bot? Should we start to integrate one into here?

from rfcs.

rzadp avatar rzadp commented on July 2, 2024

@bkchr @tomaka Do you have any feedback on what we have?

To sum up:

  • There is the first action, configured like this, is gonna work like that.
  • There is the second action, configured like this, is gonna work like that.
    • I think we can remove the need of specifying the blockhash manually if we make the action hunt down a matching referendum automatically.

from rfcs.

bkchr avatar bkchr commented on July 2, 2024

What kind of feedback you want? :D I mean from the first look, it seems to be okay.

from rfcs.

tomaka avatar tomaka commented on July 2, 2024

I think we can remove the need of specifying the blockhash manually if we make the action hunt down a matching referendum automatically.

Well, you can't do that unless you iterate over every single block that has been authored since the RFC has been proposed (assuming the bot could know when the RFC has been proposed), which takes a large amount of time and bandwidth.

Also, correct me if I'm wrong, but you're looking into the block storage (the list of events) to determine whether an RFC has been approved, meaning that you specifically need to target an archive node.

In general I feel like remarks are a very very poor mechanism, especially when triggered through a referendum instead of being included in a block body (block bodies are kept forever by every node).

from rfcs.

tomaka avatar tomaka commented on July 2, 2024

There is the first action, configured like this, is gonna work paritytech/rfc-action#5 (comment).

To give some feedback: I've been in the Polkadot ecosystem for 6 years, and I've been using PolkadotJS extensively, and despite that I literally have no idea how to open this referendum, pragmatically speaking. I feel like some more detailed instructions wouldn't hurt.

from rfcs.

rzadp avatar rzadp commented on July 2, 2024

Update:

  1. I have added detailed instructions with screenshots about what is expected from the user (example).
  2. We have integrated @xlc's work regarding PR merging/closing into the action.
  3. A PR with the new version of the action is here.

from rfcs.

mordamax avatar mordamax commented on July 2, 2024

I guess we can close it per https://github.com/paritytech/opstooling/issues/283
But I don't have permissions

from rfcs.

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.