Sign in

Search issue titles and bodies, change requests and comments. Private repositories you cannot read are not included.

vole
Clone

Read only, no credentials:

https://rodent.software/vole.git

Write over SSH with a registered key:

git clone ssh://git@rodent.software:2222/vole.git

A free and open-source forge that lives in your Git repo.

Drop the legacy run-record import

59badc638dde0655b11d01eebfe3a457735d2501 · Keenan Nemetz · 11d ago · parent b312e166

Drop the legacy run-record import

There is no released instance to stay compatible with, so the file format
under runs/, the branch importer, and the pre-receive allowance for that
directory are gone. The Record value is now only the finish wire format and the
shape stored in run_attempts. metadata.ValidateIssues rejects runs/ like any
other unknown directory, and vole admin index rebuild no longer reads run
history from Git.

An existing instance migrates once with the previous build, then rewrites the
vole branch to remove the old records. Nothing in this build reads them.

cmd/vole/index.go +1−5

@@ -29,14 +29,10 @@ func cmdIndex(args []string) error {
29 29 return err
30 30 }
31 31 defer st.Close()
32 repos, imported, err := st.RebuildIndex()
32 repos, err := st.RebuildIndex()
33 33 if err != nil {
34 34 return err
35 35 }
36 36 fmt.Printf("index rebuilt: %d repo(s)\n", repos)
37 // Run records written before CI history moved into the database are still on
38 // the metadata branch. Import them; records written since are already in
39 // runs.db and are never deleted by a rebuild.
40 fmt.Printf("legacy run records imported: %d (current records are already in runs.db)\n", imported)
41 37 return nil
42 38 }