Home
About
Blog
Products
Forum
Support
Contact
Sunbelt Computer Software
PL/B Language Development and Support
Home
About
Blog
Products
Forum
Support
Contact
a2a-java/.github/workflows/run-tck.yml at main · Sathyvs/a2a-java · GitHub
Skip to content
Navigation Menu
Sign in
Appearance settings
Platform
AI CODE CREATION
GitHub Copilot
Write better code with AI
GitHub Copilot app
Direct agents from issue to merge
MCP Registry
Integrate external tools
DEVELOPER WORKFLOWS
Actions
Automate any workflow
Codespaces
Instant dev environments
Issues
Plan and track work
Code Review
Manage code changes
Code Quality
Enforce quality at merge
APPLICATION SECURITY
GitHub Advanced Security
Find and fix vulnerabilities
Code security
Secure your code as you build
Secret protection
Stop leaks before they start
EXPLORE
Why GitHub
Documentation
Blog
Changelog
Marketplace
View all features
Solutions
BY COMPANY SIZE
Enterprises
Small and medium teams
Startups
Nonprofits
BY USE CASE
App Modernization
DevSecOps
DevOps
CI/CD
View all use cases
BY INDUSTRY
Healthcare
Financial services
Manufacturing
Government
See all industries
View all solutions
Resources
EXPLORE BY TOPIC
AI
Software Development
DevOps
Security
View all topics
EXPLORE BY TYPE
Customer stories
Events & webinars
Ebooks & reports
Business insights
GitHub Skills
SUPPORT & SERVICES
Documentation
Customer support
Community forum
Trust center
Partners
View all resources
Open Source
COMMUNITY
GitHub Sponsors
Fund open source developers
PROGRAMS
Security Lab
Maintainer Community
GitHub Stars
Archive Program
REPOSITORIES
Topics
Trending
Collections
Enterprise
ENTERPRISE SOLUTIONS
Enterprise platform
AI-powered developer platform
AVAILABLE ADD-ONS
GitHub Advanced Security
Enterprise-grade security features
Copilot for Business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Pricing
Search
/
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
Sathyvs
a2a-java
Repository navigation
Code
Pull requests
Actions
Projects
Security and quality
Insights
More
items
Files
Expand file tree
main
Breadcrumbs
a2a-java
/
.github
/
workflows
/
run-tck.yml
Copy path
View runs
Blame
More file actions
Blame
More file actions
Latest commit
History
History
History
179 lines (163 loc) · 6.41 KB
main
Breadcrumbs
a2a-java
/
.github
/
workflows
/
run-tck.yml
Copy path
Top
File metadata and controls
Code
Blame
179 lines (163 loc) · 6.41 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
name
:
Run TCK
on
:
#
Handle all branches for now
push
:
branches
:
-
main
-
0.3.x
pull_request
:
branches
:
#
Disable TCK runs on main PRs for now, since we are making spec and TCK updates for 1.0.0
#
- main
-
0.3.x
workflow_dispatch
:
env
:
#
TODO this is currently running the TCK off the main branch which included changes needed for 0.4.0
#
Tag/branch of the TCK
TCK_VERSION
:
main
#
Tell the TCK runner to report failure if the quality tests fail
A2A_TCK_FAIL_ON_QUALITY
:
1
#
Tell the TCK runner to report failure if the features tests fail
A2A_TCK_FAIL_ON_FEATURES
:
1
#
Tells uv to not need a venv, and instead use system
UV_SYSTEM_PYTHON
:
1
#
SUT_JSONRPC_URL to use for the TCK and the server agent
SUT_JSONRPC_URL
:
http://localhost:9999
#
Slow system on CI
TCK_STREAMING_TIMEOUT
:
5.0
#
Only run the latest job
concurrency
:
group
:
'
${{ github.workflow }} @ ${{ github.head_ref || github.ref }}
'
cancel-in-progress
:
true
jobs
:
tck-test
:
runs-on
:
ubuntu-latest
strategy
:
matrix
:
java-version
:
[17, 21, 25]
steps
:
-
name
:
Checkout a2a-java
uses
:
actions/checkout@v4
-
name
:
Checkout a2a-tck
uses
:
actions/checkout@v4
with
:
repository
:
a2aproject/a2a-tck
path
:
tck/a2a-tck
ref
:
${{ env.TCK_VERSION }}
-
name
:
Set up JDK ${{ matrix.java-version }}
uses
:
actions/setup-java@v5
with
:
java-version
:
${{ matrix.java-version }}
distribution
:
'
temurin
'
cache
:
maven
-
name
:
check java_home
run
:
echo $JAVA_HOME
-
name
:
Set up Python
uses
:
actions/setup-python@v5
with
:
python-version-file
:
"
tck/a2a-tck/pyproject.toml
"
-
name
:
Install uv and Python dependencies
run
:
|
pip install uv
uv pip install -e .
working-directory
:
tck/a2a-tck
-
name
:
Build with Maven, skipping tests
run
:
mvn -B install -DskipTests
-
name
:
Start SUT
run
:
SUT_GRPC_URL=${{ env.SUT_JSONRPC_URL }} SUT_REST_URL=${{ env.SUT_JSONRPC_URL }} mvn -B quarkus:dev &
#
SUT_JSONRPC_URL already set
working-directory
:
tck
-
name
:
Wait for SUT to start
run
:
|
URL="${{ env.SUT_JSONRPC_URL }}/.well-known/agent-card.json"
EXPECTED_STATUS=200
TIMEOUT=120
RETRY_INTERVAL=2
START_TIME=$(date +%s)
while true; do
# Calculate elapsed time
CURRENT_TIME=$(date +%s)
ELAPSED_TIME=$((CURRENT_TIME - START_TIME))
# Check for timeout
if [ "$ELAPSED_TIME" -ge "$TIMEOUT" ]; then
echo "❌ Timeout: Server did not respond with status $EXPECTED_STATUS within $TIMEOUT seconds."
exit 1
fi
# Get HTTP status code. || true is to reporting a failure to connect as an error
HTTP_STATUS=$(curl --output /dev/null --silent --write-out "%{http_code}" "$URL") ||
true
echo "STATUS: ${HTTP_STATUS}"
# Check if we got the correct status code
if [ "$HTTP_STATUS" -eq "$EXPECTED_STATUS" ]; then
echo "✅ Server is up! Received status $HTTP_STATUS after $ELAPSED_TIME seconds."
break;
fi
# Wait before retrying
echo "⏳ Server not ready (status: $HTTP_STATUS). Retrying in $RETRY_INTERVAL seconds..."
sleep "$RETRY_INTERVAL"
done
-
name
:
Run TCK
id
:
run-tck
timeout-minutes
:
5
run
:
|
set -o pipefail
./run_tck.py --sut-url ${{ env.SUT_JSONRPC_URL }} --category all --transports jsonrpc,grpc,rest --compliance-report report.json 2>&1 | tee tck-output.log
working-directory
:
tck/a2a-tck
-
name
:
Capture Diagnostics on Failure
if
:
failure()
run
:
|
echo "=== Capturing diagnostic information ==="
# Create diagnostics directory
mkdir -p tck/target/diagnostics
# Capture process list
echo "📋 Capturing process list..."
ps auxww > tck/target/diagnostics/processes.txt
# Find the actual Quarkus JVM (child of Maven process), not the Maven parent
# Look for the dev.jar process which is the actual application
QUARKUS_PID=$(pgrep -f "a2a-tck-server-dev.jar" || echo "")
if [ -n "$QUARKUS_PID" ]; then
echo "📊 Capturing thread dump for Quarkus JVM PID $QUARKUS_PID"
jstack $QUARKUS_PID > tck/target/diagnostics/thread-dump.txt || echo "Failed to capture thread dump"
if [ -f tck/target/diagnostics/thread-dump.txt ]; then
echo "✅ Thread dump captured ($(wc -l < tck/target/diagnostics/thread-dump.txt) lines)"
fi
else
echo "⚠️ No Quarkus JVM process found for thread dump"
echo "Available Java processes:"
ps aux | grep java | tee -a tck/target/diagnostics/processes.txt ||
true
fi
# Capture Quarkus application logs (if available)
echo "📝 Checking for Quarkus logs..."
if [ -f tck/target/quarkus.log ]; then
cp tck/target/quarkus.log tck/target/diagnostics/
echo "✅ Copied quarkus.log ($(wc -l < tck/target/quarkus.log) lines)"
fi
# Copy TCK server logs
if [ -f tck/target/tck-test.log ]; then
cp tck/target/tck-test.log tck/target/diagnostics/
echo "✅ Copied tck-test.log ($(wc -l < tck/target/tck-test.log) lines)"
fi
echo ""
echo "=== Diagnostic capture complete ==="
-
name
:
Stop Quarkus Server
if
:
always()
run
:
|
# Find and kill the Quarkus process to ensure logs are flushed
pkill -f "quarkus:dev" ||
true
sleep 2
-
name
:
Upload TCK Diagnostics
if
:
failure()
uses
:
actions/upload-artifact@v4
with
:
name
:
tck-diagnostics-java-${{ matrix.java-version }}
path
:
|
tck/target/diagnostics/
tck/a2a-tck/tck-output.log
retention-days
:
7
if-no-files-found
:
warn
-
name
:
Upload TCK Compliance Report
if
:
always()
uses
:
actions/upload-artifact@v4
with
:
name
:
tck-compliance-report-java-${{ matrix.java-version }}
path
:
tck/a2a-tck/report.json
retention-days
:
14
if-no-files-found
:
ignore
You can’t perform that action at this time.