Skip to content

Gp/rv64im#5

Open
gpBlockchain wants to merge 28 commits intogp/add-corpusfrom
gp/rv64im
Open

Gp/rv64im#5
gpBlockchain wants to merge 28 commits intogp/add-corpusfrom
gp/rv64im

Conversation

@gpBlockchain
Copy link
Owner

No description provided.

gpBlockchain and others added 8 commits July 18, 2024 12:03
…e type ambiguities

Co-authored-by: gpBlockchain <32102187+gpBlockchain@users.noreply.github.com>
…ferences between CKB versions

Co-authored-by: gpBlockchain <32102187+gpBlockchain@users.noreply.github.com>
…pendency

Fix ckb dependency resolution: use tag instead of branch for v0.204.0
@gpBlockchain
Copy link
Owner Author

修复冲突,全部以gp/rv64im为准 @copilot

Copy link

Copilot AI commented Mar 3, 2026

@gpBlockchain I've opened a new pull request, #6, to work on those changes. Once the pull request is ready, I'll request review from you.

GitHub Copilot and others added 2 commits March 3, 2026 14:57
Resolve merge conflicts: merge gp/add-corpus into gp/rv64im with rv64im taking precedence
@gpBlockchain
Copy link
Owner Author

assertion left == right failed: file path : fuzz/corpus/fuzz_tx_consistency/88f9b3065ccbff7ad133e3307b4da968e4c43952
left: Err("Error { kind: Script, inner: TransactionScriptError { source: Inputs[0].Lock, cause: VM Internal Error: MemOutOfBound } }")
right: Err("Error { kind: Script, inner: TransactionScriptError { source: Inputs[0].Lock, cause: VM Internal Error: MemOutOfBound(4194364, Memory) } }")
note: run with RUST_BACKTRACE=1 environment variable to display a backtrace @copilot 这个不要报错,去掉断言,最后统计不一致就行

Copy link

Copilot AI commented Mar 3, 2026

@gpBlockchain I've opened a new pull request, #7, to work on those changes. Once the pull request is ready, I'll request review from you.

Copilot AI and others added 2 commits March 3, 2026 15:12
…tead; normalize MemOutOfBound errors

Co-authored-by: gpBlockchain <32102187+gpBlockchain@users.noreply.github.com>
Replace assert_eq! with inconsistency counter in fuzz_tx_consistency
@gpBlockchain
Copy link
Owner Author

nervosnetwork/ckb-vm#502 我要让vm执行测到这个pr @copilot

Copy link

Copilot AI commented Mar 4, 2026

@gpBlockchain I've opened a new pull request, #8, to work on those changes. Once the pull request is ready, I'll request review from you.

@gpBlockchain
Copy link
Owner Author

帮我统计2个vm执行耗时 ,最后结果打印出来 @copilot

Copy link

Copilot AI commented Mar 4, 2026

@gpBlockchain I've opened a new pull request, #9, to work on those changes. Once the pull request is ready, I'll request review from you.

Copilot AI and others added 3 commits March 4, 2026 02:25
…ry 1000 runs

Co-authored-by: gpBlockchain <32102187+gpBlockchain@users.noreply.github.com>
Co-authored-by: gpBlockchain <32102187+gpBlockchain@users.noreply.github.com>
@gpBlockchain
Copy link
Owner Author

补充:RISC-V 64 Test cargo run就行,像下面那样 @copilot

name: RISC-V 64 Test

on:
  push:
    branches: [ "main" ]
  pull_request:
    branches: [ "main" ]

env:
  CARGO_TERM_COLOR: always

jobs:
  qemu-riscv64:
    runs-on: ubuntu-24.04
    steps:
      - uses: actions/checkout@v3

      - name: Install Rust
        uses: actions-rs/toolchain@v1
        with:
          profile: minimal
          toolchain: 1.92.0
          override: true

      - name: Cache Rust dependencies
        uses: actions/cache@v3
        with:
          path: |
            ~/.cargo/registry
            ~/.cargo/git
            target
          key: ${{ runner.os }}-riscv64-cargo-${{ hashFiles('**/Cargo.lock') }}

      - name: Setup RISC-V environment
        run: |
          sudo apt-get update -y
          sudo apt install -y gcc-riscv64-linux-gnu \
                              qemu-user-static
          rustup target add riscv64gc-unknown-linux-gnu

      - name: Add RISC-V contract target
        run: rustup target add riscv64imac-unknown-none-elf

      - name: Build Contracts
        run: |
          cd demo
          make build

      - name: Run Tests
        run: |
          export CARGO_TARGET_RISCV64GC_UNKNOWN_LINUX_GNU_LINKER=riscv64-linux-gnu-gcc
          export CARGO_TARGET_RISCV64GC_UNKNOWN_LINUX_GNU_RUSTFLAGS="-C link-args=-L -C link-args=/usr/lib/gcc-cross/riscv64-linux-gnu/13"
          export CARGO_TARGET_RISCV64GC_UNKNOWN_LINUX_GNU_RUNNER="setarch linux64 --addr-no-randomize qemu-riscv64-static -L /usr/riscv64-linux-gnu"
          cargo test --release --verbose --target riscv64gc-unknown-linux-gnu

Copy link

Copilot AI commented Mar 4, 2026

@gpBlockchain I've opened a new pull request, #10, to work on those changes. Once the pull request is ready, I'll request review from you.

Copilot AI mentioned this pull request Mar 4, 2026
Copilot AI and others added 9 commits March 4, 2026 02:36
Co-authored-by: gpBlockchain <32102187+gpBlockchain@users.noreply.github.com>
…-> 1.11.1)

Co-authored-by: gpBlockchain <32102187+gpBlockchain@users.noreply.github.com>
…913d1c487e020517

Co-authored-by: gpBlockchain <32102187+gpBlockchain@users.noreply.github.com>
…-rv64im

[WIP] Update ckb-vm to asm_rv64im commit ba23062f
…n-conflict

Fix bytes version conflict in fuzz/Cargo.lock
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.

2 participants