Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

devstats,repo_groups: generate repo_groups.sql #332

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

dhiller
Copy link
Contributor

@dhiller dhiller commented Oct 7, 2024

What this PR does / why we need it:

CNCF devstats project provides dashboards for KubeVirt that show GitHub data 2. This PR is a required part to keep the repository groups of the user statistics by repository 3 in sync with the content of sigs.yaml. Another PR inside project-infra will change the job to use this tool.

This PR adds a go tool that generates SQL statements to update repository groups for CNCF devstats 1.

See #330 for more details.

Background

KubeVirt repository groups are updated with an SQL script 4 - we want these repository groups to be updated automatically whenever there's changes in our sigs.yaml.

A while ago we had decided to directly align our repository groups to the ownership references inside the sig definitions - in effect this maps any change in a repository to one or more SIGs.

When calling the tool, i.e.

go run ./robots/cmd/devstats/...

it generates SQL code that is targeted to update the kubevirt repo_groups

Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Fixes #

Special notes for your reviewer:

@kubevirt-bot
Copy link

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

@kubevirt-bot kubevirt-bot added do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. dco-signoff: yes Indicates the PR's author has DCO signed all their commits. labels Oct 7, 2024
@kubevirt-bot
Copy link

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign davidvossel for approval. For more information see the Kubernetes Code Review Process.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@dhiller dhiller force-pushed the update-devstats-repo-groups branch from 0b86fd4 to 67fd05c Compare October 7, 2024 15:48
@dhiller dhiller marked this pull request as ready for review October 7, 2024 16:05
@kubevirt-bot kubevirt-bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Oct 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dco-signoff: yes Indicates the PR's author has DCO signed all their commits. size/L
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants