-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
feat(ci) Run codeflash in on PRs modifying the Python CDK #44423
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 1 Skipped Deployment
|
for i in range(len(arr)): | ||
# This is a diff | ||
for j in range(len(arr) - 1): | ||
if arr[j] > arr[j + 1]: | ||
temp = arr[j] | ||
arr[j] = arr[j + 1] | ||
arr[j + 1] = temp | ||
return arr |
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.
for i in range(len(arr)): | |
# This is a diff | |
for j in range(len(arr) - 1): | |
if arr[j] > arr[j + 1]: | |
temp = arr[j] | |
arr[j] = arr[j + 1] | |
arr[j + 1] = temp | |
return arr | |
arr.sort() |
⚡️ Codeflash found optimizations for this PR📄
|
for i in range(len(arr)): | ||
# This is a diff | ||
for j in range(len(arr) - 1): | ||
if arr[j] > arr[j + 1]: | ||
temp = arr[j] | ||
arr[j] = arr[j + 1] | ||
arr[j + 1] = temp | ||
return arr |
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.
for i in range(len(arr)): | |
# This is a diff | |
for j in range(len(arr) - 1): | |
if arr[j] > arr[j + 1]: | |
temp = arr[j] | |
arr[j] = arr[j + 1] | |
arr[j + 1] = temp | |
return arr | |
arr.sort() |
⚡️ Codeflash found optimizations for this PR📄
|
This reverts commit 6f436d4.
What
Adds a github action running Codeflash on PRs modifying the Python CDK.
Codeflash will inspect the new code and provide suggestions to improve the performance.
The github action is not required to complete before merging. There is no requirement for updating the code as per Codeflash's suggestions.
For reference:
The goal is to try the tool and see if it can provide value by suggesting performance improvement as we go.
Code review guide
The main thing I want to make sure is the GHA has the right security filters.
User Impact
There should be no user impact.
Can this PR be safely reverted and rolled back?