Skip to content

Commit

Permalink
Address review feedback
Browse files Browse the repository at this point in the history
Signed-off-by: Matt Lord <[email protected]>
  • Loading branch information
mattlord committed Jan 8, 2024
1 parent 94576cd commit 346b17e
Showing 1 changed file with 13 additions and 8 deletions.
21 changes: 13 additions & 8 deletions .github/workflows/codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,29 +21,33 @@ jobs:
with:
token: ''
filters: |
go_files:
changed_files:
- .github/workflows/codecov.yml
- 'go/**'
- go.mod
- go.sum
- Makefile
- name: Set up Go
if: steps.changes.outputs.go_files == 'true'
if: steps.changes.outputs.changed_files == 'true'
uses: actions/setup-go@v4
with:
go-version: 1.21.5

- name: Set up python
if: steps.changes.outputs.go_files == 'true'
if: steps.changes.outputs.changed_files == 'true'
uses: actions/setup-python@v4

- name: Tune the OS
if: steps.changes.outputs.go_files == 'true'
if: steps.changes.outputs.changed_files == 'true'
run: |
sudo sysctl -w net.ipv4.ip_local_port_range="22768 65535"
# Increase the asynchronous non-blocking I/O. More information at https://dev.mysql.com/doc/refman/5.7/en/innodb-parameters.html#sysvar_innodb_use_native_aio
echo "fs.aio-max-nr = 1048576" | sudo tee -a /etc/sysctl.conf
sudo sysctl -p /etc/sysctl.conf
- name: Get dependencies
if: steps.changes.outputs.go_files == 'true'
if: steps.changes.outputs.changed_files == 'true'
run: |
export DEBIAN_FRONTEND="noninteractive"
sudo apt-get update
Expand Down Expand Up @@ -81,12 +85,12 @@ jobs:
go install golang.org/x/tools/cmd/goimports@latest
- name: Run make tools
if: steps.changes.outputs.go_files == 'true'
if: steps.changes.outputs.changed_files == 'true'
run: |
make tools
- name: Run unit tests and generate code coverage reports
if: steps.changes.outputs.go_files == 'true'
if: steps.changes.outputs.changed_files == 'true'
timeout-minutes: 45
run: |
set -exo pipefail
Expand All @@ -97,12 +101,13 @@ jobs:
export NOVTADMINBUILD=1
# Exclude endtoend tests from the coverage report.
# TODO: figure out how best to include our endtoend tests in the coverage report.
rm -rf go/test/endtoend go/*/endtoend go/vt/*/endtoend go/cmd/vttestserver
eatmydata -- make unit_test_cover
- name: Upload coverage reports to codecov.io
if: steps.changes.outputs.go_files == 'true'
if: steps.changes.outputs.changed_files == 'true'
uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

0 comments on commit 346b17e

Please sign in to comment.