Skip to content

Commit

Permalink
Quick printing of rocksdb vcpkg cmake logs
Browse files Browse the repository at this point in the history
  • Loading branch information
joe-iddon committed Oct 13, 2023
1 parent 410d70b commit c10e2f9
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/build_steps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,6 @@ jobs:
. build_tooling/vcpkg_caching.sh # Linux follower needs another call in CIBW
echo -e "VCPKG_BINARY_SOURCES=$VCPKG_BINARY_SOURCES
VCPKG_ROOT=$PLATFORM_VCPKG_ROOT
TEST_ENV=testing_var
${{matrix.envs || ''}}" | tee -a $GITHUB_ENV
cmake -P cpp/CMake/CpuCount.cmake | sed 's/^-- //' | tee -a $GITHUB_ENV
env:
Expand Down Expand Up @@ -165,7 +164,12 @@ jobs:
# ========================= Common =========================
- name: Disk usage
if: always()
run: du -m . "${{matrix.build_dir}}" "${{matrix.vcpkg_installed_dir}}" | sort -n | tail -n 100; df -h
run: |
du -m . "${{matrix.build_dir}}" "${{matrix.vcpkg_installed_dir}}" | sort -n | tail -n 100
if ${{matrix.vcpkg_installed_dir != ""}}; then
du -m "${{matrix.vcpkg_installed_dir}}" | sort -n | tail -n 50
fi
df -h
continue-on-error: true

- name: Make build directory readable for archiving
Expand Down
10 changes: 9 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,15 @@ def build_extension(self, ext):
if vcpkg_installed_dir:
args.append(f"-DVCPKG_INSTALLED_DIR={vcpkg_installed_dir}")

_log_and_run(*args, cwd="cpp")
try:
_log_and_run(*args, cwd="cpp")
finally:
rocksdb_log = r"D:\a\ArcticDB\ArcticDB\cpp\vcpkg\buildtrees\rocksdb\install-x64-windows-static-dbg-out.log"
if os.path.exists(rocksdb_log):
print('### rocksdb logs ####')
print(open(rocksdb_log).read())
else:
print('### did not find rocksdb logs to print ###')
search = f"cpp/out/{preset}-build"
candidates = glob.glob(search)
assert len(candidates) == 1, f"Specify {env_var} or use a single build directory. {search}={candidates}"
Expand Down

0 comments on commit c10e2f9

Please sign in to comment.