Skip to main content Module compat_case Copy item path Source CaseMetadata Metadata for a compatibility test case, parsed from case.toml. CompatCase A loaded compatibility case (metadata + file paths). Version π A simple 3-component version: major.minor.patch. VersionConstraint π A version constraint used in from_range / to_range. discover_cases Discover all compat cases under case_root.
Each case is a directory containing case.toml, setup.sql, and verify.sql.
verify.result is optional at discovery β if missing, the verify phase
generates it from actual output and fails so the author must review/commit. is_valid_namespace π Check whether a string is a valid namespace: starts with lowercase letter,
contains only lowercase alphanumeric + underscores. parse_version_constraint π Parse a single range entry (e.g. *, <=v1.1.0, >=v1.1.1, v1.0.0). sanitize_namespace π Sanitize a name into a valid GreptimeDB namespace: lowercase alphanumeric + underscores. try_infer_version π Try to infer a version string by running <bins_dir>/greptime --version.
Returns None if the binary cannot be executed or the output isnβt parseable. validate_case_namespaces Check for duplicate namespaces. validate_cases_metadata Validate per-case metadata for all discovered cases. validate_version_constraints π version_matches_range π Check whether a version matches a list of OR-ed constraints.