Commit 049ee12
feat(gitter): affected commits graph walking (google#4974)
Add graph related logic and find affected commits to gitter
Definition of affected commits:
> A `commit` is affected when: from at least one `introduced` that is an
ancestor of the `commit`, there is no path between them that passes
through a fix. A fix can either be a `fixed` commit, or the children of
a `lastAffected` commit.
### Key changes
New endpoint:
- `POST /affected-commits`:
- Accepts a list of events (each containing an eventType (introduced,
fixed, lastAffected, or limit) and commit hash)
- Returns a list of affected commits and refs (tags and branches)
Cherry-pick Detection (optional):
Expand introduced, fixed, limit commits to include their cherry-picked
equivalents (determined with PatchID)1 parent 2a15eb7 commit 049ee12
12 files changed
Lines changed: 2028 additions & 170 deletions
File tree
- deployment/clouddeploy/gke-workers
- base
- environments
- oss-vdb-test
- oss-vdb
- go
- cmd/gitter
- pb/repository
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| 32 | + | |
| 33 | + | |
32 | 34 | | |
33 | 35 | | |
34 | 36 | | |
| |||
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
| 15 | + | |
14 | 16 | | |
15 | 17 | | |
16 | 18 | | |
| |||
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
| 15 | + | |
14 | 16 | | |
15 | 17 | | |
16 | 18 | | |
0 commit comments