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

use generated cbor error reason in transaction submit testing #90

Draft
wants to merge 36 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
7339c5b
use generated cbor error reason in transaction submit testing
ginnun Nov 25, 2024
6368bd0
11 test cases pass
ginnun Nov 29, 2024
1abb527
temp
ginnun Dec 5, 2024
41b0fca
Merge branch 'main' into feat/submit-error-testing
michalrus Dec 5, 2024
1cd6c0d
chore: run `treefmt`
michalrus Dec 5, 2024
9b4d9a9
feat: replicate Haskell’s `instance Show Data.Text`
michalrus Dec 5, 2024
2fdd80f
more submit erros handled
ginnun Dec 10, 2024
bcccf64
chore: run `treefmt`
michalrus Dec 18, 2024
14ea6f1
feat: add `cbor/tests/random`
michalrus Dec 23, 2024
679d09e
chore: convert static JSON test fixures to `verify_one`-type tests wi…
michalrus Dec 18, 2024
a05318e
fix: `test_generate_error_response_with_multiple_errors`
michalrus Dec 23, 2024
d3af0dc
Merge pull request #100 from blockfrost/feat/proptest-serializers
ginnun Dec 24, 2024
02c63ae
feat: improve test reporting on decoder failures
michalrus Dec 24, 2024
03b5dae
wip for more errors
ginnun Jan 8, 2025
f760ecf
Passing the hundred cases
ginnun Jan 17, 2025
64edf0c
Merge branch 'main' into feat/submit-error-testing
ginnun Jan 20, 2025
06c16c3
Cleaning the left overs of file-based submit error testing
ginnun Jan 20, 2025
0d868ac
chore: unignore all specific tests
michalrus Jan 20, 2025
36a1a97
Fix more error serializations
ginnun Jan 21, 2025
961ae46
Fix more error serializations
ginnun Jan 21, 2025
4760581
Fix more error serializations
ginnun Jan 22, 2025
c8da065
Fix more error serializations
ginnun Jan 23, 2025
047adc7
Fix more error serializations
ginnun Jan 24, 2025
a5c74c8
Fix more error serializations
ginnun Jan 31, 2025
7e13006
fix: patch `Arbitrary PoolMetadata` to always have 32 bytes for `pmHash`
michalrus Feb 4, 2025
40d75e4
Fix more error serializations
ginnun Feb 5, 2025
aa2f707
chore: don’t use `unwrap()` because that short-circuits the whole tes…
michalrus Feb 5, 2025
281b781
Fix more error serializations
ginnun Feb 6, 2025
7d669b4
chore: test more generator sizes, and always output failing CBORs
michalrus Feb 6, 2025
ec1ed88
Fix PurposeAS
ginnun Feb 6, 2025
3909225
Fix rare BabbageTxOut problem
ginnun Feb 6, 2025
83079d7
Replace our CustomSet258 with pallas' Set
ginnun Feb 7, 2025
379bf3e
Replace d.decode usage with d.decode_with
ginnun Feb 7, 2025
6e24084
Remove dead code
ginnun Feb 7, 2025
718cf8f
Remove some unnecessary types
ginnun Feb 7, 2025
103382e
Clean up comments and re-organize
ginnun Feb 7, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ pallas-network = "0.32.0"
pallas-crypto = "0.32.0"
pallas-traverse = "0.32.0"
pallas-codec = "0.32.0"
pallas-addresses = "0.32.0"
reqwest = "0.12.12"
pallas = "0.32.0"
hex = "0.4.3"
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ RUN --mount=type=cache,target=/usr/local/cargo/registry \
ls -l ; cargo chef prepare --recipe-path recipe.json

FROM base AS downloader
ADD https://github.com/input-output-hk/testgen-hs/releases/download/10.1.4.0/testgen-hs-10.1.4.0-x86_64-linux.tar.bz2 /app/
ADD https://github.com/input-output-hk/testgen-hs/releases/download/10.1.4.1/testgen-hs-10.1.4.1-x86_64-linux.tar.bz2 /app/
RUN tar -xjf testgen-hs-*.tar.* && /app/testgen-hs/testgen-hs --version

FROM base AS builder
Expand Down
2 changes: 1 addition & 1 deletion build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ fn main() {
// Tell Cargo to rerun the build script if the build script itself changes.
println!("cargo:rerun-if-changed=build.rs");

let testgen_lib_version = "10.1.2.1";
let testgen_lib_version = "10.1.4.1";

let target_os = if cfg!(target_os = "macos") {
"darwin"
Expand Down
8 changes: 4 additions & 4 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
flake-compat.flake = false;
cardano-node.url = "github:IntersectMBO/cardano-node/10.1.4";
cardano-node.flake = false; # otherwise, +2k dependencies we don’t really use
testgen-hs.url = "github:input-output-hk/testgen-hs/10.1.4.0"; # make sure it follows cardano-node
testgen-hs.url = "github:input-output-hk/testgen-hs/10.1.4.1"; # make sure it follows cardano-node
testgen-hs.flake = false; # otherwise, +2k dependencies we don’t really use
devshell.url = "github:numtide/devshell";
devshell.inputs.nixpkgs.follows = "nixpkgs";
Expand Down
5 changes: 5 additions & 0 deletions src/cbor.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
pub mod codec;
pub mod fallback_decoder;
pub mod haskell_display;
pub mod haskell_types;
pub mod haskells_show_string;

#[cfg(test)]
pub mod tests;
Loading
Loading