Commit 71cc2c0
実際のGitHub/GitLabを利用するテストケースの実装 (Implement real GitHub/GitLab integration tests) (#25)
* Initial plan
* Implement real integration test framework and scenarios
Co-authored-by: notfolder <20558197+notfolder@users.noreply.github.com>
* Add demo script, quickstart guide, and final documentation
Co-authored-by: notfolder <20558197+notfolder@users.noreply.github.com>
* Fix major linting issues and add Japanese comments to base framework
Co-authored-by: notfolder <20558197+notfolder@users.noreply.github.com>
* Continue lint fixes with Japanese comments across test frameworks
Co-authored-by: notfolder <20558197+notfolder@users.noreply.github.com>
* Fix import dependency issue by using lazy loading for LLM client
Co-authored-by: notfolder <20558197+notfolder@users.noreply.github.com>
* Update environment variable names and fix import issues
Co-authored-by: notfolder <20558197+notfolder@users.noreply.github.com>
* Fix major linting issues and improve code quality
Co-authored-by: notfolder <20558197+notfolder@users.noreply.github.com>
* Update environment variable names for API tokens in real tests
* Fix all major ruff lint errors - reduced from 973 to 20 errors
Co-authored-by: notfolder <20558197+notfolder@users.noreply.github.com>
* デフォルトでreal以外のテストをするようにした
* テストファイルに対する特定のlintルールを無視する設定を追加
* Fix all remaining ruff lint errors in test files
- Added noqa comments for legitimate PERF203 errors in cleanup/import loops
- Added noqa comments for S603 subprocess calls with controlled input
- Added noqa comments for SLF001 private member access in tests
- Added noqa comments for C901/PLR0911/PLR0912 complexity issues in test methods
- All 27 ruff lint errors are now resolved while maintaining test functionality
Co-authored-by: notfolder <20558197+notfolder@users.noreply.github.com>
* Remove all noqa comments and fix ruff lint errors
Co-authored-by: notfolder <20558197+notfolder@users.noreply.github.com>
* Add targeted noqa comments for PLC0415 and S603 lint errors
Co-authored-by: notfolder <20558197+notfolder@users.noreply.github.com>
* テスト用モジュール追加
* モックテストの実行ディレクトリを変更
* インポート文のパスを修正して、テストフレームワークの依存関係を明確化
* Add bot assignment functionality for GitHub/GitLab issues and PRs
- Add GITHUB_BOT_NAME and GITLAB_BOT_NAME environment variables
- Update frameworks to assign issues and PRs to specified bots
- Add assign_pull_request() and assign_merge_request() methods
- Update configuration files to use bot name environment variables
- Update documentation and examples with bot assignment setup
- Enhance check_config.py to show bot assignment status
- All ruff lint errors resolved
Co-authored-by: notfolder <20558197+notfolder@users.noreply.github.com>
* レスポンス内の<think>タグを処理するメソッドを追加し、LLMの応答をクリーンにする機能を実装
* Implement pre-test cleanup and PR enhancement for real integration tests
- Add comprehensive cleanup before tests: close all PRs/MRs, delete branches, remove hello_world.py
- Add GitHub PR labeling and assignment functionality
- Add GitLab MR labeling and assignment functionality
- Enhance test scenarios to apply coding agent labels and assignments to PRs/MRs
- Fix all ruff lint errors and maintain code quality standards
Co-authored-by: notfolder <20558197+notfolder@users.noreply.github.com>
* llmへのプロンプトを修正`
* テストシナリオのセットアップをクラスメソッドに変更し、タイムアウトを1時間に延長。PRにエージェント用のラベルとアサインメントを追加する処理を統合。
* Enable dual platform testing for GitHub and GitLab in real integration tests
Co-authored-by: notfolder <20558197+notfolder@users.noreply.github.com>
* ruffエラー対処
* Fix all ruff lint errors and add comprehensive Japanese docstrings
Co-authored-by: notfolder <20558197+notfolder@users.noreply.github.com>
* gitlabで実際にテストできることを確認
---------
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: notfolder <20558197+notfolder@users.noreply.github.com>
Co-authored-by: notfolder <notfolder@gmail.com>1 parent 058fb6c commit 71cc2c0
24 files changed
Lines changed: 2864 additions & 108 deletions
File tree
- clients
- handlers
- tests
- integration
- real_integration
- unit
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
12 | 17 | | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
13 | 24 | | |
14 | 25 | | |
15 | 26 | | |
16 | 27 | | |
17 | 28 | | |
18 | 29 | | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
19 | 36 | | |
20 | 37 | | |
21 | 38 | | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
22 | 45 | | |
23 | 46 | | |
24 | 47 | | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
25 | 58 | | |
26 | 59 | | |
27 | 60 | | |
28 | 61 | | |
29 | 62 | | |
30 | 63 | | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
31 | 70 | | |
32 | 71 | | |
33 | 72 | | |
34 | 73 | | |
35 | 74 | | |
36 | 75 | | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
37 | 81 | | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
38 | 88 | | |
39 | 89 | | |
40 | 90 | | |
41 | 91 | | |
42 | 92 | | |
43 | 93 | | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
44 | 100 | | |
45 | 101 | | |
46 | 102 | | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
47 | 111 | | |
48 | 112 | | |
49 | 113 | | |
| |||
52 | 116 | | |
53 | 117 | | |
54 | 118 | | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
55 | 125 | | |
56 | 126 | | |
57 | 127 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
12 | 17 | | |
13 | 18 | | |
14 | 19 | | |
15 | 20 | | |
16 | 21 | | |
17 | 22 | | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
18 | 31 | | |
19 | 32 | | |
20 | 33 | | |
| |||
25 | 38 | | |
26 | 39 | | |
27 | 40 | | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
28 | 47 | | |
29 | 48 | | |
30 | 49 | | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
31 | 58 | | |
32 | 59 | | |
33 | 60 | | |
34 | 61 | | |
35 | 62 | | |
36 | 63 | | |
37 | 64 | | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
38 | 72 | | |
39 | 73 | | |
40 | 74 | | |
41 | 75 | | |
42 | 76 | | |
43 | 77 | | |
44 | 78 | | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
45 | 85 | | |
46 | 86 | | |
47 | 87 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
13 | 16 | | |
14 | 17 | | |
15 | 18 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
| 23 | + | |
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
199 | 199 | | |
200 | 200 | | |
201 | 201 | | |
202 | | - | |
203 | | - | |
204 | | - | |
205 | | - | |
206 | | - | |
| 202 | + | |
| 203 | + | |
207 | 204 | | |
208 | 205 | | |
209 | 206 | | |
| |||
337 | 334 | | |
338 | 335 | | |
339 | 336 | | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
340 | 341 | | |
341 | 342 | | |
342 | 343 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
343 | 343 | | |
344 | 344 | | |
345 | 345 | | |
346 | | - | |
347 | | - | |
348 | | - | |
349 | | - | |
350 | | - | |
| 346 | + | |
| 347 | + | |
351 | 348 | | |
352 | 349 | | |
353 | 350 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| 44 | + | |
44 | 45 | | |
45 | 46 | | |
46 | 47 | | |
| |||
50 | 51 | | |
51 | 52 | | |
52 | 53 | | |
| 54 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
19 | 27 | | |
20 | 28 | | |
21 | 29 | | |
| |||
72 | 80 | | |
73 | 81 | | |
74 | 82 | | |
75 | | - | |
| 83 | + | |
76 | 84 | | |
77 | 85 | | |
78 | 86 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
11 | 14 | | |
12 | 15 | | |
13 | 16 | | |
14 | 17 | | |
15 | 18 | | |
16 | 19 | | |
17 | 20 | | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
25 | 47 | | |
26 | 48 | | |
27 | 49 | | |
| |||
0 commit comments