fix: no chain_root in 1st block of the mmr activated epoch #4229
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: ci_integration_tests_ubuntu | |
concurrency: | |
group: ci_integration_tests_ubuntu-${{ github.ref }} | |
cancel-in-progress: true | |
on: | |
pull_request: | |
types: [ opened, synchronize, reopened ] | |
push: | |
branches: | |
- master | |
- develop | |
- 'rc/*' | |
merge_group: {} | |
env: | |
CARGO_TERM_COLOR: always | |
RUST_BACKTRACE: full | |
RUSTFLAGS: -D warnings | |
LOGBAK_USER: ${{secrets.LOGBAK_USER}} #LOCBAK_* for upload logs to server when test failed | |
LOGBAK_PASSWORD: ${{secrets.LOGBAK_PASSWORD}} | |
LOGBAK_SERVER: ${{secrets.LOGBAK_SERVER}} | |
jobs: | |
prologue: | |
name: prologue | |
if: | | |
github.event_name != 'push' || | |
( github.event_name == 'push' && | |
( github.ref == 'refs/heads/master' || | |
(github.ref == 'refs/heads/develop' && startsWith(github.event.head_commit.message, 'Merge pull request #')) || | |
startsWith(github.ref, 'refs/heads/rc/') | |
) | |
) || (github.repository_owner != 'nervosnetwork') | |
runs-on: ubuntu-20.04 | |
outputs: | |
os_skip: ${{ steps.prologue.outputs.os_skip }} | |
job_skip: ${{ steps.prologue.outputs.job_skip }} | |
linux_runner_label: ${{ steps.prologue.outputs.linux_runner_label }} | |
steps: | |
- uses: actions/checkout@v3 | |
- name: prologue | |
id: prologue | |
uses: ./.github/actions/ci_prologue | |
with: | |
GITHUB_EVENT_NAME: ${{ github.event_name }} | |
COMMIT_MESSAGE: "${{github.event.head_commit.message}}" | |
PR_COMMONS_BODY: "${{ github.event.pull_request.body }}" | |
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} | |
LABELS: "${{ toJson(github.event.pull_request.labels.*.name) }}" | |
GITHUB_REPOSITORY: ${{ github.repository }} | |
GITHUB_WORKFLOW: ${{ github.workflow }} | |
ci_integration_tests_ubuntu: | |
name: ci_integration_tests_ubuntu | |
needs: prologue | |
timeout-minutes: 140 | |
runs-on: ${{ needs.prologue.outputs.linux_runner_label }} | |
steps: | |
- uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
toolchain: 1.71.1 | |
- run: rustup component add rustfmt | |
- run: rustup component add clippy | |
- run: sudo apt-get update && sudo apt-get install -y libssl-dev pkg-config libclang-dev | |
- uses: actions/checkout@v3 | |
- run: | | |
if [[ ${{ needs.prologue.outputs.os_skip }} == run ]] && [[ ${{ needs.prologue.outputs.job_skip }} == run ]];then | |
devtools/ci/ci_main.sh | |
else | |
echo "skip job" | |
exit 0 | |
fi | |
shell: bash | |
- name: upload log files | |
if: always() | |
uses: actions/upload-artifact@v2 | |
with: | |
name: ${{ runner.os }}_integration.log | |
path: ${{ env.CKB_INTEGRATION_TEST_TMP }}/integration.log | |
env: | |
RUNNER_LABEL: ${{ needs.prologue.outputs.linux_runner_label }} | |
ci_cli_bats_test: | |
name: ci_cli_bats_test | |
needs: prologue | |
runs-on: ${{ needs.prologue.outputs.linux_runner_label }} | |
steps: | |
- uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
toolchain: 1.71.1 | |
- run: rustup component add rustfmt | |
- run: rustup component add clippy | |
- run: sudo apt-get update && sudo apt-get install -y libssl-dev pkg-config libclang-dev | |
- uses: actions/checkout@v3 | |
- name: build ckb and run bats cli test | |
run: | | |
make prod | |
make cli-test | |
shell: bash | |
env: | |
RUNNER_LABEL: ${{ needs.prologue.outputs.linux_runner_label }} |