Repository navigation
Build stripped binaries to reduce sizes - #2537
Conversation
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: mattmoor, tcnghia The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
I worry about doing this across the board because we'll lose stack trace information from users and don't have a way to hydrate them with a symbol file. Secondly - can we double check this doesn't break runtime.Caller invocations? ie. zap log stack trace output Can we roll this back until the above is sorted |
|
cc @n3wscott |
This information doesn't key off of the symbol table, but something in |
|
... which is like another 10MB 🙄 |
package main
import (
"log"
"runtime"
)
func bar() {
buf := make([]byte, 1000)
i := runtime.Stack(buf, true)
log.Printf("stack trace: %s", string(buf[:i]))
}
func foo() {
bar()
}
func main() {
foo()
}For posterity... |
What this PR does, why we need it:
Build stripped binaries to reduce sizes. See knative/serving#9957 (comment).
Which issue(s) this PR fixes:
Part of knative/serving#9957
Special notes to reviewers:
User-visible changes in this PR: reduced Knative binaries sizes