Skip to content

Conversation

@CelestaLiu
Copy link
Collaborator

  • Separate logs into docker.log, script.log and sqlancer.log
  • docker.log records docker command running trace, script.log records the testing progress, sqlancer.log records testing information within sqlancer docker
  • The console only shows testing progress

@CelestaLiu CelestaLiu requested a review from suyZhong July 29, 2025 01:45
@CelestaLiu CelestaLiu linked an issue Jul 29, 2025 that may be closed by this pull request
Copy link
Collaborator

@suyZhong suyZhong left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can log more detailed information when setting up containers.

build.py Outdated
images = result.stdout.strip().splitlines()
if "sqlancer:latest" in images:
print("[INFO] SQLancer image already exists: sqlancer:latest")
script_log.info("SQLancer image exists")
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we have more information on this message? e.g., SQLancer image name, tag, etc. Also, for similar messages later in build.py.

# Run the command and tee output to both console and log file
eval "$CMD" 2>&1 | tee -a "$LOG_FILE"
# Run command: log everything, show only stats to console
eval "$CMD" 2>&1 | tee -a "$LOG_FILE" | grep --line-buffered "Executed"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess these outputs are inside the docker container? Perhaps we don't need to filter it. We can use -d when running the sqlancer container. Users could use docker logs sqlancer-xxx to see the logs.

Copy link
Collaborator

@suyZhong suyZhong left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@CelestaLiu CelestaLiu merged commit 5a48ce3 into main Jul 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Potential improvement for the output of the start.py

3 participants