Skip to content

Remove zeros(::ZZPolyRingElem)#2228

Open
fingolfin wants to merge 3 commits intomasterfrom
mh/remove-zeros
Open

Remove zeros(::ZZPolyRingElem)#2228
fingolfin wants to merge 3 commits intomasterfrom
mh/remove-zeros

Conversation

@fingolfin
Copy link
Copy Markdown
Member

This really should have been a 'roots' method. But in fact it does nothing that's special to ZZRingElem, so the generic roots method should just handle this. But it didn't, until Nemocas/AbstractAlgebra.jl#2292 -- thus perhaps this PR should only be merged once we released AA 0.48.2, then this PR could change our AA compat to >= 0.48.2

This is technically breaking, but it really was a wrong method for zeros, so I'd consider it more of a bug fix (but I'll concede it is a gray area). Alas I suspect it was there for a reason, i.e. someone (Hecke?) is probably using it). So probably best to wait with merging this till this until upstream CI passes again. Therefore marking this as a draft.

@lgoettgens
Copy link
Copy Markdown
Member

thus perhaps this PR should only be merged once we released AA 0.48.2, then this PR could change our AA compat to >= 0.48.2

Agreed

This is technically breaking, but it really was a wrong method for zeros, so I'd consider it more of a bug fix (but I'll concede it is a gray area).

Agreed

So probably best to wait with merging this till this until upstream CI passes again.

Agreed

@codecov
Copy link
Copy Markdown

codecov bot commented Jan 13, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 88.34%. Comparing base (f31c596) to head (f94f08c).

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2228      +/-   ##
==========================================
- Coverage   88.35%   88.34%   -0.01%     
==========================================
  Files         100      100              
  Lines       37245    37237       -8     
==========================================
- Hits        32906    32896      -10     
- Misses       4339     4341       +2     

☔ 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.

@thofma
Copy link
Copy Markdown
Member

thofma commented Jan 13, 2026

Agreed.

This really should have been a 'roots' method. But in fact it does
nothing that's special to ZZRingElem, so the generic roots method
should just handle this.
Copy link
Copy Markdown
Member

@lgoettgens lgoettgens left a comment

Choose a reason for hiding this comment

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

Hecke master is now happy with this change, so I would be happy to add this to the next breaking release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants