wrap dragonfly_test with gdb inside a CI (#2050)

chore: run dragonfly_test with epoll under gdb

Also, update helio that provide a stacktrace under musl libc (alpine linux).
This version of helio updates absl version as well.

Signed-off-by: Roman Gershman <roman@dragonflydb.io>
This commit is contained in:
Roman Gershman 2023-10-22 20:05:27 +03:00 committed by GitHub
parent 2cb7d30603
commit d9cb7453fb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 22 additions and 16 deletions

View file

@ -192,18 +192,16 @@ template <typename RandGen> std::string GetRandomHex(RandGen& gen, size_t len) {
size_t indx = 0;
for (size_t i = 0; i < len / 16; ++i) { // 2 chars per byte
absl::AlphaNum an(absl::Hex(gen(), absl::kZeroPad16));
for (unsigned j = 0; j < 16; ++j) {
res[indx++] = an.Piece()[j];
}
absl::numbers_internal::FastHexToBufferZeroPad16(gen(), res.data() + indx);
indx += 16;
}
if (indx < res.size()) {
absl::AlphaNum an(absl::Hex(gen(), absl::kZeroPad16));
char buf[32];
absl::numbers_internal::FastHexToBufferZeroPad16(gen(), buf);
for (unsigned j = 0; indx < res.size(); indx++, j++) {
res[indx] = an.Piece()[j];
res[indx] = buf[j];
}
}