Skip to content

Preserve label printing failures and skip failed job redelivery - #12872

Merged
SchrodingersGat merged 2 commits into
inventree:masterfrom
ledvinap:fix/label-print-failure-reporting
Sep 22, 2026
Merged

SchrodingersGat merged 2 commits into
inventree:masterfrom
ledvinap:fix/label-print-failure-reporting

Conversation

@ledvinap

Copy link
Copy Markdown
Contributor

AI, as usual.

Label printing exceptions currently delete the monitored DataOutput, losing the error details.
An unavailable plugin leaves the job unfinished without an error, leaving the “Printing” popup stuck.

This change records both failures using mark_failure() while preserving exception propagation. Workers skip outputs with recorded errors, preventing redelivery from reprinting partially completed batches. Existing missing/completed-output guards remain intact.

The problem more pronounced with my (unpublished yet) changes, where multiple checks may fail a print.

Adds regressions for printing exceptions, unavailable plugins, and redelivery. No frontend changes or migrations are required.

Retain DataOutput records with the original printing error and mark jobs
failed when their plugin is unavailable. Keep exception propagation and
skip failed outputs on redelivery to avoid printing partial batches again.

Cover direct and worker exceptions, unavailable plugins, failed-job
redelivery, and missing or completed outputs.
@netlify

netlify Bot commented Sep 17, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for inventree-web-pui-preview ready!

Name Link
🔨 Latest commit 8e3016f
🔍 Latest deploy log https://app.netlify.com/projects/inventree-web-pui-preview/deploys/6aaeda9e188fc00008dd5696
😎 Deploy Preview https://deploy-preview-12872--inventree-web-pui-preview.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 94 (🔴 down 2 from production)
Accessibility: 82 (🟢 up 1 from production)
Best Practices: 92 (no change from production)
SEO: 78 (no change from production)
PWA: -
View the detailed breakdown and full score reports
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@codecov

codecov Bot commented Sep 17, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 85.34%. Comparing base (f76d79b) to head (8e3016f).
⚠️ Report is 5 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master   #12872      +/-   ##
==========================================
- Coverage   87.18%   85.34%   -1.84%     
==========================================
  Files        1502     1503       +1     
  Lines      102408   105609    +3201     
  Branches    11568    11654      +86     
==========================================
+ Hits        89281    90131     +850     
- Misses      13062    15413    +2351     
  Partials       65       65              
Flag Coverage Δ
backend 91.95% <100.00%> (+0.02%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Components Coverage Δ
Backend Apps 88.53% <100.00%> (-4.05%) ⬇️
Backend General 94.86% <ø> (+0.09%) ⬆️
Frontend 79.84% <ø> (+0.32%) ⬆️
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@SchrodingersGat SchrodingersGat added plugin Plugin ecosystem report Report/Label generation labels Sep 18, 2026
@SchrodingersGat SchrodingersGat added this to the 1.6.0 milestone Sep 18, 2026
@SchrodingersGat SchrodingersGat added bug Identifies a bug which needs to be addressed backport Apply this label to a PR to enable auto-backport action backport-to-1.5.x labels Sep 18, 2026
@SchrodingersGat

Copy link
Copy Markdown
Member

@ledvinap thanks for the contribution

@SchrodingersGat
SchrodingersGat merged commit 9daf4f8 into inventree:master Sep 22, 2026
47 of 48 checks passed
@github-actions

Copy link
Copy Markdown
Contributor

💔 All backports failed

Status Branch Result
❌ 1.5.x Backport failed because of merge conflicts

Manual backport

To create the backport manually run:

backport --pr 12872

Questions ?

Please refer to the Backport tool documentation and see the Github Action logs for details

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport Apply this label to a PR to enable auto-backport action backport-to-1.5.x bug Identifies a bug which needs to be addressed plugin Plugin ecosystem report Report/Label generation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants