Merge pull request #14518 from igfoo/igfoo/trap_files

Kotlin: Log when we start and finish writing to TRAP files
This commit is contained in:
Ian Lynagh
2023-10-30 13:53:04 +00:00
committed by GitHub
3 changed files with 9 additions and 0 deletions

View File

@@ -36,6 +36,9 @@ with open('logs.csv', 'w', newline='') as f_out:
if msg.startswith('Peak memory: '):
# Peak memory information varies from run to run, so just ignore it
continue
if msg.startswith('Will write TRAP file ') or msg.startswith('Finished writing TRAP file '):
# These vary between machines etc, and aren't very interesting, so just ignore them
continue
write_line(j['origin'], j['kind'], msg)
runSuccessfully(["codeql", "database", "index-files", "--language=csv", "--include=logs.csv", "test-db"])