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

ci: Remove executor.wasm from git #4553

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Erigara
Copy link
Contributor

@Erigara Erigara commented May 6, 2024

Description

Remove executor.wasm from git, executor is built in the CI.

Linked issue

Closes #4549

@Erigara Erigara added the CI label May 6, 2024
@Erigara Erigara self-assigned this May 6, 2024
Signed-off-by: Shanin Roman <shanin1000@yandex.ru>
@Erigara
Copy link
Contributor Author

Erigara commented May 6, 2024

@BAStos525 ci change for building and providing executor for tests

@Erigara
Copy link
Contributor Author

Erigara commented May 6, 2024

Shouldn't proceed before figuring out how to ship executor for iroha deployment.

- uses: actions/checkout@v4
- uses: Swatinem/rust-cache@v2
- name: Build iroha executor
run: cargo run --bin iroha_wasm_builder_cli -- build ./default_executor --optimize --outfile configs/swarm/executor.wasm
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
run: cargo run --bin iroha_wasm_builder_cli -- build ./default_executor --optimize --outfile configs/swarm/executor.wasm
run: cargo run --release --bin iroha_wasm_builder_cli -- build ./default_executor --optimize --outfile configs/swarm/executor.wasm

should it run in release mode?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

probably doesn't metter since it will build iroha_wasm_builder, actual executor always builds in release mode

Copy link
Contributor

@0x009922 0x009922 left a comment

Choose a reason for hiding this comment

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

This PR removes executor.wasm, but doesn't change anything about genesis.json, which still has "executor_file": "./executor.wasm".

One of the intentions behind having the WASM blob stored in Git is to allow users "just open the repo and run docker compose up". Perhaps we need to revise this use case in some way, in its root. Until then, this PR breaks things.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Build config/swarm/executor.wasm in CI
3 participants