Skip to content

Commit

Permalink
Fixing Code Coverage CI (#2556)
Browse files Browse the repository at this point in the history
* disabled archived tests

* removed bun file

* updated to use nextest

* using nextest

* fix CI

* fix cargo test

* manually install binstall

* add token

* fix binstall

* fix binstall

* restoring vanilla cargo test

* unnecessary build steps

* updated moonwall to exit on fail

* removed uploading bins

* trying out bun

* added pnpm.lock back

* returned Cargo.lock

* Removed bun

* pkg vers

* restored Cargo.lock

* fix api-augment ref

* fix lockfile

* reduce cores used

* update node runtime

* nextest test

* reduce cores even more

* changing it back to bare-metal

* fix labels

* restore bare metal

* nextest

* fix nextest

* added waits

* tweaked nextest cmd

* lockfile

* update api-augment

* new moonwall

* update moonwall

* update moonwall

* updated tracing timeout

* disabled reporters

* tidied up CI job

* new moonwall

* rolled back moonwall ver

* fixed config

* restored old packages

* vitest update

* rollback versions

* restored old files

* restored PNPM ver

* restored action.yml

* updated pkgs

* added EnvVar for coverage

* fix

* added path var

* fix envVar

* fix envVar

* fix envVar

* fix envVar

* fix envVar

* fix lockfile

* pin version

* pin version

* rollback chopsticks

* rollback package.json

* restore lock file
timbrinded authored Nov 15, 2023
1 parent 365c60c commit ece2cce
Showing 5 changed files with 20 additions and 16,374 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -19,6 +19,7 @@ on:

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

jobs:
####### Check files and formatting #######
@@ -637,6 +638,7 @@ jobs:
runs-on:
labels: bare-metal
needs: ["set-tags", "build"]
timeout-minutes: 20
strategy:
matrix:
chain: ["moonbase"]
@@ -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:
31 changes: 11 additions & 20 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
@@ -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 }}
@@ -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
@@ -116,29 +119,17 @@ jobs:
- name: Clean-up possible coverage generated during builds
run: |
rm default_*.profraw
- name: Upload runtimes
uses: actions/upload-artifact@v3.1.2
with:
name: runtimes
path: runtimes
- name: Upload binary
uses: actions/upload-artifact@v3.1.2
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
8 changes: 6 additions & 2 deletions .github/workflows/upgrade-typescript-api.yml
Original file line number Diff line number Diff line change
@@ -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
16,349 changes: 0 additions & 16,349 deletions test/package-lock.json

This file was deleted.

1 change: 0 additions & 1 deletion test/tsconfig.tsbuildinfo

This file was deleted.

0 comments on commit ece2cce

Please sign in to comment.