Repository navigation
Commit 43b601a
committed
Read a function's Doxygen from its MEOS twin, in one order on every machine
doxygen_sources lists each tree it reads sorted, with every <name>_meos.c file before the other files of its tree. A function defined both in the file the PostgreSQL extension compiles and in the MEOS twin that replaces it in the MEOS build, as route_exists and route_geom are in meos/src/npoint/ways.c and ways_meos.c, is then documented by the twin MEOS compiles, and the brief, the parameter descriptions, the nullability and the output parameters every reader keeps from the first block it meets come from that block on every machine.
Why. The list was in the order glob returns, which is the order the filesystem lists a directory in, so the brief of route_exists read "the ways cache" on one machine and "the edge table" on another from the same MobilityDB commit, and a consumer that generates from the catalog on one machine and checks it on another reads a difference neither its code nor MobilityDB causes: MobilityDB/MobilityAPI-Python#19 is the case.
Measured. Over MobilityDB 93e1d279be the catalog this derives on a machine whose filesystem lists ways_meos.c first is the same as before, all 6625 functions; the GitHub runner, which listed ways.c first, read the edge-table briefs.
Witness. tests/test_nullable.py::test_the_meos_twin_documents_a_function_defined_twice lists ways.c and ways_meos.c in both orders and reads the twin's brief for route_exists each time; with the previous order the listing that puts ways.c first reads the edge-table brief and the test fails. The suite passes with the MobilityDB sources present: 578 tests, 98 skipped.1 parent 1c14d4f commit 43b601a
2 files changed
Lines changed: 35 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
32 | 38 | | |
33 | | - | |
34 | | - | |
35 | | - | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
36 | 47 | | |
37 | 48 | | |
38 | 49 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
| 14 | + | |
13 | 15 | | |
14 | 16 | | |
15 | 17 | | |
| |||
106 | 108 | | |
107 | 109 | | |
108 | 110 | | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
109 | 129 | | |
110 | 130 | | |
111 | 131 | | |
| |||
0 commit comments