Heikki Linnakangas
efe42db264
tests: test_pgdata_import_smoke requires the 'testing' cargo feature ( #10569 )
...
It took me ages to figure out why it was failing on my laptop. What I
saw was that when the test makes the 'import_pgdata' in the pageserver,
the pageserver actually performs a regular 'bootstrap' timeline creation
by running initdb, with no importing. It boiled down to the json request
that the test uses:
```
{
"new_timeline_id": str(timeline_id),
"import_pgdata": {
"idempotency_key": str(idempotency),
"location": {"LocalFs": {"path": str(importbucket.absolute())}},
},
},
```
and how serde deserializes into rust structs. The 'LocalFs' enum variant
in `models.rs` is gated on the 'testing' cargo feature. On a non-testing
build, that got deserialized into the default Bootstrap enum variant, as
a valid TimelineCreateRequestModeImportPgdata variant could not be
formed.
PS. IMHO we should get rid of the testing feature, compile in all the
functionality, and have a runtime flag to disable anything dangeorous.
With that, you would've gotten a nice "feature only enabled in testing
mode" error in this case, or the test would've simply worked. But that's
another story.
2025-01-30 16:11:26 +00:00
..
2024-09-12 23:18:41 +01:00
2024-10-08 14:32:26 -05:00
2025-01-28 23:18:32 +00:00
2024-10-29 11:39:09 +00:00
2024-10-08 14:32:26 -05:00
2024-10-08 14:32:26 -05:00
2024-10-08 14:32:26 -05:00
2024-10-08 14:32:26 -05:00
2025-01-24 09:47:28 +00:00
2024-10-08 14:32:26 -05:00
2025-01-28 13:33:58 +00:00
2024-10-31 14:44:59 +00:00
2024-10-08 14:32:26 -05:00
2024-10-08 14:32:26 -05:00
2024-12-16 10:06:08 +00:00
2024-10-08 14:32:26 -05:00
2024-11-25 09:01:05 +00:00
2025-01-30 09:27:40 +00:00
2025-01-24 09:47:28 +00:00
2025-01-09 16:39:53 +00:00
2024-11-08 12:19:18 -06:00
2025-01-29 19:22:01 +00:00
2025-01-29 18:09:25 +00:00
2024-10-08 14:32:26 -05:00
2024-11-27 12:12:21 +00:00
2024-10-08 14:32:26 -05:00
2024-10-08 14:32:26 -05:00
2024-12-14 17:37:13 +00:00
2024-12-11 19:16:33 +00:00
2025-01-28 19:24:07 +00:00
2024-10-08 14:32:26 -05:00
2024-11-25 09:01:05 +00:00
2024-10-18 15:07:36 +03:00
2024-10-08 14:32:26 -05:00
2024-10-08 14:32:26 -05:00
2024-10-08 14:32:26 -05:00
2024-10-08 14:32:26 -05:00
2024-12-02 10:26:15 +00:00
2025-01-30 16:11:26 +00:00
2024-10-31 14:44:59 +00:00
2024-12-11 19:16:33 +00:00
2024-10-08 14:32:26 -05:00
2024-11-11 18:07:01 +00:00
2024-11-11 18:07:01 +00:00
2024-10-08 14:32:26 -05:00
2024-12-11 19:16:33 +00:00
2025-01-10 15:53:23 +00:00
2024-11-25 09:01:05 +00:00
2025-01-20 18:29:21 +00:00
2024-12-02 10:26:15 +00:00
2024-12-12 11:57:00 +00:00
2024-12-02 10:26:15 +00:00
2024-10-08 14:32:26 -05:00
2025-01-16 08:34:11 +00:00
2024-11-11 18:07:01 +00:00
2024-10-08 14:32:26 -05:00
2024-10-08 14:32:26 -05:00
2024-12-02 10:26:15 +00:00
2024-10-18 12:42:41 +02:00
2024-10-08 14:32:26 -05:00
2024-11-25 09:01:05 +00:00
2024-10-08 14:32:26 -05:00
2024-12-02 10:26:15 +00:00
2024-11-21 16:25:31 +00:00
2024-11-19 22:29:57 +02:00
2025-01-16 20:34:02 +00:00
2024-12-02 10:26:15 +00:00
2024-10-08 14:32:26 -05:00
2024-12-11 19:16:33 +00:00
2024-12-02 10:26:15 +00:00
2024-12-03 22:07:03 +00:00
2024-12-19 09:45:06 +00:00
2024-12-11 22:21:42 +00:00
2024-10-08 14:32:26 -05:00
2024-12-02 10:26:15 +00:00
2024-10-08 14:32:26 -05:00
2024-12-02 10:26:15 +00:00
2024-10-08 14:32:26 -05:00
2024-11-21 16:25:31 +00:00
2024-10-08 14:32:26 -05:00
2024-12-18 19:15:38 +00:00
2025-01-13 20:01:03 +00:00
2024-10-08 14:32:26 -05:00
2024-10-08 14:32:26 -05:00
2024-12-13 14:52:54 +00:00
2024-10-08 14:32:26 -05:00
2024-12-11 22:21:42 +00:00
2025-01-13 11:35:39 +00:00
2024-12-04 12:58:35 +00:00
2024-11-25 09:01:05 +00:00
2024-12-02 10:26:15 +00:00
2025-01-24 09:47:28 +00:00
2025-01-28 13:33:58 +00:00
2024-12-02 10:26:15 +00:00
2024-10-18 11:25:45 +01:00
2024-11-21 16:25:31 +00:00
2024-10-08 14:32:26 -05:00
2025-01-13 19:33:00 +00:00
2024-11-22 14:31:36 +00:00
2025-01-16 19:00:16 +00:00
2025-01-22 19:45:12 +00:00
2025-01-23 11:02:15 +00:00
2024-12-02 10:26:15 +00:00
2024-11-27 12:12:21 +00:00
2024-12-11 19:16:33 +00:00
2025-01-16 14:11:33 +00:00
2024-12-02 10:26:15 +00:00
2024-12-02 10:26:15 +00:00
2024-12-02 10:26:15 +00:00
2024-12-02 10:26:15 +00:00
2024-12-02 10:26:15 +00:00
2025-01-16 18:51:56 +00:00
2024-12-11 22:21:42 +00:00
2025-01-09 20:41:49 +00:00
2024-12-02 10:26:15 +00:00
2025-01-23 16:43:04 +00:00
2024-12-02 10:26:15 +00:00
2025-01-24 09:47:28 +00:00
2024-10-08 14:32:26 -05:00
2024-10-08 14:32:26 -05:00
2024-10-08 14:32:26 -05:00
2024-10-28 17:47:15 -05:00
2025-01-24 09:47:28 +00:00
2024-11-14 17:19:13 +02:00
2024-11-27 12:12:21 +00:00
2025-01-15 14:16:04 +00:00
2024-12-02 10:26:15 +00:00
2024-11-08 12:19:18 -06:00
2024-10-08 14:32:26 -05:00