Skip to content

Extract scripted output from the logs - #6

Merged
abbra merged 3 commits into
freeipa:mainfrom
abbra:log-transcript
Nov 15, 2026
Merged

abbra merged 3 commits into
freeipa:mainfrom
abbra:log-transcript

Conversation

@abbra

@abbra abbra commented Nov 14, 2026

Copy link
Copy Markdown
Contributor

Allow extracting actual steps that were ran during the tests and show them either explicitly in 'logs' command with --script [test name] or in report command per each test.

Assisted-by: Claude Code (Sonnet 5.5)

cmd_report skipped the download adoption that cmd_logs does, so
a GitHub Actions log zip or unpacked dir found no tests. Reuse
_adopt_download.

Signed-off-by: Alexander Bokovoy <ab@vda.li>
Extract the executed commands and their output from run.log as a
shell transcript ([host]# cmd, then output), optionally limited to
a test (node id substring) and --host. Framework bookkeeping
(ssh keepalive, /root/ipatests, true) is dropped.

Signed-off-by: Alexander Bokovoy <ab@vda.li>
Add a commands block built from run.log to each per-test section,
shown first, and fold the pytest output by default.

Signed-off-by: Alexander Bokovoy <ab@vda.li>

@rjeffman rjeffman left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM.

The comment below is from an AI assisted "alpha" review tool, and I wasn't able to answer.

Comment thread env/freeipa_env/logscript.py Resolved
@abbra
abbra merged commit 078f0eb into freeipa:main Nov 15, 2026
2 checks passed
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.

2 participants