Skip to content

Commit

Permalink
feat(tests): add test target generation to rust_canbench rule (#1347)
Browse files Browse the repository at this point in the history
Example failed tests:
https://dash.zh1-idx1.dfinity.network/invocation/5635b4dd-0d51-4b38-bef7-cf705bf43f00

---------

Co-authored-by: Bas van Dijk <bas@dfinity.org>
Co-authored-by: IDX GitHub Automation <infra+github-automation@dfinity.org>
  • Loading branch information
3 people authored Oct 10, 2024
1 parent ab33784 commit 0a6d829
Show file tree
Hide file tree
Showing 12 changed files with 197 additions and 158 deletions.
79 changes: 41 additions & 38 deletions Cargo.Bazel.Fuzzing.json.lock
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"checksum": "5bca50c20d4ecff35f96e32a7c630c92d07dfdb19741b568d20a8fc577b7f52e",
"checksum": "e34eff08e3d6cb39b1f70a40c8f467805b4801267894e2a66903db1649d3ee71",
"crates": {
"abnf 0.12.0": {
"name": "abnf",
Expand Down Expand Up @@ -10270,14 +10270,14 @@
],
"license_file": "LICENSE-APACHE"
},
"canbench 0.1.4": {
"canbench 0.1.7": {
"name": "canbench",
"version": "0.1.4",
"version": "0.1.7",
"package_url": "https://github.com/dfinity/canbench",
"repository": {
"Http": {
"url": "https://static.crates.io/crates/canbench/0.1.4/download",
"sha256": "4d8c8fd8ae281a318392d1e724428ad9d93f0a1f06ed61a2f5e97f6c957c821c"
"url": "https://static.crates.io/crates/canbench/0.1.7/download",
"sha256": "bf010ed5b327776525d545cef0fd17ffec73af71eb1b304ca11df3494ed65c31"
}
},
"targets": [
Expand Down Expand Up @@ -10314,7 +10314,7 @@
"deps": {
"common": [
{
"id": "canbench-rs 0.1.4",
"id": "canbench-rs 0.1.7",
"target": "canbench_rs"
},
{
Expand All @@ -10338,7 +10338,7 @@
"target": "hex"
},
{
"id": "pocket-ic 3.1.0",
"id": "pocket-ic 5.0.0",
"target": "pocket_ic"
},
{
Expand Down Expand Up @@ -10373,22 +10373,22 @@
"selects": {}
},
"edition": "2021",
"version": "0.1.4"
"version": "0.1.7"
},
"license": "Apache-2.0",
"license_ids": [
"Apache-2.0"
],
"license_file": null
},
"canbench-rs 0.1.4": {
"canbench-rs 0.1.7": {
"name": "canbench-rs",
"version": "0.1.4",
"version": "0.1.7",
"package_url": "https://github.com/dfinity/canbench",
"repository": {
"Http": {
"url": "https://static.crates.io/crates/canbench-rs/0.1.4/download",
"sha256": "53574f268dbe23dc83f891a4751b118a6ba927c8bc92e839ff108f3aaf151aa9"
"url": "https://static.crates.io/crates/canbench-rs/0.1.7/download",
"sha256": "e85a8f1ee95044a770b3d5166a12f55814283cb3aed71b81439dc59960ab76c1"
}
},
"targets": [
Expand Down Expand Up @@ -10431,28 +10431,28 @@
"proc_macro_deps": {
"common": [
{
"id": "canbench-rs-macros 0.1.4",
"id": "canbench-rs-macros 0.1.7",
"target": "canbench_rs_macros"
}
],
"selects": {}
},
"version": "0.1.4"
"version": "0.1.7"
},
"license": "Apache-2.0",
"license_ids": [
"Apache-2.0"
],
"license_file": null
},
"canbench-rs-macros 0.1.4": {
"canbench-rs-macros 0.1.7": {
"name": "canbench-rs-macros",
"version": "0.1.4",
"version": "0.1.7",
"package_url": "https://github.com/dfinity/canbench",
"repository": {
"Http": {
"url": "https://static.crates.io/crates/canbench-rs-macros/0.1.4/download",
"sha256": "d454906c77138a3802a7a680259cca7c006e9b268ba6905f7f4f2b8b74293fa4"
"url": "https://static.crates.io/crates/canbench-rs-macros/0.1.7/download",
"sha256": "37aa9dbb190b03569ab14aadf669884a331712d54462c5a6c5b86c9867fe4e65"
}
},
"targets": [
Expand Down Expand Up @@ -10492,7 +10492,7 @@
"selects": {}
},
"edition": "2021",
"version": "0.1.4"
"version": "0.1.7"
},
"license": "Apache-2.0",
"license_ids": [
Expand Down Expand Up @@ -17810,11 +17810,11 @@
"target": "cached"
},
{
"id": "canbench 0.1.4",
"id": "canbench 0.1.7",
"target": "canbench"
},
{
"id": "canbench-rs 0.1.4",
"id": "canbench-rs 0.1.7",
"target": "canbench_rs"
},
{
Expand Down Expand Up @@ -46888,14 +46888,14 @@
],
"license_file": "LICENSE"
},
"pocket-ic 3.1.0": {
"pocket-ic 5.0.0": {
"name": "pocket-ic",
"version": "3.1.0",
"version": "5.0.0",
"package_url": "https://github.com/dfinity/ic",
"repository": {
"Http": {
"url": "https://static.crates.io/crates/pocket-ic/3.1.0/download",
"sha256": "f9765eeff77b8750cf6258eaeea237b96607cd770aa3d4003f021924192b7e4e"
"url": "https://static.crates.io/crates/pocket-ic/5.0.0/download",
"sha256": "beff607d4dbebff8d003453ced669d2645e905de496ca93713f3d47633357e6c"
}
},
"targets": [
Expand Down Expand Up @@ -46955,6 +46955,18 @@
"id": "serde_json 1.0.127",
"target": "serde_json"
},
{
"id": "sha2 0.10.8",
"target": "sha2"
},
{
"id": "slog 2.7.0",
"target": "slog"
},
{
"id": "tokio 1.40.0",
"target": "tokio"
},
{
"id": "tracing 0.1.40",
"target": "tracing"
Expand All @@ -46971,16 +46983,7 @@
"selects": {}
},
"edition": "2021",
"proc_macro_deps": {
"common": [
{
"id": "async-trait 0.1.81",
"target": "async_trait"
}
],
"selects": {}
},
"version": "3.1.0"
"version": "5.0.0"
},
"license": "Apache-2.0",
"license_ids": [
Expand Down Expand Up @@ -78326,7 +78329,7 @@
}
},
"binary_crates": [
"canbench 0.1.4",
"canbench 0.1.7",
"ic-wasm 0.8.4",
"metrics-proxy 0.1.0"
],
Expand Down Expand Up @@ -79464,8 +79467,8 @@
"byteorder 1.5.0",
"bytes 1.7.1",
"cached 0.49.2",
"canbench 0.1.4",
"canbench-rs 0.1.4",
"canbench 0.1.7",
"canbench-rs 0.1.7",
"candid 0.10.10",
"candid_parser 0.1.2",
"cargo_metadata 0.14.2",
Expand Down
20 changes: 11 additions & 9 deletions Cargo.Bazel.Fuzzing.toml.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1747,9 +1747,9 @@ dependencies = [

[[package]]
name = "canbench"
version = "0.1.4"
version = "0.1.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "4d8c8fd8ae281a318392d1e724428ad9d93f0a1f06ed61a2f5e97f6c957c821c"
checksum = "bf010ed5b327776525d545cef0fd17ffec73af71eb1b304ca11df3494ed65c31"
dependencies = [
"canbench-rs",
"candid",
Expand All @@ -1769,9 +1769,9 @@ dependencies = [

[[package]]
name = "canbench-rs"
version = "0.1.4"
version = "0.1.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "53574f268dbe23dc83f891a4751b118a6ba927c8bc92e839ff108f3aaf151aa9"
checksum = "e85a8f1ee95044a770b3d5166a12f55814283cb3aed71b81439dc59960ab76c1"
dependencies = [
"canbench-rs-macros",
"candid",
Expand All @@ -1781,9 +1781,9 @@ dependencies = [

[[package]]
name = "canbench-rs-macros"
version = "0.1.4"
version = "0.1.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d454906c77138a3802a7a680259cca7c006e9b268ba6905f7f4f2b8b74293fa4"
checksum = "37aa9dbb190b03569ab14aadf669884a331712d54462c5a6c5b86c9867fe4e65"
dependencies = [
"proc-macro2",
"quote",
Expand Down Expand Up @@ -8062,11 +8062,10 @@ dependencies = [

[[package]]
name = "pocket-ic"
version = "3.1.0"
version = "5.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f9765eeff77b8750cf6258eaeea237b96607cd770aa3d4003f021924192b7e4e"
checksum = "beff607d4dbebff8d003453ced669d2645e905de496ca93713f3d47633357e6c"
dependencies = [
"async-trait",
"base64 0.13.1",
"candid",
"hex",
Expand All @@ -8076,6 +8075,9 @@ dependencies = [
"serde",
"serde_bytes",
"serde_json",
"sha2 0.10.8",
"slog",
"tokio",
"tracing",
"tracing-appender",
"tracing-subscriber",
Expand Down
Loading

0 comments on commit 0a6d829

Please sign in to comment.