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

Add support for ReBenchDB API Version 2 #236

Merged
merged 7 commits into from
Mar 23, 2024
Merged

Add support for ReBenchDB API Version 2 #236

merged 7 commits into from
Mar 23, 2024

Conversation

smarr
Copy link
Owner

@smarr smarr commented Mar 22, 2024

ReBenchDB is going to introduce a new API version 2, which expects all measurement values as arrays of iterations instead of objects. This should be more efficient in memory and on the wire.

Relevant PR: smarr/ReBenchDB#100

This PR also fixes issues around HTTP error handling. HTTP 400 status code will now avoid retries since it indicates that the made request is not supported.

- extract convert_data_to_api_format
- extract convert_data_to_json method
- add a test for the JSON rendering
  - this is really mostly for me to design the new API
ReBenchDB will send a header on an OPTIONS request advertising that version 2.0.0 of the API is supported.

Signed-off-by: Stefan Marr <[email protected]>
Signed-off-by: Stefan Marr <[email protected]>
- add testing with HTTP 400 error code

Signed-off-by: Stefan Marr <[email protected]>
@smarr smarr added the Feature label Mar 22, 2024
@coveralls
Copy link

Coverage Status

coverage: 84.703% (+0.7%) from 83.966%
when pulling 64a0b5f on rebenchdb
into 21bd647 on master.

@smarr smarr merged commit a762e07 into master Mar 23, 2024
12 checks passed
@smarr smarr deleted the rebenchdb branch March 23, 2024 12:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants