Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitaly.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWill Chandler <wchandler@gitlab.com>2023-01-05 22:33:04 +0300
committerWill Chandler <wchandler@gitlab.com>2023-02-02 18:07:01 +0300
commit01c0d3d45bd4fe388e53f59c91832aaf924c6c37 (patch)
tree82792be572417325aeef3b4dcaf87c4e235e9f49 /_support
parent4156e43f073215213e97887bfbcc669fadf03efc (diff)
benchmarking: Add initial FindCommit query
To run requests via `ghz`, we need to provide a JSON-formatted file with the parameters being passed to the RPC. As an initial example, let's add a `FindCommit` request for `git.git`. Revision `bWFzdGVy` is `master` in base64.
Diffstat (limited to '_support')
-rw-r--r--_support/benchmarking/roles/client/files/queries/FindCommit/git.git.json10
-rw-r--r--_support/benchmarking/roles/client/tasks/main.yml8
2 files changed, 18 insertions, 0 deletions
diff --git a/_support/benchmarking/roles/client/files/queries/FindCommit/git.git.json b/_support/benchmarking/roles/client/files/queries/FindCommit/git.git.json
new file mode 100644
index 000000000..92c62f30b
--- /dev/null
+++ b/_support/benchmarking/roles/client/files/queries/FindCommit/git.git.json
@@ -0,0 +1,10 @@
+{
+ "repository": {
+ "storageName": "default",
+ "relativePath": "git.git",
+ "gitAlternateObjectDirectories": [],
+ "glRepository": "git",
+ "glProjectPath": "git/git"
+ },
+ "revision": "bWFzdGVy"
+}
diff --git a/_support/benchmarking/roles/client/tasks/main.yml b/_support/benchmarking/roles/client/tasks/main.yml
index 294f720ee..1d8c26ea1 100644
--- a/_support/benchmarking/roles/client/tasks/main.yml
+++ b/_support/benchmarking/roles/client/tasks/main.yml
@@ -62,6 +62,14 @@
- ghz
remote_src: true
+- name: Copy query files
+ copy:
+ src: queries
+ dest: /opt/ghz
+ owner: git
+ group: git
+ mode: '0755'
+
- name: Generate SSH key
shell: ssh-keygen -q -t ed25519 -f /root/.ssh/id_ed25519 -N ""
args: