Skip to content

Separate deployment sizes #8556

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 14 commits into from
Aug 22, 2024
Merged

Separate deployment sizes #8556

merged 14 commits into from
Aug 22, 2024

Conversation

Meldiron
Copy link
Contributor

What does this PR do?

Separate deployment and build size to 2 attributes, and allow querying one of them.

Test Plan

  • Update tests

Related PRs and Issues

x

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

Security Scan Results for PR

Docker Image Scan Results

Package Version Vulnerability Severity
py3-setuptools 68.2.2-r0 CVE-2024-6345 HIGH
py3-setuptools-pyc 68.2.2-r0 CVE-2024-6345 HIGH
github.com/docker/docker v27.1.0+incompatible CVE-2024-41110 CRITICAL

Source Code Scan Results

🎉 No vulnerabilities found!

Copy link

github-actions bot commented Aug 19, 2024

✨ Benchmark results

  • Requests per second: 1,595
  • Requests with 200 status code: 287,156
  • P99 latency: 0.082841635

⚡ Benchmark Comparison

Metric This PR Latest version
RPS 1,595 1,659
200 287,156 298,674
P99 0.082841635 0.085258148

@Meldiron Meldiron marked this pull request as ready for review August 19, 2024 14:19
Copy link

Security Scan Results for PR

Docker Image Scan Results

Package Version Vulnerability Severity
py3-setuptools 68.2.2-r0 CVE-2024-6345 HIGH
py3-setuptools-pyc 68.2.2-r0 CVE-2024-6345 HIGH
github.com/docker/docker v27.1.0+incompatible CVE-2024-41110 CRITICAL

Source Code Scan Results

🎉 No vulnerabilities found!

Copy link

Security Scan Results for PR

Docker Image Scan Results

Package Version Vulnerability Severity
py3-setuptools 68.2.2-r0 CVE-2024-6345 HIGH
py3-setuptools-pyc 68.2.2-r0 CVE-2024-6345 HIGH
github.com/docker/docker v27.1.0+incompatible CVE-2024-41110 CRITICAL

Source Code Scan Results

🎉 No vulnerabilities found!

Copy link

Security Scan Results for PR

Docker Image Scan Results

Package Version Vulnerability Severity
py3-setuptools 68.2.2-r0 CVE-2024-6345 HIGH
py3-setuptools-pyc 68.2.2-r0 CVE-2024-6345 HIGH
github.com/docker/docker v27.1.0+incompatible CVE-2024-41110 CRITICAL

Source Code Scan Results

🎉 No vulnerabilities found!

Copy link

Security Scan Results for PR

Docker Image Scan Results

Package Version Vulnerability Severity
py3-setuptools 68.2.2-r0 CVE-2024-6345 HIGH
py3-setuptools-pyc 68.2.2-r0 CVE-2024-6345 HIGH
github.com/docker/docker v27.1.0+incompatible CVE-2024-41110 CRITICAL

Source Code Scan Results

🎉 No vulnerabilities found!

Copy link

Security Scan Results for PR

Docker Image Scan Results

Package Version Vulnerability Severity
py3-setuptools 68.2.2-r0 CVE-2024-6345 HIGH
py3-setuptools-pyc 68.2.2-r0 CVE-2024-6345 HIGH
github.com/docker/docker v27.1.0+incompatible CVE-2024-41110 CRITICAL

Source Code Scan Results

🎉 No vulnerabilities found!

Comment on lines -247 to -251
$directorySize = $localDevice->getDirectorySize($tmpTemplateDirectory);
$functionsSizeLimit = (int)System::getEnv('_APP_FUNCTIONS_SIZE_LIMIT', '30000000');
if ($directorySize > $functionsSizeLimit) {
throw new \Exception('Repository directory size should be less than ' . number_format($functionsSizeLimit / 1048576, 2) . ' MBs.');
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why was this check removed?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

template is whitelist, we have full control over size and can be sure no abuse occurs here. Also, it didn't work - it was always saying 0.
Also, size wasn't being set right.. When you upload deployment, it uses tar.gz file size. but here it was using folder size before compression. It wasn't giving correct value. Getting cize from .tar.gz file instead makes implementation consistent with existing flows.

Copy link

Security Scan Results for PR

Docker Image Scan Results

Package Version Vulnerability Severity
py3-setuptools 68.2.2-r0 CVE-2024-6345 HIGH
py3-setuptools-pyc 68.2.2-r0 CVE-2024-6345 HIGH
github.com/docker/docker v27.1.0+incompatible CVE-2024-41110 CRITICAL

Source Code Scan Results

🎉 No vulnerabilities found!

Copy link

Security Scan Results for PR

Docker Image Scan Results

Package Version Vulnerability Severity
py3-setuptools 68.2.2-r0 CVE-2024-6345 HIGH
py3-setuptools-pyc 68.2.2-r0 CVE-2024-6345 HIGH
github.com/docker/docker v27.1.0+incompatible CVE-2024-41110 CRITICAL

Source Code Scan Results

🎉 No vulnerabilities found!

@christyjacob4 christyjacob4 merged commit 44174f8 into 1.6.x Aug 22, 2024
24 of 25 checks passed
@christyjacob4 christyjacob4 deleted the feat-separate-function-sizes branch August 22, 2024 12:50
@stnguyen90 stnguyen90 changed the title Feat: Separate deployment sizes Separate deployment sizes Sep 18, 2024
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