Skip to content

Commit

Permalink
chore: updated test results
Browse files Browse the repository at this point in the history
  • Loading branch information
gentlementlegen committed Apr 24, 2024
1 parent e483216 commit 99c3e09
Show file tree
Hide file tree
Showing 8 changed files with 772 additions and 22 deletions.
4 changes: 4 additions & 0 deletions tests/__mocks__/handlers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import issueGet from "./routes/issue-get.json";
import issueEventsGet from "./routes/issue-events-get.json";
import issueEvents2Get from "./routes/issue-events-2-get.json";
import issueCommentsGet from "./routes/issue-comments-get.json";
import issue25CommentsGet from "./routes/issue-25-comments-get.json";
import issueTimelineGet from "./routes/issue-timeline-get.json";
import pullsGet from "./routes/pulls-get.json";
import pullsReviewsGet from "./routes/pulls-reviews-get.json";
Expand All @@ -22,6 +23,9 @@ export const handlers = [
http.get("https://api.github.com/repos/ubiquibot/comment-incentives/issues/22/comments", () => {
return HttpResponse.json(issueCommentsGet);
}),
http.get("https://api.github.com/repos/ubiquibot/comment-incentives/issues/25/comments", () => {
return HttpResponse.json(issue25CommentsGet);
}),
http.get("https://api.github.com/repos/ubiquibot/comment-incentives/issues/22/timeline", () => {
return HttpResponse.json(issueTimelineGet);
}),
Expand Down
120 changes: 117 additions & 3 deletions tests/__mocks__/results/content-evaluator-results.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"molecula451": {
"total": 1.42,
"total": 1.8,
"userId": 41552663,
"comments": [
{
Expand Down Expand Up @@ -116,11 +116,49 @@
"reward": 0.04,
"relevance": 0.8
}
},
{
"content": "indeed",
"url": "https://github.com/ubiquibot/comment-incentives/pull/25#issuecomment-1949038563",
"type": "REVIEW|CONTRIBUTOR|COMMENTED",
"score": {
"formatting": {
"content": {
"p": {
"count": 1,
"score": 1
}
},
"wordValue": 0.1,
"formattingMultiplier": 0.25
},
"reward": 0.02,
"relevance": 0.8
}
},
{
"content": "go to go pavlovick, we'll be using this one for test only or test in production (lmao) ?",
"url": "https://github.com/ubiquibot/comment-incentives/pull/25#issuecomment-1949044855",
"type": "REVIEW|CONTRIBUTOR|COMMENTED",
"score": {
"formatting": {
"content": {
"p": {
"count": 18,
"score": 1
}
},
"wordValue": 0.1,
"formattingMultiplier": 0.25
},
"reward": 0.36,
"relevance": 0.8
}
}
]
},
"0x4007": {
"total": 31.92,
"total": 33.44,
"userId": 4975670,
"comments": [
{
Expand Down Expand Up @@ -267,11 +305,49 @@
"reward": 4.72,
"relevance": 0.8
}
},
{
"content": "Need to document a private key too",
"url": "https://github.com/ubiquibot/comment-incentives/pull/25#issuecomment-1949021356",
"type": "REVIEW|COLLABORATOR|COMMENTED",
"score": {
"formatting": {
"content": {
"p": {
"count": 7,
"score": 1
}
},
"wordValue": 0.1,
"formattingMultiplier": 1
},
"reward": 0.56,
"relevance": 0.8
}
},
{
"content": "I was editing this right now but was too slow to push.",
"url": "https://github.com/ubiquibot/comment-incentives/pull/25#issuecomment-1949196677",
"type": "REVIEW|COLLABORATOR|COMMENTED",
"score": {
"formatting": {
"content": {
"p": {
"count": 12,
"score": 1
}
},
"wordValue": 0.1,
"formattingMultiplier": 1
},
"reward": 0.96,
"relevance": 0.8
}
}
]
},
"gitcoindev": {
"total": 37.5,
"total": 45.5,
"task": {
"reward": 37.5
},
Expand Down Expand Up @@ -314,6 +390,44 @@
"reward": 0,
"relevance": 0.8
}
},
{
"content": "@pavlovcik @molecula451 please check now again, I added to docs.",
"url": "https://github.com/ubiquibot/comment-incentives/pull/25#issuecomment-1949044575",
"type": "REVIEW|ISSUER|COMMENTED",
"score": {
"formatting": {
"content": {
"p": {
"count": 10,
"score": 1
}
},
"wordValue": 0.2,
"formattingMultiplier": 2
},
"reward": 3.2,
"relevance": 0.8
}
},
{
"content": "No way, full details are available in plain sight, only for test in production purposes",
"url": "https://github.com/ubiquibot/comment-incentives/pull/25#issuecomment-1949046925",
"type": "REVIEW|ISSUER|COMMENTED",
"score": {
"formatting": {
"content": {
"p": {
"count": 15,
"score": 1
}
},
"wordValue": 0.2,
"formattingMultiplier": 2
},
"reward": 4.8,
"relevance": 0.8
}
}
]
}
Expand Down
30 changes: 30 additions & 0 deletions tests/__mocks__/results/data-purge-result.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,16 @@
"content": "sure thing",
"url": "https://github.com/ubiquibot/comment-incentives/issues/22#issuecomment-1949639196",
"type": "ISSUE|CONTRIBUTOR|COMMENTED"
},
{
"content": "indeed",
"url": "https://github.com/ubiquibot/comment-incentives/pull/25#issuecomment-1949038563",
"type": "REVIEW|CONTRIBUTOR|COMMENTED"
},
{
"content": "go to go pavlovick, we'll be using this one for test only or test in production (lmao) ?",
"url": "https://github.com/ubiquibot/comment-incentives/pull/25#issuecomment-1949044855",
"type": "REVIEW|CONTRIBUTOR|COMMENTED"
}
]
},
Expand Down Expand Up @@ -73,6 +83,16 @@
"content": "Can somebody work on generating a new `X25519_PRIVATE_KEY` for the ubiquibot organization? We need to share it for development purposes. 1. Generate a new key 2. Encrypt a new `evmPrivateKeyEncrypted` (no funds!) and add to the org bot config 3. Add the shared test key to the `comment-incentives` readme. https://github.com/ubiquibot/comment-incentives/pull/21/commits/567419d9688e92edf698f64c697f1a7cafe1d02e _Originally posted by @pavlovcik in https://github.com/ubiquibot/comment-incentives/issues/19#issuecomment-1948876653_",
"url": "https://github.com/ubiquibot/comment-incentives/issues/22",
"type": "ISSUE|ISSUER|TASK"
},
{
"content": "Need to document a private key too",
"url": "https://github.com/ubiquibot/comment-incentives/pull/25#issuecomment-1949021356",
"type": "REVIEW|COLLABORATOR|COMMENTED"
},
{
"content": "I was editing this right now but was too slow to push.",
"url": "https://github.com/ubiquibot/comment-incentives/pull/25#issuecomment-1949196677",
"type": "REVIEW|COLLABORATOR|COMMENTED"
}
]
},
Expand All @@ -92,6 +112,16 @@
"content": "The new evmPrivateKeyEncrypted generated for address 0x3a2E44e10AbEf5CB4a6E492c5ba93d30068d2D95 (no funds). Resolves: https://github.com/ubiquibot/comment-incentives/issues/22",
"url": "https://github.com/ubiquibot/comment-incentives/pull/25",
"type": "REVIEW|ISSUER|SPECIFICATION"
},
{
"content": "@pavlovcik @molecula451 please check now again, I added to docs.",
"url": "https://github.com/ubiquibot/comment-incentives/pull/25#issuecomment-1949044575",
"type": "REVIEW|ISSUER|COMMENTED"
},
{
"content": "No way, full details are available in plain sight, only for test in production purposes",
"url": "https://github.com/ubiquibot/comment-incentives/pull/25#issuecomment-1949046925",
"type": "REVIEW|ISSUER|COMMENTED"
}
]
}
Expand Down
114 changes: 111 additions & 3 deletions tests/__mocks__/results/formatting-evaluator-results.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"molecula451": {
"total": 1.775,
"total": 2.25,
"userId": 41552663,
"comments": [
{
Expand Down Expand Up @@ -110,11 +110,47 @@
},
"reward": 0.05
}
},
{
"content": "indeed",
"url": "https://github.com/ubiquibot/comment-incentives/pull/25#issuecomment-1949038563",
"type": "REVIEW|CONTRIBUTOR|COMMENTED",
"score": {
"formatting": {
"content": {
"p": {
"count": 1,
"score": 1
}
},
"wordValue": 0.1,
"formattingMultiplier": 0.25
},
"reward": 0.025
}
},
{
"content": "go to go pavlovick, we'll be using this one for test only or test in production (lmao) ?",
"url": "https://github.com/ubiquibot/comment-incentives/pull/25#issuecomment-1949044855",
"type": "REVIEW|CONTRIBUTOR|COMMENTED",
"score": {
"formatting": {
"content": {
"p": {
"count": 18,
"score": 1
}
},
"wordValue": 0.1,
"formattingMultiplier": 0.25
},
"reward": 0.45
}
}
]
},
"0x4007": {
"total": 39.9,
"total": 41.8,
"userId": 4975670,
"comments": [
{
Expand Down Expand Up @@ -254,11 +290,47 @@
},
"reward": 5.9
}
},
{
"content": "Need to document a private key too",
"url": "https://github.com/ubiquibot/comment-incentives/pull/25#issuecomment-1949021356",
"type": "REVIEW|COLLABORATOR|COMMENTED",
"score": {
"formatting": {
"content": {
"p": {
"count": 7,
"score": 1
}
},
"wordValue": 0.1,
"formattingMultiplier": 1
},
"reward": 0.7
}
},
{
"content": "I was editing this right now but was too slow to push.",
"url": "https://github.com/ubiquibot/comment-incentives/pull/25#issuecomment-1949196677",
"type": "REVIEW|COLLABORATOR|COMMENTED",
"score": {
"formatting": {
"content": {
"p": {
"count": 12,
"score": 1
}
},
"wordValue": 0.1,
"formattingMultiplier": 1
},
"reward": 1.2
}
}
]
},
"gitcoindev": {
"total": 37.5,
"total": 47.5,
"task": {
"reward": 37.5
},
Expand Down Expand Up @@ -299,6 +371,42 @@
},
"reward": 0
}
},
{
"content": "@pavlovcik @molecula451 please check now again, I added to docs.",
"url": "https://github.com/ubiquibot/comment-incentives/pull/25#issuecomment-1949044575",
"type": "REVIEW|ISSUER|COMMENTED",
"score": {
"formatting": {
"content": {
"p": {
"count": 10,
"score": 1
}
},
"wordValue": 0.2,
"formattingMultiplier": 2
},
"reward": 4
}
},
{
"content": "No way, full details are available in plain sight, only for test in production purposes",
"url": "https://github.com/ubiquibot/comment-incentives/pull/25#issuecomment-1949046925",
"type": "REVIEW|ISSUER|COMMENTED",
"score": {
"formatting": {
"content": {
"p": {
"count": 15,
"score": 1
}
},
"wordValue": 0.2,
"formattingMultiplier": 2
},
"reward": 6
}
}
]
}
Expand Down
Loading

0 comments on commit 99c3e09

Please sign in to comment.