aws-deadline/deadline-cloud-worker-agent/worker-agent-testing
Claude Code and agent skill by aws-deadline/deadline-cloud-worker-agent
- community
Checking that the SKILL.md file is still in the repository.
Run unit, integration, and E2E tests, linting, and formatting. Use when running tests or debugging test issues.
Install
npx vskill@latest install aws-deadline/deadline-cloud-worker-agent/worker-agent-testingSKILL.md
Deadline Cloud Worker Agent Testing
This skill provides guidance for running tests in the deadline-cloud-worker-agent repository.
Unit Tests
Run unit tests with:
Run tests across all supported Python versions:
Linting & Formatting
Integration Tests
Integration tests run locally on the host machine and cover OS/filesystem integration. If changes apply to both Windows and Linux, test on both platforms.
E2E Tests
E2E tests run the agent on EC2 instances against the live Deadline Cloud service. Tests are under test/e2e/.
Prerequisites
- Configure AWS credentials and region:
``sh export AWS_PROFILE=<your-profile> export AWS_DEFAULT_REGION=<region> ``
- Deploy the S3 DeleteBucketContents CloudFormation resource to your account:
https://github.com/aws-cloudformation/community-registry-extensions/blob/main/resources/S3_DeleteBucketContents/resource-role-prod.yaml Note the output role ARN.
- Activate
AwsCommunity::S3::DeleteBucketContentsin AWS Console → CloudFormation → Public Extensions (use the role ARN from step 2). - Ensure your account has sufficient Farm quota (limit: 2 per account).
- Deploy testing infrastructure:
``sh scripts/deploy_e2e_testing_infrastructure.sh ``
- Gather environment variable exports per OS:
``sh ./scripts/get_e2e_test_ids_from_cfn.sh --os Linux > .e2e_linux_infra.sh ./scripts/get_e2e_test_ids_from_cfn.sh --os Windows > .e2e_windows_infra.sh ``
Running E2E Tests
Using Local Wheel Files for Dependencies
You can override the openjd-sessions and/or deadline-cloud packages installed on the worker by pointing to local wheel files. This is useful when testing against unreleased or locally-built versions of those packages.
Both variables accept a path (glob patterns are supported, but must resolve to exactly one file). The wheel is copied to the worker's temp directory and installed via pip alongside the worker agent.
These can be combined with WORKER_AGENT_WHL_PATH:
Debugging Pytest Hanging
If pytest hangs after tests complete (likely due to a non-exiting Python thread), enable thread stack debugging:
Live Service Testing (Manual)
Required AWS Resources
- A Farm, Fleet, and Queue
- A Bootstrapping Role (needs
CreateWorkerandGetWorkerIamCredentialspermissions; trust policy allows your account to assume it) - A Worker/Fleet Role (trust policy allows assume-role by the service's credential-vending service principal)
- Optionally, a Queue Role
Use the helper script to create non-role resources:
Running the Agent via Docker
- Install the service model:
aws configure add-model --service-name deadline ...
> Important: Use --service-name deadline (not any other name). The container mounts ~/.aws as a > volume and symlinks it so boto3 can find the model at its default search path. This is required when > testing against internal or beta endpoints whose URLs differ from the public service. > If testing against the public Deadline Cloud service, skip this step.
- Set env vars:
``sh export FARM_ID=<farm-id> export FLEET_ID=<fleet-id> export AWS_DEFAULT_REGION=<region> # Bootstrapping role credentials: source scripts/assume_role_to_env.sh <role arn> ``
- Run the agent:
``sh scripts/run_posix_docker.sh --build ``
- Stop the agent:
``sh docker exec test_worker_agent /home/agentuser/term_agent.sh ``
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/worker-agent-testing/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/aws-deadline/deadline-cloud-worker-agent/worker-agent-testing)