Skip to content

Commit f6f363a

Browse files
committed
More tests
1 parent 2288625 commit f6f363a

7 files changed

+543
-0
lines changed
Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
[
2+
{
3+
"type": "load-bot-cache",
4+
"data": {
5+
"commits": {
6+
"ceea69106c5e0e17c03c87c13bdf187f03214fec": {
7+
"files": [
8+
"README"
9+
],
10+
"squashed": false,
11+
"time": 1743158481
12+
}
13+
},
14+
"emoji": {
15+
"2801525714": "+1",
16+
"2809358867": "+1"
17+
},
18+
"last_seen_sha": "ceea69106c5e0e17c03c87c13bdf187f03214fec",
19+
"signatures": {}
20+
}
21+
},
22+
{
23+
"type": "emoji",
24+
"data": [
25+
2809358867,
26+
"+1",
27+
true
28+
]
29+
},
30+
{
31+
"type": "add-label",
32+
"data": [
33+
"code-checks-pending"
34+
]
35+
},
36+
{
37+
"type": "remove-label",
38+
"data": [
39+
"code-checks-approved"
40+
]
41+
},
42+
{
43+
"type": "create-property-file",
44+
"data": {
45+
"filename": "trigger-code-checks-iarspider-cmssw-cmssw-25.properties",
46+
"data": {
47+
"PULL_REQUEST": "25",
48+
"CONTEXT_PREFIX": "cms/25",
49+
"CMSSW_TOOL_CONF": "cms.week0.PR_deadbeef/update",
50+
"APPLY_PATCH": "true"
51+
}
52+
}
53+
},
54+
{
55+
"type": "status",
56+
"data": {
57+
"commit": "ceea69106c5e0e17c03c87c13bdf187f03214fec",
58+
"state": "pending",
59+
"target_url": null,
60+
"description": "code-checks requested",
61+
"context": "cms/25/code-checks"
62+
}
63+
},
64+
{
65+
"type": "edit-comment",
66+
"data": "cms-bot internal usage<!-- bot cache: {\"commits\":{\"ceea69106c5e0e17c03c87c13bdf187f03214fec\":{\"files\":[\"README\"],\"squashed\":false,\"time\":1743158481}},\"emoji\":{\"2801525714\":\"+1\",\"2809358867\":\"+1\"},\"last_seen_sha\":\"ceea69106c5e0e17c03c87c13bdf187f03214fec\",\"signatures\":{}} -->"
67+
}
68+
]
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
[
2+
{
3+
"type": "load-bot-cache",
4+
"data": {
5+
"commits": {
6+
"ceea69106c5e0e17c03c87c13bdf187f03214fec": {
7+
"files": [
8+
"README"
9+
],
10+
"squashed": false,
11+
"time": 1743158481
12+
}
13+
},
14+
"emoji": {
15+
"2801525714": "+1",
16+
"2809066370": "+1"
17+
},
18+
"last_seen_sha": "ceea69106c5e0e17c03c87c13bdf187f03214fec",
19+
"signatures": {}
20+
}
21+
},
22+
{
23+
"type": "emoji",
24+
"data": [
25+
2809066370,
26+
"+1",
27+
true
28+
]
29+
},
30+
{
31+
"type": "add-label",
32+
"data": [
33+
"allow-cmsbot"
34+
]
35+
},
36+
{
37+
"type": "remove-label",
38+
"data": []
39+
},
40+
{
41+
"type": "edit-comment",
42+
"data": "cms-bot internal usage<!-- bot cache: {\"commits\":{\"ceea69106c5e0e17c03c87c13bdf187f03214fec\":{\"files\":[\"README\"],\"squashed\":false,\"time\":1743158481}},\"emoji\":{\"2801525714\":\"+1\",\"2809066370\":\"+1\"},\"last_seen_sha\":\"ceea69106c5e0e17c03c87c13bdf187f03214fec\",\"signatures\":{}} -->"
43+
},
44+
{
45+
"type": "status",
46+
"data": {
47+
"commit": "ceea69106c5e0e17c03c87c13bdf187f03214fec",
48+
"state": "success",
49+
"target_url": "https://github.com/iarspider-cmssw/cmssw/pull/25#issuecomment-2809066370",
50+
"description": "Comment by iarspider at 2025-04-16 10:03:58 UTC processed.",
51+
"context": "bot/25/ack"
52+
}
53+
}
54+
]
Lines changed: 98 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,98 @@
1+
[
2+
{
3+
"type": "load-bot-cache",
4+
"data": {
5+
"commits": {
6+
"ceea69106c5e0e17c03c87c13bdf187f03214fec": {
7+
"files": [
8+
"README"
9+
],
10+
"squashed": false,
11+
"time": 1743158481
12+
}
13+
},
14+
"emoji": {
15+
"2801525714": "+1",
16+
"2809041970": "+1",
17+
"2809060887": "+1"
18+
},
19+
"last_seen_sha": "ceea69106c5e0e17c03c87c13bdf187f03214fec",
20+
"signatures": {}
21+
}
22+
},
23+
{
24+
"type": "emoji",
25+
"data": [
26+
2809041970,
27+
"+1",
28+
true
29+
]
30+
},
31+
{
32+
"type": "status",
33+
"data": {
34+
"commit": "ceea69106c5e0e17c03c87c13bdf187f03214fec",
35+
"state": "success",
36+
"target_url": "https://github.com/iarspider-cmssw/cmssw/pull/25#issuecomment-2809060887",
37+
"description": "Tests requested by iarspider at 2025-04-16 10:01:48 UTC.",
38+
"context": "bot/25/jenkins"
39+
}
40+
},
41+
{
42+
"type": "emoji",
43+
"data": [
44+
2809060887,
45+
"+1",
46+
true
47+
]
48+
},
49+
{
50+
"type": "add-label",
51+
"data": [
52+
"tests-started"
53+
]
54+
},
55+
{
56+
"type": "remove-label",
57+
"data": [
58+
"tests-pending"
59+
]
60+
},
61+
{
62+
"type": "create-property-file",
63+
"data": {
64+
"filename": "trigger-tests-iarspider-cmssw-cmssw-25.properties",
65+
"data": {
66+
"PULL_REQUESTS": "iarspider-cmssw/cmssw#25",
67+
"IGNORE_BOT_TESTS": [
68+
"BUILD-WARNINGS",
69+
null
70+
],
71+
"EXTRA_RELVALS_TESTS": "THREADING GPU HIGH_STATS NANO CUDA ROCM",
72+
"CONTEXT_PREFIX": "cms/25"
73+
}
74+
}
75+
},
76+
{
77+
"type": "emoji",
78+
"data": [
79+
2809060887,
80+
"+1",
81+
true
82+
]
83+
},
84+
{
85+
"type": "edit-comment",
86+
"data": "cms-bot internal usage<!-- bot cache: {\"commits\":{\"ceea69106c5e0e17c03c87c13bdf187f03214fec\":{\"files\":[\"README\"],\"squashed\":false,\"time\":1743158481}},\"emoji\":{\"2801525714\":\"+1\",\"2809041970\":\"+1\",\"2809060887\":\"+1\"},\"last_seen_sha\":\"ceea69106c5e0e17c03c87c13bdf187f03214fec\",\"signatures\":{}} -->"
87+
},
88+
{
89+
"type": "status",
90+
"data": {
91+
"commit": "ceea69106c5e0e17c03c87c13bdf187f03214fec",
92+
"state": "success",
93+
"target_url": "https://github.com/iarspider-cmssw/cmssw/pull/25#issuecomment-2809060887",
94+
"description": "Comment by iarspider at 2025-04-16 10:01:48 UTC processed.",
95+
"context": "bot/25/ack"
96+
}
97+
}
98+
]

tests/ReplayData/TestProcessPr.test_code_checks_with.txt

Lines changed: 99 additions & 0 deletions
Large diffs are not rendered by default.

tests/ReplayData/TestProcessPr.test_grant.txt

Lines changed: 99 additions & 0 deletions
Large diffs are not rendered by default.

tests/ReplayData/TestProcessPr.test_ignore_smth.txt

Lines changed: 99 additions & 0 deletions
Large diffs are not rendered by default.

tests/test_process_pr.py

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -831,3 +831,29 @@ def test_future_commit(self):
831831

832832
def test_create_repo(self):
833833
self.runTest(prId=30)
834+
835+
def test_ignore_smth(self):
836+
self.runTest(prId=25)
837+
838+
def test_grant(self):
839+
self.runTest(prId=25)
840+
841+
def test_code_checks_with(self):
842+
self.runTest(prId=25)
843+
844+
def test_check_release_format(self):
845+
func = self.process_pr_module.check_release_format
846+
params = {}
847+
ret = func("CMSSW_15_1_X", "", params)
848+
assert ret[0] == "CMSSW_15_1_X"
849+
assert params == {"ARCHITECTURE_FILTER": ""}
850+
851+
params = {}
852+
ret = func("el8_amd64_gcc12", "", params)
853+
assert ret[0] == ""
854+
assert params == {"ARCHITECTURE_FILTER": "el8_amd64_gcc12"}
855+
856+
params = {}
857+
ret = func("CMSSW_15_1_X/el8_amd64_gcc12", "", params)
858+
assert ret[0] == "CMSSW_15_1_X"
859+
assert params == {"ARCHITECTURE_FILTER": "el8_amd64_gcc12"}

0 commit comments

Comments
 (0)