Skip to content

fix(deploy): don't require main.py for partner service deploys - #97

Merged
jonoirwinrsa merged 1 commit into
mainfrom
fix/partner-skip-mainpy-check
Aug 12, 2026
Merged

fix(deploy): don't require main.py for partner service deploys#97
jonoirwinrsa merged 1 commit into
mainfrom
fix/partner-skip-mainpy-check

Conversation

@jonoirwinrsa

Copy link
Copy Markdown
Contributor

Problem

Partner service deploys skip file loading, zipping and upload entirely — no local file is ever packaged. Validation demanded main.py anyway, so a pure partner cerebrium.toml fails with main.py not found and the user has to touch main.py to get past a check that never applies.

Hit while testing #74 against a real Deepgram deploy.

Changes

  • Exempt configs with a partner service from the main.py check in Validate.
  • Add validator_test.go covering partner-only, partner + custom runtime, and the unchanged cortex cases.

Verification

go test ./... and go vet ./... green. Confirmed against a real project directory containing only cerebrium.toml: the pre-fix binary exits 1 with main.py not found, this branch reaches the deployment confirmation screen.

🤖 Generated with Claude Code

Partner service deploys skip file loading, zipping and upload entirely,
so main.py is never packaged or used. Validation still demanded it,
making a pure partner cerebrium.toml fail with "main.py not found"
unless the user created an unused stub file.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@jonoirwinrsa
jonoirwinrsa merged commit f996f4e into main Aug 12, 2026
4 checks passed
@jonoirwinrsa
jonoirwinrsa deleted the fix/partner-skip-mainpy-check branch August 12, 2026 11:14
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