-
Notifications
You must be signed in to change notification settings - Fork 4.4k
fix: builds worker new structure #8843
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
Conversation
✨ Benchmark results
⚡ Benchmark Comparison
|
{ | ||
public static function getName(): string | ||
{ | ||
return 'builds'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't it be buildFunctions
? And it is common for both functions and sites, then we need to move it out of Functions directory.
throw new \Exception('Entrypoint for your Appwrite Function is missing. Please specify it when making deployment or update the entrypoint under your function\'s "Settings" > "Configuration" > "Entrypoint".', 500); | ||
} | ||
|
||
$version = $resource->getAttribute('version', 'v2'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We probably need to add version for sites collection, since we would want to use v4
for sites
// todo: fix for sites using frameworks | ||
$key = $resource->getAttribute('runtime'); | ||
$runtime = $runtimes[$key] ?? null; | ||
if (\is_null($runtime)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sites do not have a runtime
. They have a framework
. We need to find buildRuntime
and serveRuntime
using a config file.
throw new \Exception('Deployment not found', 404); | ||
} | ||
|
||
if (empty($deployment->getAttribute('entrypoint', ''))) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Entrypoint will be empty for sites. Please add a condition to check this only for functions.
Security Scan Results for PRDocker Image Scan Results🎉 No vulnerabilities found! Source Code Scan Results🎉 No vulnerabilities found! |
What does this PR do?
(Provide a description of what this PR does and why it's needed.)
Test Plan
(Write your test plan here. If you changed any code, please provide us with clear instructions on how you verified your changes work. Screenshots may also be helpful.)
Related PRs and Issues
Checklist