Skip to content

Fix error handling tests for Julia 1.12#493

Open
jariji wants to merge 2 commits intoJunoLab:masterfrom
jariji:fix-error-tests-julia-1.12
Open

Fix error handling tests for Julia 1.12#493
jariji wants to merge 2 commits intoJunoLab:masterfrom
jariji:fix-error-tests-julia-1.12

Conversation

@jariji
Copy link

@jariji jariji commented Mar 17, 2026

Summary

  • In Julia 1.12, ParseError messages include source locations and UndefVarError messages include module names
  • These differ between the test's include_string(Main, ...) and Weave's execution context (temp files, sandbox module), causing 3 test failures
  • Normalize source locations, module names, and whitespace before comparing error strings

Test plan

  • Pkg.test() passes: 194 passed, 2 broken (pre-existing), 0 failed

🤖 Generated with Claude Code

jariji and others added 2 commits March 17, 2026 02:48
Julia 1.12 added source locations to ParseError messages and module
names to UndefVarError messages. These differ between the test's
include_string(Main, ...) and Weave's execution context (temp files,
sandbox module). Normalize these context-dependent parts before
comparing error strings.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Test Julia lts, 1 (stable), and pre (allow-failure)
- Drop x86 and Julia 1.5
- Add julia-actions/cache@v3
- Update checkout@v6, setup-julia@v2, codecov@v5
- Add concurrency groups to cancel redundant runs

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@codecov-commenter
Copy link

codecov-commenter commented Mar 18, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 74.43%. Comparing base (db28a69) to head (dc0c929).
⚠️ Report is 14 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #493      +/-   ##
==========================================
+ Coverage   74.01%   74.43%   +0.42%     
==========================================
  Files          26       26              
  Lines        1351     1428      +77     
==========================================
+ Hits         1000     1063      +63     
- Misses        351      365      +14     
Flag Coverage Δ
unittests ?

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@pfitzseb
Copy link
Member

Would be good to explicitly test on 1.12 and Windows too.

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.

3 participants