Lauri Ojansivu
9ee8deae3a
Conformance cases for $meta, and a test run that stops the databases it started.
...
Two things.
$META HAS CONFORMANCE CASES NOW. The catalogue gained $slice and $elemMatch when
they were implemented; $meta went in afterwards and had none, so the one part of
the projection work that a live database could check was the part nothing
checked. Two cases, compared differently on purpose:
projection/$meta recordId COMPARE.SHAPE
projection/$meta textScore full value comparison
recordId is the STORAGE identity of a document, so its value is each backend's
own and comparing values would report a difference that is not one. What has to
agree is that every backend ANSWERS, and answers with the same shape - a number
on every row - which is what SHAPE checks. Before the fix they all errored, so
that is exactly the regression worth guarding.
textScore is computed by the handler ABOVE the backends, from the document's own
strings, so every backend must produce the same number and the values are
compared in full. It is also the only case that exercises $text: only `alpha`
(_id 1) carries the term, and carries it once. Sorted by _id so the comparison
does not depend on the order a backend returns rows in.
A TEST RUN STOPS ITS DATABASES ON EVERY WAY OUT. build.sh stopped the test server
and the mongod at the END of the run - reached when the run finishes, and not
reached when it is interrupted or when one of the early failures returns. Then
the mongod on :3001 and the bundle server on :3000 outlive the run.
That is not untidy so much as expensive, and the cost lands on the NEXT run. The
harness reuses a database only when it ANSWERS - a port held by something else
moves it aside - so a leftover mongod IS reused, holding a database this run
never seeded, and the failures land somewhere else entirely.
So the stopping is a shell function called from a trap on EXIT INT TERM, and the
normal path calls the same function. It is idempotent - each half clears its PID -
so the trap firing afterwards stops nothing twice, and a database this run did
NOT start is still left alone, because its PID was never recorded. Conformance
containers go with it: that stage names each engine's container
wekan-conformance-db-<timestamp> and removes it when the engine is done, but an
interrupted run leaves the one it was on, and a container still holding 5432 or
3306 fails the next run's engine before it starts.
cmd has no trap, so build.bat does the same clearing on the way IN as well as on
the way out: one :stop_test_databases label, called at the start and the end of
both all-tests flows. Starting from a clean slate is the batch answer to a trap
it cannot have. The two copies of the stopping that were already there are now
that one label, so they cannot drift.
tests/buildScriptParity.test.cjs pins both: the trap and the idempotence in
build.sh, the four calls in build.bat, and that both stop the same two servers
and the conformance containers.
Thanks to xet7 !
2026-08-15 14:07:05 +03:00
..
2026-08-15 14:07:05 +03:00
2026-06-18 04:14:59 +03:00
2026-08-10 21:51:21 +07:00
2026-08-15 05:23:35 +03:00
2026-06-23 16:50:24 +03:00
2026-08-12 16:01:51 +03:00
2026-08-14 01:10:04 +03:00
2026-07-22 12:15:56 +03:00
2026-07-25 22:25:31 +03:00
2026-07-28 17:59:17 +03:00
2026-07-28 13:29:23 +03:00
2026-07-26 08:27:04 +03:00
2026-07-31 14:39:49 +03:00
2026-07-31 04:24:49 +03:00
2026-08-10 12:51:41 +03:00
2026-08-04 16:12:49 +03:00
2026-07-26 09:54:23 +03:00
2026-08-14 03:59:38 +03:00
2026-07-17 03:27:33 +03:00
2026-05-27 20:51:44 +03:00
2026-08-14 03:59:38 +03:00
2026-08-14 18:06:10 +03:00
2026-08-11 02:11:06 +03:00
2026-08-14 17:52:48 +03:00
2026-08-01 14:32:45 +03:00
2026-07-17 03:34:23 +03:00
2026-08-14 17:52:48 +03:00
2026-07-17 03:21:02 +03:00
2026-08-01 23:31:46 +03:00
2026-08-01 14:21:16 +03:00
2026-07-23 18:55:30 +03:00
2026-07-16 17:40:24 +03:00
2026-07-27 20:58:43 +03:00
2026-08-12 22:25:18 +03:00
2026-07-17 01:43:53 +03:00
2026-08-13 15:51:25 +03:00
2026-08-14 05:58:51 +03:00
2026-07-23 18:55:30 +03:00
2026-07-13 09:16:33 +03:00
2026-08-09 02:55:13 +03:00
2026-08-12 17:44:32 +03:00
2026-07-11 01:53:07 +03:00
2026-07-11 00:14:49 +03:00
2026-07-26 09:39:03 +03:00
2026-07-11 00:14:49 +03:00
2026-07-17 03:41:20 +03:00
2026-07-23 18:55:30 +03:00
2026-08-14 06:23:00 +03:00
2026-07-31 04:09:40 +03:00
2026-07-23 18:55:30 +03:00
2026-07-28 22:25:15 +03:00
2026-08-14 00:52:48 +03:00
2026-08-14 03:59:38 +03:00
2026-07-17 03:07:59 +03:00
2026-07-31 16:04:18 +03:00
2026-07-31 06:28:13 +03:00
2026-07-24 03:23:37 +03:00
2026-07-23 15:03:42 +03:00
2026-08-12 15:58:17 +03:00
2026-07-23 18:55:30 +03:00
2026-08-09 02:55:13 +03:00
2026-07-24 08:06:14 +03:00
2026-07-28 22:25:15 +03:00
2026-07-17 03:07:59 +03:00
2026-08-14 17:52:48 +03:00
2026-08-13 15:51:25 +03:00
2026-08-14 15:12:50 +03:00
2026-08-15 14:07:05 +03:00
2026-08-13 23:51:23 +03:00
2026-08-01 23:51:20 +03:00
2026-07-23 18:55:30 +03:00
2026-08-11 15:50:31 +03:00
2026-08-09 03:29:20 +03:00
2026-06-23 08:50:29 +03:00
2026-08-13 19:14:02 +03:00
2026-07-31 01:39:44 +03:00
2026-08-14 01:47:45 +03:00
2026-07-16 17:40:24 +03:00
2026-08-14 15:27:22 +03:00
2026-07-23 18:59:30 +03:00
2026-07-17 18:04:36 +03:00
2026-08-11 15:32:47 +03:00
2026-08-14 00:52:48 +03:00
2026-07-23 18:59:30 +03:00
2026-07-31 01:39:44 +03:00
2026-07-23 18:55:30 +03:00
2026-08-08 01:23:22 +03:00
2026-08-14 13:58:44 +03:00
2026-06-13 17:19:51 +03:00
2026-07-23 22:08:24 +03:00
2026-07-23 18:55:30 +03:00
2026-08-14 05:02:57 +03:00
2026-07-23 18:55:30 +03:00
2026-07-23 18:55:30 +03:00
2026-08-14 01:35:06 +03:00
2026-07-23 18:55:30 +03:00
2026-07-24 23:43:27 +03:00
2026-07-18 02:05:00 +03:00
2026-07-28 22:56:13 +03:00
2026-08-12 04:36:00 +03:00
2026-07-28 22:56:13 +03:00
2026-08-12 18:43:36 +03:00
2026-08-14 05:02:57 +03:00
2026-07-23 18:55:30 +03:00
2026-07-17 03:07:59 +03:00
2026-08-14 02:11:10 +03:00
2026-08-07 18:20:23 +03:00
2026-08-14 13:49:59 +03:00
2026-07-23 18:55:30 +03:00
2026-07-23 18:55:30 +03:00
2026-07-16 17:40:24 +03:00
2026-08-11 17:35:48 +03:00
2026-07-23 18:55:30 +03:00
2026-07-22 13:27:50 +03:00
2026-08-10 21:51:21 +07:00
2026-08-13 19:31:47 +03:00
2026-07-20 03:11:07 +03:00
2026-08-08 03:46:39 +03:00
2026-07-17 23:01:52 +03:00
2026-08-09 04:43:30 +03:00
2026-08-15 11:23:21 +03:00
2026-07-23 18:55:30 +03:00
2026-07-30 03:49:26 +03:00
2026-08-12 15:06:45 +03:00
2026-07-23 18:59:30 +03:00
2026-08-11 16:07:47 +03:00
2026-08-14 06:48:47 +03:00
2026-08-10 21:51:21 +07:00
2026-08-08 00:38:50 +03:00
2026-07-27 17:17:36 +03:00
2026-07-31 07:14:52 +03:00
2026-07-23 18:55:30 +03:00
2026-07-09 02:14:07 +03:00
2026-07-25 00:08:56 +03:00
2026-07-20 03:11:07 +03:00
2026-07-28 00:58:30 +03:00
2026-08-12 23:45:25 +03:00
2026-08-09 15:38:53 +03:00
2026-08-14 14:05:37 +03:00
2026-07-28 01:05:27 +03:00
2026-07-28 04:28:36 +03:00
2026-07-24 09:13:02 +03:00
2026-08-01 23:24:42 +03:00
2026-07-28 22:25:15 +03:00
2026-07-23 18:55:30 +03:00
2026-08-12 21:16:40 +03:00
2026-07-23 18:55:30 +03:00
2026-07-24 10:14:29 +03:00
2026-08-13 15:51:25 +03:00
2026-08-14 18:44:35 +03:00
2026-08-07 18:20:23 +03:00
2026-07-23 19:16:24 +03:00
2026-07-23 18:55:30 +03:00
2026-08-11 19:02:58 +03:00
2026-08-09 02:55:13 +03:00
2026-08-09 02:55:13 +03:00
2026-08-11 01:51:51 +03:00
2026-07-16 19:12:59 +03:00
2026-08-12 22:25:18 +03:00
2026-07-22 10:35:52 +03:00
2026-07-28 04:28:36 +03:00
2026-07-22 10:35:52 +03:00
2026-07-16 17:40:24 +03:00
2026-07-21 10:06:40 +03:00
2026-07-17 15:04:48 +03:00
2026-07-25 16:49:19 +03:00
2026-08-09 03:43:07 +03:00
2026-07-25 16:49:19 +03:00
2026-06-22 15:46:43 +03:00
2026-07-27 21:39:51 +03:00
2026-07-17 16:59:42 +03:00
2026-07-31 04:09:40 +03:00
2026-08-12 15:06:45 +03:00
2026-08-14 05:22:31 +03:00
2026-08-03 15:30:15 +03:00
2026-07-31 06:47:19 +03:00
2026-08-12 06:55:33 +03:00
2026-07-26 08:10:52 +03:00
2026-08-01 23:05:46 +03:00
2026-07-25 21:34:37 +03:00
2026-07-31 13:57:06 +03:00
2026-07-31 04:09:41 +03:00
2026-08-01 14:32:45 +03:00
2026-07-22 09:21:21 +03:00
2026-08-15 03:50:20 +03:00
2026-07-23 18:59:30 +03:00
2026-08-13 23:51:23 +03:00
2026-07-23 18:55:30 +03:00
2026-07-23 18:55:30 +03:00
2026-07-13 09:16:33 +03:00
2026-07-23 00:52:46 +03:00
2026-07-23 00:52:46 +03:00
2026-08-14 16:24:27 +03:00
2026-07-26 03:18:31 +03:00
2026-08-11 15:50:31 +03:00
2026-07-23 18:59:30 +03:00
2026-07-17 03:07:59 +03:00
2026-07-06 16:02:56 +03:00
2026-07-17 03:36:07 +03:00
2026-07-09 09:45:53 +03:00
2026-07-26 00:23:35 +03:00
2026-07-23 18:55:30 +03:00
2026-07-09 02:14:07 +03:00
2026-07-17 03:34:23 +03:00
2026-07-28 14:38:49 +03:00
2026-07-22 09:21:21 +03:00
2026-07-19 18:36:11 +03:00
2026-07-17 03:07:59 +03:00
2026-07-16 10:17:13 +02:00
2026-08-08 02:16:04 +03:00
2026-07-17 03:07:59 +03:00
2026-07-13 09:16:33 +03:00
2026-07-17 03:07:59 +03:00
2026-07-09 09:45:53 +03:00
2026-08-01 22:13:03 +03:00
2026-06-23 16:48:59 +03:00
2026-07-23 18:55:30 +03:00
2026-07-23 18:55:30 +03:00
2026-07-23 18:55:30 +03:00
2026-07-23 18:55:30 +03:00
2026-08-08 02:19:08 +03:00
2026-07-09 02:14:07 +03:00
2026-07-31 04:09:40 +03:00
2026-07-31 04:09:41 +03:00
2026-07-17 16:59:42 +03:00
2026-08-12 14:38:27 +03:00
2026-07-22 16:22:39 +03:00
2026-07-23 19:16:24 +03:00
2026-08-07 19:21:24 +03:00
2026-08-09 02:55:13 +03:00
2026-08-09 02:55:13 +03:00
2026-07-28 04:28:36 +03:00
2026-08-09 02:55:13 +03:00
2026-08-09 02:55:13 +03:00
2026-07-31 06:23:16 +03:00
2026-07-28 17:59:17 +03:00
2026-05-27 20:51:44 +03:00
2026-08-13 15:51:25 +03:00
2026-07-17 04:52:30 +03:00
2026-07-23 18:55:30 +03:00
2026-08-08 03:46:39 +03:00
2026-08-01 11:58:21 +03:00
2026-07-19 18:36:11 +03:00
2026-08-12 22:25:18 +03:00
2026-08-12 14:05:34 +03:00
2026-08-12 14:05:34 +03:00
2026-07-09 10:09:32 +03:00
2026-08-12 14:45:07 +03:00
2026-07-25 21:40:30 +03:00
2026-07-25 21:02:54 +03:00
2026-07-25 22:34:13 +03:00
2026-08-02 02:48:55 +03:00
2026-07-25 23:00:15 +03:00
2026-08-01 00:33:13 +03:00
2026-07-25 21:34:37 +03:00
2026-08-11 02:11:06 +03:00
2026-07-30 15:57:58 +03:00
2026-08-12 15:06:45 +03:00
2026-07-31 13:57:06 +03:00
2026-08-01 12:26:15 +03:00
2026-08-09 15:50:11 +03:00
2026-08-15 01:34:57 +03:00
2026-08-09 02:55:13 +03:00
2026-08-11 16:15:06 +03:00
2026-07-06 10:55:29 +03:00
2026-07-25 22:13:46 +03:00
2026-08-12 20:45:15 +03:00
2026-07-17 03:07:59 +03:00
2026-07-24 16:18:24 +03:00
2026-07-17 03:07:59 +03:00
2026-08-08 01:59:42 +03:00
2026-07-17 03:07:59 +03:00
2026-08-13 19:05:59 +03:00
2026-07-26 15:16:16 +03:00
2026-07-09 02:14:07 +03:00
2026-08-01 02:21:03 +03:00
2026-08-14 16:02:34 +03:00
2026-07-27 23:39:37 +03:00
2026-08-14 00:38:55 +03:00
2026-08-10 03:40:12 +03:00
2026-07-28 16:44:30 +03:00
2026-07-17 18:29:28 +03:00
2026-07-31 04:09:41 +03:00
2026-07-27 22:06:41 +03:00
2026-08-14 08:20:30 +03:00
2026-07-26 01:58:15 +03:00
2026-07-24 03:23:37 +03:00
2026-07-23 18:55:30 +03:00
2026-07-31 01:39:20 +03:00
2026-08-09 22:44:22 +03:00
2026-07-28 04:28:36 +03:00
2026-08-14 17:52:48 +03:00
2026-08-09 05:35:10 +03:00
2026-08-09 02:54:56 +03:00
2026-07-22 21:48:29 +03:00
2026-07-17 03:34:23 +03:00
2026-07-06 10:33:15 +03:00
2026-07-21 10:06:40 +03:00
2026-07-21 10:06:41 +03:00
2026-07-21 10:06:40 +03:00
2026-07-21 10:06:40 +03:00
2026-07-28 02:02:58 +03:00
2026-08-11 11:36:18 +03:00
2026-07-09 02:14:07 +03:00
2026-08-12 20:58:08 +03:00
2026-08-13 15:51:25 +03:00
2026-08-11 01:52:41 +03:00
2026-08-12 23:01:55 +03:00
2026-08-05 17:38:53 +03:00
2026-08-13 15:51:25 +03:00
2026-08-11 01:52:41 +03:00
2026-08-11 02:54:47 +03:00
2026-08-10 01:35:38 +03:00
2026-08-12 22:25:18 +03:00
2026-08-09 23:38:43 +03:00
2026-08-05 21:21:51 +03:00
2026-08-04 12:40:13 +03:00
2026-08-14 14:15:25 +03:00
2026-08-04 17:51:10 +03:00
2026-07-29 04:04:47 +03:00
2026-08-14 03:28:21 +03:00
2026-08-11 19:21:19 +03:00
2026-08-15 11:16:16 +03:00
2026-06-23 08:50:29 +03:00
2026-08-13 19:44:31 +03:00
2026-07-22 12:37:49 +03:00
2026-08-09 02:55:13 +03:00
2026-07-09 02:14:07 +03:00
2026-08-15 03:07:36 +03:00
2026-07-09 09:45:53 +03:00
2026-07-09 02:14:07 +03:00
2026-07-16 17:40:24 +03:00
2026-07-22 10:15:50 +03:00
2026-07-28 04:28:36 +03:00
2026-07-23 18:55:30 +03:00
2026-07-23 18:55:30 +03:00
2026-07-28 03:49:45 +03:00
2026-08-01 14:21:16 +03:00
2026-08-03 15:29:43 +03:00
2026-07-17 03:36:50 +03:00
2026-08-13 15:51:25 +03:00
2026-08-14 18:51:51 +03:00
2026-07-09 09:45:53 +03:00
2026-08-09 02:20:13 +03:00
2026-08-14 01:20:44 +03:00
2026-08-09 03:29:20 +03:00
2026-08-09 02:55:13 +03:00
2026-08-12 15:06:45 +03:00
2026-07-25 02:28:58 +03:00
2026-07-31 07:14:52 +03:00
2026-08-11 15:50:31 +03:00
2026-08-07 13:44:12 +03:00
2026-07-26 09:48:47 +03:00
2026-08-14 07:34:13 +03:00
2026-08-15 06:14:30 +03:00
2026-08-01 23:16:01 +03:00
2026-07-18 19:42:19 +03:00
2026-07-25 22:08:38 +03:00
2026-08-13 15:51:25 +03:00
2026-08-09 14:05:17 +03:00
2026-07-31 12:07:41 +03:00
2026-08-14 13:50:19 +03:00
2026-08-12 14:31:58 +03:00
2026-08-12 22:25:18 +03:00
2026-08-13 15:53:30 +03:00
2026-07-28 14:49:41 +03:00
2026-08-12 22:25:18 +03:00
2026-08-12 22:25:18 +03:00
2026-08-12 22:25:18 +03:00
2026-08-13 15:51:25 +03:00
2026-08-12 22:25:17 +03:00
2026-08-13 19:17:41 +03:00
2026-08-09 22:51:38 +03:00
2026-08-11 16:24:52 +03:00
2026-08-14 13:50:19 +03:00
2026-08-13 19:44:15 +03:00
2026-07-17 20:20:06 +03:00
2026-07-23 18:55:30 +03:00
2026-07-26 08:27:04 +03:00
2026-07-28 12:13:03 +03:00
2026-07-30 15:58:39 +03:00
2026-07-23 18:59:30 +03:00
2026-08-01 14:49:52 +03:00
2026-07-24 10:14:29 +03:00
2026-07-13 09:16:33 +03:00
2026-07-13 09:16:33 +03:00
2026-07-17 03:21:02 +03:00
2026-07-23 18:55:30 +03:00
2026-07-23 18:55:30 +03:00
2026-07-16 18:46:09 +03:00
2026-08-14 08:20:30 +03:00
2026-07-17 03:34:23 +03:00
2026-08-08 06:52:35 +03:00
2026-07-17 03:44:38 +03:00
2026-07-23 18:55:30 +03:00
2026-07-09 09:45:53 +03:00
2026-07-31 04:09:41 +03:00
2026-07-22 12:15:56 +03:00
2026-07-25 20:50:20 +03:00
2026-07-26 00:17:58 +03:00
2026-08-14 02:46:52 +03:00
2026-07-26 07:59:30 +03:00
2026-07-26 07:59:30 +03:00
2026-07-26 07:59:30 +03:00
2026-08-11 15:50:31 +03:00
2026-07-28 03:49:45 +03:00
2026-08-01 23:51:20 +03:00
2026-08-10 21:51:21 +07:00
2026-08-14 18:28:57 +03:00
2026-08-14 15:35:46 +03:00
2026-08-08 02:41:24 +03:00
2026-08-03 15:30:15 +03:00
2026-07-28 04:28:36 +03:00
2026-06-13 17:19:51 +03:00
2026-06-13 20:15:04 +03:00
2026-06-13 17:19:51 +03:00
2026-08-14 18:06:10 +03:00
2026-08-14 18:20:31 +03:00
2026-08-08 02:05:14 +03:00
2026-07-17 18:44:14 +03:00
2026-08-11 16:28:38 +03:00
2026-07-25 22:25:31 +03:00
2026-07-20 03:11:07 +03:00
2026-07-23 18:55:30 +03:00
2026-08-14 05:46:41 +03:00
2026-07-06 11:50:28 +03:00
2026-08-10 12:54:55 +03:00
2026-08-08 02:50:15 +03:00
2026-07-23 18:55:30 +03:00
2025-12-22 23:18:01 +02:00
2026-06-12 20:15:56 +03:00
2026-07-28 12:13:21 +03:00
2026-07-21 19:43:48 +03:00
2026-08-12 15:58:17 +03:00
2026-08-04 02:16:27 +03:00
2026-08-13 15:51:25 +03:00
2026-08-11 01:52:41 +03:00
2026-08-01 23:51:56 +03:00
2026-07-25 23:52:31 +03:00