Repository management improvements (OD-1093)
Closed
Unknown opened 1 year ago

So this is one of the main issues I find while using OneDev, is the lack of repository management, well this may not be the best thing to call it, but I will explain what I mean.

First up, as discussed in issue #1085, I have issues with keeping the forks syncronised, and using CI/CD or PR manually is quite honestly a horrible way to do this, adding a button to the repository "sync with parent" which simply pushes the parent changes to master/main into the fork, I do not believe this will be particularly difficult to implement, but it is really something which holds OneDev back.

This links onto my next point, the ability to mirror git repositories automatically to OneDev, this can be from other OneDev instances, gitea, a generic http git endpoint, github, gitlab etc

Adding a "import" feature to the new repository would allow for:

  • Better migrations
  • Ability to periodically update mirrored repositories automatically without CI/CD (this can be scheduled to be done automatically by the OneDev instance at midnight every day)

Part one is high priority as it will make contributing to OneDev 100x easier, second feature would be nice to have but is low priority.

Robin Shen commented 1 year ago

Using CI/CD to sync mirrors has huge benefits, for instance to check logs, schedule syncs, retry/cancel syncs. With separate sync button, it means all these logic might need to be re-implemented.

As to import, OneDev already has this. Check the import action in projects page.

Unknown changed fields 1 year ago
Name Previous Value Current Value
Type
Improvement
Discussion
Unknown changed fields 1 year ago
Name Previous Value Current Value
Priority
Normal
Minor
Unknown commented 1 year ago

It is a little annoying though, because CI/CD syncs count as "builds" which means if I sync every day or so, per year there will be 365 "builds" which aren't actually binaries. Might be worth excluding them from the "build" statistic on the repository.

Unknown commented 1 year ago

Also the wiki does not explain how to actually keep repositories in sync, should I create an issue on the wiki (I will PR with the fix once I figure it out myself)?

Unknown commented 1 year ago

As for importing projects, is there a wiki page on this?

Unknown commented 1 year ago
Unknown commented 1 year ago

I wish their was an index of the contents of the wiki, finding stuff is difficult

Robin Shen commented 1 year ago

You may search docs from right top of the page. Docs are quite brief currently, and any contribution is welcomed.

Robin Shen commented 1 year ago

Builds as defined in OneDev is execution result of job. You may configure build auto-clean up strategies to clean up old builds automatically. Check build preserve policy in project setting.

Robin Shen changed state to 'Closed' 1 year ago
Previous Value Current Value
Open
Closed
issue 1 of 1
Type
Question
Priority
Minor
Assignee
Issue Votes (0)
Watchers (3)
Reference
OD-1093
Please wait...
Page is in error, reload to recover