-
Notifications
You must be signed in to change notification settings - Fork 246
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rewrite test_process_pr using unittest.mock
- Loading branch information
Showing
27 changed files
with
541 additions
and
443 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
127 changes: 64 additions & 63 deletions
127
tests/PRActionData/TestProcessPr.test_code_check_approved.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,64 +1,65 @@ | ||
[{ | ||
"type": "load-bot-cache", | ||
"data": { | ||
"commits": { | ||
"2a9454e30606b17e52000110972998326ce9e428": { | ||
"files": [ | ||
"Utilities/ReleaseScripts/test/BuildFile.xml" | ||
], | ||
"squashed": false, | ||
"time": 1711538467 | ||
} | ||
}, | ||
"emoji": {}, | ||
"last_seen_sha": "2a9454e30606b17e52000110972998326ce9e428", | ||
"signatures": {} | ||
} | ||
}, | ||
{ | ||
"type": "status", | ||
"data": { | ||
"commit": "2a9454e30606b17e52000110972998326ce9e428", | ||
"state": "pending", | ||
"target_url": null, | ||
"description": "Waiting for authorized user to issue the test command.", | ||
"context": "bot/17/jenkins" | ||
} | ||
}, | ||
{ | ||
"type": "add-label", | ||
"data": [ | ||
"code-checks-approved" | ||
] | ||
}, | ||
{ | ||
"type": "remove-label", | ||
"data": [ | ||
"code-checks-pending" | ||
] | ||
}, | ||
{ | ||
"type": "status", | ||
"data": { | ||
"commit": "2a9454e30606b17e52000110972998326ce9e428", | ||
"state": "success", | ||
"target_url": "https://github.com/iarspider-cmssw/cmssw/pull/17#issuecomment-2045177271", | ||
"description": "Check details", | ||
"context": "cms/17/code-checks" | ||
} | ||
}, | ||
{ | ||
"type": "create-comment", | ||
"data": "A new Pull Request was created by @iarspider for master.\n\nIt involves the following packages:\n\n- Utilities/ReleaseScripts (**core**)\n\n\n@Dr15Jones, @iarspider, @makortel, @smuzaffar can you please review it and eventually sign? Thanks.\n@wddgit this is something you requested to watch as well.\n@iarspider you are the release manager for this.\n\ncms-bot commands are listed <a href=\"http://cms-sw.github.io/cms-bot-cmssw-cmds.html\">here</a>\n" | ||
}, | ||
{ | ||
"type": "status", | ||
"data": { | ||
"commit": "2a9454e30606b17e52000110972998326ce9e428", | ||
"state": "success", | ||
"target_url": "https://github.com/iarspider-cmssw/cmssw/pull/17#issuecomment-2045177271", | ||
"description": "Comment by iarspider at 2024-04-09 13:25:57 UTC processed.", | ||
"context": "bot/17/ack" | ||
} | ||
} | ||
[ | ||
{ | ||
"type": "load-bot-cache", | ||
"data": { | ||
"commits": { | ||
"2a9454e30606b17e52000110972998326ce9e428": { | ||
"files": [ | ||
"Utilities/ReleaseScripts/test/BuildFile.xml" | ||
], | ||
"squashed": false, | ||
"time": 1711538467 | ||
} | ||
}, | ||
"emoji": {}, | ||
"last_seen_sha": "2a9454e30606b17e52000110972998326ce9e428", | ||
"signatures": {} | ||
} | ||
}, | ||
{ | ||
"type": "status", | ||
"data": { | ||
"commit": "2a9454e30606b17e52000110972998326ce9e428", | ||
"state": "pending", | ||
"target_url": null, | ||
"description": "Waiting for authorized user to issue the test command.", | ||
"context": "bot/17/jenkins" | ||
} | ||
}, | ||
{ | ||
"type": "add-label", | ||
"data": [ | ||
"code-checks-approved" | ||
] | ||
}, | ||
{ | ||
"type": "remove-label", | ||
"data": [ | ||
"code-checks-pending" | ||
] | ||
}, | ||
{ | ||
"type": "status", | ||
"data": { | ||
"commit": "2a9454e30606b17e52000110972998326ce9e428", | ||
"state": "success", | ||
"target_url": "https://github.com/iarspider-cmssw/cmssw/pull/17#issuecomment-2045177271", | ||
"description": "Check details", | ||
"context": "cms/17/code-checks" | ||
} | ||
}, | ||
{ | ||
"type": "create-comment", | ||
"data": "A new Pull Request was created by @iarspider for master.\n\nIt involves the following packages:\n\n- Utilities/ReleaseScripts (**core**)\n\n\n@Dr15Jones, @iarspider, @makortel, @smuzaffar can you please review it and eventually sign? Thanks.\n@wddgit this is something you requested to watch as well.\n@iarspider you are the release manager for this.\n\ncms-bot commands are listed <a href=\"http://cms-sw.github.io/cms-bot-cmssw-cmds.html\">here</a>\n" | ||
}, | ||
{ | ||
"type": "status", | ||
"data": { | ||
"commit": "2a9454e30606b17e52000110972998326ce9e428", | ||
"state": "success", | ||
"target_url": "https://github.com/iarspider-cmssw/cmssw/pull/17#issuecomment-2045177271", | ||
"description": "Comment by iarspider at 2024-04-09 13:25:57 UTC processed.", | ||
"context": "bot/17/ack" | ||
} | ||
} | ||
] |
Oops, something went wrong.