dev-sys-do / sealci

A Rust Continuous Integration Framework
Apache License 2.0
10 stars 0 forks source link

Scheduler implementation #13

Closed duratm closed 1 month ago

duratm commented 3 months ago

This pull request aims to implement the scheduler

theotchlx commented 2 months ago

Currently implementing gRPC interfaces for the Agent. RPC "RegisterAgent" interface complete + test client RPC "ReportHealthStatus" interface complete + currently working on test client (after dodo :hurtrealbad:)

theotchlx commented 2 months ago

See next steps here: https://github.com/orgs/dev-sys-do/projects/2

theotchlx commented 2 months ago

The interfaces themselves are mostly done, + integration tests (on interfaces) with some mock examples (to expand)

Started coding some Agent pool logic for registration

theotchlx commented 1 month ago

@hugoponthieu I finished implementing the missing interface to send an Action. I am not yet able to test it, since I need a mock controller/agent, but as far as the gRPC interfaces go, it works.

I'll try to write some grpcurl commands if I can get my hands on a mock Agent. And I'll deploy this version on my remote server so we can test it properly and connect your Agent to it.

You can review the code, don't hesitate to ask any question if you are having trouble understanding some stuff, or if it lacks comments in some parts

Lastly, controller_interface contains crude logic code, which will need to be put in its own module; for clarity

theotchlx commented 1 month ago

The main issue now is that probably lots of error handling is missing. Like some checks on grpc interfaces ; I would need help with that @dev-sys-do/sealci-scheduler

theotchlx commented 1 month ago

Nice code base

Thank you for your comment! I think you can review and resolve your requested changes :-)