fix(deps): update opentelemetry-go monorepo to v1.37.0 #174
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test Agent Startup | |
on: | |
push: | |
branches: | |
- 'main' | |
pull_request: | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
agent: | |
- docker-agent | |
- kubernetes-agent | |
permissions: | |
contents: read | |
steps: | |
- name: Checkout | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
- name: Setup Go | |
uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0 | |
with: | |
go-version-file: 'go.mod' | |
check-latest: true | |
cache-dependency-path: | | |
go.sum | |
- name: Build Agent | |
run: make "build-${{ matrix.agent }}" | |
- name: Test Agent Startup | |
run: | | |
echo "run ${{ matrix.agent }} with timeout $TIMEOUT" | |
if timeout "$TIMEOUT" bash -c ' | |
{ | |
while read -r line; do | |
echo "agent> $line" | |
if [[ "$line" == *"agent is starting"* ]]; then | |
exit 0 | |
fi | |
done | |
} < <("./dist/${{ matrix.agent }}" 2>&1) | |
echo "Agent quit unexpectedly" | |
exit 1 | |
'; then | |
echo "Agent startup successful" | |
exit 0 | |
else | |
echo "Agent did not start within $TIMEOUT or quit unexpectedly" | |
exit 1 | |
fi | |
env: | |
TIMEOUT: '10s' | |
DISTR_TARGET_ID: '95a53f00-a01e-414e-98fd-9e1cbf3553d9' | |
DISTR_TARGET_SECRET: '00000000000000000000000000000000' | |
DISTR_LOGIN_ENDPOINT: http://localhost:8080/api/v1/agent/login | |
DISTR_MANIFEST_ENDPOINT: http://localhost:8080/api/v1/agent/manifest | |
DISTR_RESOURCE_ENDPOINT: http://localhost:8080/api/v1/agent/resources | |
DISTR_STATUS_ENDPOINT: http://localhost:8080/api/v1/agent/status | |
DISTR_METRICS_ENDPOINT: http://localhost:8080/api/v1/agent/metrics | |
DISTR_LOGS_ENDPOINT: http://localhost:8080/api/v1/agent/logs | |
DISTR_INTERVAL: 5s | |
DISTR_REGISTRY_HOST: localhost:8585 |