vole
Clone
Read only, no credentials:
https://rodent.software/git/vole.git
Write over SSH with a registered key:
git clone ssh://git@0.0.0.0:2222/vole.git
A free and open-source forge that lives in your Git repo.
Index state changes for the activity feed
4d938fe894d56ff29b87fa0f2ebec50a744f2993 · Keenan Nemetz · 9d ago · parent e2a58f3a
Index state changes for the activity feed The activity feed found closed, reopened and merged events by reading the last 200 metadata commit subjects on every render: one git process per repository, so the instance home with N repositories ran N of them. It was the last derived read still going to git. - A `state_changes` table is fed by the same refresh: a delta reads the commits in its range, a rebuild reads the whole metadata branch. Rows are keyed by the commit, so a retried or overlapping refresh cannot duplicate an event, and an ordinal keeps two changes in one second in branch order (commit times are seconds; a close and a reopen often share one). - `Store.StateChanges` returns the events newest first; the feed reads it and keeps the metadata log as the fallback for a server without an index or a failed read. - `git.Repo.Log` and `CommitsBetween` treat a limit of zero as no limit, which the rebuild needs, and `metadata.ParseStateSubject` is exported so the index derives the events without a second copy of the format. The activity page now starts no metadata log; the instance home and the instance activity page lose one process per visible repository. On the load harness with three repositories: activity 496 req/s (p50 7 ms), instance activity 230 req/s (p50 17 ms), home 202 req/s (p50 20 ms). Schema version 7 rebuilds each repository on its first read after upgrade.
server/load_test.go +3
| @@ -169,6 +169,9 @@ func loadScenarios(t *testing.T, f *fixture, seed loadSeed) []scenario { | |||
| 169 | 169 | {name: "compare", step: getStep(repo + "/compare/main...feature")}, | |
| 170 | 170 | {name: "change", step: getStep(repo + "/requests/" + seed.changeID)}, | |
| 171 | 171 | {name: "issue", step: getStep(repo + "/issues/" + seed.issueID)}, | |
| 172 | {name: "activity", step: getStep(repo + "/activity")}, | ||
| 173 | {name: "instance-activity", step: getStep(f.http.URL + "/activity")}, | ||
| 174 | {name: "home", step: getStep(f.http.URL + "/")}, | ||
| 172 | 175 | {name: "search-code", step: getStep(repo + "/search?q=revision")}, | |
| 173 | 176 | {name: "search-find", step: getStep(f.http.URL + "/search?q=revision")}, | |
| 174 | 177 | {name: "artifact", step: getStep(repo + "/releases/v1/artifacts/load-artifact.txt")}, | |