Repository navigation
chore: remove the v1 repository health score pipes (IN-1222) - #4923
Closed
gaspergrom wants to merge 1 commit into
Closed
gaspergrom wants to merge 1 commit into
gaspergrom wants to merge 1 commit into
Conversation
Contributor
There was a problem hiding this comment.
🔵 Needs a closer look
Destructive production removal remains explicitly gated on consumer sign-off and deployment of the prerequisite PR.
0 open findings
What changed in this PR
Removes deprecated v1 repository health-score Tinybird resources after migration to v2.
Changes:
- Deletes the v1 aggregate copy pipe and datasource.
- Deletes ten obsolete signal pipes.
- Preserves dependency metrics and the v2 breakdown pipe.
| File | Description |
|---|---|
repo_health_score_stars.pipe |
Removes v1 stars scoring. |
repo_health_score_security.pipe |
Removes v1 security scoring. |
repo_health_score_retention.pipe |
Removes v1 retention scoring. |
repo_health_score_pull_requests.pipe |
Removes v1 PR scoring. |
repo_health_score_merge_lead_time.pipe |
Removes v1 merge-time scoring. |
repo_health_score_issues_resolution.pipe |
Removes v1 issue-resolution scoring. |
repo_health_score_forks.pipe |
Removes v1 forks scoring. |
repo_health_score_copy.pipe |
Removes the v1 aggregation copy job. |
repo_health_score_contributions_outside_work_hours.pipe |
Removes v1 work-hours scoring. |
repo_health_score_active_days.pipe |
Removes v1 active-days scoring. |
repo_health_score_active_contributors.pipe |
Removes v1 contributor scoring. |
repo_health_score_copy_ds.datasource |
Removes the v1 materialized datasource definition. |
🧠 Review effort: Balanced
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Delete repo_health_score_copy, repo_health_score_copy_ds and the ten repo_health_score_<signal> pipes behind them. repo_health_score_contributor_dependency and repo_health_score_organization_dependency stay: project_insights_copy joins them for the repository dependency metrics. repo_health_score_v2_breakdown is the live v2 pipe and is untouched. Deleting the files does not remove the live resources: see the removal runbook in the PR. Signed-off-by: Gašper Grom <gasper.grom@gmail.com>
gaspergrom
force-pushed
the
chore/IN-1222-remove-health-score-v1-tinybird
branch
from
October 12, 2026 22:42
fc35762 to
4d043c4
Compare
gaspergrom
force-pushed
the
chore/IN-1222-remove-repo-health-score-v1
branch
from
October 12, 2026 22:42
2ae42fa to
72205f6
Compare
Contributor
Author
|
Closing for now: org-dashboard still reads the v1 health score ( |
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.
Do not merge until Joana Maia confirms consumer sign-off (LFX One, Org Lens, OD, Self Serve, CNCF) and a deprecation date — IN-1222 PRE2/PRE4.
Summary
repo_health_score_copypipe and its datasourcerepo_health_score_copy_ds, and the ten signal pipes it joined:repo_health_score_active_contributors,_active_days,_contributions_outside_work_hours,_forks,_issues_resolution,_merge_lead_time,_pull_requests,_retention,_securityand_stars.repo_health_score_contributor_dependencyandrepo_health_score_organization_dependency.project_insights_copyreads them for repo dependency metrics (crowd.dev PR 1). Keepsrepo_health_score_v2_breakdown, the live v2 pipe.project_insights_copy, nothing reads these pipes. No code in crowd.dev, insights or lfx-self-serve references them.Deploy notes
Prerequisites
project_insights_copystill joinsrepo_health_score_copy_ds, and removing it fails the copy.Steps
Run staging first, then prod. Readers go before writers, and writers before datasources.
Before you remove anything on prod, check who still reads these resources, through endpoints and through direct SQL. Query API calls show up in
tinybird.pipe_stats_rtunderpipe_name = 'query_api'. Run this withtb sqlor in the Tinybird UI:Ignore rows from your own token. On 2026-10-12 the analyst token
admin sboysel@linuxfoundation.orghad run 130 Query API reads ofrepo_health_score_copy_dsin 7 days. Coordinate with that user first, and don't runtb datasource rm repo_health_score_copy_dsuntil they confirm they no longer need it. Any other caller: stop and ask.Deleting the files does not remove live pipes or datasources. The commands above do.
After the removals, check with
tb pipe lsandtb datasource lsthat none of the twelve remain.repo_health_score_contributor_dependency,repo_health_score_organization_dependencyandrepo_health_score_v2_breakdownmust still exist. The nextproject_insights_copyrun should finish, and the repo dependency sums should stay non-zero. The copy job's dependency guard enforces that.Cross-repo order
crowd.dev PR 1 is already live, and insights PR 1 deploys after it.
What breaks if out of order
project_insights_copystill joinsrepo_health_score_copy_ds. Removing that datasource makes the copy job fail, and the project and repo snapshot stops refreshing.Related PRs
JIRA
IN-1222: Deprecate v1 health score sinks and tables
https://linuxfoundation.atlassian.net/browse/IN-1222