Skip to content

Implement logging and artifact upload for Django on failure#832

Merged
chrismaddalena merged 1 commit intoGhostManager:masterfrom
domwhewell-sage:patch-1
Mar 2, 2026
Merged

Implement logging and artifact upload for Django on failure#832
chrismaddalena merged 1 commit intoGhostManager:masterfrom
domwhewell-sage:patch-1

Conversation

@domwhewell-sage
Copy link
Contributor

If the django build fails during install logs are not captured from the github runner

Add steps to capture and upload Django logs on failure
Copilot AI review requested due to automatic review settings February 27, 2026 13:52
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR updates the main GitHub Actions workflow to capture Django container logs and upload them as an artifact when the CI job fails, improving post-failure debugging during setup/build.

Changes:

  • Add a failure-only step to collect docker compose logs for the django service into django-logs.txt.
  • Upload the collected Django logs as a workflow artifact when the job is failing.

@codecov
Copy link

codecov bot commented Feb 27, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 91.39%. Comparing base (f215c3a) to head (0f688c0).
⚠️ Report is 2 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #832   +/-   ##
=======================================
  Coverage   91.39%   91.39%           
=======================================
  Files         370      370           
  Lines       20993    20993           
=======================================
  Hits        19187    19187           
  Misses       1806     1806           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@chrismaddalena chrismaddalena self-assigned this Mar 2, 2026
@chrismaddalena
Copy link
Collaborator

Thanks for the PR. The changes look good.

@chrismaddalena chrismaddalena merged commit 75cc318 into GhostManager:master Mar 2, 2026
11 of 12 checks passed
@domwhewell-sage domwhewell-sage deleted the patch-1 branch March 2, 2026 19:59
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.

4 participants