MockK mocks cleared after every spec (v1.38.4) #136

Merged
ai-reviewer merged 4 commits from mihoe/release-mocks-after-spec into main 2026-10-10 10:03:32 +02:00
Collaborator

MockK kept every mock a JVM ever created; a PIT minion runs a spec once per mutant and ran out of heap, which turned the nightly gate red (one MEMORY_ERROR in Watcher.pruneWorktrees). A global afterSpec clearAllMocks() releases them. See docs/prs/2026-10-10-PR#136-mockk-mocks-cleared-after-every-spec.md.

🤖 Generated with Claude Code

MockK kept every mock a JVM ever created; a PIT minion runs a spec once per mutant and ran out of heap, which turned the nightly gate red (one MEMORY_ERROR in Watcher.pruneWorktrees). A global afterSpec clearAllMocks() releases them. See docs/prs/2026-10-10-PR#136-mockk-mocks-cleared-after-every-spec.md. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
claude-code added 1 commit 2026-10-10 08:12:14 +02:00
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
mi added 1 commit 2026-10-10 08:15:42 +02:00
Release-mocks test as a class spec, PR-doc table aligned
werkator build succeeded after 02:41
ai-review/assessment rule violated; a new commit that fixes it is required; changes requested by werkrevisor
ai-review/gate build failed after 00:05
3ceaf48102
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude-code marked the pull request as ready for review 2026-10-10 08:19:08 +02:00
Collaborator
🔴 werkrevisor RED for 3ceaf48, superseded by the result for c4ae8c9

🔴 werkrevisor: RED / CHANGES_REQUIRED

Change kind: mixed.

Reasons

  • RED open questions in the PR document: docs/prs/2026-10-10-PR#136-mockk-mocks-cleared-after-every-spec.md:52: - The stubs are still not collected, only emptied: the histogram still counts every 'MockKStub'.
  • YELLOW spec: docs/prs/2026-10-10-PR#136-mockk-mocks-cleared-after-every-spec.md Scenario#136.01 hard_to_read (0.63 > yellow_above = 0.5)
  • YELLOW spec: docs/prs/2026-10-10-PR#136-mockk-mocks-cleared-after-every-spec.md section 'Open Questions' hard_to_understand (0.51 > yellow_above = 0.5)
  • hint 4 changed file(s) that neither weaken the checks, touch security nor show a risk category of jvm-spring-backend according to Jev
  • hint 1 build change(s) of low risk according to Jev: build.gradle.kts (weakens checks 0.03, risk 0.00, security 0.01)

Classifier

Unit Question Problem Confidence Verdict
docs/prs/2026-10-10-PR#136-mockk-mocks-cleared-after-every-spec.md Scenario#136.01 hard_to_read 0.63 0.74 YELLOW
docs/prs/2026-10-10-PR#136-mockk-mocks-cleared-after-every-spec.md section 'Open Questions' hard_to_understand 0.51 0.47 YELLOW

3 of 5 units passed all questions (1 PR document(s)).
1 answer ignored because of a confidence below [classifier] min_confidence.

