|
73 | 73 |
|
74 | 74 | - name: Tune the OS |
75 | 75 | if: steps.changes.outputs.end_to_end == 'true' |
76 | | - run: | |
77 | | - # Limit local port range to not use ports that overlap with server side |
78 | | - # ports that we listen on. |
79 | | - sudo sysctl -w net.ipv4.ip_local_port_range="22768 65535" |
80 | | -
|
81 | | - # 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 |
82 | | - echo "fs.aio-max-nr = 1048576" | sudo tee -a /etc/sysctl.conf |
83 | | - sudo sysctl -p /etc/sysctl.conf |
84 | | -
|
85 | | - # Don't waste a bunch of time processing man-db triggers |
86 | | - echo "set man-db/auto-update false" | sudo debconf-communicate |
87 | | - sudo dpkg-reconfigure man-db |
| 76 | + uses: ./.github/actions/tune-os |
88 | 77 |
|
89 | 78 | - name: Get dependencies |
90 | 79 | if: steps.changes.outputs.end_to_end == 'true' |
|
108 | 97 | sudo dpkg -i libtinfo5_6.3-2ubuntu0.1_amd64.deb |
109 | 98 |
|
110 | 99 | # Install everything else we need, and configure |
111 | | - sudo apt-get -qq install -y mysql-server mysql-shell mysql-client make unzip g++ etcd-client etcd-server curl git wget eatmydata xz-utils libncurses6 |
| 100 | + sudo apt-get -qq install -y mysql-server mysql-shell mysql-client make unzip g++ etcd-client etcd-server curl git wget xz-utils libncurses6 |
112 | 101 |
|
113 | 102 | sudo service mysql stop |
114 | 103 | sudo service etcd stop |
@@ -145,7 +134,7 @@ jobs: |
145 | 134 | # Some of these tests require specific locales to be installed. |
146 | 135 | # See https://github.com/cncf/automation/commit/49f2ad7a791a62ff7d038002bbb2b1f074eed5d5 |
147 | 136 | # run the tests however you normally do, then produce a JUnit XML file |
148 | | - eatmydata -- go run test.go -docker=false -follow -shard backup_pitr_mysqlshell | tee -a output.txt | go-junit-report -set-exit-code > report.xml |
| 137 | + go run test.go -docker=false -follow -shard backup_pitr_mysqlshell | tee -a output.txt | go-junit-report -set-exit-code > report.xml |
149 | 138 |
|
150 | 139 | - name: Record test results in launchable if PR is not a draft |
151 | 140 | if: github.event_name == 'pull_request' && github.event.pull_request.draft == 'false' && steps.changes.outputs.end_to_end == 'true' && github.base_ref == 'main' && !cancelled() |
|
0 commit comments