| Josh Bleecher Snyder | 833a0f8 | 2025-04-24 18:39:36 +0000 | [diff] [blame] | 1 | Test that all issues across multiple commits are reported |
| 2 | |
| 3 | -- a.go -- |
| 4 | package main |
| 5 | |
| 6 | -- .commit -- |
| 7 | Initial commit |
| 8 | |
| 9 | -- b.go -- |
| 10 | package main |
| 11 | |
| 12 | import "sync" |
| 13 | |
| 14 | var x sync.Mutex |
| 15 | var y = x |
| 16 | |
| 17 | -- .commit -- |
| 18 | Add another file |
| 19 | |
| 20 | -- c_test.go -- |
| 21 | package main |
| 22 | |
| 23 | import "testing" |
| 24 | |
| 25 | func TestX(t *testing.T) { |
| 26 | t.FailNow() |
| 27 | } |
| 28 | |
| 29 | -- .commit -- |
| 30 | Add a failing test |
| 31 | |
| 32 | -- d.go -- |
| 33 | package main |
| 34 | |
| 35 | -- .commit -- |
| 36 | Add yet another file |
| 37 | |
| 38 | -- .run_test -- |
| Josh Bleecher Snyder | ffecb1e | 2025-04-28 18:59:14 +0000 | [diff] [blame] | 39 | # Errors |
| 40 | |
| Josh Bleecher Snyder | 2fde465 | 2025-05-01 17:50:34 -0700 | [diff] [blame] | 41 | Test regressions detected between initial commit (INITIAL_COMMIT_HASH) and HEAD: |
| Josh Bleecher Snyder | 833a0f8 | 2025-04-24 18:39:36 +0000 | [diff] [blame] | 42 | |
| 43 | 1: sketch.dev.TestX: New test is failing |
| 44 | |
| 45 | |
| 46 | Gopls check issues detected: |
| 47 | |
| 48 | 1. /PATH/TO/REPO/b.go:6:9-10: variable declaration copies lock value to y: sync.Mutex |
| 49 | |
| 50 | IMPORTANT: Only fix new gopls check issues in parts of the code that you have already edited. Do not change existing code that was not part of your current edits. |
| 51 | |
| 52 | |
| 53 | Please fix before proceeding. |