Usage: model `openrouter/minimax/minimax-m3`, LLM skipped (open questions in the PR document), duration 1.5 s, no model call, cost 0 USD, classifier `jev-1.13.0` calls 5, tokens in 3971, cost 0.0002 USD, build file judge `jev-1.13.0` calls 5, tokens in 3859, cost 0.0002 USD, phases: path_judge 0.8 s, classifier 0.5 s, config: defaults + host + repository (.werkrevisor.toml at main 6097e55).
Reviewed head `3ceaf481023049ca3de4066b6ecee3cdc738e2a8` against base `6097e550ec2bd294687c8a93ed6fa9b450fe1d76`, werkrevisor 0.31.3.
<!-- werkrevisor:3ceaf481023049ca3de4066b6ecee3cdc738e2a8 --> <!-- werkrevisor-verdict:RED --> <!-- werkrevisor-folded --> <details><summary>🔴 werkrevisor RED for <code>3ceaf48</code>, superseded by <a href="http://git.javagil.de/mi/werkator/pulls/136#issuecomment-2949">the result for <code>c4ae8c9</code></a></summary> ## 🔴 werkrevisor: RED / CHANGES_REQUIRED Change kind: `mixed`. ### Reasons - **RED** open questions in the PR document: docs/prs/2026-10-10-PR#136-mockk-mocks-cleared-after-every-spec.md:52: `- The stubs are still not collected, only emptied: the histogram still counts every 'MockKStub'.` - **YELLOW** spec: docs/prs/2026-10-10-PR#136-mockk-mocks-cleared-after-every-spec.md Scenario#136.01 hard_to_read (0.63 > yellow_above = 0.5) - **YELLOW** spec: docs/prs/2026-10-10-PR#136-mockk-mocks-cleared-after-every-spec.md section 'Open Questions' hard_to_understand (0.51 > yellow_above = 0.5) - **hint** 4 changed file(s) that neither weaken the checks, touch security nor show a risk category of jvm-spring-backend according to Jev - **hint** 1 build change(s) of low risk according to Jev: build.gradle.kts (weakens checks 0.03, risk 0.00, security 0.01) ### Classifier | Unit | Question | Problem | Confidence | Verdict | |---|---|---|---|---| | docs/prs/2026-10-10-PR#136-mockk-mocks-cleared-after-every-spec.md Scenario#136.01 | hard_to_read | 0.63 | 0.74 | YELLOW | | docs/prs/2026-10-10-PR#136-mockk-mocks-cleared-after-every-spec.md section 'Open Questions' | hard_to_understand | 0.51 | 0.47 | YELLOW | 3 of 5 units passed all questions (1 PR document(s)). 1 answer ignored because of a confidence below [classifier] min_confidence. <sub> Usage: model `openrouter/minimax/minimax-m3`, LLM skipped (open questions in the PR document), duration 1.5 s, no model call, cost 0 USD, classifier `jev-1.13.0` calls 5, tokens in 3971, cost 0.0002 USD, build file judge `jev-1.13.0` calls 5, tokens in 3859, cost 0.0002 USD, phases: path_judge 0.8 s, classifier 0.5 s, config: defaults + host + repository (.werkrevisor.toml at main 6097e55).<br> Reviewed head `3ceaf481023049ca3de4066b6ecee3cdc738e2a8` against base `6097e550ec2bd294687c8a93ed6fa9b450fe1d76`, werkrevisor 0.31.3. </sub> </details>
ai-reviewer left a comment
Collaborator

werkrevisor: RED / CHANGES_REQUIRED for 3ceaf481023049ca3de4066b6ecee3cdc738e2a8.

  • open questions in the PR document: docs/prs/2026-10-10-PR#136-mockk-mocks-cleared-after-every-spec.md:52: - The stubs are still not collected, only emptied: the histogram still counts every 'MockKStub'.
    The result comment of werkrevisor holds the details.
werkrevisor: RED / CHANGES_REQUIRED for `3ceaf481023049ca3de4066b6ecee3cdc738e2a8`. - open questions in the PR document: docs/prs/2026-10-10-PR#136-mockk-mocks-cleared-after-every-spec.md:52: `- The stubs are still not collected, only emptied: the histogram still counts every 'MockKStub'.` The result comment of werkrevisor holds the details. <!-- werkrevisor-review:3ceaf481023049ca3de4066b6ecee3cdc738e2a8 -->
mi added 1 commit 2026-10-10 09:34:31 +02:00
PR-doc: no open question, simpler scenario
ai-review/assessment human review required; a human approval unlocks the merge; review requested from mi; merge scheduled for when the checks succeed
ai-review/gate build succeeded after 00:46
werkator build succeeded after 02:58
c4ae8c9473
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Collaborator
🟡 werkrevisor YELLOW for c4ae8c9, superseded by the result for b290d8d

🟡 werkrevisor: YELLOW / HUMAN_REVIEW

Change kind: mixed.

Reasons

  • YELLOW spec: docs/prs/2026-10-10-PR#136-mockk-mocks-cleared-after-every-spec.md Scenario#136.01 hard_to_read (0.53 > yellow_above = 0.5)
  • hint 4 changed file(s) that neither weaken the checks, touch security nor show a risk category of jvm-spring-backend according to Jev
  • hint 1 build change(s) of low risk according to Jev: build.gradle.kts (weakens checks 0.03, risk 0.00, security 0.01)
  • hint 1 changed file was given to the AI as excerpt of the selected lines and 5 lines around each changed line, not in full (each larger than [review] max_full_file_chars = 80000): src/main/resources/templates/releases.html

Classifier

Unit Question Problem Confidence Verdict
docs/prs/2026-10-10-PR#136-mockk-mocks-cleared-after-every-spec.md Scenario#136.01 hard_to_read 0.53 0.49 YELLOW

