-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
enhancement(releasing): change release profile #6202
Changes from 2 commits
6c6f7ee
aa4aab5
d9a545e
1c71128
c2286ac
c87237d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -33,17 +33,4 @@ panic = 'unwind' | |
# incremental = true | ||
codegen-units = 256 | ||
rpath = false | ||
|
||
[profile.release] | ||
# See defaults https://doc.rust-lang.org/cargo/reference/profiles.html#release | ||
opt-level = 3 | ||
debug = false | ||
debug-assertions = false | ||
overflow-checks = false | ||
lto = false | ||
panic = 'unwind' | ||
# Disabled, see build.incremental | ||
# incremental = false | ||
codegen-units = 1 | ||
rpath = false | ||
Comment on lines
-25
to
-35
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. In the comment it was noted these measures were added because we hit disk size limits on CI. Is that not a problem anymore (or, There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Not sure is the disk size limit on CI still an issue or not (@jszwedko ?). I just tested default release profile (lto = false, codegen-units = 16) vs PR profile (lto = true, codegen-units = 1). There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We can see 😄 The release builds still happen on Github Actions runners so they may still hit disk limits. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Again, I think the only real change here is |
||
EOF |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My only concern here is that we had
codegen-units = 1
previously and decided to remove it because of how much longer it makes the build take (if I remember correctly).There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, lto=true+codegen-units=1 require more time, but we do not need this too often.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We were already using
codegen-units = 1
previously. The only real change here, I think, islto
.https://github.com/timberio/vector/pull/6202/files#diff-e5855d7cc5d4b3fdd03bd1cf1291d5bb15017d416fdd822ec7eb735444cd20b5L34