Unpack the request/response payload contents in the shell and keep annotated logs

This commit is contained in:
Michael Hohn
2024-02-08 19:38:02 -08:00
committed by =Michael Hohn
parent 6b7a21d4d1
commit 5f235371f5
5 changed files with 4417 additions and 31 deletions

View File

@@ -193,26 +193,35 @@
./gh-mrva -h
# Submit the mrva job
SN=10
# In log-submit-the-mrva-job.log after edit
SN=11
./gh-mrva submit --language cpp --session mirva-session-$SN \
--list mirva-list \
--query /Users/hohn/local/gh-mrva/FlatBuffersFunc.ql >& log-$SN.out &
tail -f log-$SN.out
# Check the status
./gh-mrva status --session mirva-session-$SN |& tee log-$SN-status.out
# Download the sarif files when finished
gh mrva download --session mirva-session-$SN \
--output-dir mirva-session-$SN-sarif
# Or download the sarif files and CodeQL dbs when finished
gh mrva download --session mirva-session-$SN \
# Download the sarif files and CodeQL dbs when finished
./gh-mrva download --session mirva-session-$SN \
--download-dbs \
--output-dir mirva-session-$SN-sarif
--output-dir mirva-session-$SN-sarif \
|& tee log-download.log
# 2024/02/08 15:33:39 >> Response body is
# Zip archive data, at least v1.0 to extract, compression method=deflate
# 0:$ unzip -v foo
# Archive: foo
# Length Method Size Cmpr Date Time CRC-32 Name
# -------- ------ ------- ---- ---------- ----- -------- ----
# 2297 Defl:N 980 57% 02-08-2024 22:54 9465f5ff results.sarif
# 148 Defl:N 121 18% 02-08-2024 22:54 dc8df445 results.bqrs
# -------- ------- --- -------
# 2445 1101 55% 2 files
# 0 4 Local file header signature = 0x04034b50 (PK♥♦ or "PK\3\4") PK
# 0x50, 0x4b, 0x03, 0x04
# byteArray := []byte{ 0x50, 0x4b, 0x03, 0x04 }
#+END_SRC
** Use the delve debugger to find sigsev