You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@devlake.apache.org by ab...@apache.org on 2024/08/01 07:57:08 UTC
(incubator-devlake) branch main updated: chore: print log when skipping github run (#7818)
This is an automated email from the ASF dual-hosted git repository.
abeizn pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-devlake.git
The following commit(s) were added to refs/heads/main by this push:
new a29825ec3 chore: print log when skipping github run (#7818)
a29825ec3 is described below
commit a29825ec3e39f60f214be7fdf5c6fcd7ecb5d5a7
Author: Klesh Wong <zh...@merico.dev>
AuthorDate: Thu Aug 1 15:57:03 2024 +0800
chore: print log when skipping github run (#7818)
---
backend/plugins/github/tasks/cicd_run_collector.go | 3 +++
1 file changed, 3 insertions(+)
diff --git a/backend/plugins/github/tasks/cicd_run_collector.go b/backend/plugins/github/tasks/cicd_run_collector.go
index 85ef6108b..68bd0aa15 100644
--- a/backend/plugins/github/tasks/cicd_run_collector.go
+++ b/backend/plugins/github/tasks/cicd_run_collector.go
@@ -58,6 +58,7 @@ var CollectRunsMeta = plugin.SubTaskMeta{
func CollectRuns(taskCtx plugin.SubTaskContext) errors.Error {
data := taskCtx.GetData().(*GithubTaskData)
+ log := taskCtx.GetLogger()
collector, err := helper.NewStatefulApiCollectorForFinalizableEntity(helper.FinalizableApiCollectorArgs{
RawDataSubTaskArgs: helper.RawDataSubTaskArgs{
Ctx: taskCtx,
@@ -100,6 +101,8 @@ func CollectRuns(taskCtx plugin.SubTaskContext) errors.Error {
return nil, errors.Convert(err)
}
filteredRuns = append(filteredRuns, json.RawMessage(runJSON))
+ } else {
+ log.Info("Skipping run{id: %d, number: %d} with status %s", run.ID, run.RunNumber, run.Status)
}
}
return filteredRuns, nil