Skip to content

Conversation

ChrisRackauckas
Copy link
Member

Summary

  • Fixed deprecated @latest tag usage in GitHub Actions workflows
  • Updated julia-actions to their latest stable versions
  • Fixed LAPACK import inconsistency that could cause Julia deprecation warnings
  • Fixed deprecated alias_A and alias_b usage in tests that causes failures with --depwarn=error

Changes Made

GitHub Actions Updates

  • Replace julia-actions/julia-buildpkg@latest with @v1.7.0 in Downstream.yml
  • Update julia-actions/julia-buildpkg from @v1 to @v1.7.0 (latest) in Downgrade.yml
  • Update julia-actions/julia-runtest from @v1 to @v1.11.2 (latest) in Downgrade.yml

Julia Language Fixes

  • Fix LAPACK import inconsistency in src/generic_lufact.jl:72
  • Change LAPACK.chkfinite(A) to LinearAlgebra.LAPACK.chkfinite(A) for consistency with line 8
  • Fix deprecated alias_A and alias_b usage in test/resolve.jl:78
  • Replace with modern LinearAliasSpecifier API to eliminate deprecation warnings

Test Plan

  • All changes tested locally without issues
  • Package loads successfully with --depwarn=yes flag
  • Tests pass with --depwarn=error after fixing deprecated API usage
  • GitHub Actions versions verified against official repositories
  • CI workflows should run successfully with updated actions

Verification

The deprecation warning fix was tested with:

julia --project=. --depwarn=error -e '
using LinearSolve, LinearAlgebra
A = Symmetric([1.0 2.0; 2.0 1.0] * [1.0 2.0; 2.0 1.0]'\'')'\'')
linsolve = init(LinearProblem(A, [1.0, 2.0]), CholeskyFactorization(), 
             alias = LinearAliasSpecifier(alias_A = false, alias_b = false))
# No deprecation warnings\!'\'')

🤖 Generated with Claude Code

claude added 3 commits July 30, 2025 10:57
- Replace julia-actions/julia-buildpkg@latest with @v1.7.0 in Downstream.yml
- Update julia-actions/julia-buildpkg from @v1 to @v1.7.0 (latest) in Downgrade.yml
- Update julia-actions/julia-runtest from @v1 to @v1.11.2 (latest) in Downgrade.yml

These changes address deprecated @latest tag usage and update actions to their most recent stable versions.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <[email protected]>
- Standardize LAPACK.chkfinite call to use LinearAlgebra.LAPACK.chkfinite for consistency
- Fixes potential Julia deprecation warning from inconsistent module usage

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <[email protected]>
- Replace deprecated keyword arguments alias_A and alias_b with LinearAliasSpecifier
- Resolves Julia deprecation warnings when running tests with --depwarn=error
- Updates test/resolve.jl:78 to use modern API

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <[email protected]>
@ChrisRackauckas ChrisRackauckas merged commit 062bc54 into main Jul 31, 2025
36 of 39 checks passed
@ChrisRackauckas ChrisRackauckas deleted the fix/ci-deprecation-warnings branch July 31, 2025 08:36
@@ -75,7 +75,7 @@ A = [1.0 2.0
A = Symmetric(A * A')
b = [1.0, 2.0]
prob = LinearProblem(A, b)
linsolve = init(prob, CholeskyFactorization(), alias_A = false, alias_b = false)
linsolve = init(prob, CholeskyFactorization(), alias = LinearAliasSpecifier(alias_A = false, alias_b = false))
Copy link
Contributor

Choose a reason for hiding this comment

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

[JuliaFormatter] reported by reviewdog 🐶

Suggested change
linsolve = init(prob, CholeskyFactorization(), alias = LinearAliasSpecifier(alias_A = false, alias_b = false))
linsolve = init(
prob, CholeskyFactorization(), alias = LinearAliasSpecifier(
alias_A = false, alias_b = false))

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.

2 participants