Skip to content

nit: do not raise on codebase parse #537

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 18, 2025
Merged
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
1 change: 0 additions & 1 deletion src/codegen/runner/sandbox/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,17 +44,16 @@
repo_config = RepoConfig(
name=config.repository.repo_name,
full_name=config.repository.full_name,
base_dir=os.path.dirname(config.repository.repo_path),

Check failure on line 47 in src/codegen/runner/sandbox/server.py

View workflow job for this annotation

GitHub Actions / mypy

error: Value of type variable "AnyOrLiteralStr" of "dirname" cannot be "str | None" [type-var]
language=ProgrammingLanguage(config.repository.language.upper()),

Check failure on line 48 in src/codegen/runner/sandbox/server.py

View workflow job for this annotation

GitHub Actions / mypy

error: Item "None" of "str | None" has no attribute "upper" [union-attr]
)
runner = SandboxRunner(repo_config=repo_config, access_token=config.secrets.github_token)

Check failure on line 50 in src/codegen/runner/sandbox/server.py

View workflow job for this annotation

GitHub Actions / mypy

error: Argument "access_token" to "SandboxRunner" has incompatible type "str | None"; expected "str" [arg-type]
server_info.warmup_state = WarmupState.PENDING
await runner.warmup()
server_info.warmup_state = WarmupState.COMPLETED
except Exception:
logger.exception("Failed to build graph during warmup")
server_info.warmup_state = WarmupState.FAILED
raise

logger.info("Sandbox fastapi server is ready to accept requests")
yield
Expand Down
Loading