File tree Expand file tree Collapse file tree 2 files changed +17
-10
lines changed Expand file tree Collapse file tree 2 files changed +17
-10
lines changed Original file line number Diff line number Diff line change @@ -250,14 +250,21 @@ bors_sha pr parent_sha complete requested include exclude runs commi
250
250
251
251
### error
252
252
253
- Records a compilation or runtime error for an artifact and a benchmark.
253
+ Records an error within the application namely a;
254
+ - compilation
255
+ - runtime
256
+ - error contextual to a benchmark job
254
257
255
- ```
256
- sqlite> select * from error limit 1;
257
- aid benchmark error
258
- ---------- --- -----
259
- 1 syn-1.0.89 Failed to compile...
260
- ```
258
+ Columns:
259
+
260
+ * ** id** (` BIGINT ` / ` SERIAL ` ): Primary key identifier for the job row;
261
+ auto increments with each new job.
262
+ * ** aid** (` INTERGER ` ): References the artifact id column.
263
+ * ** context** (` TEXT NOT NULL ` ): A little message to be able to understand a
264
+ bit more about why or where the error occured.
265
+ * ** message** (` TEXT NOT NULL ` ): The error message.
266
+ * ** job_id** (` INTEGER ` ): A nullable job_id which, if it exists it will inform
267
+ us as to which job this error is part of.
261
268
262
269
## New benchmarking design
263
270
We are currently implementing a new design for dispatching benchmarks to collector(s) and storing
Original file line number Diff line number Diff line change @@ -408,9 +408,9 @@ static MIGRATIONS: &[Migration] = &[
408
408
) ,
409
409
Migration :: new (
410
410
r#"
411
- CREATE TABLE IF NOT EXISTS error_new (
411
+ CREATE TABLE error_new (
412
412
id INTEGER PRIMARY KEY,
413
- aid INTEGER NOT NULL,
413
+ aid INTEGER NOT NULL REFERENCES artifact(id) ON DELETE CASCADE ON UPDATE CASCADE ,
414
414
message TEXT NOT NULL,
415
415
context TEXT NOT NULL,
416
416
job_id INTEGER
@@ -428,7 +428,7 @@ static MIGRATIONS: &[Migration] = &[
428
428
DROP TABLE error;
429
429
ALTER TABLE error_new RENAME TO error;
430
430
431
- CREATE INDEX IF NOT EXISTS error_artifact_idx ON error(aid);
431
+ CREATE INDEX error_artifact_idx ON error(aid);
432
432
"# ,
433
433
) ,
434
434
] ;
You can’t perform that action at this time.
0 commit comments