Commit 4a8ac10
authored
Add crash handling/debugging support, and version metadata generation (#328)
* Add crash handling/debugging support, and version metadata generation
* fixed macos build errors due to crash handler code.
* Include a link in the main README to the detailed Crash Handling and Debugging section in DEVELOPMENT.md
* Include strings.h for strcasecmp() on POSIX systems
* Update GitHub Actions to use macos-14 instead of retired macos-13
The macos-13 runner images have been retired as of December 2024.
Update the workflow to use macos-14 for building with older OpenSSL versions (1.1 and 1.0.2).
Also simplified the workflow by removing unnecessary matrix strategy.
* Update GitHub Actions to use macos-14 instead of retired macos-13
* Add version and libevent verification step to macOS builds
After building on macOS, verify that:
- memtier_benchmark --version works correctly
- The binary is linked against the expected libevent library
* Enhance --version output to include detailed build information
Update --version to display comprehensive build details in Redis-like format:
- Version number (v=)
- Git SHA and dirty status (sha=)
- Architecture bits (bits=)
- libevent version (libevent=)
- OpenSSL version if TLS enabled (openssl=)
Example output:
v=255.255.255 sha=8985eb5a:1 bits=64 libevent=2.1.12-stable openssl=OpenSSL 3.0.13 30 Jan 2024
* Move detailed version info to first line of --version output
Change --version output format to show all build information on the first line:
memtier_benchmark v=255.255.255 sha=8985eb5a:1 bits=64 libevent=2.1.12-stable openssl=OpenSSL 3.0.13 30 Jan 2024
This makes it easier to parse and matches the Redis version output style.
* Extra sanity check on CI by printing version and linked libs
* Fixed ldd grep
* only checking for ssl lib when built with tls1 parent 8985eb5 commit 4a8ac10
File tree
12 files changed
+1029
-22
lines changed- .github/workflows
- tests
12 files changed
+1029
-22
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
45 | 51 | | |
46 | 52 | | |
47 | 53 | | |
| |||
80 | 86 | | |
81 | 87 | | |
82 | 88 | | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
83 | 95 | | |
84 | 96 | | |
85 | 97 | | |
| |||
89 | 101 | | |
90 | 102 | | |
91 | 103 | | |
92 | | - | |
| 104 | + | |
93 | 105 | | |
94 | 106 | | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
95 | 112 | | |
96 | 113 | | |
97 | 114 | | |
| |||
101 | 118 | | |
102 | 119 | | |
103 | 120 | | |
104 | | - | |
| 121 | + | |
105 | 122 | | |
106 | 123 | | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
107 | 129 | | |
108 | 130 | | |
109 | 131 | | |
| |||
203 | 225 | | |
204 | 226 | | |
205 | 227 | | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
206 | 233 | | |
207 | | - | |
208 | | - | |
209 | | - | |
210 | | - | |
| 234 | + | |
| 235 | + | |
211 | 236 | | |
212 | | - | |
213 | | - | |
214 | | - | |
215 | | - | |
| 237 | + | |
216 | 238 | | |
217 | 239 | | |
218 | 240 | | |
219 | 241 | | |
220 | 242 | | |
221 | 243 | | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
222 | 249 | | |
223 | 250 | | |
224 | 251 | | |
225 | | - | |
226 | | - | |
227 | | - | |
228 | | - | |
| 252 | + | |
229 | 253 | | |
230 | 254 | | |
231 | 255 | | |
| |||
234 | 258 | | |
235 | 259 | | |
236 | 260 | | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| 25 | + | |
25 | 26 | | |
26 | 27 | | |
27 | 28 | | |
| |||
0 commit comments