Skip to content

fix param using underscore #632

fix param using underscore

fix param using underscore #632

# DO NOT MODIFY: THIS FILE IS GENERATED USING "make generate_ci_workflows"
name: Cluster (vtgate_godriver)
on: [push, pull_request]
env:
# This is used if we need to pin the xtrabackup version used in tests.
# Doing so here because 2.4.25 crashes in our 5.7 tests. See:
# https://jira.percona.com/browse/PXB-2756
# If this is NOT set then the latest version available will be used.
XTRABACKUP_VERSION: "2.4.24-1"
concurrency:
group: format('{0}-{1}', ${{ github.ref }}, 'Cluster (vtgate_godriver)')
cancel-in-progress: true
env:

Check failure on line 18 in .github/workflows/cluster_endtoend_vtgate_godriver.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/cluster_endtoend_vtgate_godriver.yml

Invalid workflow file

You have an error in your yaml syntax on line 18
LAUNCHABLE_ORGANIZATION: "vitess"
LAUNCHABLE_WORKSPACE: "vitess-app"
GITHUB_PR_HEAD_SHA: "${{ github.event.pull_request.head.sha }}"
jobs:
build:
name: Run endtoend tests on Cluster (vtgate_godriver)
runs-on: ubuntu-18.04
steps:
- name: Check if workflow needs to be skipped
id: skip-workflow
run: |
skip='false'
if [[ "${{github.event.pull_request}}" == "" ]] && [[ "${{github.ref}}" != "refs/heads/main" ]] && [[ ! "${{github.ref}}" =~ ^refs/heads/release-[0-9]+\.[0-9]$ ]] && [[ ! "${{github.ref}}" =~ "refs/tags/.*" ]]; then
skip='true'
fi
echo Skip ${skip}
echo "::set-output name=skip-workflow::${skip}"
- name: Set up Go
if: steps.skip-workflow.outputs.skip-workflow == 'false'
uses: actions/setup-go@v2
with:
go-version: 1.17.13
- name: Set up python
if: steps.skip-workflow.outputs.skip-workflow == 'false'
uses: actions/setup-python@v2
- name: Tune the OS
if: steps.skip-workflow.outputs.skip-workflow == 'false'
run: |
echo '1024 65535' | sudo tee -a /proc/sys/net/ipv4/ip_local_port_range
- name: Check out code
if: steps.skip-workflow.outputs.skip-workflow == 'false'
uses: actions/checkout@v2
- name: Get dependencies
if: steps.skip-workflow.outputs.skip-workflow == 'false'
run: |
sudo apt-get update
sudo apt-get install -y mysql-server mysql-client make unzip g++ etcd curl git wget eatmydata
sudo service mysql stop
sudo service etcd stop
sudo ln -s /etc/apparmor.d/usr.sbin.mysqld /etc/apparmor.d/disable/
sudo apparmor_parser -R /etc/apparmor.d/usr.sbin.mysqld
go mod download
# install JUnit report formatter
go get -u github.com/vitessio/go-junit-report@HEAD
wget "https://repo.percona.com/apt/percona-release_latest.$(lsb_release -sc)_all.deb"
sudo apt-get install -y gnupg2
sudo dpkg -i "percona-release_latest.$(lsb_release -sc)_all.deb"
sudo apt-get update
if [[ -n $XTRABACKUP_VERSION ]]; then
debfile="percona-xtrabackup-24_$XTRABACKUP_VERSION.$(lsb_release -sc)_amd64.deb"
wget "https://repo.percona.com/pxb-24/apt/pool/main/p/percona-xtrabackup-24/$debfile"
sudo apt install -y "./$debfile"
else
sudo apt-get install -y percona-xtrabackup-24
fi
- name: Setup launchable dependencies
if: steps.skip-workflow.outputs.skip-workflow == 'false'
run: |
# Get Launchable CLI installed. If you can, make it a part of the builder image to speed things up
pip3 install --user launchable~=1.0 > /dev/null
# verify that launchable setup is all correct.
launchable verify || true
# Tell Launchable about the build you are producing and testing
launchable record build --name "$GITHUB_RUN_ID" --source .
- name: Run cluster endtoend test
if: steps.skip-workflow.outputs.skip-workflow == 'false'
uses: nick-fields/retry@v2
with:
timeout_minutes: 30
max_attempts: 3
retry_on: error
command: |
source build.env
set -x
# run the tests however you normally do, then produce a JUnit XML file
eatmydata -- go run test.go -docker=false -follow -shard vtgate_godriver | tee -a output.txt | go-junit-report -set-exit-code > report.xml
- name: Print test output and Record test result in launchable
if: steps.skip-workflow.outputs.skip-workflow == 'false' && always()
run: |
# send recorded tests to launchable
launchable record tests --build "$GITHUB_RUN_ID" go-test . || true
# print test output
cat output.txt