-
Notifications
You must be signed in to change notification settings - Fork 24
ci: include compiled archives in snapshot build releases #6
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
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #6 +/- ##
=======================================
Coverage 62.78% 62.78%
=======================================
Files 210 210
Lines 22053 22053
=======================================
Hits 13846 13846
- Misses 7128 7129 +1
+ Partials 1079 1078 -1 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
zimeg
left a comment
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.
📝 Leaving notes with findings in CI as findings happen!
zimeg
left a comment
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.
🏁 The describe command and --exclude patterns have become a puzzle to me...
I made a note of some strangeness in finding feature builds and am updating the CI to support the current tagging behavior we have elsewhere.
This might be interesting to revisit if feature builds start to make versions confusing IMO, but otherwise I want to check one more thing in this PR? 👾
zimeg
left a comment
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.
🎁 A perhaps excited change to the packing was found!
I'm going to retry the testing CI with these changes but without saved artifacts to mimic a dev-build best. Otherwise I'm hoping this is soon ready for review 🙏 ✨
| command: | | ||
| export LDFLAGS="-s -w -X 'github.com/slackapi/slack-cli/internal/pkg/version.Version=$BUILD_VERSION'" | ||
| make build-snapshot | ||
| make LDFLAGS="$LDFLAGS" build-snapshot |
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.
The -s and -w flag weren't being used when building the snapshot! I'm hoping this improves our runtime speeds around 👾
Before:
$ du dist/*
...
13324 dist/slack_cli_3.0.2-main-build-test-feature-6-gcc496f3_linux_64-bit.tar.gz
13332 dist/slack_cli_3.0.2-main-build-test-feature-6-gcc496f3_macOS_64-bit.tar.gz
14376 dist/slack_cli_3.0.2-main-build-test-feature-6-gcc496f3_windows_64-bit.zip
After:
$ du dist/*
...
7156 dist/slack_cli_3.0.2-main-build-test-feature-6-gcc496f3_linux_64-bit.tar.gz
7252 dist/slack_cli_3.0.2-main-build-test-feature-6-gcc496f3_macOS_64-bit.tar.gz
7208 dist/slack_cli_3.0.2-main-build-test-feature-6-gcc496f3_windows_64-bit.zip
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.
Great catch @zimeg! 👏🏻 Before this change, the export LDFLAGS was unused and instead it was using the LDFLAGS set by Makefile's startup.
|
🗣️ I'm wanting to avoid more updates in this PR and am thinking this might have a fix for the |
mwbrooks
left a comment
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.
✅ LGTM! Thanks for catching this oversight. 👏🏻
❓ In a previous commit, you also updated scripts/archive.sh with set -eo. Just curious why you decided to remove it from this PR?
|
@mwbrooks And likewise, thank you for the review and catching that comment 👾 ✨
That change was muddled with excluding feature tags from versions! With it, the I'm meaning to move this into a separate PR since I believe it's a change that might need to be revisited or explored more! For now though, I notice our |
Summary
This PR uses a packaged CLI build in CI runs to match releases, using the
-sand-Wflags to omit debug info 🤖Preview
The updated build is shown in the download size!
Before changes:
After changes:
Notes
A few comments were exploring other CI happenings that other PRs hope to address 🙏
Requirements