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

Allow larger rtol on new test #3350

Closed
wants to merge 1 commit into from

Conversation

rosteen
Copy link
Collaborator

@rosteen rosteen commented Dec 11, 2024

Realized this needed a slightly larger than default rtol when backporting, very small values ran into precision issues.

@rosteen rosteen added this to the 4.1 milestone Dec 11, 2024
@github-actions github-actions bot added the plugin Label for plugins common to multiple configurations label Dec 11, 2024
@pllim
Copy link
Contributor

pllim commented Dec 11, 2024

1E-5 still pretty small so probably ok but do we understand why the actual value deviates from the "truth" over time? Is someone recalibrating and re-uploading the data to Box?

@kecnry
Copy link
Member

kecnry commented Dec 11, 2024

Do we know (or is the tolerance small enough that we don't care) what was different between between 4.0 and main that requires this?

@rosteen
Copy link
Collaborator Author

rosteen commented Dec 11, 2024

1E-5 still pretty small so probably ok but do we understand why the actual value deviates from the "truth" over time? Is someone recalibrating and re-uploading the data to Box?

This is a file I uploaded, I haven't changed it.

Do we know (or is the tolerance small enough that we don't care) what was different between between 4.0 and main that requires this?

Hm, it does actually seem to be some minor difference between 4.0 and main, not a precision/rounding thing, since the results are consistent across multiple runs within each branch. Is it worth investigating more deeply?

@pllim
Copy link
Contributor

pllim commented Dec 11, 2024

the results are consistent across multiple runs

But when did it start happening? Why do we only notice it now? 🧐

@rosteen
Copy link
Collaborator Author

rosteen commented Dec 11, 2024

the results are consistent across multiple runs

But when did it start happening? Why do we only notice it now? 🧐

I just added this test.

@pllim
Copy link
Contributor

pllim commented Dec 11, 2024

I don't understand... CI was passing an hour ago on main... Lemme rerun https://github.com/spacetelescope/jdaviz/actions/runs/12281137529

Copy link

codecov bot commented Dec 11, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 88.80%. Comparing base (cf9664f) to head (79c8442).
Report is 3 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #3350   +/-   ##
=======================================
  Coverage   88.80%   88.80%           
=======================================
  Files         125      125           
  Lines       19155    19155           
=======================================
  Hits        17010    17010           
  Misses       2145     2145           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@pllim
Copy link
Contributor

pllim commented Dec 11, 2024

Well, this is crazy, the rerun isn't failing on this test you are patching but some unrelated specviz2d URL open errors: https://github.com/spacetelescope/jdaviz/actions/runs/12281137529/job/34275135338

Are you sure this is deterministic?

@rosteen
Copy link
Collaborator Author

rosteen commented Dec 11, 2024

Well, this is crazy, the rerun isn't failing on this test you are patching but some unrelated specviz2d URL open errors: https://github.com/spacetelescope/jdaviz/actions/runs/12281137529/job/34275135338

Are you sure this is deterministic?

That's what I was saying to Kyle, the value this test produces on main is consistent (and passes the test, it's the value it's coded to check against). The value it consistently produces on 4.0.x is slightly different, just enough to fail the test. It's deterministic on both branches but slightly different.

@pllim
Copy link
Contributor

pllim commented Dec 11, 2024

Ahhh ok. Sorry, I misunderstood. So technically, rtol adjustment is not necessary for main then. In that case, you could adjust the expected value on main so it fails on main now but passes in backport branch with strict rtol, then from there you can bisect main. Hopefully that would smoke out the culprit but not always guaranteed.

@rosteen
Copy link
Collaborator Author

rosteen commented Dec 13, 2024

Closing this, I found an actual problem.

@rosteen rosteen closed this Dec 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cubeviz no-changelog-entry-needed changelog bot directive plugin Label for plugins common to multiple configurations testing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants