Skip to content

[Backport 2025.1] improvement(logging): added 'actions' log #10905

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 27, 2025

Conversation

scylladbbot
Copy link

Introducing actions log for tracking testing process: what actions SCT does to cluster. This will help to quickly find out test steps taken by SCT e.g. restarting, corrupting data, aborting etc.. It will also log all error/critical events (basic details only: event type, severity, event_id and node). This log should contain only the most important actions, not to blurry test flow with too much information.
It works by appending JSON lines to actions.log and also to sct.log (in simpler, textual form). Intention of JSON lines is to be easily parsable for further visualisation, AI integration and still keeping human-readable form.

This commit introduces it only in limited scope - with intention to expand it to other test cases and threads (like Nemesis, full scan thread etc.)

refs: #8909

Testing

PR pre-checks (self review)

  • I added the relevant backport labels
  • I didn't leave commented-out/debugging code

Reminders

  • Add New configuration option and document them (in sdcm/sct_config.py)

  • Add unit tests to cover my changes (under unit-test/ folder)

  • Update the Readme/doc folder relevant to this change (if needed)

  • (cherry picked from commit 0576cdf)

Parent PR: #10841

@scylladbbot
Copy link
Author

@soyacz - This PR has conflicts, therefore it was moved to draft
Please resolve them and mark this PR as ready for review

@soyacz soyacz force-pushed the backport/10841/to-2025.1 branch from 72d1b4f to 7803db2 Compare May 16, 2025 13:30
@soyacz soyacz removed the conflicts label May 16, 2025
@soyacz soyacz force-pushed the backport/10841/to-2025.1 branch from 7803db2 to 17faa44 Compare May 27, 2025 07:17
@soyacz soyacz marked this pull request as ready for review May 27, 2025 07:17
Introducing `actions` log for tracking testing process: what actions SCT
does to cluster. This will help to quickly find out test steps taken by
SCT e.g. restarting, corrupting data, aborting etc..
It will also log all error/critical events (basic details only:
event type, severity, event_id and node). This log should contain only
the most important actions, not to blurry test flow with too much
information.
It works by appending JSON lines to `actions.log` and also to `sct.log`
(in simpler, textual form). Intention of JSON lines is to be easily
parsable for further visualisation, AI integration and still keeping
human-readable form.

This commit introduces it only in limited scope - with intention
to expand it to other test cases and threads (like Nemesis, full
scan thread etc.)

refs: scylladb#8909
(cherry picked from commit 0576cdf)
@soyacz soyacz force-pushed the backport/10841/to-2025.1 branch from 17faa44 to c1300ec Compare May 27, 2025 10:02
@soyacz soyacz merged commit 46ec75d into scylladb:branch-2025.1 May 27, 2025
5 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