mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-10-15 19:49:36 +00:00
Merge pull request #45441 from cjwagner/test-owners-no-default
Automatic merge from submit-queue (batch tested with PRs 45508, 44258, 44126, 45441, 45320) Removed 'default' row from test_owners.csv and Updated update_owners.py **What this PR does / why we need it**: Removes the 'default' row from test_owners.csv and the validation/update logic associated with it in update_owners.py. The 'default' row is being removed because it results in too many issues being assigned to the default test owners when issues are automatically generated. **Release note**: ```release-note NONE ``` /assign
This commit is contained in:
@@ -86,8 +86,7 @@ def write_owners(fname, owners):
|
||||
with open(fname, 'w') as f:
|
||||
out = csv.writer(f, lineterminator='\n')
|
||||
out.writerow(['name', 'owner', 'auto-assigned', 'sig'])
|
||||
sort_key = lambda (k, v): (k != 'DEFAULT', k) # put 'DEFAULT' first.
|
||||
items = sorted(owners.items(), key=sort_key)
|
||||
items = sorted(owners.items())
|
||||
for name, (owner, random_assignment, sig) in items:
|
||||
out.writerow([name, owner, int(random_assignment), sig])
|
||||
|
||||
@@ -137,7 +136,6 @@ def main():
|
||||
test_names = get_test_names_from_test_history()
|
||||
else:
|
||||
test_names = get_test_names_from_local_files()
|
||||
test_names.add('DEFAULT')
|
||||
test_names = sorted(test_names)
|
||||
owners = load_owners(OWNERS_PATH)
|
||||
|
||||
|
Reference in New Issue
Block a user