Skip to content

Conversation

@andrii0lomakin
Copy link
Collaborator

Motivation:

The existing Qodana workflow had several code quality issues and potential failure modes:

  • Duplicated version strings that could get out of sync
  • Missing error handling in bash scripts
  • Branch name collisions when running cleanup multiple times
  • Force push without protection could overwrite others' work
  • Output was only visible in logs, not in job summary

Changes:

  • Centralized version management: Added QODANA_VERSION env var to avoid version duplication between action and linter
  • Error handling: Added shell: bash and set -euo pipefail to all run steps for proper error handling
  • Unique branch names: Added SHA and run number suffix to cleanup branch names to avoid conflicts
  • Branch name sanitization: Added sanitization to prevent special character issues in branch names
  • Safer force push: Changed --force to --force-with-lease to prevent overwriting others' changes
  • Visible output: Changed fixes info output to GITHUB_STEP_SUMMARY for better visibility
  • Proper quoting: Quoted $GITHUB_OUTPUT properly
  • Removed redundant checks: Removed redundant github.event_name == 'workflow_dispatch' condition (already implied by RUN_CLEANUP)

🤖 Generated with Claude Code

…names

- Add QODANA_VERSION env var to centralize version management
- Add shell: bash and set -euo pipefail for proper error handling
- Use unique branch names with SHA and run number suffix to avoid conflicts
- Sanitize branch names to prevent special character issues
- Change --force to --force-with-lease for safer pushing
- Output fixes info to GITHUB_STEP_SUMMARY for visibility
- Quote GITHUB_OUTPUT properly
- Remove redundant condition checks

Co-Authored-By: Claude Opus 4.5 <[email protected]>
@gemini-code-assist
Copy link
Contributor

Note

Gemini is unable to generate a summary for this pull request due to the file types involved not being currently supported.

@github-actions
Copy link

github-actions bot commented Feb 1, 2026

Qodana for JVM

3 new problems were found

Inspection name Severity Problems
Spelling ◽️ Notice 3

💡 Qodana analysis was run in the pull request mode: only the changed files were checked
☁️ View the detailed Qodana report

Contact Qodana team

Contact us at [email protected]

@andrii0lomakin andrii0lomakin merged commit 2f198fd into develop Feb 1, 2026
70 checks passed
@andrii0lomakin andrii0lomakin deleted the qodana-improvements branch February 1, 2026 12:02
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