Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .github/actions/spelling/allow.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
a2a

Check warning on line 1 in .github/actions/spelling/allow.txt

View workflow job for this annotation

GitHub Actions / Check Spelling

Ignoring entry because it contains non-alpha characters (non-alpha-in-dictionary)
A2A

Check warning on line 2 in .github/actions/spelling/allow.txt

View workflow job for this annotation

GitHub Actions / Check Spelling

Ignoring entry because it contains non-alpha characters (non-alpha-in-dictionary)
A2AFastAPI

Check warning on line 3 in .github/actions/spelling/allow.txt

View workflow job for this annotation

GitHub Actions / Check Spelling

Ignoring entry because it contains non-alpha characters (non-alpha-in-dictionary)
AAgent
Expand Down Expand Up @@ -27,7 +27,7 @@
AUser
autouse
backticks
base64url

Check warning on line 30 in .github/actions/spelling/allow.txt

View workflow job for this annotation

GitHub Actions / Check Spelling

Ignoring entry because it contains non-alpha characters (non-alpha-in-dictionary)
buf
bufbuild
cla
Expand All @@ -42,7 +42,7 @@
drivername
DSNs
dunders
ES256

Check warning on line 45 in .github/actions/spelling/allow.txt

View workflow job for this annotation

GitHub Actions / Check Spelling

Ignoring entry because it contains non-alpha characters (non-alpha-in-dictionary)
euo
EUR
excinfo
Expand All @@ -56,8 +56,8 @@
gle
GVsb
hazmat
HS256

Check warning on line 59 in .github/actions/spelling/allow.txt

View workflow job for this annotation

GitHub Actions / Check Spelling

Ignoring entry because it contains non-alpha characters (non-alpha-in-dictionary)
HS384

Check warning on line 60 in .github/actions/spelling/allow.txt

View workflow job for this annotation

GitHub Actions / Check Spelling

Ignoring entry because it contains non-alpha characters (non-alpha-in-dictionary)
ietf
importlib
initdb
Expand Down Expand Up @@ -95,10 +95,10 @@
Oneof
OpenAPI
openapiv
openapiv2

Check warning on line 98 in .github/actions/spelling/allow.txt

View workflow job for this annotation

GitHub Actions / Check Spelling

Ignoring entry because it contains non-alpha characters (non-alpha-in-dictionary)
opensource
otherurl
pb2

Check warning on line 101 in .github/actions/spelling/allow.txt

View workflow job for this annotation

GitHub Actions / Check Spelling

Ignoring entry because it contains non-alpha characters (non-alpha-in-dictionary)
poolclass
postgres
POSTGRES
Expand All @@ -118,7 +118,7 @@
respx
resub
rmi
RS256

Check warning on line 121 in .github/actions/spelling/allow.txt

View workflow job for this annotation

GitHub Actions / Check Spelling

Ignoring entry because it contains non-alpha characters (non-alpha-in-dictionary)
RUF
SECP256R1
SLF
Expand All @@ -138,3 +138,8 @@
typ
typeerror
vulnz
Podman
podman
UIDs
subuids
subgids
54 changes: 54 additions & 0 deletions itk/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
# Running ITK Tests Locally

This directory contains scripts to run Integration Test Kit (ITK) tests locally using Podman.

## Prerequisites

### 1. Install Podman

Run the following commands to install Podman and its components:

```bash
sudo apt update && sudo apt install -y podman podman-docker podman-compose
```

### 2. Configure SubUIDs/SubGIDs

For rootless Podman to function correctly, you need to ensure subuids and subgids are configured for your user.

If they are not already configured, you can add them using (replace `$USER` with your username if needed):

```bash
sudo usermod --add-subuids 100000-165535 --add-subgids 100000-165535 $USER
```

After adding subuids or if you encounter permission issues, run:

```bash
podman system migrate
```

## Running Tests

### 1. Set Environment Variable

You must set the `A2A_SAMPLES_REVISION` environment variable to specify which revision of the `a2a-samples` repository to use for testing. This can be a branch name, tag, or commit hash.

Example:
```bash
export A2A_SAMPLES_REVISION=itk-v.0.11-alpha
```

### 2. Execute Tests

Run the test script from this directory:

```bash
./run_itk.sh
```

The script will:
- Clone `a2a-samples` (if not already present).
- Checkout the specified revision.
- Build the ITK service Docker image.
- Run the tests and output results.
5 changes: 3 additions & 2 deletions itk/run_itk.sh
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,9 @@ docker run -d --name itk-service \
itk_service

# 5.1. Fix dubious ownership for git (needed for uv-dynamic-versioning)
docker exec itk-service git config --global --add safe.directory /app/agents/repo
docker exec itk-service git config --global --add safe.directory /app/agents/repo/itk
docker exec -u root itk-service git config --system --add safe.directory /app/agents/repo
docker exec -u root itk-service git config --system --add safe.directory /app/agents/repo/itk
docker exec -u root itk-service git config --system core.multiPackIndex false

# 6. Verify service is up and send post request
MAX_RETRIES=30
Expand Down
Loading