Big-Link-Man/STORY_4.4_QUICKSTART.md

1.3 KiB

Story 4.4: Post-Deployment Verification - Quick Start

Command Usage

Verify that deployed URLs are live and returning 200 OK status:

uv run python main.py verify-deployment --batch-id <id>

Options

Option Short Description Default
--batch-id -b Project/batch ID to verify Required
--sample -s Number of random URLs to check All
--timeout -t Request timeout in seconds 10

Examples

Check all URLs in a batch

uv run python main.py verify-deployment --batch-id 10

Check random sample of 5 URLs

uv run python main.py verify-deployment --batch-id 10 --sample 5

Use custom timeout

uv run python main.py verify-deployment --batch-id 10 --timeout 30

Output

The command will:

  1. Show batch information
  2. Display each URL check result with ✓ (success) or ✗ (failed)
  3. Provide a summary of results
  4. List failed URLs with error details

Exit Codes

  • 0: All URLs returned 200 OK
  • 1: One or more URLs failed or error occurred

Notes

  • Only checks articles with deployed_url set and status='deployed'
  • Follows redirects automatically
  • No authentication required (read-only operation)
  • Can be run multiple times safely