You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .github/workflows/gemini-pr-re-fix.yml
+9Lines changed: 9 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -100,6 +100,11 @@ jobs:
100
100
- Change whitespace, imports, or formatting of untouched lines
101
101
5. A typical bug fix changes fewer than 20 lines. If you are changing more, stop and reconsider.
102
102
6. After editing, verify your changes make sense by reading the modified sections.
103
+
7. Add unit tests for your fix:
104
+
- Find the existing test file for the module you modified (look in the corresponding `*_test.py` file under the same directory or under `keras/src/**/`).
105
+
- Add a focused test that reproduces the original bug and verifies the fix.
106
+
- Follow the existing test style and conventions in that file.
107
+
- The test should FAIL without your fix and PASS with it.
103
108
104
109
DO NOT output JSON. Use your file editing tools to directly modify the files.
105
110
@@ -297,6 +302,10 @@ jobs:
297
302
- Change whitespace, imports, or formatting of untouched lines
298
303
4. A re-fix should typically change fewer than 20 lines.
299
304
5. After editing, verify your changes make sense by reading the modified sections.
305
+
6. If the failing tests reveal that a unit test is missing for the fix, add one:
306
+
- Find the existing test file for the module (the corresponding `*_test.py` file).
307
+
- Add a focused test that covers the fixed behavior.
308
+
- Follow the existing test style and conventions in that file.
300
309
301
310
DO NOT output JSON. Use your file editing tools to directly modify the files.
0 commit comments