Repository navigation
Commit f054ecc
committed
Record the machine that produced each library's results
The report's "System info" line was CPU model, RAM and distro, which is
identical on ryzen-5950x-1 and ryzen-5950x-2, and nothing anywhere said which
node a run came from. job_claim.host is the only place the hostname was
written, and that is a live claim table - the next run overwrites it, so the
question "which machine produced this result" was unanswerable a day later.
Put the hostname in front of the report's system info, and store the hostname
and the whole system info string in [libversion], which is already keyed
(date, branch, libname) - one row per library per run, which is the right
granularity now that libraries of the same branch can be claimed by different
machines.
Both schema changes are ADD COLUMN only: the rows already in the databases keep
their results and read back NULL for a run whose machine was never recorded.
sqlite migrates on user_version 3 -> 4 (and from 1 and 2, which also had to
gain the columns); PostgreSQL uses ADD COLUMN IF NOT EXISTS, since the shared
database is created once and never migrated. Verified on a copy of both: the
existing rows survive, the new insert shape works, re-running createTables is a
no-op, and the NATURAL JOIN in test.py is unaffected - the added names collide
with nothing in omcversion or in a branch table.
sqlite2postgres.py learns the two columns as well, and now fills a text column
the source lacks with NULL instead of the string "0".
What made this worth doing: ExternalMedia and Buildings' Utilities.IO.Python_3_8
models have been flipping in exact anti-phase on master since 2026-08-11, ten
run pairs out of ten. It turned out that ExternalMedia does not load on the
Ubuntu 22.04 node and the Buildings Python library does not load on the Ubuntu
24.04 nodes, so master alternating between two machines is the whole of it - but
establishing that took cross-referencing a transient claim table against report
timestamps, which is exactly the work this commit makes unnecessary.
See OpenModelica/OpenModelica#16376.1 parent 54cae49 commit f054ecc
3 files changed
Lines changed: 56 additions & 28 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
229 | 229 | | |
230 | 230 | | |
231 | 231 | | |
232 | | - | |
233 | | - | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
234 | 235 | | |
235 | 236 | | |
| 237 | + | |
236 | 238 | | |
237 | 239 | | |
238 | 240 | | |
239 | | - | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
240 | 245 | | |
241 | 246 | | |
242 | 247 | | |
| |||
245 | 250 | | |
246 | 251 | | |
247 | 252 | | |
248 | | - | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
249 | 265 | | |
250 | 266 | | |
251 | 267 | | |
| |||
399 | 415 | | |
400 | 416 | | |
401 | 417 | | |
402 | | - | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
403 | 424 | | |
404 | 425 | | |
405 | 426 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
72 | | - | |
| 72 | + | |
| 73 | + | |
73 | 74 | | |
74 | 75 | | |
75 | 76 | | |
| |||
233 | 234 | | |
234 | 235 | | |
235 | 236 | | |
236 | | - | |
237 | | - | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
238 | 243 | | |
239 | 244 | | |
240 | 245 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
15 | 16 | | |
16 | 17 | | |
17 | 18 | | |
| |||
993 | 994 | | |
994 | 995 | | |
995 | 996 | | |
| 997 | + | |
| 998 | + | |
| 999 | + | |
| 1000 | + | |
| 1001 | + | |
| 1002 | + | |
| 1003 | + | |
| 1004 | + | |
| 1005 | + | |
| 1006 | + | |
| 1007 | + | |
| 1008 | + | |
| 1009 | + | |
| 1010 | + | |
| 1011 | + | |
| 1012 | + | |
| 1013 | + | |
| 1014 | + | |
| 1015 | + | |
| 1016 | + | |
996 | 1017 | | |
997 | 1018 | | |
998 | 1019 | | |
| |||
1003 | 1024 | | |
1004 | 1025 | | |
1005 | 1026 | | |
1006 | | - | |
| 1027 | + | |
1007 | 1028 | | |
1008 | 1029 | | |
1009 | 1030 | | |
| |||
1028 | 1049 | | |
1029 | 1050 | | |
1030 | 1051 | | |
1031 | | - | |
1032 | | - | |
1033 | | - | |
1034 | | - | |
1035 | | - | |
1036 | | - | |
1037 | | - | |
1038 | | - | |
1039 | | - | |
1040 | | - | |
1041 | | - | |
1042 | | - | |
1043 | | - | |
1044 | | - | |
1045 | | - | |
1046 | | - | |
1047 | | - | |
1048 | | - | |
1049 | | - | |
1050 | 1052 | | |
1051 | 1053 | | |
1052 | 1054 | | |
| |||
0 commit comments