8000 fix: builds worker new structure by TorstenDittmann · Pull Request #8843 · appwrite/appwrite · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

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

Merged
merged 2 commits into from
Oct 22, 2024
Merged

Conversation

TorstenDittmann
Copy link
Contributor

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

  • (Related PR or issue)

Checklist

  • Have you read the Contributing Guidelines on issues?
  • If the PR includes a change to an API's metadata (desc, label, params, etc.), does it also include updated API specs and example docs?

Copy link

✨ Benchmark results

  • Requests per second: 1,230
  • Requests with 200 status code: 221,432
  • P99 latency: 0.087169484

⚡ Benchmark Comparison

Metric This PR Latest version
RPS 1,230 2,134
200 221,432 384,106
P99 0.087169484 0.077580797

{
public static function getName(): string
{
return 'builds';
Copy link
Member

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');
Copy link
Member

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)) {
Copy link
Member

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', ''))) {
Copy link
Member

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.

@vermakhushboo vermakhushboo merged commit 09ebfac into feat-sites Oct 22, 2024
4 checks passed
Copy link

Security Scan Results for PR

Docker Image Scan Results

🎉 No vulnerabilities found!

Source Code Scan Results

🎉 No vulnerabilities found!

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
0