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

Fix coverage issue in BC tests #830

Merged
merged 5 commits into from
Dec 15, 2023
Merged

Fix coverage issue in BC tests #830

merged 5 commits into from
Dec 15, 2023

Conversation

ernestum
Copy link
Collaborator

Some missing coverage in BC testing was surfacing in a couple of the most recent PRs. This PR fixes it so we don't have to ask @AdamGleave to merge all the time.

@ernestum ernestum requested a review from tomtseng December 11, 2023 16:31
@ernestum ernestum force-pushed the fix_coverage_issue_in_bc branch from 32dbce2 to 293015c Compare December 12, 2023 21:21
Copy link

codecov bot commented Dec 12, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (ab45b47) 95.66% compared to head (4a34039) 95.69%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #830      +/-   ##
==========================================
+ Coverage   95.66%   95.69%   +0.03%     
==========================================
  Files         102      102              
  Lines        9655     9650       -5     
==========================================
- Hits         9236     9235       -1     
+ Misses        419      415       -4     

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

@hypothesis.settings(
deadline=20000,
max_examples=15,
# TODO: one day consider removing this. For now we are good.
Copy link
Collaborator

Choose a reason for hiding this comment

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

maybe this is obvious for someone who's more familiar with hypothesis or this codebase but what does this check do? would it be helpful to clarify when it would be possible to remove this check or what's going that causes this check to fail?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Thanks that is a good point! I added a better description. Does it make sense now @tomtseng ?

@ernestum
Copy link
Collaborator Author

Ok so we still have spurious coverage issues. @AdamGleave would you merge this and we see if they persist on master?

@AdamGleave
Copy link
Member

I'll merge this @ernestum but the issue with test coverage appears to be in test_sqil.py, lines 251 and 257-260, as visible at https://app.codecov.io/gh/HumanCompatibleAI/imitation/pull/830/blob/tests/algorithms/test_sqil.py

@AdamGleave AdamGleave merged commit d74e903 into master Dec 15, 2023
7 of 8 checks passed
@AdamGleave AdamGleave deleted the fix_coverage_issue_in_bc branch December 15, 2023 15:19
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.

3 participants