Skip to content

fix(ci): raise jvm-tests job timeout 15m -> 25m - #680

Closed
libravault-pipeline-bot[bot] wants to merge 2 commits into
devfrom
fix/jvm-tests-timeout-679
Closed

libravault-pipeline-bot[bot] wants to merge 2 commits into
devfrom
fix/jvm-tests-timeout-679

Conversation

@libravault-pipeline-bot

Copy link
Copy Markdown
Contributor

Summary

jvm-tests.yml's Unit & Integration Tests (JVM) job (test) had timeout-minutes: 15, with Run Lint as its last step. On PR #672 (the AGP 8.9.1->8.13.2 / Gradle 8.11.1->8.13 bump for #582), the job hit the 15-minute job-level timeout and was killed mid-lintAnalyzeDebug — Run JVM tests alone had taken ~12m38s, most likely a one-time cold-cache tax from the new Gradle wrapper distribution plus AGP invalidating cached lint models, not a real regression (steadily progressing when killed).

Verified directly against PR #672's actual CI run (run 33007398055): Unit & Integration Tests (JVM) shows cancelled at 15m26s — matching the timeout described in #679.

Note: issue #679 stated the fix was "applied directly on PR #672," but that PR's branch (fix/agp-8.13-r8-kotlin-metadata-582) contains no such change — git diff origin/dev origin/fix/agp-8.13-r8-kotlin-metadata-582 -- .github/workflows/jvm-tests.yml is empty, and none of its 3 commits touch this file. So the fix never actually landed anywhere; this PR applies it against dev directly instead.

Change

