Skip to content

Add latency metrics for DiscoverPollEndpoint and ACS #7609

Add latency metrics for DiscoverPollEndpoint and ACS

Add latency metrics for DiscoverPollEndpoint and ACS #7609

Workflow file for this run

name: Linux
on: [pull_request]
permissions: read-all
jobs:
unit-tests:
name: Linux unit tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: true
path: src/github.com/aws/amazon-ecs-agent
- name: get GO_VERSION
id: get-go-version
run: |
cd $GITHUB_WORKSPACE/src/github.com/aws/amazon-ecs-agent
set -eou pipefail
go_version=$(cat -e GO_VERSION)
go_version=${go_version%?}
go_version_length=${#go_version}
go_version_re="^([0-9]+\.){1,2}([0-9]+)$"
if ! [[ $go_version_length -le 10 && $go_version =~ $go_version_re ]] ; then
echo "invalid GO version"
exit 1
fi
echo "GO_VERSION=$go_version" >> $GITHUB_OUTPUT
- uses: actions/setup-go@v3
with:
go-version: ${{ steps.get-go-version.outputs.GO_VERSION }}
- name: make test
run: |
set -eoux pipefail
export GOPATH=$GITHUB_WORKSPACE
cd $GITHUB_WORKSPACE/src/github.com/aws/amazon-ecs-agent
make test-silent
make analyze-cover-profile
make test-init
make analyze-cover-profile-init