4 of 5 units passed all questions (1 PR document(s)).
2 answers ignored because of a confidence below [classifier] min_confidence.

Usage: model `openrouter/minimax/minimax-m3`, LLM done, tokens counted before the call 16206, calls 1, tokens in 15573 / out 2771 (reasoning included in out), duration 43.4 s, cost 0.0080 USD (reported), classifier `jev-1.13.0` calls 5, tokens in 3971, cost 0.0002 USD, excerpt selection `openrouter/openai/gpt-6-luna` calls 1, tokens in 29019 / out 145, cost 0.0037 USD (reported), build file judge `jev-1.13.0` calls 5, tokens in 3857, cost 0.0002 USD, phases: path_judge 0.6 s, classifier 0.5 s, context 4.0 s, model_review 38.1 s, config: defaults + host + repository (.werkrevisor.toml at main 6097e55).
Reviewed head `c4ae8c9473f783e0f62f9d39361d64614b4580b7` against base `6097e550ec2bd294687c8a93ed6fa9b450fe1d76`, werkrevisor 0.31.3.
<!-- werkrevisor:c4ae8c9473f783e0f62f9d39361d64614b4580b7 --> <!-- werkrevisor-verdict:YELLOW --> <!-- werkrevisor-folded --> <details><summary>🟡 werkrevisor YELLOW for <code>c4ae8c9</code>, superseded by <a href="http://git.javagil.de/mi/werkator/pulls/136#issuecomment-2956">the result for <code>b290d8d</code></a></summary> ## 🟡 werkrevisor: YELLOW / HUMAN_REVIEW Change kind: `mixed`. ### Reasons - **YELLOW** spec: docs/prs/2026-10-10-PR#136-mockk-mocks-cleared-after-every-spec.md Scenario#136.01 hard_to_read (0.53 > yellow_above = 0.5) - **hint** 4 changed file(s) that neither weaken the checks, touch security nor show a risk category of jvm-spring-backend according to Jev - **hint** 1 build change(s) of low risk according to Jev: build.gradle.kts (weakens checks 0.03, risk 0.00, security 0.01) - **hint** 1 changed file was given to the AI as excerpt of the selected lines and 5 lines around each changed line, not in full (each larger than [review] max_full_file_chars = 80000): src/main/resources/templates/releases.html ### Classifier | Unit | Question | Problem | Confidence | Verdict | |---|---|---|---|---| | docs/prs/2026-10-10-PR#136-mockk-mocks-cleared-after-every-spec.md Scenario#136.01 | hard_to_read | 0.53 | 0.49 | YELLOW | 4 of 5 units passed all questions (1 PR document(s)). 2 answers ignored because of a confidence below [classifier] min_confidence. <sub> Usage: model `openrouter/minimax/minimax-m3`, LLM done, tokens counted before the call 16206, calls 1, tokens in 15573 / out 2771 (reasoning included in out), duration 43.4 s, cost 0.0080 USD (reported), classifier `jev-1.13.0` calls 5, tokens in 3971, cost 0.0002 USD, excerpt selection `openrouter/openai/gpt-6-luna` calls 1, tokens in 29019 / out 145, cost 0.0037 USD (reported), build file judge `jev-1.13.0` calls 5, tokens in 3857, cost 0.0002 USD, phases: path_judge 0.6 s, classifier 0.5 s, context 4.0 s, model_review 38.1 s, config: defaults + host + repository (.werkrevisor.toml at main 6097e55).<br> Reviewed head `c4ae8c9473f783e0f62f9d39361d64614b4580b7` against base `6097e550ec2bd294687c8a93ed6fa9b450fe1d76`, werkrevisor 0.31.3. </sub> </details>
ai-reviewer scheduled this pull request to auto merge when all checks succeed 2026-10-10 09:35:18 +02:00
ai-reviewer requested review from mi 2026-10-10 09:35:18 +02:00
mi added 1 commit 2026-10-10 09:57:19 +02:00
Scenario#136.01 shorter
ai-review/assessment human review required; a human approval unlocks the merge; a human review request is pending; merge already scheduled
ai-review/gate build succeeded after 02:32
werkator build succeeded after 02:57
b290d8d0eb
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Collaborator

🟡 werkrevisor: YELLOW / HUMAN_REVIEW

Change kind: mixed.

