• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

IntelPython / dpnp / 39792505835
83%

Build:
DEFAULT BRANCH: master
Ran 22 Oct 2026 03:49PM UTC
Jobs 1
Files 271
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

22 Oct 2026 02:04PM UTC coverage: 82.617% (+0.002%) from 82.615%
39792505835

push

github

web-flow
Fix `dpnp.repeat` with `uint64` repeats above the `int64` maximum (#3115)

`dpnp.tensor.repeat`, and so `dpnp.repeat`, accepts a `uint64` repeats
array, but it checked the array for negative values before casting it to
`int64`. A `uint64` value is never negative, so values above the `int64`
maximum got past the check:

- with more than one element, the value wrapped to a negative number
only when copied to `int64`, and the result was silently wrong
- with a single element, it was turned into a Python `int` too large for
the output shape, which raised an `OverflowError`

`uint64` repeats are now cast to `int64` first, so such values become
negative and raise the same `ValueError` as any other negative repeat:
```python
import dpnp as np

x = np.arange(3)
np.repeat(x, np.array([1, 2**64 - 1, 1], dtype=np.uint64))  # was array([2]), now ValueError
np.repeat(x, np.array([2**64 - 1], dtype=np.uint64))        # was OverflowError, now ValueError
```

`test_repeat_arg_validation` now covers both cases, and both checks fail
without the fix.

1604 of 2994 branches covered (53.57%)

Branch coverage included in aggregate %.

6 of 6 new or added lines in 1 file covered. (100.0%)

29403 of 34537 relevant lines covered (85.13%)

19634.71 hits per line

Jobs
ID Job ID Ran Files Coverage
1 39792505835.1 22 Oct 2026 03:49PM UTC 271
82.62
GitHub Action Run
Source Files on build 39792505835
  • Tree
  • List 271
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #39792505835
  • 028c4b5d on github
  • Prev Build on master (#39480275836)
  • Next Build on master (#39810416419)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc