ci(fuzz): replace toolchain and runner#2116
ci(fuzz): replace toolchain and runner#2116apoelstra merged 2 commits intorust-bitcoin:masterfrom realeinherjar:einherjar/rust-toolchain
Conversation
|
@realeinherjar if you change If you're feeling really motivated, you could add a CI check that these files are in sync, which would fix #2115 :) but @tcharding and I can handle it if you don't want to. |
|
I'll dive into that and let you both know... |
|
Fuzz |
|
The fuzz fail is unrelated to this PR, its because of a bug in |
There was a problem hiding this comment.
Concept ACK eb85212
The generate-files.sh script currently just echoes content in the fuzz. I had examined it in relation to this pull request, but it appears to be outdated. Running it on the master branch produces a diff concerning the fuzz_target.
This raises the question: Does it require updates, or should we consider removing it if it's no longer in use?
update
ops 😸 #2116
|
Now with rust-bitcoin/rust-bech32#135 merged tagged and release. |
|
@realeinherjar yes please! That should fix the final fuzztest. |
|
Remember that Cargo-recent.lock and Cargo-minimal.lock also need to be changed. |
|
Oh I did not read this before doing #2117, hope I didn't step on your toes @realeinherjar. |
|
Rebased to fix the bug in |
vincenzopalazzo
left a comment
There was a problem hiding this comment.
OK the CI yaml change are good but the script fix is not enough
if you run it you find the following change
diff --git a/.github/workflows/fuzz.yml b/.github/workflows/fuzz.yml
index 0d0904b3..1c1b03ea 100644
--- a/.github/workflows/fuzz.yml
+++ b/.github/workflows/fuzz.yml
@@ -16,30 +16,29 @@ jobs:
fail-fast: false
matrix:
fuzz_target: [
- bitcoin_outpoint_string,
- bitcoin_deserialize_amount,
- bitcoin_deserialize_transaction,
- bitcoin_deser_net_msg,
- bitcoin_deserialize_address,
- bitcoin_script_bytes_to_asm_fmt,
- bitcoin_deserialize_prefilled_transaction,
- bitcoin_deserialize_witness,
- bitcoin_deserialize_psbt,
- bitcoin_deserialize_block,
- bitcoin_deserialize_script,
- hashes_json,
- hashes_cbor,
- hashes_sha256,
- hashes_ripemd160,
- hashes_sha512_256,
- hashes_sha512,
- hashes_sha1,
+bitcoin_deserialize_witness,
+bitcoin_script_bytes_to_asm_fmt,
+bitcoin_deserialize_block,
+bitcoin_deserialize_script,
+bitcoin_deserialize_prefilled_transaction,
+bitcoin_deserialize_address,
+bitcoin_deser_net_msg,
+bitcoin_deserialize_psbt,
+bitcoin_deserialize_amount,
+bitcoin_deserialize_transaction,
+bitcoin_outpoint_string,
+hashes_ripemd160,
+hashes_sha256,
+hashes_cbor,
+hashes_sha512,
+hashes_sha1,
+hashes_sha512_256,
+hashes_json,
]
steps:
- name: Install test dependencies
run: sudo apt-get update -y && sudo apt-get install -y binutils-dev libunwind8-dev libcurl4-openssl-dev libelf-dev libdw-dev cmake gcc libiberty-dev
- - name: Checkout Crate
- uses: actions/checkout@v4
+ - uses: actions/checkout@v4
- uses: actions/cache@v3
id: cache-fuzz
with:
@@ -48,10 +47,9 @@ jobs:
fuzz/target
target
key: cache-${{ matrix.target }}-${{ hashFiles('**/Cargo.toml','**/Cargo.lock') }}
- - name: Checkout Toolchain
- uses: dtolnay/rust-toolchain@stable
+ - uses: dtolnay/rust-toolchain@stable
with:
- toolchain: "1.65.0"
+ toolchain: '1.65.0'
- name: fuzz
run: |
if [[ "${{ matrix.fuzz_target }}" =~ ^bitcoin ]]; thenTo really fix the script you should generate the ci from the script and not change the CI and then update the script, otherwise, there is not reason to have the script.
fuzz/generate-files.sh
Outdated
There was a problem hiding this comment.
For optimal indenting in YAML file
|
Ok, I still have a diff in two places:
|
|
I think that these things are because of different bash versions? Both of these bash versions (MacOs default and Nix unstable) give me the same files: GNU bash, version 5.2.15(1)-release (aarch64-apple-darwin22.6.0)
GNU bash, version 3.2.57(1)-release (arm64-apple-darwin23)Do you mind committing on top of this PR your local changes after running |
|
I have And sure, one sec. |
|
Ok ready to merge |
vincenzopalazzo
left a comment
There was a problem hiding this comment.
we clean up a little bit the commits? looks like we can create a better git history for this change
old: `actions-rs/toolchain` new: `dtolnay/rust-toolchain` fix ci(fuzz): change runner to ubuntu-latest ci: update run syntax in fuzz job ci: update and run fuzz/generate-files.sh
vincenzopalazzo
left a comment
There was a problem hiding this comment.
ACK 539f4ba
Good job! this PR was a Pandora's box eh? 😸
Yes but now I know how the |
|
Even though this is a CI fix I'm going to wait for a second ACK from @tcharding because we had a bunch of shell-script inconsistency. |
actions-rs/toolchaintodtolnay/rust-toolchain.Closes ci: change from
actions-rs/toolchaintodtolnay/rust-toolchain#2113.ubuntu-20.04toubuntu-latest.Related Updating CI to run on `ubuntu-22.04` #2114.
fuzz/generate-files.shto match.github/workflows/fuzz.yml.Closes
fuzz/generate-files.shgoes stale #2115.