Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
be3ff94
Add committers explicitly to governance page, with script
alamb Sep 15, 2025
ae45776
add license header
alamb Sep 15, 2025
f4ca2c0
Update Wes McKinney's affiliation in governance.md
wesm Sep 15, 2025
b9a9054
Update adriangb's affiliation
adriangb Sep 15, 2025
0e63d3f
Update affiliation
akurmustafa Sep 16, 2025
3829213
Andy Grove Affiliation
akurmustafa Sep 16, 2025
07da8e9
Update Qi Zhu affiliation
zhuqi-lucas Sep 16, 2025
76db11d
Updatd linwei's info
lewiszlw Sep 16, 2025
4f001b7
Update docs/source/contributor-guide/governance.md
xudong963 Sep 16, 2025
65a3a2b
Update docs/source/contributor-guide/governance.md
alamb Sep 16, 2025
325eafe
Apply suggestions from code review
alamb Sep 16, 2025
0135cf3
Apply suggestions from code review
alamb Sep 16, 2025
a443f01
Apply suggestions from code review
alamb Sep 16, 2025
778b74f
Apply suggestions from code review
alamb Sep 16, 2025
8ab88e3
Apply suggestions from code review
alamb Sep 16, 2025
21eaff8
Apply suggestions from code review
alamb Sep 16, 2025
a3d0982
Clarify what is updated in the script
alamb Sep 16, 2025
0c73616
Apply suggestions from code review
alamb Sep 16, 2025
fd652cf
Update docs/source/contributor-guide/governance.md
waynexia Sep 16, 2025
97122b7
Update docs/source/contributor-guide/governance.md
alamb Sep 16, 2025
78981ea
Update docs/source/contributor-guide/governance.md
alamb Sep 17, 2025
8a45aee
Merge remote-tracking branch 'apache/main' into alamb/commiters
alamb Sep 19, 2025
81952fe
prettier
alamb Sep 19, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
266 changes: 266 additions & 0 deletions docs/scripts/update_committer_list.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,266 @@
#!/usr/bin/env python3

# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.


"""
Utility for updating the committer list in the governance documentation
by reading from the Apache DataFusion phonebook and combining with existing data.
"""

import re
import requests
import sys
import os
from typing import Dict, List, NamedTuple, Set


class Committer(NamedTuple):
name: str
apache: str
github: str
affiliation: str
role: str


# Return (pmc, committers) each a dictionary like
# key: apache id
# value: Real name

def get_asf_roster():
"""Get the current roster from Apache phonebook."""
# See https://home.apache.org/phonebook-about.html
committers_url = "https://whimsy.apache.org/public/public_ldap_projects.json"

# people https://whimsy.apache.org/public/public_ldap_people.json
people_url = "https://whimsy.apache.org/public/public_ldap_people.json"

try:
r = requests.get(committers_url)
r.raise_for_status()
j = r.json()
proj = j['projects']['datafusion']

# Get PMC members and committers
pmc_ids = set(proj['owners'])
committer_ids = set(proj['members']) - pmc_ids

except Exception as e:
print(f"Error fetching ASF roster: {e}")
return set(), set()

# Fetch people to get github handles and affiliations
#
# The data looks like this:
# {
# "lastCreateTimestamp": "20250913131506Z",
# "people_count": 9932,
# "people": {
# "a_budroni": {
# "name": "Alessandro Budroni",
# "createTimestamp": "20160720223917Z"
# },
# ...
# }
try:
r = requests.get(people_url)
r.raise_for_status()
j = r.json()
people = j['people']

# make a dictionary with each pmc_id and value their real name
pmcs = {p: people[p]['name'] for p in pmc_ids}
committers = {c: people[c]['name'] for c in committer_ids}

except Exception as e:
print(f"Error fetching ASF people: {e}")


return pmcs, committers



def parse_existing_table(content: str) -> List[Committer]:
"""Parse the existing committer table from the markdown content."""
committers = []

# Find the table between the markers
start_marker = "<!-- Begin Auto-Generated Committer List -->"
end_marker = "<!-- End Auto-Generated Committer List -->"

start_idx = content.find(start_marker)
end_idx = content.find(end_marker)

if start_idx == -1 or end_idx == -1:
return committers

table_content = content[start_idx:end_idx]

# Parse table rows (skip header and separator)
lines = table_content.split('\n')
for line in lines:
line = line.strip()
if line.startswith('|') and '---' not in line and line.count('|') >= 4:
# Split by | and clean up
parts = [part.strip() for part in line.split('|')]
if len(parts) >= 5:
name = parts[1].strip()
apache = parts[2].strip()
github = parts[3].strip()
affiliation = parts[4].strip()
role = parts[5].strip()

if name and name != 'Name' and (not '-----' in name):
committers.append(Committer(name, apache, github, affiliation, role))

return committers


def generate_table_row(committer: Committer) -> str:
"""Generate a markdown table row for a committer."""
github_link = f"[{committer.github}](https://github.com/{committer.github})"
return f"| {committer.name:<23} | {committer.apache:<39} |{committer.github:<39} | {committer.affiliation:<11} | {committer.role:<9} |"


def sort_committers(committers: List[Committer]) -> List[Committer]:
"""Sort committers by role ('PMC Chair', PMC, Committer) then by apache id."""
role_order = {'PMC Chair': 0, 'PMC': 1, 'Committer': 2}

return sorted(committers, key=lambda c: (role_order.get(c.role, 3), c.apache.lower()))


def update_governance_file(file_path: str):
"""Update the governance file with the latest committer information."""
try:
with open(file_path, 'r') as f:
content = f.read()
except FileNotFoundError:
print(f"Error: File {file_path} not found")
return False

# Parse existing committers
existing_committers = parse_existing_table(content)
print(f"Found {len(existing_committers)} existing committers")

# Get ASF roster
asf_pmcs, asf_committers = get_asf_roster()
print(f"Found {len(asf_pmcs)} PMCs and {len(asf_committers)} committers in ASF roster")


# Create a map of existing committers by apache id
existing_by_apache = {c.apache: c for c in existing_committers}

# Update the entries based on the ASF roster
updated_committers = []
for apache_id, name in {**asf_pmcs, **asf_committers}.items():
role = 'PMC' if apache_id in asf_pmcs else 'Committer'
if apache_id in existing_by_apache:
existing = existing_by_apache[apache_id]
# Preserve PMC Chair role if already set
if existing.role == 'PMC Chair':
role = 'PMC Chair'
updated_committers.append(Committer(
name=existing.name,
apache=apache_id,
github=existing.github,
affiliation=existing.affiliation,
role=role
))
# add a new entry for new committers with placeholder values
else:
print(f"New entry found: {name} ({apache_id})")
# Placeholder github and affiliation
updated_committers.append(Committer(
name=name,
apache=apache_id,
github="", # user should update
affiliation="", # User should update
role=role
))


# Sort the committers
sorted_committers = sort_committers(updated_committers)

# Generate new table
table_lines = [
"| Name | Apache ID | github | Affiliation | Role |",
"|-------------------------|-----------|----------------------------|-------------|-----------|"
]

for committer in sorted_committers:
table_lines.append(generate_table_row(committer))

new_table = '\n'.join(table_lines)

# Replace the table in the content
start_marker = "<!-- Begin Auto-Generated Committer List -->"
end_marker = "<!-- End Auto-Generated Committer List -->"

start_idx = content.find(start_marker)
end_idx = content.find(end_marker)

if start_idx == -1 or end_idx == -1:
print("Error: Could not find table markers in file")
return False

# Find the end of the start marker line
start_line_end = content.find('\n', start_idx) + 1

new_content = (
content[:start_line_end] +
new_table + '\n' +
content[end_idx:]
)

# Write back to file
try:
with open(file_path, 'w') as f:
f.write(new_content)
print(f"Successfully updated {file_path}")
return True
except Exception as e:
print(f"Error writing file: {e}")
return False


def main():
"""Main function."""
# Default path to governance file
script_dir = os.path.dirname(os.path.abspath(__file__))
repo_root = os.path.dirname(script_dir)
governance_file = os.path.join(repo_root, "source", "contributor-guide", "governance.md")

if len(sys.argv) > 1:
governance_file = sys.argv[1]

if not os.path.exists(governance_file):
print(f"Error: Governance file not found at {governance_file}")
sys.exit(1)

print(f"Updating committer list in {governance_file}")

if update_governance_file(governance_file):
print("Committer list updated successfully")
else:
print("Failed to update committer list")
sys.exit(1)


if __name__ == "__main__":
main()
82 changes: 78 additions & 4 deletions docs/source/contributor-guide/governance.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,6 @@

# Governance

The current PMC and committers are listed in the [Apache Phonebook].

[apache phonebook]: https://projects.apache.org/committee.html?datafusion

## Overview

DataFusion is part of the [Apache Software Foundation] and is governed following
Expand All @@ -38,6 +34,84 @@ As much as practicable, we strive to make decisions by consensus, and anyone in
the community is encouraged to propose ideas, start discussions, and contribute
to the project.

## People

DataFusion is currently governed by the following individuals

<!--

The following table can be updated by running the following script:

docs/scripts/update_committer_list.py

Notes:

* The script only updates the Name and Apache ID columns. The rest of the data
is manually provided.

-->

<!-- Begin Auto-Generated Committer List -->

