Skip to content

Show proper logs on azure deployment crash#139

Merged
imol-ai merged 1 commit into
mainfrom
chore/azure-fixes
Jul 17, 2026
Merged

Show proper logs on azure deployment crash#139
imol-ai merged 1 commit into
mainfrom
chore/azure-fixes

Conversation

@imol-ai

@imol-ai imol-ai commented Jul 17, 2026

Copy link
Copy Markdown
Collaborator

Summary

Azure deployment crashes, this pr fixes it

Type of change

  • Bug fix
  • New feature
  • Refactor / cleanup
  • Infrastructure / CI
  • Documentation

API changes

  • This PR does not affect the API
  • This PR changes the API → api/openapi.yaml updated and api/scripts/gen-all.sh re-run

Definition of Done

  • CI passes
  • Pre-commit hooks pass locally
  • Relevant tests added or updated

Summary by CodeRabbit

  • Bug Fixes
    • Improved Docker deployment diagnostics by displaying both command output and service container logs when deployment fails.
    • Enabled Docker BuildKit for faster and more reliable Compose builds.
    • Deployment failures now provide more actionable troubleshooting details before stopping.

@coderabbitai

coderabbitai Bot commented Jul 17, 2026

Copy link
Copy Markdown

Review Change Stack

📝 Walkthrough

Walkthrough

The Ansible deployment playbook enables Docker BuildKit during Compose builds and expands failure handling to display stdout, stderr, and service logs before failing. A whitespace-only formatting change is also included.

Changes

Docker deployment

Layer / File(s) Summary
BuildKit deployment and failure handling
ansible/site.yml
The Compose build command sets DOCKER_BUILDKIT, and deployment rescue handling prints stderr and container logs before reporting failure. A nearby whitespace-only adjustment is also included.

Estimated code review effort: 2 (Simple) | ~10 minutes

Suggested reviewers: paulwiese

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title matches the main change: improving logs shown when the Azure deployment crashes.
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch chore/azure-fixes

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@ansible/site.yml`:
- Around line 98-102: Update the “Show per-service container logs on failure”
task to register the docker compose logs result, then add a following debug task
that prints the registered result’s standard output. Preserve the existing
working directory and ignore-errors behavior.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 08cf4248-642b-4f1d-9bb5-3c347467b239

📥 Commits

Reviewing files that changed from the base of the PR and between 29f02a1 and 434f51a.

📒 Files selected for processing (1)
  • ansible/site.yml

Comment thread ansible/site.yml
@imol-ai
imol-ai force-pushed the chore/azure-fixes branch from 434f51a to 200fb9f Compare July 17, 2026 15:50
@imol-ai imol-ai changed the title Fix azure deployment crashing Show proper logs on azure deployment crash Jul 17, 2026
@imol-ai
imol-ai requested review from jschoedl and paulwiese July 17, 2026 15:54

@paulwiese paulwiese left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM!

@imol-ai
imol-ai merged commit d9ffef6 into main Jul 17, 2026
2 checks passed
@imol-ai
imol-ai deleted the chore/azure-fixes branch July 17, 2026 21:39
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