Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(cloudevents): fix error for case run report #68

Merged
merged 1 commit into from
Jan 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions cloudevents-server/configs/example-config-sqlite3.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,6 @@ lark:
app_id: cli_12345678
app_secret: s123456789
receiver: abc@test.com
tibuild:
result_sink_url: http://localhost:49244 # url of tibuild events listener.
trigger_sink_url: http://localhost:8080 # url of tekton event listener.
11 changes: 8 additions & 3 deletions cloudevents-server/ent/client.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

128 changes: 128 additions & 0 deletions cloudevents-server/ent/problemcaserun_update.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions cloudevents-server/ent/runtime/runtime.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ func (h *Handler) addRecords(ctx context.Context, caseData map[string]ProblemCas
SetBuildURL(buildURL).
SetTimecostMs(int(timecost * 1000)).
SetReportTime(reportTime).
SetReason(reasonNA).
SetFlaky(false)
if timecost < 0 {
entry.SetReason(reasonNotFinished)
Expand Down
1 change: 1 addition & 0 deletions cloudevents-server/pkg/events/custom/testcaserun/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ const (

reasonNotFinished = "not_finished"
reasonUnknown = "unknown"
reasonNA = "N/A"
)

// ProblemCasesFromBazel present case run records from bazel.
Expand Down