| Name | Apache ID | github | Affiliation | Role |
| ----------------------- | ---------------- | ------------------------------------------------------- | -------------- | --------- |
| Andrew Lamb | alamb | [alamb](https://github.com/alamb) | InfluxData | PMC Chair |
| Andrew Grove | agrove | [andygrove](https://github.com/andygrove) | Apple | PMC |
| Mustafa Akur | akurmustafa | [akurmustafa](https://github.com/akurmustafa) | OHSU | PMC |
| Berkay Şahin | berkay | [berkaysynnada](https://github.com/berkaysynnada) | Synnada | PMC |
| Oleksandr Voievodin | comphead | [comphead](https://github.com/comphead) | Apple | PMC |
| Daniël Heres | dheres | [Dandandan](https://github.com/Dandandan) | | PMC |
| QP Hou | houqp | [houqp](https://github.com/houqp) | | PMC |
| Jie Wen | jackwener | [jakevin](https://github.com/jackwener) | | PMC |
| Jay Zhan | jayzhan | [jayzhan211](https://github.com/jayzhan211) | | PMC |
| Jonah Gao | jonah | [jonahgao](https://github.com/jonahgao) | | PMC |
| Kun Liu | liukun | [liukun4515](https://github.com/liukun4515) | | PMC |
| Mehmet Ozan Kabak | ozankabak | [ozankabak](https://github.com/ozankabak) | Synnada, Inc | PMC |
| Tim Saucer | timsaucer | [timsaucer](https://github.com/timsaucer) | | PMC |
| L. C. Hsieh | viirya | [viirya](https://github.com/viirya) | Databricks | PMC |
| Ruihang Xia | wayne | [waynexia](https://github.com/waynexia) | Greptime | PMC |
| Wes McKinney | wesm | [wesm](https://github.com/wesm) | Posit | PMC |
| Will Jones | wjones127 | [wjones127](https://github.com/wjones127) | LanceDB | PMC |
| Xudong Wang | xudong963 | [xudong963](https://github.com/xudong963) | Polygon.io | PMC |
| Adrian Garcia Badaracco | adriangb | [adriangb](https://github.com/adriangb) | Pydantic | Committer |
| Brent Gardner | avantgardner | [avantgardnerio](https://github.com/avantgardnerio) | Coralogix | Committer |
| Dmitrii Blaginin | blaginin | [blaginin](https://github.com/blaginin) | SpiralDB | Committer |
| Piotr Findeisen | findepi | [findepi](https://github.com/findepi) | dbt Labs | Committer |
| Jax Liu | goldmedal | [goldmedal](https://github.com/goldmedal) | Canner | Committer |
| Huaxin Gao | huaxingao | [huaxingao](https://github.com/huaxingao) | | Committer |
| Ifeanyi Ubah | iffyio | [iffyio](https://github.com/iffyio) | Validio | Committer |
| Jeffrey Vo | jeffreyvo | [Jefffrey](https://github.com/Jefffrey) | | Committer |
| Liu Jiayu | jiayuliu | [jimexist](https://github.com/jimexist) | | Committer |
| Ruiqiu Cao | kamille | [Rachelint](https://github.com/Rachelint) | Tencent | Committer |
| Kazuyuki Tanimura | kazuyukitanimura | [kazuyukitanimura](https://github.com/kazuyukitanimura) | | Committer |
| Eduard Karacharov | korowa | [korowa](https://github.com/korowa) | | Committer |
| Siew Kam Onn | kosiew | [kosiew](https://github.com/kosiew) | | Committer |
| Lewis Zhang | linwei | [lewiszlw](https://github.com/lewiszlw) | diit.cn | Committer |
| Matt Butrovich | mbutrovich | [mbutrovich](https://github.com/mbutrovich) | Apple | Committer |
| Metehan Yildirim | mete | [metegenez](https://github.com/metegenez) | | Committer |
| Marko Milenković | milenkovicm | [milenkovicm](https://github.com/milenkovicm) | | Committer |
| Wang Mingming | mingmwang | [mingmwang](https://github.com/mingmwang) | | Committer |
| Michael Ward | mjward | [Michael-J-Ward ](https://github.com/Michael-J-Ward) | | Committer |
| Marco Neumann | mneumann | [crepererum](https://github.com/crepererum) | InfluxData | Committer |
| Zhong Yanghong | nju_yaho | [yahoNanJing](https://github.com/yahoNanJing) | | Committer |
| Paddy Horan | paddyhoran | [paddyhoran](https://github.com/paddyhoran) | Assured Allies | Committer |
| Parth Chandra | parthc | [parthchandra](https://github.com/parthchandra) | Apple | Committer |
| Rémi Dettai | rdettai | [rdettai](https://github.com/rdettai) | | Committer |
| Chao Sun | sunchao | [sunchao](https://github.com/sunchao) | OpenAI | Committer |
| Daniel Harris | thinkharderdev | [thinkharderdev](https://github.com/thinkharderdev) | Coralogix | Committer |
| Raphael Taylor-Davies | tustvold | [tustvold](https://github.com/tustvold) | | Committer |
| Weijun Huang | weijun | [Weijun-H](https://github.com/Weijun-H) | OrbDB | Committer |
| Yang Jiang | yangjiang | [Ted-jiang](https://github.com/Ted-jiang) | Ebay | Committer |
| Yijie Shen | yjshen | [yjshen](https://github.com/yjshen) | DataPelago | Committer |
| Yongting You | ytyou | [2010YOUY01](https://github.com/2010YOUY01) | Independent | Committer |
| Qi Zhu | zhuqi | [zhuqi-lucas](https://github.com/zhuqi-lucas) | Polygon.io | Committer |

<!-- End Auto-Generated Committer List -->

Note that the authoritative list of PMC and committers is the [Apache Phonebook]

[apache phonebook]: https://projects.apache.org/committee.html?datafusion

## Roles

- **Contributors**: Anyone who contributes to the project, whether it be code,
Expand Down