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

Fixing Code Coverage CI #2556

Merged
merged 67 commits into from
Nov 15, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
67 commits
Select commit Hold shift + click to select a range
763d07d
disabled archived tests
timbrinded Nov 8, 2023
8d803df
removed bun file
timbrinded Nov 8, 2023
b28b35a
updated to use nextest
timbrinded Nov 8, 2023
4f32cb9
using nextest
timbrinded Nov 8, 2023
2d7637d
fix CI
timbrinded Nov 8, 2023
92bcbeb
fix cargo test
timbrinded Nov 8, 2023
0fccdd1
manually install binstall
timbrinded Nov 8, 2023
f4584ca
add token
timbrinded Nov 8, 2023
8991bde
fix binstall
timbrinded Nov 8, 2023
64f6e61
fix binstall
timbrinded Nov 8, 2023
8fdd25d
restoring vanilla cargo test
timbrinded Nov 8, 2023
d9b558a
unnecessary build steps
timbrinded Nov 8, 2023
55b3479
updated moonwall to exit on fail
timbrinded Nov 8, 2023
39f1c8e
removed uploading bins
timbrinded Nov 8, 2023
1c717bd
trying out bun
timbrinded Nov 9, 2023
9f9ad84
added pnpm.lock back
timbrinded Nov 9, 2023
47d62c4
returned Cargo.lock
timbrinded Nov 9, 2023
aa98361
Removed bun
timbrinded Nov 9, 2023
560f4c3
pkg vers
timbrinded Nov 9, 2023
f95ab8f
restored Cargo.lock
timbrinded Nov 9, 2023
d52a9a9
fix api-augment ref
timbrinded Nov 9, 2023
8b027bf
fix lockfile
timbrinded Nov 9, 2023
fa65659
reduce cores used
timbrinded Nov 9, 2023
58f7a8b
update node runtime
timbrinded Nov 9, 2023
ba1cb1a
nextest test
timbrinded Nov 9, 2023
dede846
reduce cores even more
timbrinded Nov 9, 2023
e58df70
changing it back to bare-metal
timbrinded Nov 9, 2023
7840ff4
fix labels
timbrinded Nov 9, 2023
a2efb3d
restore bare metal
timbrinded Nov 9, 2023
229b566
nextest
timbrinded Nov 9, 2023
b411458
fix nextest
timbrinded Nov 9, 2023
845b3c4
added waits
timbrinded Nov 9, 2023
a992fcc
tweaked nextest cmd
timbrinded Nov 9, 2023
bf37557
lockfile
timbrinded Nov 9, 2023
9a2206d
Merge branch 'master' of github.com:moonbeam-foundation/moonbeam into…
timbrinded Nov 10, 2023
df48489
update api-augment
timbrinded Nov 10, 2023
23548a9
new moonwall
timbrinded Nov 10, 2023
a032e94
update moonwall
timbrinded Nov 10, 2023
ee0d650
update moonwall
timbrinded Nov 10, 2023
3de404c
updated tracing timeout
timbrinded Nov 10, 2023
9ff2b69
disabled reporters
timbrinded Nov 13, 2023
3ed2d0b
Merge branch 'master' into timbo-fix-coverage
timbrinded Nov 13, 2023
7e1861f
tidied up CI job
timbrinded Nov 13, 2023
53e5634
new moonwall
timbrinded Nov 14, 2023
846adee
rolled back moonwall ver
timbrinded Nov 14, 2023
da1a422
fixed config
timbrinded Nov 14, 2023
e5c5ffd
restored old packages
timbrinded Nov 14, 2023
781f04b
vitest update
timbrinded Nov 14, 2023
24b9cee
rollback versions
timbrinded Nov 14, 2023
cbbd278
restored old files
timbrinded Nov 14, 2023
18d39d1
restored PNPM ver
timbrinded Nov 14, 2023
72b83ba
restored action.yml
timbrinded Nov 14, 2023
f374bd3
updated pkgs
timbrinded Nov 14, 2023
3c502f9
added EnvVar for coverage
timbrinded Nov 14, 2023
4e5624d
fix
timbrinded Nov 14, 2023
97f885d
added path var
timbrinded Nov 14, 2023
3e6129c
fix envVar
timbrinded Nov 14, 2023
ff3303f
fix envVar
timbrinded Nov 14, 2023
a0c9440
fix envVar
timbrinded Nov 14, 2023
295719a
fix envVar
timbrinded Nov 14, 2023
fe3fa28
fix envVar
timbrinded Nov 14, 2023
bc087fb
fix lockfile
timbrinded Nov 14, 2023
c9b5b2e
pin version
timbrinded Nov 15, 2023
bda4132
pin version
timbrinded Nov 15, 2023
1c7c436
rollback chopsticks
timbrinded Nov 15, 2023
0982ed7
rollback package.json
timbrinded Nov 15, 2023
651d372
restore lock file
timbrinded Nov 15, 2023
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
5 changes: 3 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ on:

env:
NODE_OPTIONS: "--max-old-space-size=12288"
CARGO_TERM_COLOR: always

jobs:
####### Check files and formatting #######
Expand Down Expand Up @@ -637,6 +638,7 @@ jobs:
runs-on:
labels: bare-metal
needs: ["set-tags", "build"]
timeout-minutes: 20
strategy:
matrix:
chain: ["moonbase"]
Expand All @@ -661,8 +663,7 @@ jobs:
moonwall_environment: dev_${{ matrix.chain }}
- name: Upload HTML report to s3
if: |
github.event.pull_request.head.repo.full_name == github.repository
&& github.event_name == 'push'
github.event.pull_request.head.repo.full_name == github.repository && github.event_name == 'push'
uses: mario-sangar/upload-s3-action@master
id: S3
with:
Expand Down
31 changes: 11 additions & 20 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ jobs:
####### Check files and formatting #######

set-tags:
runs-on: ubuntu-latest
runs-on:
labels: bare-metal
outputs:
git_branch: ${{ steps.check-git-ref.outputs.git_branch }}
git_target_branch: ${{ steps.check-git-ref.outputs.git_target_branch }}
Expand Down Expand Up @@ -89,10 +90,12 @@ jobs:
runs-on:
labels: bare-metal
needs: ["set-tags"]
timeout-minutes: 60
env:
RUSTC_WRAPPER: "sccache"
CARGO_INCREMENTAL: "0"
SCCACHE_CACHE_SIZE: "100GB"
CARGO_TERM_COLOR: always
steps:
- name: Checkout
uses: actions/checkout@v3
Expand All @@ -116,29 +119,17 @@ jobs:
- name: Clean-up possible coverage generated during builds
run: |
rm default_*.profraw
- name: Upload runtimes
uses: actions/[email protected]
with:
name: runtimes
path: runtimes
- name: Upload binary
uses: actions/[email protected]
with:
name: moonbeam
path: build
- name: Unit tests
run: |
cargo test --release --all --features=evm-tracing
- name: Typescript Tests (Dev Service)
uses: ./.github/workflow-templates/typescript-tests
# curl -L --proto '=https' --tlsv1.2 -sSf https://raw.githubusercontent.com/cargo-bins/cargo-binstall/main/install-from-binstall-release.sh | bash
# curl -LsSf https://get.nexte.st/latest/linux | tar zxf - -C ${CARGO_HOME:-~/.cargo}/bin
# echo $PATH
cargo nextest run --release --workspace --features=evm-tracing
- name: "Run Moonwall Dev Tests"
uses: ./.github/workflow-templates/dev-tests
with:
timeout: 10000
moonbeam-binary: build/moonbeam
moonwall_environment: dev_moonbase
force-pass: true
# - name: "Run Moonwall Dev Tests"
# uses: ./.github/workflow-templates/dev-tests
# with:
# moonwall_environment: dev_moonbase

- name: Retrieve coverage
id: coverage
Expand Down
8 changes: 6 additions & 2 deletions .github/workflows/upgrade-typescript-api.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,13 @@ jobs:
docker cp dummy:/moonbeam/moonbeam build/moonbeam
docker rm -f dummy
- name: Use Node.js 20.x
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 20.x
node-version: 20.9.0
- name: Use pnpm
uses: pnpm/action-setup@v2
with:
version: 8
- name: Upgrade polkadotjs for moonbeam-types-bundle
run: |
cd moonbeam-types-bundle
Expand Down
Loading