Gitea: Enable repository code search #31
Labels
No Label
Service
Buildbot
Service
Chat
Service
Gitea
Service
Translate
Type
Bug
Type
Config
Type
Deployment
Type
Feature
Type
Setup
No Milestone
No project
No Assignees
4 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: infrastructure/blender-projects-platform#31
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Currently we have no way of supporting code-search without risking running out of disk really quickly.
The documentation lists that code-search requires about 6 times the disk-space of the repo involved.
Code-search has a few controls we can use to govern its functioning; however, not enough to quite do what we'd like it to do (by default).
In the interest of scalability, it'd seem logical to consider ElasticSearch backend as being the most useful. It might be possible to filter out the data we want indexed on the side of ElasticSearch. This'd permit us to enable 'REPO_INDEXER' on the short term, at the expense of it indexing things that we dont store the data for. Ultimately, a control in Gitea/repos to disable indexing would be the best solution.
Tracked in the following upstream issue: https://github.com/go-gitea/gitea/issues/22842
Gitea 1.22 add support for code search without an index. I'm not sure how fast it is on a big repository, may be worth testing at some point.
Is the code search for non-blender repositories already enabled?
Just to understand why the task explicitly mentions
blender/
repositories.Deployment: Permit CodeSearch for blender/ reposto Deployment: Enable repository code searchCode search is not enabled anywhere. It explicitly mentioned
blender/
, but the more general thing is that we don't want to be indexing forks, as Gitea treats every one separately. There is a Gitea option for that now.So just to be sure I understand it correctly, it is now possible to enable indexing of all public repos within
blender/
,infrastructure/
,studio/
, andextensions/
without enabling search for the forks of those repos?There's this Gitea option, where I think we'd only be enable
sources
andtemplates
.But maybe we don't need to enable indexing of search is acceptable without it. It uses
git grep
which is pretty fast for me locally, no idea if it will be ok on the server though.Deployment: Enable repository code searchto Gitea: Enable repository code search