Skip to content

Commit cc934ee

Browse files
authored
Merge pull request #1701 from Kobzol/update-db-instructions
Add instructions on how to remove master/try artifact data
2 parents a95bee1 + fa4eedf commit cc934ee

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

database/queries.md

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Useful queries
22
This document contains useful queries that should be performed manually in exceptional situations.
33

4-
## Remove data for an artifact from the DB
4+
## Remove data for a stable artifact from the DB
55
This is important for situations where there is some compilation error for a stable benchmark,
66
with a stable release of the compiler. While this should be rare, it happens sometimes e.g. because
77
of future incompatibility lints turning into errors.
@@ -19,3 +19,17 @@ WHERE name IN ('1.69.0', '1.70.0') AND
1919
type = 'release';
2020
```
2121
After executing this query, the server should automatically re-benchmark these artifacts again.
22+
23+
## Remove data for a master/try artifact from the DB
24+
This is similar to removing a stable artifact, however it also has to be removed from the
25+
`pull_request_build` table.
26+
27+
```sql
28+
DELETE FROM artifact
29+
WHERE name = "<sha>";
30+
31+
DELETE FROM pull_request_build
32+
WHERE bors_sha = "<sha>";
33+
```
34+
After that, the server has to be restarted, or you have to send a GET request to its `/perf/onpush`
35+
endpoint.

0 commit comments

Comments
 (0)