Commit c1eac83
authored
Move eng-apps-devex to OWNERTEAMS for approval resolution (#4976)
## Why
The `maintainer-approval` workflow uses `@databricks/eng-apps-devex`
team references in OWNERS, then calls
`teams.getMembershipForUserInOrg()` to check if a reviewer belongs to
that team. This API requires `read:org` scope, which `GITHUB_TOKEN`
doesn't support (it only has repository-scoped permissions). The API
returns 404 for privacy reasons, the code silently treats that as "not a
member", and team-based approvals never resolve.
This showed up on #4968 where arsenyinfo (a member of eng-apps-devex)
approved, but the check stayed pending until a maintainer stepped in.
## Changes
We already have an `OWNERTEAMS` mechanism that expands `team:<name>`
references to individual logins at parse time, no API calls needed.
`team:bundle` and `team:platform` already use it. This PR adds
`team:eng-apps-devex` to the same system:
- OWNERTEAMS: added `team:eng-apps-devex` with the full team roster (12
members)
- OWNERS: replaced all `@databricks/eng-apps-devex` references with
`team:eng-apps-devex`
- Tests: updated to use `OWNERTEAMS`-based team resolution instead of
mocking the GitHub API
## Test plan
- [x] All 20 existing maintainer-approval tests pass
- [x] Team member approval now resolves via OWNERTEAMS expansion (no API
dependency)
- [x] Non-team-member approval correctly stays pending
- [x] `make ws` passes
This pull request was AI-assisted by Isaac.1 parent 4fc00e4 commit c1eac83
3 files changed
Lines changed: 25 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
63 | | - | |
| 63 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
4 | 13 | | |
5 | 14 | | |
6 | 15 | | |
| 16 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
16 | 19 | | |
17 | 20 | | |
18 | 21 | | |
| 22 | + | |
| 23 | + | |
19 | 24 | | |
20 | 25 | | |
21 | 26 | | |
22 | | - | |
| 27 | + | |
23 | 28 | | |
24 | 29 | | |
25 | 30 | | |
| |||
121 | 126 | | |
122 | 127 | | |
123 | 128 | | |
124 | | - | |
| 129 | + | |
125 | 130 | | |
126 | 131 | | |
127 | 132 | | |
| |||
283 | 288 | | |
284 | 289 | | |
285 | 290 | | |
286 | | - | |
| 291 | + | |
287 | 292 | | |
288 | 293 | | |
289 | 294 | | |
290 | 295 | | |
291 | 296 | | |
292 | | - | |
293 | 297 | | |
294 | 298 | | |
295 | 299 | | |
| |||
300 | 304 | | |
301 | 305 | | |
302 | 306 | | |
303 | | - | |
| 307 | + | |
304 | 308 | | |
305 | 309 | | |
306 | 310 | | |
307 | 311 | | |
308 | 312 | | |
309 | | - | |
310 | 313 | | |
311 | 314 | | |
312 | 315 | | |
| |||
0 commit comments