Merged/adapted oldstable into stable for RHGitaly methods
- Aug 07, 2023
-
-
Georges Racinet authored
Adaptation to match changes of Gitaly error details in `CommitService.TreeEntry`
-
- Jul 31, 2023
-
-
Georges Racinet authored
We put the previously introduced building blocks together and validate with the Gitaly Comparison test, with some improvement needed in its expensive fixture left for follow-ups.
-
- Aug 07, 2023
-
-
Georges Racinet authored
There are for now completely identical to methods for blobs, but they could well become different (e.g, different disk caches or whatever).
-
Georges Racinet authored
This will be useful to implement `CommitService.TreeEntry`. There is plenty of room for performance improvement, notably: - the position of the first relevant entry could be found by binary search instead of a linear scan - we could try and clone less But it is possible that this would not be really needed, given the performance and scalability boost given by RHGitaly over HGitaly, before Mercurial manifests start using a more efficient layout, making this code obsolete.
-
Georges Racinet authored
We will soon implement `CommitService.TreeEntry`, which has to behave like `GetBlobs` on one `RevisionPath` in case it turns out the path is a blob.
-
- Jul 31, 2023
-
-
Georges Racinet authored
We split `lookup_blob()` in two functions, so that parts can be reused without reopening changelogs, manifests etc. Notably, the implementation of `TreeEntry` will use `read_blob` in case it is serving a blob and not a tree: in this case the manifest entry has already been found, no need to reopen and rescan anything.
-
- Aug 05, 2023
-
-
Georges Racinet authored
This job is way longer than the Python tests in the same stage and is needed for Comparison Tests. Most of the time being spent in Rust compilation, it should be worthwile to launch a worker with more CPUs.
-
Georges Racinet authored
In CI, the artifact size is becoming huge (~1.6G), and it's not so useful to rebuild in the `comparison` job, as this is not caching. We introduce the option to take a path to a prebuilt RHGitaly from environment variables, and use it in CI, which allows us to restrict the artifact to the (much smaller) final executable, provided we actually run `cargo build`.
-
- Aug 01, 2023
-
-
Georges Racinet authored
In HDK initialisation, this will be more suitable than sharing from an existing repository (self-contained, would not be forgotten)
-
- Jul 31, 2023
-
-
Georges Racinet authored
This method is mostly used to check if the repository is emtpy (and that is in the case of Mercurial logically equivalent), but it's better to implement it using the GitLab branches file as it avoids actually opening the repository, spawning a thread for blocking iteration etc.
-