Skip to content
This repository was archived by the owner on Jun 30, 2022. It is now read-only.
This repository was archived by the owner on Jun 30, 2022. It is now read-only.

Refactor the code #51

Description

@joao-paulo-parity

I've pointed out many times (e.g. #10 (comment)) that this repository's code is not in a good state and needs some refactor.

My current idea is to rework try-runtime-bot's module structure so that there would be

  • A "core" of shared functionality functionality e.g. the command executor, prepareBranch, etc).
  • Separate folders "bench-bot" and "try-runtime-bot" which can be deployed and built separately.

To make it extra clear, it would not mean the bots would be merged into one, just that we'd have a monorepo for sharing tooling and functionality between them. e.g. prepareBranch is implemented in both bots at the moment - whenever I have to fix or make some improvement here, often there's overlap in functionality which would be useful for both bots.

This move also implies bench-bot would be rewritten in TypeScript, which is not costly at the moment because the bot is pretty simple and try-runtime-bot's code does not have a huge amount of technical debt.

From the 2.0 specification, the following are already implemented in try-runtime-bot:

  • Access control (ALLOWED_ORGANIZATIONS)
  • Queue
  • Cancel

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions