Skip to content

Some changes to the ad test utils#180

Merged
lkdvos merged 6 commits intomainfrom
jh/testimprovements
Mar 10, 2026
Merged

Some changes to the ad test utils#180
lkdvos merged 6 commits intomainfrom
jh/testimprovements

Conversation

@Jutho
Copy link
Member

@Jutho Jutho commented Feb 27, 2026

Some changes as discussed. Somehow the AD correctness tests fail for Mooncake LQ, whereas they don't do for Mooncake QR (which uses the same approach), nor for Enzyme or ChainRules (I think). I haven't figured out what is going on yet, but maybe some reviewer has an idea.

@Jutho Jutho changed the title some changes to the ad test utils WIP: some changes to the ad test utils Feb 27, 2026
@codecov
Copy link

codecov bot commented Feb 27, 2026

Codecov Report

❌ Patch coverage is 0% with 62 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
src/pullbacks/qr.jl 0.00% 29 Missing ⚠️
src/pullbacks/lq.jl 0.00% 27 Missing ⚠️
src/common/view.jl 0.00% 4 Missing ⚠️
src/pullbacks/svd.jl 0.00% 2 Missing ⚠️
Files with missing lines Coverage Δ
src/pullbacks/svd.jl 0.00% <0.00%> (-89.26%) ⬇️
src/common/view.jl 7.40% <0.00%> (-92.60%) ⬇️
src/pullbacks/lq.jl 0.00% <0.00%> (-96.00%) ⬇️
src/pullbacks/qr.jl 0.00% <0.00%> (-94.74%) ⬇️

... and 16 files with indirect coverage changes

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

@Jutho
Copy link
Member Author

Jutho commented Mar 8, 2026

I keep struggling with making the QR and LQ tests pass; I thought that it was an RNG / Float32 combination that was causing the Mooncake-LQ tests to fail, and after making some changes now the Enzyme tests fail for a bunch of combinations.

Copy link
Member

@lkdvos lkdvos left a comment

Choose a reason for hiding this comment

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

I have to say that I also can't really spot something immediately, the changes all look reasonable to me

@Jutho Jutho force-pushed the jh/testimprovements branch from df94174 to b235cef Compare March 8, 2026 23:05
@Jutho
Copy link
Member Author

Jutho commented Mar 9, 2026

The errors seem to fail due to type instabilities in orthnull. Is this due to the new Driver stuff @lkdvos ?

@lkdvos
Copy link
Member

lkdvos commented Mar 9, 2026

Yes, I have no idea what happened but somehow this only started failing after I merged the PR, even though the tests all passed during the PR. I'll investigate today, but we can safely ignore that here.

@Jutho Jutho changed the title WIP: some changes to the ad test utils Some changes to the ad test utils Mar 9, 2026
@Jutho
Copy link
Member Author

Jutho commented Mar 9, 2026

Ok, then I think this is ready for another round of review. The CI is of course annoying, with type stability failing on LTS and JET code quality failing on julia 1.

Copy link
Member

@lkdvos lkdvos left a comment

Choose a reason for hiding this comment

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

Left one small comment, and we are now definitely mixing unicode subscripts and regular subscripts all over the place, but otherwise this looks great to me!

@Jutho
Copy link
Member Author

Jutho commented Mar 9, 2026

Left one small comment, and we are now definitely mixing unicode subscripts and regular subscripts all over the place, but otherwise this looks great to me!

True, I'll try to fix this and remove the commented code.

@lkdvos lkdvos force-pushed the jh/testimprovements branch from 8658b5c to 740d473 Compare March 10, 2026 15:35
@lkdvos lkdvos merged commit 570b221 into main Mar 10, 2026
5 of 9 checks passed
@lkdvos lkdvos deleted the jh/testimprovements branch March 10, 2026 17:22
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