diff options
| author | Aleksandr Nogikh <nogikh@google.com> | 2025-05-12 15:29:02 +0200 |
|---|---|---|
| committer | Aleksandr Nogikh <nogikh@google.com> | 2025-05-13 10:05:33 +0000 |
| commit | 09706c899ce54513472d621bf9d84c0e8e5eaea8 (patch) | |
| tree | 765c3be157c9ef150ab685d545b8c36795c791e6 /syz-cluster/series-tracker | |
| parent | 50f6de2f6c8b05193d0ca3f3881bd662b4babe60 (diff) | |
pkg/vcs: extend ListCommitHashes
Rename the method to LatestCommit and make it more flexible:
1) Return the commit date alongside the commit hash.
2) Rename the time filter to highlight that it's non-inclusive.
3) Make it possible to query the commits newer than the specified commit
hash.
It will let us poll lore archives more efficiently.
Diffstat (limited to 'syz-cluster/series-tracker')
| -rw-r--r-- | syz-cluster/series-tracker/main.go | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/syz-cluster/series-tracker/main.go b/syz-cluster/series-tracker/main.go index 2b6611798..b8638d897 100644 --- a/syz-cluster/series-tracker/main.go +++ b/syz-cluster/series-tracker/main.go @@ -99,7 +99,10 @@ func (sf *SeriesFetcher) Update(ctx context.Context, from time.Time) error { if err != nil { return fmt.Errorf("failed to poll %q: %w", url, err) } - repoList, err := lore.ReadArchive(gitRepo, from) + // We could have been fetching the emails precisely starting from the last Update() attempt, + // but since we may only save it once the whole series is there, it's easier to just look at all + // the recent messages. + repoList, err := lore.ReadArchive(gitRepo, "", from) if err != nil { return err } |
