Repository navigation
test: restore inverse_of_R value checks across depwarn modes - #622
ChrisRackauckas merged 4 commits into
Conversation
Co-Authored-By: Chris Rackauckas <accounts@chrisrackauckas.com> Co-Authored-By: Codex <noreply@openai.com> Agent-Harness: Codex CLI 0.160.0 Agent-Model: gpt-6-luna Agent-Session: local session, transcript at /home/crackauc/sandbox/goals/qa-hygiene/jobs/surr-fixes/log.txt on amdci2
Under --depwarn=error, @test_deprecated becomes @test_throws and never runs assertions nested in the begin block. Keep the deprecation check separate and evaluate inv(R_fact) ≈ I so the identity runs in every mode. Co-Authored-By: Chris Rackauckas <accounts@chrisrackauckas.com> Co-Authored-By: Cursor Agent <noreply@cursor.com> Agent-Harness: Cursor Agent CLI 2026.10.01-14929f9 Agent-Model: auto Agent-Session: local session, transcript at /home/crackauc/sandbox/goals/qa-hygiene/jobs/surr-622-fix/log.txt on amdci2
Keep the getter return assertion under depwarn≠error, throw under depwarn=error, and always check Surrogates._deprecated_inverse_of_R's return (via a --depwarn=no subprocess when the in-process shim cannot return) so a broken shim fails in every mode. Co-Authored-By: Chris Rackauckas <accounts@chrisrackauckas.com> Co-Authored-By: Cursor Agent <noreply@cursor.com> Agent-Harness: Cursor Agent CLI 2026.10.01-14929f9 Agent-Model: auto Agent-Session: local session, transcript at /home/crackauc/sandbox/goals/qa-hygiene/jobs/surr-622-fix/log.txt on amdci2
Pkg.test only loads declared extras; testutils.jl uses Serialization for the --depwarn=error shim subprocess, so Core was erroring on include. Co-Authored-By: Chris Rackauckas <accounts@chrisrackauckas.com> Co-Authored-By: Cursor Agent <noreply@cursor.com> Agent-Harness: Cursor Agent CLI 2026.10.01-14929f9 Agent-Model: auto Agent-Session: local session, transcript at /home/crackauc/sandbox/goals/qa-hygiene/jobs/surr-622-fix/log.txt on amdci2
Independent review (Devin CLI 3000.11.3, model fusion-claude-opus-5-5-high-sidekick-swe-2-medium): MERGE, risk low. Full reviewVERDICT: MERGE Test-only change. It touches Blocking findingsNone. Non-blocking findings
What I ranAll runs used
What I did not verify
🤖 Posted by an AI agent — harness: Devin CLI 3000.11.3 (review), Claude Code 2.1.285 (posting) · model: fusion-claude-opus-5-5-high-sidekick-swe-2-medium |
Under
--depwarn=error, the deprecated getter cannot return a value, so the originalRinv = @test_deprecated …; @test Rinv * Matrix(R_fact) ≈ Ierrored. Nesting the identity inside@test_deprecated(or replacing it withinv(R_fact) ≈ I) either skipped the identity or stopped checking the shim's return. These tests now: (1) underdepwarn != error, assignRinv = @test_deprecated …and assertRinv * Matrix(R_fact) ≈ I; (2) underdepwarn == error,@test_throws ErrorExceptionon the getter; (3) in every mode, assertSurrogates._deprecated_inverse_of_R's return is still R⁻¹ (via a--depwarn=nosubprocess when the in-process shim cannot return).Serializationis declared in[extras]/[targets].test/[compat]soPkg.testcan loadtest/testutils.jl.Verification
Pkg.test()(runtests temporarily limited to GEK + Kriging safetestsets; restored afterward):Earlier (round 3): shim mutated to
return 2 .* inv(...)failed under yes/no/error; clean shim passed. Count difference by mode is intentional (getter return cannot be observed under--depwarn=error).Not verified: full
GROUP=Corewithout reducing runtests, QA, GitHub Actions on this tip.Please ignore this draft until reviewed by @ChrisRackauckas.
Risk assessment
Pkg.test()green for GEK/Kriging under--depwarn=yes(273/153) and--depwarn=error(272/152); mutated-shim failures shown in prior round.Cursor Agent CLI 2026.10.01-14929f9 (model: auto); transcript: /home/crackauc/sandbox/goals/qa-hygiene/jobs/surr-622-fix/log.txt
Independent review: Devin Fusion (fusion-claude-opus-5-5-high-sidekick-swe-2-medium) rated it low, verdict MERGE: #622 (comment)