feat(greptimedb): Phase A — feature gate, config schema, and placeholder module#50
Merged
Conversation
1e56a6e to
fbc3b4c
Compare
…rite PoC Phase A: - Add greptimedb Cargo feature with greptimedb-ingester optional dep - Add GreptimeConfig (endpoint, dbname, username, password, enabled) - Create src/greptime.rs with GreptimeClient placeholder module - Register greptime module in src/lib.rs - Schema design doc: docs/plans/greptimedb-integration.md Phase B: - Implement GreptimeClient::write_health with real RowInsertRequests - Hook into health::run_json to dual-write health entries after SQLite save - Connection failure degrades gracefully (warning only, non-blocking) Verified: - cargo check (no feature) — clean - cargo check --features greptimedb — clean - cargo clippy --all-targets -- -D warnings — clean
fbc3b4c to
79d3216
Compare
- Extend collect_tasks to return Vec<SkippedRepoInfo> (id, path, reason) - Add 'skipped' JSON array to sync --dry-run output - Print first 10 skipped repos with reasons in human-readable sync output - Fix test assertion for new return type Users can now see exactly why each repo was skipped: - 'unmanaged' (no mirror/reference/third-party/collaborative/team tag) - 'excluded' (matched --exclude list) - 'path_excluded' (matched exclude_paths pattern)
19ea5db to
23ebf80
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Introduce optional GreptimeDB integration for devbase time-series data (health, code metrics, stars).
Changes
Verification
Zero cost abstraction: when feature is disabled, the module compiles to no-ops and does not pull in Arrow/tonic dependencies.