timeout-minutes: 15 -> 25 for the test job in .github/workflows/jvm-tests.yml. Gives real headroom regardless of whether the slowdown was cache-cold (should self-resolve once dev's cache is warm) or a genuine AGP 8.13 lint slowdown (worth a closer look if it recurs after cache should be warm, per the issue).

Risk

Touches .github/workflows/**, which is a sensitive_paths entry in agent-policy.yml — classify_pr_risk.py will force risk:high on this diff regardless of size, so it always lands on status:needs-human-merge. Flagging explicitly per dev-agent policy. The change itself is a single-line timeout bump with no behavioural change to what runs.

Trivial build-script bump — no unit tests needed per AGENTS.md's exemption list.

Closes #679

@github-actions
github-actions Bot marked this pull request as ready for review August 26, 2026 20:34
@github-actions github-actions Bot added the risk:high Touches a sensitive path or exceeds diff-size threshold — always human merge label Aug 26, 2026
@libravault-pipeline-bot libravault-pipeline-bot Bot added the status:needs-qa PR open, awaiting qa-agent verification label Aug 26, 2026
@claude

claude Bot commented Aug 26, 2026

Copy link
Copy Markdown
Contributor

QA verification — PR #680 vs issue #679

Issue type: bug report (CI job timeout too tight), no acceptance checklist — checklist here is "repro no longer reproduces + regression test if applicable."

  • ✅ Repro fixed: Issue's root cause was .github/workflows/jvm-tests.yml's test job timeout-minutes: 15, with Run Lint as the last step, getting killed mid-lint on PR fix(build): bump AGP 8.9.1 -> 8.13.2, Gradle 8.11.1 -> 8.13 (#582) #672 after JVM tests alone consumed ~12m38s. Diff (git diff origin/dev on this branch) is exactly and only timeout-minutes: 15 → 25, matching the issue's prescribed fix verbatim. No unrelated changes.
  • ✅ Regression test: Not applicable and correctly not included — AGENTS.md explicitly exempts "build-script bumps" from the unit-test requirement, and this is a single-line CI config value change with no behavioral/code path change to test.
  • ✅ Real test suite run: Ran ./gradlew testDebugUnitTest :feature:settings:test{Fdroid,Play}DebugUnitTest :app:test{Fdroid,Play}DebugUnitTest :core:billing:test{Fdroid,Play}DebugUnitTest :core:cloudtts:test{Fdroid,Play}DebugUnitTest --continue locally (mirrors the workflow's own Run JVM tests step) → BUILD SUCCESSFUL in 8m 13s, 696 tasks, no failures.
  • ✅ Fix verified against the real pipeline, not just locally: This PR's own CI run (33011199036) shows Unit & Integration Tests (JVM) — the exact job the issue is about — completed in 5m29s, comfortably inside the new 25-minute timeout (and would have been fine at 15 too, consistent with the issue's cold-cache theory; the new headroom is what protects against recurrence, per the issue's own reasoning).
  • ✅ No regressions: Diff touches only the one timeout-minutes line; no other jobs, steps, or triggers changed. No related module/code area to regress since nothing but a workflow number changed.
  • ✅ AGENTS.md conventions: Branch fix/jvm-tests-timeout-679 matches fix/<short-slug>; commits use Conventional Commits (fix(ci): ..., chore: ...); base branch is dev per convention; second commit is an intentional empty retrigger commit, not stray work.
  • ✅ No status:blocked on either the issue or PR.

One documentation-only note (not a blocker): the PR body correctly points out the issue's claim that the fix was "applied directly on PR #672" doesn't hold — PR #672's branch has no such change. The PR author verified this and applied the fix against dev instead, which is the right call and is transparently flagged in the PR description.

QA verdict: PASS

@github-actions github-actions Bot removed the status:needs-qa PR open, awaiting qa-agent verification label Aug 26, 2026
@libravault-pipeline-bot libravault-pipeline-bot Bot added the status:needs-review QA passed, awaiting principal-review-agent label Aug 26, 2026

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Principal review — verdict: human-merge

Risk classification

risk:high is correctly applied and current: the diff touches .github/workflows/jvm-tests.yml, which matches the .github/workflows/** entry in agent-policy.yml's sensitive_paths, and no commits landed after the label was last set (label applied 20:42:07Z, last commit 20:35:41Z). Verified with classify_pr_risk.py's own logic by hand — no need to re-run it, the label is trustworthy. This alone forces human-merge regardless of anything else below.

Diff correctness

The change itself is exactly what it claims: .github/workflows/jvm-tests.yml's test job timeout-minutes: 15 -> 25, nothing else. Confirmed against the live file and git log origin/dev..origin/fix/jvm-tests-timeout-679 --stat (one real commit, one no-op retrigger commit). No new networking, no other sensitive path touched, no test required — "build-script bumps" are explicitly exempt per AGENTS.md line 14-15. PR #680's own CI run shows Unit & Integration Tests (JVM) passing in 5m29s, well under both the old and new timeout — consistent with the PR's own cache-cold theory (this run didn't reproduce the slow lint scenario, which is expected).

I also independently verified the underlying claim about PR #672's original CI run: run 33007398055's Unit & Integration Tests (JVM) job did complete as cancelled, consistent with hitting the 15-minute timeout as described.

Finding: this PR is now a duplicate of already in-flight PR #672 — filed as #681

The PR body states, correctly at the time it was checked, that PR #672's branch (fix/agp-8.13-r8-kotlin-metadata-582) contained no fix for this timeout, so this PR applies the fix directly to dev instead. That's no longer true: PR #672 received its own identical fix (commit a712c51, "fix(ci): bump jvm-tests job timeout 15min -> 25min (#679)", authored 2026-08-26T20:32:13Z) roughly 30 seconds before this PR's own fix commit (e903493, 20:32:43Z). PR #672 is currently OPEN, MERGEABLE, and already at status:needs-human-merge — i.e. it already independently passed through this same review pipeline with the same fix (plus a fuller explanatory comment) attached.

Concretely, right now there are two open, risk:high, human-merge-gated PRs making the identical timeout-minutes: 15 -> 25 edit to the same line of the same file. Whichever merges first turns the other into a conflicting hunk on that line (bare 25 vs 25 + comment) rather than a clean merge, and leaves the second PR as pure redundant work. This isn't a defect in the one-line change itself, but it's real information a human merge decision needs: recommend closing this PR in favor of #672 (or coordinating which one lands), rather than merging both.

I filed this as #681 for a permanent record, since it's a verified pipeline-coordination gap (dev-agent had no way to detect a same-second landing on another PR) independent of whether a human ultimately closes #680 or merges it anyway.

Outcome

risk:high (sensitive path) already mandates human-merge on its own. Combined with the duplicate-PR finding above, a human should look at this alongside #672 before merging either — requesting changes here rather than a bare routing comment so that context isn't missed.

@github-actions github-actions Bot added status:needs-human-merge Principal review done, requires human merge decision and removed status:needs-review QA passed, awaiting principal-review-agent labels Aug 26, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Closing as superseded by #672 (already merged to dev), which raised jvm-tests.yml's test job timeout from 15 to 25 minutes as part of the same AGP/Gradle bump work — identical to this PR's diff. Dev's .github/workflows/jvm-tests.yml already has timeout-minutes: 25. Issue #679 (which this PR closes) was also already resolved via #672 per its own closing comment. Re-verified during human-merge-sweep.

@github-actions github-actions Bot closed this Aug 26, 2026
github-actions Bot added a commit that referenced this pull request Aug 26, 2026
…682)

Co-authored-by: claude[bot] <41898282+claude[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

risk:high Touches a sensitive path or exceeds diff-size threshold — always human merge status:needs-human-merge Principal review done, requires human merge decision

Projects

None yet

Development

Successfully merging this pull request may close these issues.

jvm-tests job timeout (15min) too tight for Run Lint after AGP 8.13/Gradle 8.13 bump

0 participants