with one click
update-logging
Apply OCS-CI logging guidelines to a Python test file or module
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Menu
Apply OCS-CI logging guidelines to a Python test file or module
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Based on SOC occupation classification
| name | update-logging |
| description | Apply OCS-CI logging guidelines to a Python test file or module |
| authoritative_source | docs/logging_guide.md |
| last_synced | "2026-05-01T00:00:00.000Z" |
| args | {"file_path":{"description":"Path to the Python file to update","required":true}} |
Applies OCS-CI logging guidelines from docs/logging_guide.md to Python files.
Authoritative Source: docs/logging_guide.md contains ALL guidelines, patterns, anti-patterns,
examples, log levels, and decision criteria. This skill is purely an automation wrapper.
docs/logging_guide.mddocs/logging_guide.mddocs/logging_guide.mddocs/logging_guide.mdCRITICAL - Read the Guide First: Before making ANY changes, read docs/logging_guide.md in full.
It is your complete instruction set.
Determine which category the file belongs to (see guide's "Usage by Code Type" section):
tests/)ocs_ci/deployment/)ocs_ci/helpers/, ocs_ci/utility/)ocs_ci/ocs/resources/)ocs_ci/framework/)Each type has different logging expectations documented in the guide.
Read the file and identify all logging issues documented in the guide's "Anti-Patterns to Avoid" section.
Apply fixes using patterns from the guide's "Common Patterns" and level-specific sections (CRITICAL, ERROR, WARNING, TEST_STEP, INFO, ASSERTION, DEBUG, AI_DATA).
Add missing logging at key points based on file type guidance and the guide's examples.
All decisions about logging come from docs/logging_guide.md:
/update-logging tests/functional/test_example.py
or
/update-logging ocs_ci/helpers/helpers.py
When logging guidelines evolve:
docs/logging_guide.md (the authoritative source)last_synced date in this file's frontmatterNote: If the guide's structure or workflow changes significantly, this SKILL.md may need updates to its workflow steps. Otherwise, all content changes happen in the guide only.