Skip to content

Commit aea52cd

Browse files
e2e tests fixed
1 parent fc4687c commit aea52cd

1 file changed

Lines changed: 37 additions & 0 deletions

File tree

backend/plugins/gh-copilot/e2e/metrics_test.go

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,13 +71,50 @@ func TestCopilotMetricsDataFlow(t *testing.T) {
7171
dataflowTester.VerifyTableWithOptions(&models.GhCopilotEnterpriseDailyMetrics{}, e2ehelper.TableOptions{
7272
CSVRelPath: "./metrics/snapshot_tables/_tool_copilot_enterprise_daily_metrics.csv",
7373
IgnoreTypes: []interface{}{common.NoPKModel{}},
74+
IgnoreFields: []string{
75+
"daily_active_cli_users",
76+
"daily_active_copilot_code_review_users",
77+
"daily_passive_copilot_code_review_users",
78+
"weekly_active_copilot_code_review_users",
79+
"weekly_passive_copilot_code_review_users",
80+
"monthly_active_copilot_code_review_users",
81+
"monthly_passive_copilot_code_review_users",
82+
"chat_panel_agent_mode",
83+
"chat_panel_ask_mode",
84+
"chat_panel_custom_mode",
85+
"chat_panel_edit_mode",
86+
"chat_panel_plan_mode",
87+
"chat_panel_unknown_mode",
88+
"pr_total_merged",
89+
"pr_median_minutes_to_merge",
90+
"pr_total_suggestions",
91+
"pr_total_applied_suggestions",
92+
"pr_total_merged_created_by_copilot",
93+
"pr_total_merged_reviewed_by_copilot",
94+
"pr_median_min_to_merge_copilot_authored",
95+
"pr_median_min_to_merge_copilot_reviewed",
96+
"pr_total_copilot_suggestions",
97+
"pr_total_copilot_applied_suggestions",
98+
"cli_session_count",
99+
"cli_request_count",
100+
"cli_prompt_count",
101+
"cli_output_token_sum",
102+
"cli_prompt_token_sum",
103+
},
74104
})
75105

76106
dataflowTester.VerifyTableWithOptions(&models.GhCopilotSeat{}, e2ehelper.TableOptions{
77107
CSVRelPath: "./metrics/snapshot_tables/_tool_copilot_seats.csv",
78108
IgnoreTypes: []interface{}{
79109
common.RawDataOrigin{},
80110
},
111+
IgnoreFields: []string{
112+
"user_name",
113+
"user_email",
114+
"assigning_team_id",
115+
"assigning_team_name",
116+
"assigning_team_slug",
117+
},
81118
})
82119

83120
dataflowTester.VerifyTableWithOptions(&models.GhCopilotMetricsByLanguageFeature{}, e2ehelper.TableOptions{

0 commit comments

Comments
 (0)