Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
6808585
Add compression infra.
quinntaylormitchell Apr 29, 2026
2151c15
Add search infra.
quinntaylormitchell Apr 29, 2026
d82b793
Docstrings.
quinntaylormitchell Apr 29, 2026
3b62e1f
Docstrings.
quinntaylormitchell Apr 29, 2026
4979cb7
Rabbit.
quinntaylormitchell Apr 30, 2026
f9d3189
Rabbit.
quinntaylormitchell Apr 30, 2026
5d1cae7
Rabbit.
quinntaylormitchell Apr 30, 2026
89677f8
Make FILE_PATH search less flimsy.
quinntaylormitchell Apr 30, 2026
a91f795
Merge branch 'main' into feature branch
quinntaylormitchell May 12, 2026
d2d2ef0
Deprecate PackageCompressionJob and related flows.
quinntaylormitchell May 12, 2026
f392d30
Merge branch 'main' into feature branch
quinntaylormitchell May 12, 2026
96d0d28
Merge branch 'main' into feature branch
quinntaylormitchell May 20, 2026
8e02f43
Clear package archives after spindown.
quinntaylormitchell May 21, 2026
613925f
Merge branch 'main' into feature branch
quinntaylormitchell May 21, 2026
9b4735f
Merge branch 'main' into feature branch
quinntaylormitchell May 26, 2026
e3866ec
Cleanup
quinntaylormitchell May 26, 2026
a6b775b
Address Bill's comments.
quinntaylormitchell May 28, 2026
4e92878
Describe differences between operating modes in test functions instea…
quinntaylormitchell Jun 1, 2026
a41411f
Add placeholder for clp-json unstructured compression behaviour.
quinntaylormitchell Jun 1, 2026
31b4b15
Merge branch 'main' into feature branch
quinntaylormitchell Jun 1, 2026
1c737d3
Merge branch 'testing-redesign-6' into testing-redesign-9
quinntaylormitchell Jun 1, 2026
f365968
Merge branch 'main' into feature branch
quinntaylormitchell Jun 23, 2026
9bd21f2
Merge branch 'main' into feature branch
quinntaylormitchell Jul 2, 2026
6c49f4b
Write kv-centric search verification
quinntaylormitchell Jul 2, 2026
f523b51
Modify search verif. w.r.t. search flags.
quinntaylormitchell Jul 3, 2026
6c678f7
Fix docstrings, README, and imports.
quinntaylormitchell Jul 3, 2026
8fb7480
Fix count-by-time search and start adding test functions.
quinntaylormitchell Jul 4, 2026
bf83a99
Add clp-text tests.
quinntaylormitchell Jul 5, 2026
150f3c8
Merge branch 'main' into text-search-verification
jackluo923 Jul 16, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 37 additions & 3 deletions integration-tests/tests/data/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,15 @@ following rules must be observed:
"dataset_name": "str",
"unstructured": bool,
"timestamp_key": "str" | null,
"timestamp_format": <timestamp-format> | null,
"begin_ts": int,
"end_ts": int,
"logs_subdir": "str",
"file_names": [
"str",
"str",
...
],
"single_match_wildcard_query": "str"
]
}
```

Expand All @@ -45,11 +45,43 @@ following rules must be observed:
| `dataset_name` | The name of the sample dataset directory. |
| `unstructured` | `True` if logs are unstructured, else `False`. |
| `timestamp_key` | The authoritative timestamp key, or `null` if there is no such key. |
| `timestamp_format` | Description of authoritative timestamp encoding (see below). |
| `begin_ts` | The earliest timestamp present in the dataset (ms). |
| `end_ts` | The latest timestamp present in the dataset (ms). |
| `logs_subdir` | The name of the subdirectory containing logs. |
| `file_names` | A list of the files within `logs_subdir`. |
| `single_match_wildcard_query` | A wildcard query that matches exactly one log message in the dataset. |

`timestamp_format` is a field tagged by by `kind` and containing `pattern` if applicable:

```json
{"kind": "epoch_ms"}
{"kind": "strptime", "pattern": "str"}
```

| Field | Description |
| --- | --- |
| `kind` | `"epoch_ms"` for epoch ms timestamps, or `"strptime"` for formatted strings. |
| `pattern` | (`strptime` only) The Python [`strptime`][strptime] pattern for the timestamp. |

3. For **structured** datasets: files in the dataset must be `.jsonl`, with only one log record per
line.

## Time-range search verification

Search verification reproduces the package's `--begin-time`/`--end-time` filter by independently
determining each log event's timestamp. For a dataset to be usable in a time-range search test, the
following restrictions must be observed:

1. `begin_ts` must equal the earliest timestamp present in the dataset, and `end_ts` the latest.
2. `begin_ts` must be less than or equal to `end_ts`.
3. `timestamp_format` must not be `null`.
4. For **structured** datasets:
* `timestamp_key` must not be `null`, and must be a *top-level* key. Nested/dotted keys are
not supported.
* Each log in the dataset must contain `timestamp_key`.
5. For **unstructured** datasets:
* Every log line must begin with a single whitespace-delimited timestamp token written in the
format described by `timestamp_format.pattern`.

## Accessing sample datasets within the testing system

Expand All @@ -74,3 +106,5 @@ To access a sample dataset from within the test system, the following rules shou

Tests should use sample dataset fixtures instead of reading the logs directly, because many
verification flows rely on dataset metadata.

[strptime]: https://docs.python.org/3/library/datetime.html#strftime-and-strptime-format-codes
6 changes: 4 additions & 2 deletions integration-tests/tests/data/json_multifile/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
"dataset_name": "json_multifile",
"unstructured": false,
"timestamp_key": "timestamp",
"timestamp_format": {
"kind": "epoch_ms"
},
"begin_ts": 1310138944000,
"end_ts": 1311208074120,
"logs_subdir": "logs",
Expand All @@ -11,6 +14,5 @@
"sts-135-2011-07-11.jsonl",
"sts-135-2011-07-19.jsonl",
"sts-135-2011-07-21.jsonl"
],
"single_match_wildcard_query": "\"detail\":\"Roll program complete, heads down attitude achieved for ascent\""
]
}
7 changes: 5 additions & 2 deletions integration-tests/tests/data/text_multifile/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
"dataset_name": "text_multifile",
"unstructured": true,
"timestamp_key": null,
"timestamp_format": {
"kind": "strptime",
"pattern": "%Y-%m-%dT%H:%M:%S.%f"
},
"begin_ts": 92554380000,
"end_ts": 93596007004,
"logs_subdir": "logs",
Expand All @@ -11,6 +15,5 @@
"apollo-17_day07.txt",
"apollo-17_day10.txt",
"apollo-17_day13.txt"
],
"single_match_wildcard_query": "Saturn"
]
}
4 changes: 2 additions & 2 deletions integration-tests/tests/data/text_singlefile/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
"dataset_name": "text_singlefile",
"unstructured": true,
"timestamp_key": null,
"timestamp_format": null,
"begin_ts": 1427089710122,
"end_ts": 1427089710122,
"logs_subdir": "logs",
"file_names": [
"simple.txt"
],
"single_match_wildcard_query": "TEST1"
]
}
Loading
Loading