Skip to content

Commit

Permalink
Handle coverage only being on retried tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
Kyle Dixler committed Dec 5, 2023
1 parent 4af97b4 commit c201efb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/on-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,7 @@ jobs:
&& 'macos-latest windows-latest'
|| ''
}}
# We'll only upload coverage artifacts with the periodic-coverage cron workflow.
enable-coverage: false
enable-coverage: true
secrets: inherit

prepare-release:
Expand Down
2 changes: 1 addition & 1 deletion scripts/go-test.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ def heartbeat():
os.mkdir(str(test_results_dir))

json_file = str(test_results_dir.joinpath(f'{test_run}.json'))
args = ['gotestsum', '--jsonfile', json_file, '--rerun-fails=1', '--packages', pkgs, '--'] + \
args = ['gotestsum', '--jsonfile', json_file, '--rerun-fails=1', '--rerun-fails-run-root-test', '--packages', pkgs, '--'] + \
opts
else:
args = ['go', 'test'] + args
Expand Down

0 comments on commit c201efb

Please sign in to comment.