Skip to content

Commit

Permalink
debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
ptrus committed Nov 3, 2023
1 parent 5589788 commit 594dbe2
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 12 deletions.
1 change: 1 addition & 0 deletions .buildkite/code.pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,7 @@ steps:
- "build-rust-runtimes"
command:
- trap 'buildkite-agent artifact upload "coverage-*.txt;/tmp/oasis-node-test_*/test-node.log"' EXIT
- sleep 100000
- .buildkite/go/test_and_coverage.sh
retry:
<<: *retry_agent_failure
Expand Down
27 changes: 15 additions & 12 deletions docker/oasis-core-dev/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ RUN apt-get update -qq && apt-get upgrade -qq && apt-get install -qq \
# for seccomp Go bindings support
libseccomp-dev \
bubblewrap && \
# Compression libs for RocksDB.
zlib1g-dev libbz2-dev liblz4-dev libzstd-dev && \
apt-get autoclean && apt-get autoremove && rm -rf /var/cache/apt/archives/* && \
# for linting Git commits
pip install gitlint
Expand Down Expand Up @@ -82,18 +84,6 @@ RUN wget https://dl.google.com/go/go${GO_VERSION}.linux-amd64.tar.gz && \
go install mvdan.cc/gofumpt@${GOFUMPT_VERSION} && \
go install golang.org/x/tools/cmd/goimports@${GOIMPORTS_VERSION}

# Install RocksDB.
RUN \
wget -q https://github.com/facebook/rocksdb/archive/v${ROCKSDB_VERSION}.tar.gz \
# Ensure checksum matches. TODO
&& tar -zxf v${ROCKSDB_VERSION}.tar.gz \
&& cd rocksdb-${ROCKSDB_VERSION} \
&& DEBUG_LEVEL=0 make -j4 shared_lib \
&& make install-shared \
&& ldconfig \
&& cd .. \
&& rm -rf v${ROCKSDB}.tar.gz rocksdb-${ROCKSDB}

# Install jemalloc (used by BadgerDB).
RUN wget -O jemalloc.tar.bz2 \
https://github.com/jemalloc/jemalloc/releases/download/${JEMALLOC_VERSION}/jemalloc-${JEMALLOC_VERSION}.tar.bz2 && \
Expand All @@ -108,3 +98,16 @@ RUN wget -O jemalloc.tar.bz2 \
make && \
make install && \
cd .. && rm jemalloc.tar.bz2 && rm -rf jemalloc-${JEMALLOC_VERSION}

# Install RocksDB.
RUN \
wget -q https://github.com/facebook/rocksdb/archive/v${ROCKSDB_VERSION}.tar.gz \
# Ensure checksum matches. TODO
&& tar -zxf v${ROCKSDB_VERSION}.tar.gz \
&& cd rocksdb-${ROCKSDB_VERSION} \
# TODO: clashes with jemalloc used by BadgerDB.
&& DEBUG_LEVEL=0 ROCKSDB_DISABLE_JEMALLOC=1 make -j4 shared_lib \
&& make install-shared \
&& ldconfig \
&& cd .. \
&& rm -rf v${ROCKSDB_VERSION}.tar.gz rocksdb-${ROCKSDB_VERSION}
1 change: 1 addition & 0 deletions go/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ ifneq ($(GOLDFLAGS),)
endif

# Initialize GO_TAGS variable to hold the build tags.
# TODO: actually only oasis-node needs to be built with these, other binaries not.
GO_TAGS :=

# Include jemalloc tag unless explicitly disabled (used by badgerdb).
Expand Down

0 comments on commit 594dbe2

Please sign in to comment.