Skip to content

Build archive for each network #17457

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

Merged
merged 6 commits into from
Jul 14, 2025

Conversation

dkijania
Copy link
Member

@dkijania dkijania commented Jul 1, 2025

We need replayer build with profile corresponding to network in order to fix chain receipt mismatch on mainnet. Complementary solution is to build archive debian and docker per network and profile. As a result we will replicate daemon variants (Berkeley,Devnet,Mainnet). Unfortunately we will increase number of dockers and debians. Fortunately, after we have another improvement on the list which moves auxiliary distros and artifacts to mainline nightly scope #17500

@dkijania dkijania changed the title remove implicit devnet profile build archive for each network Jul 2, 2025
@dkijania dkijania force-pushed the dkijania/build_archive_for_each_network branch from 6087911 to 1333bd6 Compare July 3, 2025 18:28
@dkijania
Copy link
Member Author

dkijania commented Jul 3, 2025

!ci-build-me

1 similar comment
@dkijania
Copy link
Member Author

dkijania commented Jul 6, 2025

!ci-build-me

@dkijania dkijania force-pushed the dkijania/build_archive_for_each_network branch from 7e039e4 to f110df5 Compare July 7, 2025 13:37
@dkijania
Copy link
Member Author

dkijania commented Jul 7, 2025

!ci-build-me

1 similar comment
@dkijania
Copy link
Member Author

dkijania commented Jul 7, 2025

!ci-build-me

@dkijania
Copy link
Member Author

dkijania commented Jul 7, 2025

!ci-nightly-me

@dkijania dkijania self-assigned this Jul 7, 2025
@dkijania
Copy link
Member Author

dkijania commented Jul 8, 2025

!ci-build-me

@dkijania dkijania marked this pull request as ready for review July 8, 2025 20:23
@dkijania dkijania requested review from a team as code owners July 8, 2025 20:23
@dkijania
Copy link
Member Author

dkijania commented Jul 8, 2025

!ci-build-me

@dkijania dkijania changed the title build archive for each network Build archive for each network Jul 8, 2025
@dkijania
Copy link
Member Author

dkijania commented Jul 8, 2025

# Add suffix to debian to distinguish different profiles (mainnet/devnet/lightnet)
case "${DUNE_PROFILE}" in
devnet|mainnet)
Copy link
Member

Choose a reason for hiding this comment

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

Is it normal it got removed?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, i simplified a logic here to add lightnet suffix to every network not only berkeley. That can be useful for future refactoring where we won't treat berkeley as special case network

@@ -15,7 +16,7 @@ ENV SUFFIX=${deb_suffix:+-${deb_suffix}}
# possible values:
# - mina-archive
Copy link
Member

Choose a reason for hiding this comment

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

This should be updated.

Copy link
Member Author

Choose a reason for hiding this comment

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

updated

@dannywillems dannywillems force-pushed the dkijania/build_archive_for_each_network branch from 724dee9 to 9446257 Compare July 9, 2025 15:03
@dannywillems
Copy link
Member

!ci-build-me

1 similar comment
@dkijania
Copy link
Member Author

!ci-build-me

@dannywillems dannywillems force-pushed the dkijania/build_archive_for_each_network branch from 907bf5e to 889a210 Compare July 14, 2025 13:41
@@ -0,0 +1 @@
Introduced one package for one network for archive artifact
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
Introduced one package for one network for archive artifact
Introduced a separate package per network for the archive artifact.

@@ -5,6 +5,7 @@ FROM ${image}
ARG deb_version
ARG deb_codename=bullseye
ARG deb_release=unstable
ARG network=mainnet
Copy link
Member

Choose a reason for hiding this comment

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

Could we have a target in the Makefile to build this docker image please?

##################################### ARCHIVE PACKAGE ###########################################
build_archive_deb () {
ARCHIVE_DEB=mina-archive${DEB_SUFFIX}
cp ./default/src/app/archive/archive.exe \
Copy link
Member

Choose a reason for hiding this comment

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

Comment: using the same binary name in each Debian package means that we can only have one on each machine, otherwise it would be overwritten.
I guess it is the expected behavior.

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes. It was working like this for a long time. Nothing prevents us from changing that.

@dkijania
Copy link
Member Author

!ci-build-me

@dkijania dkijania merged commit 2109cd7 into compatible Jul 14, 2025
48 checks passed
@dkijania dkijania deleted the dkijania/build_archive_for_each_network branch July 14, 2025 17:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants