Skip to content

fix(java): log a successful compile batch at INFO - a recovered batch must be visible - #6510

Merged
delchev merged 1 commit into
masterfrom
fix/java-batch-success-logging
Aug 4, 2026
Merged

fix(java): log a successful compile batch at INFO - a recovered batch must be visible#6510
delchev merged 1 commit into
masterfrom
fix/java-batch-success-logging

Conversation

@delchev

@delchev delchev commented Aug 4, 2026

Copy link
Copy Markdown
Contributor

Problem

The client-Java batch compiler logs a FAILED batch at ERROR, but a successful batch at DEBUG. During a large Publish All, an early batch legitimately fails (consumers compile before their dependency project reaches the registry) and the NEXT cycle recovers automatically - the new artefacts mark the synchronizer dirty and the rebuild succeeds.

At default log level, however, that recovery is invisible: the stale failure ERROR stays the log's last compile line. Observed live: a fully converged instance (all controllers registered, zero errors) was diagnosed as "all beans down" from the log - twice, by different readers, on the same afternoon.

Fix

Log the no-failures batch result at INFO. The batch only runs when the source set changed (the synchronizer's dirty flag), so this is once per rebuild, not log noise.

Notes

  • Not enforcement-bearing (log level only) - no new IT; the existing engine-java suite (69 tests) passes and the INFO line is visible in the test output.

🤖 Generated with Claude Code

… must be visible

The batch failure logs at ERROR but the success logged at DEBUG. After a
mid-publish failure (consumers compiled before their dependency project
arrived), the next cycle recovers automatically - but at default log level
the stale failure ERROR remains the log's last compile line, and a fully
green system diagnoses as dead. The batch runs only when the source set
changed, so the INFO line is once-per-rebuild, not noise.

Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
@delchev
delchev merged commit 69a765e into master Aug 4, 2026
10 checks passed
@delchev
delchev deleted the fix/java-batch-success-logging branch August 4, 2026 15:57
delchev added a commit that referenced this pull request Aug 4, 2026
…page; popup-blocked prints download instead (#6510) (#6512)

The generated print flows opened the rendered PDF at an object URL and
revoked it on a 60-second timer - which does not close the tab, it
kills the URL under the still-open viewer, so reloading or printing the
tab after the timer fails with a dead blob ("the file was removed").
And window.open runs after async work, outside the click's gesture
stack, so a popup blocker made the whole print fail silently.

The object URL now lives until the SPA page unloads (its natural owner
lifetime - a print-sized PDF held until then costs nothing), and a
blocked popup falls back to downloading the PDF via a temporary anchor,
which browsers always allow. The report/export flows already use the
safe immediate-download pattern and are untouched.

Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
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.

1 participant