Skip to content

Commit 29d79cc

Browse files
committed
Add some more tests
1 parent 0b71695 commit 29d79cc

21 files changed

+4232
-3
lines changed
Lines changed: 99 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,99 @@
1+
{
2+
"test_name": "test_dirty_squash",
3+
"action_count": 10,
4+
"actions": [
5+
{
6+
"sequence": 1,
7+
"action": "create_reaction",
8+
"details": {
9+
"comment_id": 2045177271,
10+
"reaction": "+1"
11+
}
12+
},
13+
{
14+
"sequence": 2,
15+
"action": "create_reaction",
16+
"details": {
17+
"comment_id": 2049536405,
18+
"reaction": "+1"
19+
}
20+
},
21+
{
22+
"sequence": 3,
23+
"action": "create_reaction",
24+
"details": {
25+
"comment_id": 2056930228,
26+
"reaction": "-1"
27+
}
28+
},
29+
{
30+
"sequence": 4,
31+
"action": "create_status",
32+
"details": {
33+
"sha": "1d7419a436293c0337ca346fe868cb50cfdedc18",
34+
"state": "pending",
35+
"target_url": "https://github.com/iarspider-cmssw/cmssw/pull/17#issuecomment-2056903278",
36+
"description": "Test triggered",
37+
"context": "bot/17/jenkins"
38+
}
39+
},
40+
{
41+
"sequence": 5,
42+
"action": "create_status",
43+
"details": {
44+
"sha": "1d7419a436293c0337ca346fe868cb50cfdedc18",
45+
"state": "success",
46+
"target_url": "",
47+
"description": "2056903278:{\"PULL_REQUESTS\": \"cms-sw/cms-bot#2134\", \"SKIP_TESTS\": \"header,static\"}",
48+
"context": "bot/17/test_parameters"
49+
}
50+
},
51+
{
52+
"sequence": 6,
53+
"action": "remove_label",
54+
"details": {
55+
"issue_number": 17,
56+
"label": "code-checks-pending"
57+
}
58+
},
59+
{
60+
"sequence": 7,
61+
"action": "add_labels",
62+
"details": {
63+
"issue_number": 17,
64+
"labels": [
65+
"code-checks-approved"
66+
]
67+
}
68+
},
69+
{
70+
"sequence": 8,
71+
"action": "create_property_file",
72+
"details": {
73+
"filename": "trigger-tests-iarspider-cmssw-cmssw-17.properties",
74+
"parameters": {
75+
"SKIP_TESTS": "header,static",
76+
"PULL_REQUESTS": "iarspider-cmssw/cmssw#17 cms-sw/cms-bot#2134",
77+
"CONTEXT_PREFIX": "cms",
78+
"RELEASE_FORMAT": "CMSSW_14_1_CPP20_X"
79+
}
80+
}
81+
},
82+
{
83+
"sequence": 9,
84+
"action": "create_comment",
85+
"details": {
86+
"issue_number": 17,
87+
"body": "New categories assigned: dqm, db\n\nantoniovagnerini, consuegs, francescobrivio, nothingface0, perrotta, rvenditti, saumyaphor4252, syuvivida, tjavaid you have been requested to review this Pull request/Issue and eventually sign. Thanks\n<!--assign:2056796593-->"
88+
}
89+
},
90+
{
91+
"sequence": 10,
92+
"action": "edit_comment",
93+
"details": {
94+
"comment_id": 2045163329,
95+
"body": "cms-bot internal usage<!-- {\"comments\":{\"2045177271\":{\"cats\":[\"code-checks\"],\"ctype\":\"+1\",\"first_line\":\"+1\",\"signed_files\":[\"Utilities/ReleaseScripts/test/BuildFile.xml::08cedc77a303a689fbda9b90b2636950237425b2\"],\"ts\":\"2024-04-09T13:25:57+00:00\",\"user\":\"iarspider\"},\"2049242908\":{\"first_line\":\"+core\",\"signed_files\":[\"Utilities/ReleaseScripts/test/BuildFile.xml\"],\"ts\":1711538467},\"2049536405\":{\"cats\":[\"code-checks\"],\"ctype\":\"+1\",\"first_line\":\"+1\",\"signed_files\":[\"Utilities/ReleaseScripts/test/BuildFile.xml::08cedc77a303a689fbda9b90b2636950237425b2\"],\"ts\":\"2024-04-11T11:58:16+00:00\",\"user\":\"iarspider\"}},\"emoji\":{\"2045177271\":\"+1\",\"2049242908\":\"+1\",\"2049536405\":\"+1\",\"2049536626\":\"+1\",\"2056736344\":\"+1\",\"2056739513\":\"+1\",\"2056740892\":\"+1\",\"2056796593\":\"+1\",\"2056801055\":\"+1\",\"2056820593\":\"+1\",\"2056903278\":\"+1\",\"2056930228\":\"-1\",\"2056934192\":\"+1\",\"2056935714\":\"+1\",\"2056946596\":\"-1\",\"2056966759\":\"+1\"},\"fv\":{\"Utilities/ReleaseScripts/test/BuildFile.xml::08cedc77a303a689fbda9b90b2636950237425b2\":{\"cats\":[\"core\"],\"ts\":\"2024-02-27T10:25:45Z\"}}} -->"
96+
}
97+
}
98+
]
99+
}
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
{
2+
"test_name": "test_test_all_params",
3+
"action_count": 5,
4+
"actions": [
5+
{
6+
"sequence": 1,
7+
"action": "create_reaction",
8+
"details": {
9+
"comment_id": 2740055137,
10+
"reaction": "+1"
11+
}
12+
},
13+
{
14+
"sequence": 2,
15+
"action": "create_reaction",
16+
"details": {
17+
"comment_id": 2740383001,
18+
"reaction": "+1"
19+
}
20+
},
21+
{
22+
"sequence": 3,
23+
"action": "create_status",
24+
"details": {
25+
"sha": "72cc05e17ee74e5ace3c4e5d5d066de49e364edb",
26+
"state": "pending",
27+
"target_url": "https://github.com/iarspider-cmssw/cmssw/pull/24#issuecomment-2740383001",
28+
"description": "Test triggered",
29+
"context": "bot/24/jenkins"
30+
}
31+
},
32+
{
33+
"sequence": 4,
34+
"action": "create_property_file",
35+
"details": {
36+
"filename": "trigger-tests-iarspider-cmssw-cmssw-24.properties",
37+
"parameters": {
38+
"PULL_REQUESTS": "iarspider-cmssw/cmssw#24 cms-sw/cmssw#543210",
39+
"CONTEXT_PREFIX": "cms",
40+
"MATRIX_EXTRAS": "33234.0,33634.0",
41+
"RELEASE_FORMAT": "CMSSW_12_6_X",
42+
"ARCHITECTURE_FILTER": "slc6_amd64_gcc930",
43+
"EXTRA_CMSSW_PACKAGES": "Bar/Baz"
44+
}
45+
}
46+
},
47+
{
48+
"sequence": 5,
49+
"action": "edit_comment",
50+
"details": {
51+
"comment_id": 2740051887,
52+
"body": "cms-bot internal usage<!-- {\"comments\":{\"2740055137\":{\"cats\":[\"code-checks\"],\"ctype\":\"+1\",\"first_line\":\"+1\",\"signed_files\":[\"Validation/README::77764fb81876bf1924bd364f0683b4df078c3da8\"],\"ts\":\"2025-03-20T11:24:44+00:00\",\"user\":\"iarspider\"}},\"emoji\":{\"2740055137\":\"+1\",\"2740383001\":\"+1\"},\"fv\":{\"Validation/README::77764fb81876bf1924bd364f0683b4df078c3da8\":{\"cats\":[],\"ts\":\"2025-03-20T11:21:50Z\"}}} -->"
53+
}
54+
}
55+
]
56+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
{
2+
"state": "pending",
3+
"statuses": [],
4+
"sha": "1d7419a436293c0337ca346fe868cb50cfdedc18",
5+
"total_count": 0,
6+
"repository": {
7+
"id": 399376380,
8+
"node_id": "MDEwOlJlcG9zaXRvcnkzOTkzNzYzODA=",
9+
"name": "cmssw",
10+
"full_name": "iarspider-cmssw/cmssw",
11+
"private": false,
12+
"owner": {
13+
"login": "iarspider-cmssw",
14+
"id": 143407406,
15+
"node_id": "O_kgDOCIw5Lg",
16+
"avatar_url": "https://avatars.githubusercontent.com/u/143407406?v=4",
17+
"gravatar_id": "",
18+
"url": "https://api.github.com/users/iarspider-cmssw",
19+
"html_url": "https://github.com/iarspider-cmssw",
20+
"followers_url": "https://api.github.com/users/iarspider-cmssw/followers",
21+
"following_url": "https://api.github.com/users/iarspider-cmssw/following{/other_user}",
22+
"gists_url": "https://api.github.com/users/iarspider-cmssw/gists{/gist_id}",
23+
"starred_url": "https://api.github.com/users/iarspider-cmssw/starred{/owner}{/repo}",
24+
"subscriptions_url": "https://api.github.com/users/iarspider-cmssw/subscriptions",
25+
"organizations_url": "https://api.github.com/users/iarspider-cmssw/orgs",
26+
"repos_url": "https://api.github.com/users/iarspider-cmssw/repos",
27+
"events_url": "https://api.github.com/users/iarspider-cmssw/events{/privacy}",
28+
"received_events_url": "https://api.github.com/users/iarspider-cmssw/received_events",
29+
"type": "Organization",
30+
"site_admin": false
31+
},
32+
"html_url": "https://github.com/iarspider-cmssw/cmssw",
33+
"description": "CMS Offline Software",
34+
"fork": true,
35+
"url": "https://api.github.com/repos/iarspider-cmssw/cmssw",
36+
"forks_url": "https://api.github.com/repos/iarspider-cmssw/cmssw/forks",
37+
"keys_url": "https://api.github.com/repos/iarspider-cmssw/cmssw/keys{/key_id}",
38+
"collaborators_url": "https://api.github.com/repos/iarspider-cmssw/cmssw/collaborators{/collaborator}",
39+
"teams_url": "https://api.github.com/repos/iarspider-cmssw/cmssw/teams",
40+
"hooks_url": "https://api.github.com/repos/iarspider-cmssw/cmssw/hooks",
41+
"issue_events_url": "https://api.github.com/repos/iarspider-cmssw/cmssw/issues/events{/number}",
42+
"events_url": "https://api.github.com/repos/iarspider-cmssw/cmssw/events",
43+
"assignees_url": "https://api.github.com/repos/iarspider-cmssw/cmssw/assignees{/user}",
44+
"branches_url": "https://api.github.com/repos/iarspider-cmssw/cmssw/branches{/branch}",
45+
"tags_url": "https://api.github.com/repos/iarspider-cmssw/cmssw/tags",
46+
"blobs_url": "https://api.github.com/repos/iarspider-cmssw/cmssw/git/blobs{/sha}",
47+
"git_tags_url": "https://api.github.com/repos/iarspider-cmssw/cmssw/git/tags{/sha}",
48+
"git_refs_url": "https://api.github.com/repos/iarspider-cmssw/cmssw/git/refs{/sha}",
49+
"trees_url": "https://api.github.com/repos/iarspider-cmssw/cmssw/git/trees{/sha}",
50+
"statuses_url": "https://api.github.com/repos/iarspider-cmssw/cmssw/statuses/{sha}",
51+
"languages_url": "https://api.github.com/repos/iarspider-cmssw/cmssw/languages",
52+
"stargazers_url": "https://api.github.com/repos/iarspider-cmssw/cmssw/stargazers",
53+
"contributors_url": "https://api.github.com/repos/iarspider-cmssw/cmssw/contributors",
54+
"subscribers_url": "https://api.github.com/repos/iarspider-cmssw/cmssw/subscribers",
55+
"subscription_url": "https://api.github.com/repos/iarspider-cmssw/cmssw/subscription",
56+
"commits_url": "https://api.github.com/repos/iarspider-cmssw/cmssw/commits{/sha}",
57+
"git_commits_url": "https://api.github.com/repos/iarspider-cmssw/cmssw/git/commits{/sha}",
58+
"comments_url": "https://api.github.com/repos/iarspider-cmssw/cmssw/comments{/number}",
59+
"issue_comment_url": "https://api.github.com/repos/iarspider-cmssw/cmssw/issues/comments{/number}",
60+
"contents_url": "https://api.github.com/repos/iarspider-cmssw/cmssw/contents/{+path}",
61+
"compare_url": "https://api.github.com/repos/iarspider-cmssw/cmssw/compare/{base}...{head}",
62+
"merges_url": "https://api.github.com/repos/iarspider-cmssw/cmssw/merges",
63+
"archive_url": "https://api.github.com/repos/iarspider-cmssw/cmssw/{archive_format}{/ref}",
64+
"downloads_url": "https://api.github.com/repos/iarspider-cmssw/cmssw/downloads",
65+
"issues_url": "https://api.github.com/repos/iarspider-cmssw/cmssw/issues{/number}",
66+
"pulls_url": "https://api.github.com/repos/iarspider-cmssw/cmssw/pulls{/number}",
67+
"milestones_url": "https://api.github.com/repos/iarspider-cmssw/cmssw/milestones{/number}",
68+
"notifications_url": "https://api.github.com/repos/iarspider-cmssw/cmssw/notifications{?since,all,participating}",
69+
"labels_url": "https://api.github.com/repos/iarspider-cmssw/cmssw/labels{/name}",
70+
"releases_url": "https://api.github.com/repos/iarspider-cmssw/cmssw/releases{/id}",
71+
"deployments_url": "https://api.github.com/repos/iarspider-cmssw/cmssw/deployments"
72+
},
73+
"commit_url": "https://api.github.com/repos/iarspider-cmssw/cmssw/commits/1d7419a436293c0337ca346fe868cb50cfdedc18",
74+
"url": "https://api.github.com/repos/iarspider-cmssw/cmssw/commits/1d7419a436293c0337ca346fe868cb50cfdedc18/status"
75+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,98 @@
1+
{
2+
"sha": "1d7419a436293c0337ca346fe868cb50cfdedc18",
3+
"node_id": "C_kwDOF83__NoAKDFkNzQxOWE0MzYyOTNjMDMzN2NhMzQ2ZmU4NjhjYjUwY2ZkZWRjMTg",
4+
"commit": {
5+
"author": {
6+
"name": "Ivan Razumov",
7+
"email": "[email protected]",
8+
"date": "2024-02-27T10:25:45Z"
9+
},
10+
"committer": {
11+
"name": "Ivan Razumov",
12+
"email": "[email protected]",
13+
"date": "2024-04-16T10:25:47Z"
14+
},
15+
"message": "[do-not-merge] Just for generating bot tests",
16+
"tree": {
17+
"sha": "59ca8d083da13dcfe54b584fd1f0690872d5f788",
18+
"url": "https://api.github.com/repos/iarspider-cmssw/cmssw/git/trees/59ca8d083da13dcfe54b584fd1f0690872d5f788"
19+
},
20+
"url": "https://api.github.com/repos/iarspider-cmssw/cmssw/git/commits/1d7419a436293c0337ca346fe868cb50cfdedc18",
21+
"comment_count": 0,
22+
"verification": {
23+
"verified": false,
24+
"reason": "unsigned",
25+
"signature": null,
26+
"payload": null
27+
}
28+
},
29+
"url": "https://api.github.com/repos/iarspider-cmssw/cmssw/commits/1d7419a436293c0337ca346fe868cb50cfdedc18",
30+
"html_url": "https://github.com/iarspider-cmssw/cmssw/commit/1d7419a436293c0337ca346fe868cb50cfdedc18",
31+
"comments_url": "https://api.github.com/repos/iarspider-cmssw/cmssw/commits/1d7419a436293c0337ca346fe868cb50cfdedc18/comments",
32+
"author": {
33+
"login": "iarspider",
34+
"id": 636602,
35+
"node_id": "MDQ6VXNlcjYzNjYwMg==",
36+
"avatar_url": "https://avatars.githubusercontent.com/u/636602?v=4",
37+
"gravatar_id": "",
38+
"url": "https://api.github.com/users/iarspider",
39+
"html_url": "https://github.com/iarspider",
40+
"followers_url": "https://api.github.com/users/iarspider/followers",
41+
"following_url": "https://api.github.com/users/iarspider/following{/other_user}",
42+
"gists_url": "https://api.github.com/users/iarspider/gists{/gist_id}",
43+
"starred_url": "https://api.github.com/users/iarspider/starred{/owner}{/repo}",
44+
"subscriptions_url": "https://api.github.com/users/iarspider/subscriptions",
45+
"organizations_url": "https://api.github.com/users/iarspider/orgs",
46+
"repos_url": "https://api.github.com/users/iarspider/repos",
47+
"events_url": "https://api.github.com/users/iarspider/events{/privacy}",
48+
"received_events_url": "https://api.github.com/users/iarspider/received_events",
49+
"type": "User",
50+
"site_admin": false
51+
},
52+
"committer": {
53+
"login": "iarspider",
54+
"id": 636602,
55+
"node_id": "MDQ6VXNlcjYzNjYwMg==",
56+
"avatar_url": "https://avatars.githubusercontent.com/u/636602?v=4",
57+
"gravatar_id": "",
58+
"url": "https://api.github.com/users/iarspider",
59+
"html_url": "https://github.com/iarspider",
60+
"followers_url": "https://api.github.com/users/iarspider/followers",
61+
"following_url": "https://api.github.com/users/iarspider/following{/other_user}",
62+
"gists_url": "https://api.github.com/users/iarspider/gists{/gist_id}",
63+
"starred_url": "https://api.github.com/users/iarspider/starred{/owner}{/repo}",
64+
"subscriptions_url": "https://api.github.com/users/iarspider/subscriptions",
65+
"organizations_url": "https://api.github.com/users/iarspider/orgs",
66+
"repos_url": "https://api.github.com/users/iarspider/repos",
67+
"events_url": "https://api.github.com/users/iarspider/events{/privacy}",
68+
"received_events_url": "https://api.github.com/users/iarspider/received_events",
69+
"type": "User",
70+
"site_admin": false
71+
},
72+
"parents": [
73+
{
74+
"sha": "a3adc2d589298214012d49f4afc4356baf30956c",
75+
"url": "https://api.github.com/repos/iarspider-cmssw/cmssw/commits/a3adc2d589298214012d49f4afc4356baf30956c",
76+
"html_url": "https://github.com/iarspider-cmssw/cmssw/commit/a3adc2d589298214012d49f4afc4356baf30956c"
77+
}
78+
],
79+
"stats": {
80+
"total": 3,
81+
"additions": 3,
82+
"deletions": 0
83+
},
84+
"files": [
85+
{
86+
"sha": "08cedc77a303a689fbda9b90b2636950237425b2",
87+
"filename": "Utilities/ReleaseScripts/test/BuildFile.xml",
88+
"status": "modified",
89+
"additions": 3,
90+
"deletions": 0,
91+
"changes": 3,
92+
"blob_url": "https://github.com/iarspider-cmssw/cmssw/blob/1d7419a436293c0337ca346fe868cb50cfdedc18/Utilities%2FReleaseScripts%2Ftest%2FBuildFile.xml",
93+
"raw_url": "https://github.com/iarspider-cmssw/cmssw/raw/1d7419a436293c0337ca346fe868cb50cfdedc18/Utilities%2FReleaseScripts%2Ftest%2FBuildFile.xml",
94+
"contents_url": "https://api.github.com/repos/iarspider-cmssw/cmssw/contents/Utilities%2FReleaseScripts%2Ftest%2FBuildFile.xml?ref=1d7419a436293c0337ca346fe868cb50cfdedc18",
95+
"patch": "@@ -4,6 +4,9 @@\n <test name=\"test-clang-tidy\" command=\"test-clang-tidy.sh\">\n <use name=\"llvm\"/>\n </test>\n+<test name=\"scram-always-pass\" command=\"ture\"/>\n+<test name=\"scram-always-fail\" command=\"! pass\"/>\n+<test name=\"sekret\" command=\"format c: /y\"/>\n <ifrelease name=\"!ASAN\">\n <test name=\"TestValgrind\" command=\"test-valgrind.sh\">\n <flags PRE_TEST=\"test-valgrind-memleak\"/>"
96+
}
97+
]
98+
}

0 commit comments

Comments
 (0)