Commit 40fb123
authored
fix(test): unbreak the observation store suite and main's test build (#11941)
Seven tests in homeboy-core, plus two initializers that stopped
"cargo check --workspace --tests" from compiling at all.
schema::tests (3) -- seed_owned_and_orphaned_children inserts rows that
reference a run which does not exist, because that is precisely what migration
13 exists to reap; one of the tests is literally named
migration_13_reaps_rows_orphaned_while_enforcement_was_off. enforce_foreign_keys
now turns enforcement on at open, so the seed could no longer create the
orphans under test. Relax the pragma for the seed and restore it after.
store_init_tests (2) -- test_status and test_database_path asserted the XDG
layout while with_isolated_home sets HOMEBOY_DATA_DIR, which homeboy_data()
checks first. Add EnvGuard::unset and clear it. test_database_path also set
XDG_DATA_HOME, which can never take effect: the registered home-root override
outranks XDG deliberately, and the harness always registers one. It now pins
the resolution order that actually exists.
store_artifact_tests (1) -- test_record_directory_artifact had two fields
swapped. record_directory_artifact_with_id_and_metadata writes the tree digest
to sha256, which is also what the idempotent-reuse check compares; the test
asserted it in url and expected sha256 to be None.
tests/self_checks_test.rs -- release_readiness_source was added to both
TestArgs and LintArgs without updating these initializers, so main did not
compile. Same E0063 class as #11767, and the second time this session.
Verified by diffing full homeboy-core --lib failure lists against origin/main:
30 -> 23, zero new.1 parent 010df5d commit 40fb123
3 files changed
Lines changed: 52 additions & 11 deletions
File tree
- crates/homeboy-core/src/observation/store
- tests
- core/observation
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
899 | 899 | | |
900 | 900 | | |
901 | 901 | | |
| 902 | + | |
| 903 | + | |
| 904 | + | |
| 905 | + | |
| 906 | + | |
| 907 | + | |
| 908 | + | |
| 909 | + | |
| 910 | + | |
902 | 911 | | |
903 | 912 | | |
904 | 913 | | |
| |||
931 | 940 | | |
932 | 941 | | |
933 | 942 | | |
| 943 | + | |
| 944 | + | |
| 945 | + | |
934 | 946 | | |
935 | 947 | | |
936 | 948 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | 32 | | |
39 | 33 | | |
40 | 34 | | |
| |||
52 | 46 | | |
53 | 47 | | |
54 | 48 | | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
55 | 61 | | |
56 | 62 | | |
57 | 63 | | |
| |||
70 | 76 | | |
71 | 77 | | |
72 | 78 | | |
| 79 | + | |
73 | 80 | | |
74 | 81 | | |
75 | 82 | | |
| |||
90 | 97 | | |
91 | 98 | | |
92 | 99 | | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
93 | 112 | | |
94 | 113 | | |
95 | 114 | | |
96 | | - | |
97 | | - | |
| 115 | + | |
98 | 116 | | |
99 | 117 | | |
100 | 118 | | |
101 | | - | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
102 | 123 | | |
103 | 124 | | |
104 | 125 | | |
| |||
1099 | 1120 | | |
1100 | 1121 | | |
1101 | 1122 | | |
| 1123 | + | |
| 1124 | + | |
| 1125 | + | |
| 1126 | + | |
| 1127 | + | |
| 1128 | + | |
1102 | 1129 | | |
1103 | | - | |
| 1130 | + | |
1104 | 1131 | | |
1105 | 1132 | | |
1106 | 1133 | | |
1107 | 1134 | | |
1108 | 1135 | | |
1109 | 1136 | | |
1110 | 1137 | | |
1111 | | - | |
| 1138 | + | |
1112 | 1139 | | |
1113 | 1140 | | |
1114 | 1141 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| 41 | + | |
41 | 42 | | |
42 | 43 | | |
43 | 44 | | |
| |||
59 | 60 | | |
60 | 61 | | |
61 | 62 | | |
| 63 | + | |
62 | 64 | | |
63 | 65 | | |
64 | 66 | | |
| |||
0 commit comments