kiegroup / akrivis

An application to extend Janus IDP with the ability to assign scores to repositories
Apache License 2.0
0 stars 2 forks source link

Solve the long lived branch problem for the backstage plugin #11

Open lucamolteni opened 3 months ago

lucamolteni commented 3 months ago

Since the current https://github.com/kiegroup/backstage-plugins is a fork of https://github.com/janus-idp/backstage-plugins, we need to have a long lived proprietary branch with our changes that will be constantly rebased against the upstream janus-idp.

Since every PR against janus-idp (including ours) will change the yarn.lock file, as there's a husky script that will run yarn install every git command, and since the yarn.lock file is committed inside the janus-idp repository, this will generate many.

While creating PR against the janus-idp repository consists of usually one conflict each PR, keeping a long lived branch without merging means that we'll have a number of conflicts increasing every new PR, because it will be the current PR being merged conflicting and all the previous PRs that were never merged inside Janus IDP repository.

Currently I see two solutions:

"For those seeking full autonomy over their plugin's development and release lifecycle, self-hosting remains a supported and valid option. The decision to either contribute to the community repository or self-host will depend on whether you prefer to manage the development of the plugin independently or develop the plugin as part of a community-driven process. Both approaches are valued within the Backstage ecosystem and contribute to its growth."

But no instructions are given on how to self host a backstage plugin.

lucamolteni commented 3 months ago

Update: I've been advised by @jkilzi that the community-plugins approach is feasible for alpha plugins like ours.

Don't forget to attach a CODOWNERS file