Reasons

  • YELLOW spec: docs/prs/2026-10-10-PR#136-mockk-mocks-cleared-after-every-spec.md Scenario#136.01 hard_to_read (0.54 > yellow_above = 0.5)
  • hint 4 changed file(s) that neither weaken the checks, touch security nor show a risk category of jvm-spring-backend according to Jev
  • hint 1 build change(s) of low risk according to Jev: build.gradle.kts (weakens checks 0.03, risk 0.00, security 0.01)
  • hint 1 changed file was given to the AI as excerpt of the selected lines and 5 lines around each changed line, not in full (each larger than [review] max_full_file_chars = 80000): src/main/resources/templates/releases.html

Classifier

Unit Question Problem Confidence Verdict
docs/prs/2026-10-10-PR#136-mockk-mocks-cleared-after-every-spec.md Scenario#136.01 hard_to_read 0.54 0.52 YELLOW

4 of 5 units passed all questions (1 PR document(s)).
2 answers ignored because of a confidence below [classifier] min_confidence.

Usage: model `openrouter/minimax/minimax-m3`, LLM done, tokens counted before the call 16180, calls 1, tokens in 15547 / out 12841 (reasoning included in out), duration 145.2 s, cost 0.0200 USD (reported), classifier `jev-1.13.0` calls 5, tokens in 3958, cost 0.0002 USD, excerpt selection `openrouter/openai/gpt-6-luna` calls 1, tokens in 29019 / out 53, cost 0.0003 USD (reported), build file judge `jev-1.13.0` calls 5, tokens in 3854, cost 0.0002 USD, phases: path_judge 0.5 s, classifier 0.5 s, context 3.7 s, model_review 139.8 s, config: defaults + host + repository (.werkrevisor.toml at main 6097e55).
Reviewed head `b290d8d0eb118e8b9caaec703c2547bb6c78366c` against base `6097e550ec2bd294687c8a93ed6fa9b450fe1d76`, werkrevisor 0.31.3.
<!-- werkrevisor:b290d8d0eb118e8b9caaec703c2547bb6c78366c --> <!-- werkrevisor-verdict:YELLOW --> ## 🟡 werkrevisor: YELLOW / HUMAN_REVIEW Change kind: `mixed`. ### Reasons - **YELLOW** spec: docs/prs/2026-10-10-PR#136-mockk-mocks-cleared-after-every-spec.md Scenario#136.01 hard_to_read (0.54 > yellow_above = 0.5) - **hint** 4 changed file(s) that neither weaken the checks, touch security nor show a risk category of jvm-spring-backend according to Jev - **hint** 1 build change(s) of low risk according to Jev: build.gradle.kts (weakens checks 0.03, risk 0.00, security 0.01) - **hint** 1 changed file was given to the AI as excerpt of the selected lines and 5 lines around each changed line, not in full (each larger than [review] max_full_file_chars = 80000): src/main/resources/templates/releases.html ### Classifier | Unit | Question | Problem | Confidence | Verdict | |---|---|---|---|---| | docs/prs/2026-10-10-PR#136-mockk-mocks-cleared-after-every-spec.md Scenario#136.01 | hard_to_read | 0.54 | 0.52 | YELLOW | 4 of 5 units passed all questions (1 PR document(s)). 2 answers ignored because of a confidence below [classifier] min_confidence. <sub> Usage: model `openrouter/minimax/minimax-m3`, LLM done, tokens counted before the call 16180, calls 1, tokens in 15547 / out 12841 (reasoning included in out), duration 145.2 s, cost 0.0200 USD (reported), classifier `jev-1.13.0` calls 5, tokens in 3958, cost 0.0002 USD, excerpt selection `openrouter/openai/gpt-6-luna` calls 1, tokens in 29019 / out 53, cost 0.0003 USD (reported), build file judge `jev-1.13.0` calls 5, tokens in 3854, cost 0.0002 USD, phases: path_judge 0.5 s, classifier 0.5 s, context 3.7 s, model_review 139.8 s, config: defaults + host + repository (.werkrevisor.toml at main 6097e55).<br> Reviewed head `b290d8d0eb118e8b9caaec703c2547bb6c78366c` against base `6097e550ec2bd294687c8a93ed6fa9b450fe1d76`, werkrevisor 0.31.3. </sub>
mi approved these changes 2026-10-10 10:03:30 +02:00
ai-reviewer merged commit 0bda344407 into main 2026-10-10 10:03:32 +02:00
ai-reviewer deleted branch mihoe/release-mocks-after-spec 2026-10-10 10:03:32 +02:00
Sign in to join this conversation.
No Reviewers
No labels
3 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: mi/werkator#136