Skip to content

Commit 049ee12

Browse files
Ly-Joeytymzd
authored andcommitted
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/gitter.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ spec:
2929
- "--port=8888"
3030
- "--work-dir=/work/gitter"
3131
- "--fetch-timeout=1h"
32+
- "--repo-cache-ttl=1h"
33+
- "--repo-cache-max-cost=100GiB"
3234
env:
3335
- name: GOMEMLIMIT
3436
value: "100GiB"

deployment/clouddeploy/gke-workers/environments/oss-vdb-test/gitter.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ spec:
1111
- "--port=8888"
1212
- "--work-dir=/work/gitter"
1313
- "--fetch-timeout=1h"
14+
- "--repo-cache-ttl=1h"
15+
- "--repo-cache-max-cost=100GiB"
1416
env:
1517
- name: GOOGLE_CLOUD_PROJECT
1618
value: oss-vdb-test

deployment/clouddeploy/gke-workers/environments/oss-vdb/gitter.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ spec:
1111
- "--port=8888"
1212
- "--work-dir=/work/gitter"
1313
- "--fetch-timeout=1h"
14+
- "--repo-cache-ttl=1h"
15+
- "--repo-cache-max-cost=100GiB"
1416
env:
1517
- name: GOOGLE_CLOUD_PROJECT
1618
value: oss-vdb

0 commit comments

Comments
 (0)