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

[chore] History fix / signoff #3994

Merged
merged 55 commits into from
Oct 17, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
55 commits
Select commit Hold shift + click to select a range
483b6d5
[refactor] #3875: Fix authentication/authorization docstring (#3876)
6r1d Sep 7, 2023
3ffa799
[feature] #3868: Add iroha_swarm disclaimer header
Arjentix Sep 6, 2023
c680543
[refactor] #3526: Allow only a fixed set of signature verification co…
DCNick3 Sep 6, 2023
4c7ef1f
[refactor] #3526: Add signature check condition unit tests
DCNick3 Sep 8, 2023
8c4c94f
[feature] #1915: Implement `Fast` kura init mode
Erigara Sep 5, 2023
a062515
[fix]: Don't fail if dir exists in test_env.py
Erigara Sep 6, 2023
4b3f66b
[feature] #3355: Standardize block API (#3884)
mversic Sep 19, 2023
2f3b134
[ci] #3849: Fix stable/lts configs pushing job (#3894)
BAStos525 Sep 20, 2023
9f77e55
[ci] #3622: Use cargo manifest lints instead of unmaintained cargo-lints
DCNick3 Sep 20, 2023
389eb28
[fix]: `mkdir -r` with store path, not lock path (#3908)
0x009922 Sep 21, 2023
867fc37
[fix] #3906: Fix wasm memory leak
Erigara Sep 22, 2023
90009de
[fix] #3905: Fix `apply_blocks` and `validate_blocks` benchmark
Erigara Sep 21, 2023
d6ea22b
[refactor] #3882: Update iroha_data_model_derive to use syn 2.0
DCNick3 Sep 12, 2023
3c6e97a
[refactor] #3882: Make derive(Filter) use darling
DCNick3 Sep 13, 2023
6544040
[refactor] #3882: Make derive(IdEqOrdHash) use darling, add tests
DCNick3 Sep 14, 2023
a2f280a
[refactor] #3882: Make PartiallyTaggedSerialize/Deserialize use darling
DCNick3 Sep 15, 2023
017ddff
[feature] #3737: Add support for usage of Self type in serde partiall…
DCNick3 Sep 15, 2023
d1380a5
[refactor] #2437: Improve naming, simplify repeated .filter_maps & ge…
DCNick3 Sep 18, 2023
53491a4
[refactor] #3882: Add tests for derive(HasOrigin) macro, reduce repet…
DCNick3 Sep 18, 2023
ea20c6b
[refactor] #3882: Clean up Emitter APIs documentation to make clippy …
DCNick3 Sep 18, 2023
d06bc33
[refactor] #3882: Add basic generics support to `derive(HasOrigin)`
DCNick3 Sep 25, 2023
9d6c35e
[refactor]: Replace Registered with Identifiable in ISI bounds (#3925)
mversic Sep 26, 2023
0fa1ca4
[feature]: parse filter as JSON5 in `iroha_client_cli` (#3923)
0x009922 Sep 26, 2023
2963457
[documentation]: Remove the develop-iroha-module guide (#3907)
outoftardis Sep 26, 2023
dc05218
[fix] #3899: Fix topology mismatch bug (#3903)
Arjentix Sep 26, 2023
6ebe32b
[refactor] #3911: Migrate iroha_futures_derive to syn 2.0
DCNick3 Sep 22, 2023
a9958c0
[ci] #3825: Clean default runner free space (#3902)
BAStos525 Sep 26, 2023
539c3f9
[refactor] #3895: move `commit_topology` into block payload (#3916)
mversic Sep 27, 2023
88b289d
[refactor] #3886: Remove 'Versioned' prefix from versioned containers…
mversic Sep 28, 2023
9aa90bf
[refactor]: Rename ISI from *Box to *Expr (#3930)
mversic Oct 2, 2023
386f1e6
[refactor]: Move account roles to `WSV`
Erigara Sep 28, 2023
fb19bb1
[refactor]: Range queries for roles
Erigara Sep 26, 2023
64acdbc
[refactor]: Avoid clone in roles lookup
Erigara Sep 28, 2023
be7fc65
[fix] #3939: Fix the usage of `Span::join`
DCNick3 Oct 2, 2023
24b51da
[ci] #3768: add client cli tests into CI (#3818)
AlexStroke Oct 4, 2023
0310e67
[refactor]: move expression len out of public API into core (#3949)
mversic Oct 4, 2023
c151da2
[fix] #3928: Make failing the wasm tests actually fail the CI
DCNick3 Sep 28, 2023
604fafd
[fix] #3928: Fix double free in wasm tests
DCNick3 Sep 28, 2023
872276e
[refactor] #3950: Merge API and Telemetry endpoints into a single server
DCNick3 Oct 4, 2023
6c2445d
[refactor]: Include smart contract code into the workspace (#3944)
mversic Oct 9, 2023
2615b58
[fix] #3953: Fix `RemoveKeyValue` for `Domain`
Erigara Oct 5, 2023
de86914
[fix] #3932: Fix transfer `AssetDefinition`
Erigara Oct 5, 2023
5052f2a
[fix] #3931: Fix burn `Trigger` reprtitions
Erigara Oct 5, 2023
00822f2
[feature] #3953: Add `owned_by` field to `Domain`
Erigara Oct 4, 2023
4cd1824
[feature] #3953: `Domain` owner permissions
Erigara Oct 4, 2023
83e87f2
[feature] #3953: Transfer `Domain` ownership
Erigara Oct 5, 2023
9861f46
[refactor] #3874: Remove `IsAssetDefinitionOwner` (#3979)
benhhack Oct 11, 2023
afe4785
[refactor] #3918: Rename validator to executor (#3976)
mversic Oct 11, 2023
3c8b15e
[fix] #0000: proper rustc in devShell
Oct 12, 2023
8dee8d2
[docs]: Remove `api_spec.md` (#3968)
0x009922 Oct 13, 2023
42c1a0f
[fix] #0000: Fix executor downloading in update_configs.sh (#3990)
Arjentix Oct 13, 2023
ee62def
[refactor]: bump dependencies (#3981)
mversic Oct 13, 2023
2932a33
[feature] #3516: make FindTrigger queries return original WASM
Oct 6, 2023
445c1df
[refactor] remove optimized WASM from data_model
Oct 6, 2023
25aaede
[refactor]: remove unused dependencies (#3992)
mversic Oct 16, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
6 changes: 0 additions & 6 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,6 @@ updates:
schedule:
interval: "daily"

- package-ecosystem: "cargo"
target-branch: "iroha2-dev"
directory: "/wasm/"
schedule:
interval: "daily"

- package-ecosystem: "cargo"
target-branch: "iroha2-dev"
directory: "/default_validator/"
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/iroha2-dev-pr-label.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ on:
branches: [iroha-dev]
paths:
- 'docs/source/references/schema.json'
- 'docs/source/references/api_spec.md'
- 'docs/source/references/config.md'

jobs:
Expand All @@ -17,7 +16,7 @@ jobs:
continue-on-error: true
id: api_label
- uses: actions-ecosystem/action-add-labels@v1
if: contains(steps.api_label.outputs.added_modified, 'docs/source/references/schema.json') || contains(steps.api_label.outputs.added_modified, 'docs/source/references/api_spec.md')
if: contains(steps.api_label.outputs.added_modified, 'docs/source/references/schema.json')
with:
github_token: ${{ secrets.github_token }}
labels: |
Expand Down
7 changes: 2 additions & 5 deletions .github/workflows/iroha2-dev-pr-static.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@ on:
- '**.toml'
- '.github/workflows/**.yml'

# Not part of the workspace
- '!wasm/**'

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
Expand All @@ -32,10 +29,10 @@ jobs:
run: cargo fmt --all -- --check
- name: Lints without features
if: always()
run: cargo lints clippy --workspace --benches --tests --examples --no-default-features --quiet
run: cargo clippy -Zlints --workspace --benches --tests --examples --no-default-features --quiet
- name: Lints with all features enabled
if: always()
run: cargo lints clippy --workspace --benches --tests --examples --all-features --quiet
run: cargo clippy -Zlints --workspace --benches --tests --examples --all-features --quiet
- name: Documentation
if: always()
run: cargo doc --no-deps --quiet
4 changes: 4 additions & 0 deletions .github/workflows/iroha2-dev-pr-ui.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ jobs:
matrix:
feature_flag: [all-features, no-default-features]
steps:
- name: Maximize build space
run: |
sudo rm -rf /usr/share/dotnet
sudo rm -rf "$AGENT_TOOLSDIRECTORY"
- uses: actions/checkout@v3
- uses: Swatinem/rust-cache@v2
- name: Run tests, with ${{ matrix.feature_flag }}
Expand Down
39 changes: 12 additions & 27 deletions .github/workflows/iroha2-dev-pr-wasm.yaml
Original file line number Diff line number Diff line change
@@ -1,20 +1,19 @@
name: I2::Dev::Wasm

defaults:
run:
working-directory: wasm

on:
pull_request:
branches: [iroha2-dev]
paths:
- 'wasm/**.rs'
- 'wasm/**.json'
- 'wasm/**.toml'
- 'wasm/**.yml'
- 'data_model/**.rs'
- 'data_model/**.yml'
- 'data_model/**.json'
- 'data_model/**.toml'

- 'smart_contract/**.rs'
- 'smart_contract/**.yml'
- 'smart_contract/**.json'
- 'smart_contract/**.toml'

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
Expand All @@ -23,29 +22,15 @@ env:
RUSTUP_TOOLCHAIN: nightly-2023-06-25

jobs:
static-analysis:
runs-on: ubuntu-latest
container:
image: hyperledger/iroha2-ci:nightly-2023-06-25
steps:
- uses: actions/checkout@v3
- uses: Swatinem/rust-cache@v2

- name: Format
run: cargo fmt --all -- --check
- name: Lints
if: always()
run: cargo lints clippy --workspace --benches --tests --examples --quiet
- name: Documentation
if: always()
run: cargo doc --no-deps --quiet

tests:
runs-on: ubuntu-latest #[self-hosted, Linux]
container:
image: hyperledger/iroha2-ci:nightly-2023-06-25
steps:
- uses: actions/checkout@v3
- uses: Swatinem/rust-cache@v2
- name: Run tests
run: mold --run cargo test --tests --no-fail-fast --quiet
- name: Install iroha_wasm_test_runner
run: cargo install --path tools/wasm_test_runner
- name: Run smart contract tests on WebAssembly VM
working-directory: smart_contract
run: mold --run cargo test --tests --target wasm32-unknown-unknown --no-fail-fast --quiet
64 changes: 50 additions & 14 deletions .github/workflows/iroha2-dev-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@ on:
- '**.toml'
- '.github/workflows/**.yml'

# Not part of the workspace
- '!wasm/**'

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
Expand All @@ -20,7 +17,7 @@ env:
CARGO_TERM_COLOR: always

jobs:
check:
consistency:
runs-on: [self-hosted, Linux, iroha2ci]
container:
image: hyperledger/iroha2-ci:nightly-2023-06-25
Expand All @@ -29,26 +26,22 @@ jobs:
- uses: Swatinem/rust-cache@v2
- name: Check config.md
if: always()
run: ./scripts/check.sh docs
run: ./scripts/tests/consistency.sh docs
- name: Check genesis.json
if: always()
run: ./scripts/check.sh genesis
run: ./scripts/tests/consistency.sh genesis
- name: Check client/config.json
if: always()
run: ./scripts/check.sh client
run: ./scripts/tests/consistency.sh client
- name: Check peer/config.json
if: always()
run: ./scripts/check.sh peer
run: ./scripts/tests/consistency.sh peer
- name: Check schema.json
if: always()
run: ./scripts/check.sh schema
run: ./scripts/tests/consistency.sh schema
- name: Check Docker Compose configurations
if: always()
run: ./scripts/check.sh docker-compose
- name: Wasm build check
if: always()
working-directory: wasm
run: mold --run cargo build --target wasm32-unknown-unknown --quiet
run: ./scripts/tests/consistency.sh docker-compose

with_coverage:
runs-on: [self-hosted, Linux, iroha2ci]
Expand Down Expand Up @@ -137,3 +130,46 @@ jobs:
file: Dockerfile
# This context specification is required
context: .

client-cli-test:
runs-on: [self-hosted, Linux, iroha2ci]
container:
image: hyperledger/iroha2-ci:nightly-2023-06-25
timeout-minutes: 60

steps:
- uses: actions/checkout@v3
- uses: Swatinem/rust-cache@v2
- name: Build binaries
run: |
cargo build --bin iroha_client_cli
cargo build --bin kagami
cargo build --bin iroha

- name: Mark binaries as executable
run: |
chmod +x $CLIENT_CLI_DIR/

- name: Run Iroha 2 on bare metal
run: |
./scripts/test_env.py setup

- name: Copy Iroha 2 client config
run: |
cp ./configs/client/config.json $CLIENT_CLI_DIR/

- name: Set up .env for client_cli tests
run: |
echo "CLIENT_CLI_DIR=$CLIENT_CLI_DIR" >> ./client_cli/pytests/.env
echo "TORII_API_PORT_MIN=8080" >> ./client_cli/pytests/.env
echo "TORII_API_PORT_MAX=8083" >> ./client_cli/pytests/.env

- name: Install dependencies using Poetry
working-directory: client_cli/pytests
run: |
poetry install

- name: Run client cli tests
working-directory: client_cli/pytests
run: |
poetry run pytest
16 changes: 16 additions & 0 deletions .github/workflows/iroha2-release-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ jobs:
container:
image: hyperledger/iroha2-ci:nightly-2023-06-25
steps:
- name: Maximize build space
run: |
sudo rm -rf /usr/share/dotnet
sudo rm -rf "$AGENT_TOOLSDIRECTORY"
- uses: actions/checkout@v3
- uses: Swatinem/rust-cache@v2
- name: Build iroha
Expand Down Expand Up @@ -50,6 +54,10 @@ jobs:
container:
image: hyperledger/iroha2-ci:nightly-2023-06-25
steps:
- name: Maximize build space
run: |
sudo rm -rf /usr/share/dotnet
sudo rm -rf "$AGENT_TOOLSDIRECTORY"
- uses: actions/checkout@v3
- uses: Swatinem/rust-cache@v2
- name: Run benchmarks
Expand All @@ -62,6 +70,10 @@ jobs:
container:
image: hyperledger/iroha2-ci:nightly-2023-06-25
steps:
- name: Maximize build space
run: |
sudo rm -rf /usr/share/dotnet
sudo rm -rf "$AGENT_TOOLSDIRECTORY"
- uses: actions/checkout@v3
- name: Set up JDK 11
uses: actions/[email protected]
Expand Down Expand Up @@ -112,6 +124,10 @@ jobs:
container:
image: hyperledger/iroha2-ci:nightly-2023-06-25
steps:
- name: Maximize build space
run: |
sudo rm -rf /usr/share/dotnet
sudo rm -rf "$AGENT_TOOLSDIRECTORY"
- uses: actions/checkout@v3
- name: Run long tests
run: mold --run cargo test --workspace --no-fail-fast -- --ignored --test-threads=1 long
21 changes: 11 additions & 10 deletions .github/workflows/iroha2-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,22 +59,23 @@ jobs:
runs-on: ubuntu-latest
container:
image: hyperledger/iroha2-ci:nightly-2023-06-25
permissions:
contents: write
steps:
- uses: actions/checkout@v3
with:
ref: iroha2-dev
- name: Setup git config
run: |
cd .git
git config --local user.name "sorabot"
git config --local user.email "<>"
token: ${{ secrets.G_ACCESS_TOKEN }}
- name: Update configs
run: |
./scripts/update_configs.sh lts
./scripts/update_configs.sh stable
- name: Commit config changes
run: |
git config --global --add safe.directory /__w/iroha/iroha
git add -A
git diff-index --quiet HEAD || git commit -m "[documentation]: Update lts/stable configs following a release" --signoff
git push origin iroha2-dev
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: '[documentation]: Update lts/stable configs following a release'
branch: iroha2-dev
commit_options: '--signoff'
commit_user_name: sorabot
commit_user_email: <>
commit_author: sorabot <[email protected]>
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ Code guidelines:
- Avoid `Box<dyn Error>` if possible (we prefer strong typing).
- If your function is a getter/setter, mark it `#[inline]`.
- If your function is a constructor (i.e., it's creating a new value from the input parameters and calls `default()`), mark it `#[inline]`.
- Avoid tying your code to concrete data structures; `rustc` is smart enough to turn a `Vec<InstructionBox>` into `impl IntoIterator<Item = InstructionBox>` and vice versa when it needs to.
- Avoid tying your code to concrete data structures; `rustc` is smart enough to turn a `Vec<InstructionExpr>` into `impl IntoIterator<Item = InstructionExpr>` and vice versa when it needs to.

Naming guidelines:
- Use only full words in *public* structure, variable, method, trait, constant, and module names. However, abbreviations are allowed if:
Expand Down
Loading
Loading