GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Fuzz testing by richardstartin · Pull Request #206 · RoaringBitmap/RoaringBitmap

Conversation

@richardstartin

@richardstartin richardstartin commented Jan 31, 2018 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

I upgraded to Java 8 and added some basic fuzz testing for various invariants against random bitmaps. This PR is here mostly to see the differential test coverage achieved, and in case anyone else has any opinions about randomised testing.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@richardstartin
upgrade to java 8 and add some basic invariance tests
cacb369
@coveralls

coveralls commented Jan 31, 2018 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

Coverage Status

Coverage increased (+0.08%) to 90.681% when pulling 855fcd1 on richardstartin:fuzz-testing into fd8648e on RoaringBitmap:master.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

richardstartin added 3 commits January 31, 2018 22:43
@richardstartin
add some more invariants
b769d57
@richardstartin
add invariants for set contains, fix a few bugs
d67a937
@richardstartin
add rank select and contains invariants
5f69721
@richardstartin

richardstartin commented Feb 1, 2018 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member Author

This PR may now be useful. Please consider it for review at convenience.

A few points:

  • If it's OK to drop JDK7, it will need to be removed from build config.
  • I don't think it's practical to do property/invariance based testing without functional language features. You need JDK8 to do this really. There may be drawbacks allowing functional features to leak into the main package however.
  • There's a trade off between number of cases, sizes of bitmap, and build time. It might be better to be more exhaustive and put the fuzzer under a category to be activated by a profile. The fast profile would just run the unit tests.
  • This has already found a few bugs related to unsigned interpretation of signed shorts/ints in well covered code. It's a useful way to run tests.
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@richardstartin richardstartin changed the title Don't merge - fuzz testing Fuzz testing Feb 1, 2018
richardstartin added 3 commits February 1, 2018 10:51
@richardstartin
port to buffer package with bug fixes
b52d7b3
@richardstartin
array containers can't contain bitmap containers
554900c
@richardstartin
remove jdk7 build
3652303
@lemire

lemire commented Feb 1, 2018

Copy link
Copy Markdown
Member

This looks good to me. More than good. And given that it is essentially just more and better testing, it seems that merging this is important.

Before taking the decision of dropping JDK 7 in future releases, I am opening the floor for discussions...

#207

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

richardstartin added 3 commits February 1, 2018 17:23
@richardstartin
add successful fastaggregation invariants
754c040
@richardstartin
add failing fastaggregation (invariant pq vs naive or with iterator p…
cc6b8b4
…arams) to fail build
@richardstartin
fix iterator test case to ensure iterators are not consumed and reused
855fcd1
@lemire

lemire commented Feb 1, 2018

Copy link
Copy Markdown
Member

Ok. We are moving to JDK 8 so this is getting merged.

Great work.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@lemire
lemire merged commit cfafb50 into RoaringBitmap:master Feb 1, 2018
@richardstartin

richardstartin commented Feb 1, 2018

Copy link
Copy Markdown
Member Author

No problem. Actually I was in the middle of working on another unsigned error I found. I'll rebase and put in another PR.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@lemire

lemire commented Feb 1, 2018

Copy link
Copy Markdown
Member

I think it is useful to have smallish PRs. Plus you get more (virtual) credit for your work!

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@richardstartin
richardstartin deleted the fuzz-testing branch April 15, 2018 08:43
Smallhi pushed a commit to Smallhi/RoaringBitmap that referenced this pull request Jun 14, 2021
@richardstartin @lemire
Fuzz testing (RoaringBitmap#206)
65febce
* upgrade to java 8 and add some basic invariance tests

* add some more invariants

* add invariants for set contains, fix a few bugs

* add rank select and contains invariants

* port to buffer package with bug fixes

* array containers can't contain bitmap containers

* remove jdk7 build

* add successful fastaggregation invariants

* add failing fastaggregation (invariant pq vs naive or with iterator params) to fail build

* fix iterator test case to ensure iterators are not consumed and reused
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

3 participants

@richardstartin @coveralls @lemire
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.