Skip to content
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

Implement old polling mechanism #5248

Merged
merged 2 commits into from
Sep 18, 2023
Merged

Conversation

waynehamadi
Copy link
Contributor

Background

Changes πŸ—οΈ

To save the reports in the correct folder, we use a class that is currently saved between API requests.
So by making it a singleton we're aware our application is stateful and
The other alternative was to pass the benchmark start time accross the app. But it blows up the scope.

PR Quality Scorecard ✨

  • Have you used the PR description template?   +2 pts
  • Is your pull request atomic, focusing on a single change?   +5 pts
  • Have you linked the GitHub issue(s) that this PR addresses?   +5 pts
  • Have you documented your changes clearly and comprehensively?   +5 pts
  • Have you changed or added a feature?   -4 pts
    • Have you added/updated corresponding documentation?   +4 pts
    • Have you added/updated corresponding integration tests?   +5 pts
  • Have you changed the behavior of Auto-GPT?   -5 pts
    • Have you also run agbenchmark to verify that these changes do not regress performance?   +10 pts

@waynehamadi waynehamadi requested a review from a team September 17, 2023 16:45
@netlify
Copy link

netlify bot commented Sep 17, 2023

βœ… Deploy Preview for auto-gpt-docs ready!

Name Link
πŸ”¨ Latest commit aa4277fe37dbfbf9805a9718a0d5600f94812204
πŸ” Latest deploy log https://app.netlify.com/sites/auto-gpt-docs/deploys/65072d31dfc5fe0008692ff9
😎 Deploy Preview https://deploy-preview-5248--auto-gpt-docs.netlify.app
πŸ“± Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@netlify
Copy link

netlify bot commented Sep 17, 2023

βœ… Deploy Preview for auto-gpt-docs ready!

Name Link
πŸ”¨ Latest commit 40a529c
πŸ” Latest deploy log https://app.netlify.com/sites/auto-gpt-docs/deploys/6508db329bdc620008fcc250
😎 Deploy Preview https://deploy-preview-5248--auto-gpt-docs.netlify.app
πŸ“± Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@waynehamadi waynehamadi force-pushed the fix-benchmark-being-stateful branch 3 times, most recently from 548b746 to 1f2a6ec Compare September 17, 2023 17:10
@waynehamadi waynehamadi requested a review from a team as a code owner September 17, 2023 17:10
@waynehamadi waynehamadi force-pushed the fix-benchmark-being-stateful branch 4 times, most recently from b9658c3 to 0245d37 Compare September 18, 2023 00:07

def execute_subprocess(command, timeout):
process = subprocess.Popen(
command,

Check failure

Code scanning / CodeQL

Uncontrolled command line Critical

This command line depends on a
user-provided value
.
@waynehamadi waynehamadi force-pushed the fix-benchmark-being-stateful branch 6 times, most recently from 80c598b to 8cfbf48 Compare September 18, 2023 03:58
@github-actions
Copy link
Contributor

This PR exceeds the recommended size of 500 lines. Please make sure you are NOT addressing multiple issues with one PR.

@github-actions
Copy link
Contributor

This PR exceeds the recommended size of 500 lines. Please make sure you are NOT addressing multiple issues with one PR.

@github-actions
Copy link
Contributor

This PR exceeds the recommended size of 500 lines. Please make sure you are NOT addressing multiple issues with one PR.

@github-actions
Copy link
Contributor

This PR exceeds the recommended size of 500 lines. Please make sure you are NOT addressing multiple issues with one PR.

@github-actions
Copy link
Contributor

This PR exceeds the recommended size of 500 lines. Please make sure you are NOT addressing multiple issues with one PR.

@github-actions
Copy link
Contributor

This PR exceeds the recommended size of 500 lines. Please make sure you are NOT addressing multiple issues with one PR.

@github-actions
Copy link
Contributor

This PR exceeds the recommended size of 500 lines. Please make sure you are NOT addressing multiple issues with one PR.

@github-actions
Copy link
Contributor

This PR exceeds the recommended size of 500 lines. Please make sure you are NOT addressing multiple issues with one PR.

@github-actions
Copy link
Contributor

This PR exceeds the recommended size of 500 lines. Please make sure you are NOT addressing multiple issues with one PR.

@github-actions
Copy link
Contributor

This PR exceeds the recommended size of 500 lines. Please make sure you are NOT addressing multiple issues with one PR.

Signed-off-by: Merwane Hamadi <merwanehamadi@gmail.com>
@github-actions
Copy link
Contributor

This PR exceeds the recommended size of 500 lines. Please make sure you are NOT addressing multiple issues with one PR.

@github-actions github-actions bot added size/xl and removed size/l labels Sep 18, 2023
@github-actions
Copy link
Contributor

This PR exceeds the recommended size of 500 lines. Please make sure you are NOT addressing multiple issues with one PR.

@waynehamadi waynehamadi changed the title Fix benchmark being stateful Implement old polling mechanism Sep 18, 2023
@waynehamadi waynehamadi merged commit c09a0e7 into master Sep 18, 2023
13 checks passed
@waynehamadi waynehamadi deleted the fix-benchmark-being-stateful branch September 18, 2023 23:23
waynehamadi added a commit that referenced this pull request Sep 19, 2023
Implement old polling mechanism

Signed-off-by: Merwane Hamadi <merwanehamadi@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

None yet

1 participant