Skip to content

chore: sync generated files with cnpg-infra policy - #508

Merged
leonardoce merged 2 commits into
mainfrom
dev/sync-generated-files
Sep 15, 2026
Merged

leonardoce merged 2 commits into
mainfrom
dev/sync-generated-files

Conversation

@gbartolini

Copy link
Copy Markdown
Contributor

Generated from cloudnative-pg/cnpg-infra by scripts/sync-ownership-files.sh. Propose changes there rather than editing these files here. See the commit message for what each file is and where it comes from.

These files are generated from cloudnative-pg/cnpg-infra and landed here
by scripts/sync-ownership-files.sh, so propose a change there rather than
editing them in this repository:

- CODEOWNERS, from componentowners-policy.yaml.
- COMPONENT_OWNERS.md, from repo-tiers.yaml's owners field, which is the
  same entry that populates this repo's <repo>-owners GitHub team. It is
  the public record of who owns this component, which a GitHub team
  cannot be, since team membership is only visible to other org members.
- .gitvote.yml, so a vote held on an issue here actually has an
  electorate. Until now /vote-component-owner did nothing in this repo.

Assisted-by: Claude

Signed-off-by: Gabriele Bartolini <gabriele.bartolini@enterprisedb.com>
@gbartolini
gbartolini requested a review from a team as a code owner September 14, 2026 11:23
gitvote decides a vote with `in_favor_percentage >= pass_threshold`, so a
flat 50 let an even-sized electorate pass its own tie: 2-2 on a four-owner
repo cleared the bar. A simple majority is strictly more than half, and a
percentage cannot express "half plus one vote", so the threshold moves to
50.01 -- above any exact tie, below the smallest real majority, which is
50 + 100/N percent for N voters and stays above 50.01 up to N = 10000.

The two-thirds profiles move from 66 to 66.66 for the same reason: two
thirds is 66.666..., so a flat 66 sat just under its own bar (33 of 50 is
66.0 and would have passed). Not 66.67 -- for an electorate divisible by
three the exact two-thirds computes to 66.6666..., which falls under
66.67 and would break a legitimate 2-of-3.

This file is rendered from cnpg-infra's gitvote-policy.yaml; the change
is made there and regenerated here.

Assisted-by: Claude Opus 5

Signed-off-by: Gabriele Bartolini <gabriele.bartolini@enterprisedb.com>
@leonardoce
leonardoce merged commit 1b2369d into main Sep 15, 2026
54 checks passed
@leonardoce
leonardoce deleted the dev/sync-generated-files branch September 15, 2026 11:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants