Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unit tests take too long #5459

Closed
oleg-alexandrov opened this issue Apr 8, 2024 · 6 comments · Fixed by #5647
Closed

Unit tests take too long #5459

oleg-alexandrov opened this issue Apr 8, 2024 · 6 comments · Fixed by #5647
Assignees
Labels
bug Something isn't working good first issue Good for newcomers

Comments

@oleg-alexandrov
Copy link
Contributor

ISIS version(s) affected: Latest

Description

The unit test DefaultCube.FunctionalTestCamstatsDefaultParameters takes 20 minutes to run. That is a very unreasonable amount of time, and it simply looks that it stalls.

It is suggested not to compute the stats for every line and sample but for only every 10th one, or at least every 5th one, which should make it much faster.

It is also not clear why it takes so long to run the stats, the image there is 1000 x 1000 pixels or so.

@oleg-alexandrov oleg-alexandrov added the bug Something isn't working label Apr 8, 2024
@oleg-alexandrov
Copy link
Contributor Author

oleg-alexandrov commented Apr 8, 2024

There are at least 4 such tests using camera stats. Any time the regression gets there it stalls. Very unhelpful when it comes to updating tests, one has to spend hours just go get a first pass, and go figure how many iterations are needed.

Copy link

github-actions bot commented Oct 7, 2024

Thank you for your contribution!

Unfortunately, this issue hasn't received much attention lately, so it is labeled as 'stale.'

If no additional action is taken, this issue will be automatically closed in 180 days.

If you want to participate in our support prioritization meetings or be notified when support sprints are happening, you can sign up the support sprint notification emails here.

Read more about our support processs here

@github-actions github-actions bot added the inactive Issue that has been inactive for at least 6 months label Oct 7, 2024
@oleg-alexandrov
Copy link
Contributor Author

Would be nice if this is fixed. Would make it much faster to run the tests, saving hours. The suggested fix seems to be rather easy.

@github-actions github-actions bot removed the inactive Issue that has been inactive for at least 6 months label Oct 8, 2024
@Kelvinrr
Copy link
Collaborator

Kelvinrr commented Oct 8, 2024

I'll get this added onto the support board

@amystamile-usgs
Copy link
Contributor

Camstats has a built in option to increase the increments of lines and samples. This is linc and sinc. So the easiest fix would be to change the test to use linc=10 and sinc=10 but then this test would no longer be testing default parameters (linc and sinc defaults are 1). Another option could be to reduce the input cube's line/sample so CameraStatistics isn't iterating 1,273,685 times. @Kelvinrr do you have any thoughts on this?

@Kelvinrr
Copy link
Collaborator

@amystamile-usgs I would reduce the size if possible

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers
Projects
Development

Successfully merging a pull request may close this issue.

4 participants