archive more relevant coverage for conformance tests (#3176)

This commit is contained in:
Will 2020-08-21 08:41:35 -07:00 committed by GitHub
parent 6ed1c9e905
commit a03931daab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -146,10 +146,6 @@ jobs:
description: | description: |
Upload coverage report to https://codecov.io/. Requires the codecov API token to be Upload coverage report to https://codecov.io/. Requires the codecov API token to be
set as an environment variable for private projects. set as an environment variable for private projects.
skip-conformance:
type: string
default: "0"
description: "Skip conformance tests (default: no)."
executor: << parameters.executor >> executor: << parameters.executor >>
steps: steps:
- install-deps - install-deps
@ -165,7 +161,7 @@ jobs:
name: go test name: go test
environment: environment:
LOTUS_TEST_WINDOW_POST: << parameters.winpost-test >> LOTUS_TEST_WINDOW_POST: << parameters.winpost-test >>
SKIP_CONFORMANCE: << parameters.skip-conformance >> SKIP_CONFORMANCE: "1"
command: | command: |
mkdir -p /tmp/test-reports/<< parameters.test-suite-name >> mkdir -p /tmp/test-reports/<< parameters.test-suite-name >>
mkdir -p /tmp/test-artifacts mkdir -p /tmp/test-artifacts
@ -198,6 +194,24 @@ jobs:
<<: *test <<: *test
test-conformance: test-conformance:
<<: *test <<: *test
steps:
- install-deps
- prepare
- run:
command: make deps lotus
no_output_timeout: 30m
- download-params
- run:
name: go test
environment:
SKIP_CONFORMANCE: "0"
command: |
mkdir -p /tmp/test-artifacts
go test -v -coverpkg ./chain/vm/,github.com/filecoin-project/specs-actors/... -coverprofile=/tmp/conformance.out ./conformance/
go tool cover -html=/tmp/conformance.out -o /tmp/test-artifacts/conformance-coverage.html
no_output_timeout: 30m
- store_artifacts:
path: /tmp/test-artifacts/conformance-coverage.html
build-macos: build-macos:
description: build darwin lotus binary description: build darwin lotus binary
@ -333,16 +347,13 @@ workflows:
- test: - test:
codecov-upload: true codecov-upload: true
test-suite-name: full test-suite-name: full
skip-conformance: "1"
- test-window-post: - test-window-post:
go-test-flags: "-run=TestWindowedPost" go-test-flags: "-run=TestWindowedPost"
skip-conformance: "1"
winpost-test: "1" winpost-test: "1"
test-suite-name: window-post test-suite-name: window-post
- test-short: - test-short:
go-test-flags: "--timeout 10m --short" go-test-flags: "--timeout 10m --short"
test-suite-name: short test-suite-name: short
skip-conformance: "1"
filters: filters:
tags: tags:
only: only:
@ -350,7 +361,6 @@ workflows:
- test-conformance: - test-conformance:
test-suite-name: conformance test-suite-name: conformance
packages: "./conformance" packages: "./conformance"
skip-conformance: "0"
- build-debug - build-debug
- build-all: - build-all:
requires: requires: