mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
upload benchmark to central ci db
```sql CREATE TABLE benchmarks( "timestamp" timestamptz NOT NULL DEFAULT (current_setting('veloren.timestamp')::timestamptz), branch text NOT NULL DEFAULT current_setting('veloren.branch'), sha text NOT NULL DEFAULT current_setting('veloren.sha'), "group" text NULL, "function" text NULL, "value" text NULL, throughput_num numeric NULL, throughput_type text NULL, sample_measured_value numeric NOT NULL, unit text NULL, iteration_count numeric NULL ); ```
This commit is contained in:
parent
3c9e8a4479
commit
dad5bf3aff
@ -13,10 +13,21 @@ unittests:
|
||||
benchmarks:
|
||||
extends: .recompile-branch
|
||||
stage: build
|
||||
tags:
|
||||
- veloren-benchmark
|
||||
script:
|
||||
- unset DISABLE_GIT_LFS_CHECK
|
||||
- ln -s /dockercache/cache-all target
|
||||
- cargo bench
|
||||
- echo 'SET veloren.timestamp = "'"$(git show --no-patch --no-notes --pretty='%cd' HEAD)"'";' > upload.sql
|
||||
- echo 'SET veloren.branch = "'"${CI_COMMIT_REF_NAME}"'";' >> upload.sql
|
||||
- echo 'SET veloren.sha = "'"${CI_COMMIT_SHA}"'";' >> upload.sql
|
||||
- find . -wholename "*new/*.csv" -exec echo '\copy benchmarks ("group", "function", "value", throughput_num, throughput_type, sample_measured_value, unit, iteration_count) from '"'{}' csv header" >> upload.sql \;
|
||||
- cat upload.sql
|
||||
- mkdir -p /usr/share/man/man1/ /usr/share/man/man3/ /usr/share/man/man7/
|
||||
- apt-get update
|
||||
- apt-get -y install postgresql-client
|
||||
- PGPASSWORD="${CIDBPASSWORD}" PGSSLROOTCERT="./.gitlab/ci-db.crt" psql "sslmode=verify-ca host=auth.veloren.net dbname=benchmarks" -U bsdrftsejrhdrjhgd -f upload.sql;
|
||||
retry:
|
||||
max: 2
|
||||
|
||||
|
77
.gitlab/ci-db.crt
Normal file
77
.gitlab/ci-db.crt
Normal file
@ -0,0 +1,77 @@
|
||||
Certificate:
|
||||
Data:
|
||||
Version: 3 (0x2)
|
||||
Serial Number:
|
||||
7e:a1:f6:77:25:97:c3:df:8c:9a:49:8c:e9:0b:a7:6b:eb:13:24:48
|
||||
Signature Algorithm: sha256WithRSAEncryption
|
||||
Issuer: CN = auth.veloren.net
|
||||
Validity
|
||||
Not Before: Sep 29 22:19:43 2020 GMT
|
||||
Not After : Sep 29 22:19:43 2021 GMT
|
||||
Subject: CN = auth.veloren.net
|
||||
Subject Public Key Info:
|
||||
Public Key Algorithm: rsaEncryption
|
||||
RSA Public-Key: (2048 bit)
|
||||
Modulus:
|
||||
00:c2:ed:db:b2:ad:04:c7:6b:b9:2f:8f:02:a1:49:
|
||||
9f:c6:02:f8:06:9d:ab:19:69:78:52:64:5b:f8:2e:
|
||||
07:93:b4:2f:7b:6c:38:d8:7c:93:96:92:51:6b:e1:
|
||||
4a:28:ee:a1:c7:3e:54:d0:56:22:ad:38:f1:5d:73:
|
||||
22:cd:5e:44:1f:98:f8:47:bb:66:1b:29:2c:87:a5:
|
||||
83:71:8d:29:d3:9c:91:ed:c4:c0:23:ee:a4:c0:58:
|
||||
88:1c:03:97:ae:f7:27:0a:5b:a4:f0:64:a5:8e:24:
|
||||
b9:2e:35:8c:6c:a2:b2:94:5c:c8:28:8f:8a:d9:3e:
|
||||
2d:91:9a:36:92:93:e9:26:f0:c3:4b:fa:f3:15:d9:
|
||||
ae:6d:19:bd:13:34:79:97:f4:6a:38:e6:11:5d:46:
|
||||
2b:78:df:7e:1e:f2:c0:2a:fd:01:34:46:82:40:9f:
|
||||
7f:13:0f:bd:51:0d:d4:fb:99:ad:3d:7a:a5:44:b3:
|
||||
a6:44:2b:49:dc:34:2a:7a:1e:8b:54:a0:0f:8b:c4:
|
||||
c5:b0:54:ab:b3:15:36:e7:0c:35:69:98:5e:5d:5d:
|
||||
d1:68:4d:6d:65:4e:4d:87:c3:16:6c:e9:46:f1:c6:
|
||||
31:f2:c9:05:c5:76:7a:33:27:41:8d:08:29:a3:08:
|
||||
22:a8:53:1b:95:49:67:3a:0f:ce:93:d6:b6:91:fb:
|
||||
6e:bd
|
||||
Exponent: 65537 (0x10001)
|
||||
X509v3 extensions:
|
||||
X509v3 Subject Key Identifier:
|
||||
B0:DE:60:C1:E1:59:91:C8:9B:F8:4D:9A:9E:48:5B:29:81:F0:98:6D
|
||||
X509v3 Authority Key Identifier:
|
||||
keyid:B0:DE:60:C1:E1:59:91:C8:9B:F8:4D:9A:9E:48:5B:29:81:F0:98:6D
|
||||
|
||||
X509v3 Basic Constraints: critical
|
||||
CA:TRUE
|
||||
Signature Algorithm: sha256WithRSAEncryption
|
||||
25:65:e9:80:0b:65:0b:bf:e4:84:23:2a:68:bd:bc:97:bf:37:
|
||||
ae:4d:bb:6b:bd:f9:7a:8b:5c:1f:dd:e2:4f:e2:43:d1:4f:58:
|
||||
06:75:31:bc:08:e0:bd:b2:54:22:90:2e:07:22:1e:c7:74:32:
|
||||
e3:50:2d:56:0e:c5:2c:08:66:6b:56:f0:07:d5:60:9e:7f:d4:
|
||||
68:24:8e:2b:f3:a2:90:50:9f:26:29:08:68:1e:2c:dd:fc:3f:
|
||||
2b:cf:3f:79:b1:99:a9:27:24:3c:1c:36:19:a1:6c:b4:f0:75:
|
||||
b7:4c:38:a5:1f:2c:63:fc:fb:45:a1:c5:08:cd:9c:58:99:21:
|
||||
a3:b8:8d:0f:4f:2d:ca:09:d4:c2:67:90:3a:ff:89:c6:c3:16:
|
||||
4a:38:05:ad:ef:93:bb:6c:4c:b3:fd:55:e9:5e:1c:a6:49:15:
|
||||
df:40:99:90:ca:30:98:dd:93:a2:fa:17:56:9a:c5:b7:71:bb:
|
||||
7f:a1:03:9a:f7:6a:52:19:bd:b2:0e:12:a4:f8:12:f2:85:31:
|
||||
d1:4a:fd:d6:57:a6:f8:30:c8:f4:e6:bb:d0:9e:db:39:0f:0b:
|
||||
ee:a5:03:ea:d1:70:f2:f1:be:e9:82:3d:c7:4a:70:e3:78:6e:
|
||||
48:35:e9:43:cd:b9:c3:83:b0:cf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A6/4nGwxZKOAWt75O7bEyz/VXpXhymSRXfQJmQyjCY3ZOi+hdWmsW3cbt/
|
||||
oQOa92pSGb2yDhKk+BLyhTHRSv3WV6b4MMj05rvQnts5DwvupQPq0XDy8b7pgj3H
|
||||
SnDjeG5INelDzbnDg7DP/zT20t6dnkywbW77
|
||||
-----END CERTIFICATE-----
|
Loading…
Reference in New Issue
Block a user