Skip to content

[AISOS-2311] Add an end-to-end Forge smoke-test command - #241

Merged
eshulman2 merged 2 commits into
forge-sdlc:mainfrom
forgeSmith-bot:forge/aisos-2311
Aug 9, 2026
Merged

[AISOS-2311] Add an end-to-end Forge smoke-test command#241
eshulman2 merged 2 commits into
forge-sdlc:mainfrom
forgeSmith-bot:forge/aisos-2311

Conversation

@forgeSmith-bot

@forgeSmith-bot forgeSmith-bot commented Jul 30, 2026

Copy link
Copy Markdown
Collaborator

Summary

This PR introduces a new forge smoke-test CLI command that verifies a Forge deployment's core runtime path end-to-end without requiring a Jira ticket or modifying remote resources. By executing a diagnostic graph, initializing a temporary workspace, and running a real container agent task, this smoke-test command ensures runtime readiness, service connectivity, and correct configuration.

Changes

Core & CLI Implementation

  • Created src/forge/smoke_test.py: Implemented a three-stage smoke-test runner that performs diagnostic graph execution, checks container/rootless Podman connectivity, initializes a disposable workspace, and runs a containerized agent to produce and validate diagnostic outputs.
  • Modified src/forge/cli.py: Registered the async smoke-test subcommand routing to run_smoke_test.

Testing & Documentation

  • Created tests/unit/test_smoke_test.py: Added five high-coverage unit tests covering successful execution, Stage 1 graph failures, Stage 2 missing container/environment dependencies, Stage 3 execution failures, and cleanup.
  • Modified docs/dev/testing.md: Added CLI usage examples and detailed descriptions of the three verification stages.

Implementation Notes

  • Workspace Cleanup: The runner works inside a secure, temporary directory generated by tempfile.TemporaryDirectory. All resources are cleaned up inside a finally block to prevent disk bloat.
  • Isolated Operations: The smoke test performs all actions within a disposable workspace and is configured not to trigger remote Git branches, commits, PRs, or Jira comments.
  • Test Isolation: Unit tests utilize unittest.mock to safely mock environment configurations and ContainerRunner.run execution paths, verifying graceful handling of missing dependencies, stage failures, and cleanup without exposing external secrets or relying on a running container environment.

Testing

  • Unit Testing: Verified five test cases in tests/unit/test_smoke_test.py covering successful path, stage failures, environment dependency issues, and cleanup behavior.
  • CLI Verification: Verified CLI option registration, argument parsing, and command execution flow.

Related Tickets


Generated by Forge SDLC Orchestrator

forgeSmith-bot and others added 2 commits July 30, 2026 13:56
Detailed description:
- Implemented an end-to-end smoke-test runner under  that verifies diagnostic graph execution, workspace/git/podman setup, and container agent run.
- Registered the async subcommand and options in .
- Added unit tests covering successes, graph failures, missing container system dependencies, agent failures, and cleanup in .
- Updated CLI testing documentation in .

Closes: AISOS-2311
@eshulman2 eshulman2 closed this Aug 9, 2026
@eshulman2 eshulman2 reopened this Aug 9, 2026
@eshulman2
eshulman2 merged commit 8487fcd into forge-sdlc:main Aug 9, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants