Skip to content

Commit 13ee457

Browse files
committed
test(e2e): Fix cursor plugin CI failures
* Set explicit raw row id in cursor extractor e2e so PostgreSQL does not hit duplicate primary key errors. * Register cursor plugin in schema_e2e allGoPlugins so TestAllGoPluginsListed passes. Signed-off-by: Joshua Smith <jbsmith7741@gmail.com>
1 parent 3004578 commit 13ee457

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

backend/plugins/cursor/e2e/extractors_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ func TestCursorExtractorsDataFlow(t *testing.T) {
103103
}
104104

105105
extraRaw := map[string]interface{}{
106+
"id": uint64(2),
106107
"params": `{"ConnectionId":1,"ScopeId":"team","Endpoint":"https://api.cursor.com"}`,
107108
"data": []byte(`{"day":"2026-07-09","userId":"user_example123","email":"user@example.com","isActive":true,"completions":1,"premiumRequests":0,"agentRequests":1,"chatRequests":0,"composerRequests":0,"totalTabsAccepted":0,"totalTabsShown":0,"usageBasedReqs":0,"subscriptionIncludedReqs":1,"mostUsedModel":"composer-2.5-fast","clientVersion":"0.50.3","totalLinesAdded":0,"totalLinesDeleted":0,"acceptedLinesAdded":0,"acceptedLinesDeleted":0,"totalApplies":0,"totalAccepts":0,"totalRejects":0}`),
108109
"url": "https://api.cursor.com/teams/daily-usage-data",

backend/plugins/schema_e2e/migration_schema_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ import (
5555
circleci "github.com/apache/incubator-devlake/plugins/circleci/impl"
5656
claudeCode "github.com/apache/incubator-devlake/plugins/claude_code/impl"
5757
clickup "github.com/apache/incubator-devlake/plugins/clickup/impl"
58+
cursor "github.com/apache/incubator-devlake/plugins/cursor/impl"
5859
customize "github.com/apache/incubator-devlake/plugins/customize/impl"
5960
dbt "github.com/apache/incubator-devlake/plugins/dbt/impl"
6061
dora "github.com/apache/incubator-devlake/plugins/dora/impl"
@@ -106,6 +107,7 @@ func allGoPlugins() []plugin.PluginMeta {
106107
circleci.Circleci{},
107108
claudeCode.ClaudeCode{},
108109
clickup.ClickUp{},
110+
cursor.Cursor{},
109111
customize.Customize{},
110112
dbt.Dbt{},
111113
dora.Dora{},

0 commit comments

Comments
 (0)