diff options
author | Will Chandler <wchandler@gitlab.com> | 2023-01-05 22:33:04 +0300 |
---|---|---|
committer | Will Chandler <wchandler@gitlab.com> | 2023-02-02 18:07:01 +0300 |
commit | 01c0d3d45bd4fe388e53f59c91832aaf924c6c37 (patch) | |
tree | 82792be572417325aeef3b4dcaf87c4e235e9f49 /_support | |
parent | 4156e43f073215213e97887bfbcc669fadf03efc (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.json | 10 | ||||
-rw-r--r-- | _support/benchmarking/roles/client/tasks/main.yml | 8 |
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: |