Skip to content

Commit 87d40cb

Browse files
committed
WIP
1 parent 8b49d55 commit 87d40cb

File tree

2 files changed

+1
-12
lines changed

2 files changed

+1
-12
lines changed

coderd/notifications/reports/generator.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,6 @@ func (i *reportGenerator) Close() error {
101101
const failedWorkspaceBuildsReportFrequencyDays = 7
102102

103103
func reportFailedWorkspaceBuilds(ctx context.Context, logger slog.Logger, db database.Store, enqueuer notifications.Enqueuer, clk quartz.Clock) error {
104-
105104
statsRows, err := db.GetWorkspaceBuildStatsByTemplates(ctx, dbtime.Time(clk.Now()).UTC())
106105
if err != nil {
107106
return xerrors.Errorf("unable to fetch failed workspace builds: %w", err)

coderd/notifications/reports/generator_internal_test.go

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,7 @@ import "testing"
55
func TestReportFailedWorkspaceBuilds(t *testing.T) {
66
t.Parallel()
77

8-
t.Run("FailedBuilds_TemplateAdminOptIn_FirstRun_Report", func(t *testing.T) {
9-
t.Parallel()
10-
// TODO
11-
})
12-
13-
t.Run("FailedBuilds_TemplateAdminOptIn_SecondRunTooEarly_NoReport", func(t *testing.T) {
14-
t.Parallel()
15-
// TODO
16-
})
17-
18-
t.Run("FailedBuilds_TemplateAdminOptIn_SecondRun_Report", func(t *testing.T) {
8+
t.Run("FailedBuilds_TemplateAdminOptIn_FirstRun_Report_SecondRunTooEarly_NoReport_ThirdRun_Report", func(t *testing.T) {
199
t.Parallel()
2010
// TODO
2111
})

0 commit comments

Comments
 (0)