← Back to Pull requests

Use temporary folders in tests and smoke test message export archives #579

Closed
unknown closed this pull request without merging on Nov 21, 2026 12:40 UTC
View on GitHub
unknown unknown commented on Nov 16, 2026 16:50 UTC
Author

Tests that wrote into the working directory or /tmp now use JUnit TemporaryFolder, a smoke test covers message export to archives, and a misnamed test class now runs.

  • Commit 1 adds MessageExportArchiveTest to the smoke tests. It exports messages to an unencrypted ZIP, a gzipped TAR and a password-protected ZIP for each encryption type, plus a server-side AES-256 export. It checks the archives with the JDK and commons-compress rather than zip4j, so it also holds across a zip4j upgrade (the follow-up PR).

  • Commit 2 converts DefaultExtensionControllerTest, ArchiveUtilsTest, XsltStepTest, FileConnectionTests, Log4jMigrationsTest, Log4jBootstrapTest and XMLBatchAdaptorTest to TemporaryFolder, so they leave nothing behind.

  • Commit 3 renames FileConnectionTests to FileConnectionTest. The root build.gradle only includes */Test.class, so Gradle never ran it.
  • The server-side export in the smoke test writes under the server's appdata/temp in a safe-to-delete-smoketest-export-* folder, because the harness can't delete server files. It is harmless in CI containers.

    Claude checked:

  • ./gradlew clean build dist passes on this branch and /tmp is left clean.

  • The new smoke test passes 6 of 6, and the whole admin smoke package 26 of 26, against a server built from commit 1.
  • No release notes. Test and build changes only.

    ---
    🤖 Drafted with Claude Code

    Diff: 179 lines (+134 / -45) across 2 files Reviewer: pacmano1 Review duration: 6950m
    All Vouch review confidence checks passed
    Residual risk 0.14 = Change Risk (0.36) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.36 · 179 lines diff across 2 files
    0.36
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    60%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.311
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #579"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 35.5% (MEDIUM) · Higher = larger blast radius
    35.5%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 60.5% · Lower = rushed or shallow review
    60.5%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 14% · Safe to merge
    14%