Skip to content

Add configurable gateway timeout for the platform hosted agents #322

Add configurable gateway timeout for the platform hosted agents

Add configurable gateway timeout for the platform hosted agents #322

name: CLI Codegen Check
on:
pull_request:
branches: ["main"]
paths:
- "agent-manager-service/docs/api_v1_openapi.yaml"
- "cli/pkg/clients/amsvc/**"
- "Makefile"
- ".github/workflows/cli-codegen-check.yaml"
jobs:
drift-check:
name: Regenerate & Diff
runs-on:
- codebuild-wso2_agent-manager-${{ github.run_id }}-${{ github.run_attempt }}
steps:
- name: Checkout code
uses: actions/checkout@v6
- name: Setup Go
uses: actions/[email protected]
with:
go-version-file: cli/go.mod
cache-dependency-path: cli/go.sum
- name: Install oapi-codegen
run: go install github.com/oapi-codegen/oapi-codegen/v2/cmd/[email protected]
- name: Regenerate amctl AM client
run: make amctl-gen-client
- name: Verify no drift in generated client
run: |
if ! git diff --exit-code -- cli/pkg/clients/amsvc/gen; then
echo ""
echo "::error::Generated amctl AM client is out of sync with agent-manager-service/docs/api_v1_openapi.yaml."
echo "::error::Run 'make amctl-gen-client' locally and commit the result."
exit 1
fi
- name: Build CLI against regenerated client
working-directory: ./cli
run: go build ./...
# Catches CLI artifacts that track the OpenAPI spec beyond compilation —
# e.g. the agent manifest template round-trip test — in the same PR that
# changes the spec.
- name: Run CLI tests against regenerated client
working-directory: ./cli
run: go test ./...