Skip to content

Comments

Migrate to latest Zaino revision#358

Open
str4d wants to merge 3 commits intomainfrom
update-zaino
Open

Migrate to latest Zaino revision#358
str4d wants to merge 3 commits intomainfrom
update-zaino

Conversation

@str4d
Copy link
Collaborator

@str4d str4d commented Jan 31, 2026

Requires bumping MSRV to 1.89 due to zebra-state.

Part of COR-307.

@str4d str4d requested review from nuttycom and schell January 31, 2026 05:05
@linear
Copy link

linear bot commented Jan 31, 2026

@str4d str4d force-pushed the update-zaino branch 3 times, most recently from eeeddb0 to 302522b Compare January 31, 2026 06:12
@str4d
Copy link
Collaborator Author

str4d commented Jan 31, 2026

CI builds against latest dependency versions is currently broken by ZcashFoundation/zebra#10253.

@str4d str4d added the A-dependencies Area: Dependencies label Jan 31, 2026
}
if let syn::Meta::NameValue(doc_line) = &attr.meta
&& let syn::Expr::Lit(docs) = &doc_line.value
&& let syn::Lit::Str(s) = &docs.lit
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a nice simplification.

@nuttycom nuttycom marked this pull request as draft February 9, 2026 18:42
Copy link
Contributor

@nuttycom nuttycom left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ZF has released updated versions, so we just need to update this PR and ensure that Zaino gets the same updates, otherwise utACK

@str4d str4d marked this pull request as ready for review February 14, 2026 02:57
@str4d
Copy link
Collaborator Author

str4d commented Feb 14, 2026

No, we just needed to re-run CI once ZF had yanked the incorrect patch releases.


FROM stagex/pallet-rust@sha256:9c38bf1066dd9ad1b6a6b584974dd798c2bf798985bf82e58024fbe0515592ca AS pallet-rust
# Rust 1.91.1
FROM stagex/pallet-rust@sha256:4062550919db682ebaeea07661551b5b89b3921e3f3a2b0bc665ddea7f6af1ca AS pallet-rust
Copy link
Collaborator Author

@str4d str4d Feb 15, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I spent over two hours yesterday bisecting Zaino trying to figure out why the Docker builds were failing in rocksdb linking with missing stdlib symbols (as I assumed it was related to their Zebra dependencies), and after eliminating the entire set of Rust dependency changes, I realised that it was this Rust update itself that was causing the problem.

@antonleviathan the StageX website needs documentation for each package about how to update it. There is nothing on https://stagex.tools/packages/pallet/rust/ about it having any dependencies, so I just went to the Docker hub and found the only >=1.89 release available (1.91.1) and updated the pin to it, assuming it was self-contained. I assume the problem is that due to static linking, I also needed to bump user-abseil-cpp and/or core-user-runtime to compatible versions, but I have no idea how to figure that out (not least because all I have to go on here are SHA-256 hashes, no version information due to the pinning).

In lieu of adding such documentation to the StageX website, please open a PR adding a comment to this Dockerfile explaining how to update these dependencies correctly.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm, bumping both user-protobuf and user-abseil-cpp to the versions released the same day as the Rust 1.91.1 image did not fix the problem. I note that there was no core-user-runtime release at that same time; maybe that's the problem?

In any case, this means we cannot upgrade Zaino without breaking Docker builds, until Zaino updates to whatever Zebra crate releases include their revert to MSRV of 1.85.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @str4d sorry about the inconvenience. I made a PR with a fix that also includes some context around what happened. Let me know if you would still like additional comments in the containerfile. I will also do a followup PR soon which will land some speed improvements.

#376

Required to update `zebra-state`.
@str4d
Copy link
Collaborator Author

str4d commented Feb 23, 2026

Force-pushed to rebase on latest main.

@str4d
Copy link
Collaborator Author

str4d commented Feb 23, 2026

Force-pushed to update Zaino to its latest revision.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-dependencies Area: Dependencies

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants