-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[release-17.0] Bumps deps and use proper Go version in upgrade tests #15408
[release-17.0] Bumps deps and use proper Go version in upgrade tests #15408
Conversation
Signed-off-by: Florent Poinsard <[email protected]>
Review ChecklistHello reviewers! 👋 Please follow this checklist when reviewing this Pull Request. General
Tests
Documentation
New flags
If a workflow is added or modified:
Backward compatibility
|
Signed-off-by: Florent Poinsard <[email protected]>
d151635
to
244f0e5
Compare
Signed-off-by: Florent Poinsard <[email protected]>
Signed-off-by: Florent Poinsard <[email protected]>
This PR consistently fails
I tried downgrading the |
Signed-off-by: Florent Poinsard <[email protected]>
Using #15413 as a reference, I believe things should work if we change just static_checks_etc.yml, but not the git commit hook. Is that what you tried @shlomi-noach? |
Yes, sorry. This was the change I made: diff --git a/.github/workflows/static_checks_etc.yml b/.github/workflows/static_checks_etc.yml
index faa0c76e3d..a6b751f221 100644
--- a/.github/workflows/static_checks_etc.yml
+++ b/.github/workflows/static_checks_etc.yml
@@ -166,7 +166,7 @@ jobs:
- name: Install golangci-lint
if: steps.skip-workflow.outputs.skip-workflow == 'false' && steps.changes.outputs.go_files == 'true'
- run: go install github.com/golangci/golangci-lint/cmd/[email protected]
+ run: go install github.com/golangci/golangci-lint/cmd/[email protected]
- name: Clean Env
if: steps.skip-workflow.outputs.skip-workflow == 'false' && steps.changes.outputs.go_files == 'true' and this, to my surprise, made $ git commit -sm "downgrade golangci-lint" .github/workflows/static_checks_etc.yml
panic: runtime error: invalid memory address or nil pointer dereference [recovered]
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x2 addr=0x0 pc=0x104eed590]
goroutine 464 gp=0x14000813340 m=9 mp=0x14000600008 [running]:
panic({0x105061960?, 0x10521a9b0?})
/opt/homebrew/Cellar/go/1.22.0/libexec/src/runtime/panic.go:779 +0x140 fp=0x14000866450 sp=0x140008663a0 pc=0x104da1d40
go/types.(*Checker).handleBailout(0x14000842200, 0x14000867b98)
/opt/homebrew/Cellar/go/1.22.0/libexec/src/go/types/check.go:367 +0x9c fp=0x14000866470 sp=0x14000866450 pc=0x104eb514c
go/types.(*Checker).checkFiles.deferwrap1()
/opt/homebrew/Cellar/go/1.22.0/libexec/src/go/types/check.go:392 +0x2c fp=0x14000866490 sp=0x14000866470 pc=0x104eb560c
panic({0x105061960?, 0x10521a9b0?})
/opt/homebrew/Cellar/go/1.22.0/libexec/src/runtime/panic.go:770 +0x124 fp=0x14000866540 sp=0x14000866490 pc=0x104da1d24
runtime.panicmem(...)
/opt/homebrew/Cellar/go/1.22.0/libexec/src/runtime/panic.go:261
runtime.sigpanic()
/opt/homebrew/Cellar/go/1.22.0/libexec/src/runtime/signal_unix.go:881 +0x308 fp=0x140008665a0 sp=0x14000866540 pc=0x104dbbbc8
go/types.(*StdSizes).Sizeof(0x0, {0x1050a7f50, 0x10521dba0})
/opt/homebrew/Cellar/go/1.22.0/libexec/src/go/types/sizes.go:228 +0x320 fp=0x14000866610 sp=0x140008665b0 pc=0x104eed590
go/types.Sizes.Sizeof-fm({0x1050a7f50?, 0x10521dba0?})
<autogenerated>:1 +0x44 fp=0x14000866640 sp=0x14000866610 pc=0x104f0b6d4
go/types.(*Config).sizeof(...)
/opt/homebrew/Cellar/go/1.22.0/libexec/src/go/types/sizes.go:333
go/types.representableConst.func1({0x1050a7f50?, 0x10521dba0?})
... |
Noting that even the commit hook should probably be using a version of the linter that is compatible with go1.20 (which is what we have in go.mod). |
Signed-off-by: Shlomi Noach <[email protected]>
Description
This is a follow-up of the changes made in #15407
Also contains the changes done in #15426