-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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 benchmarks #4615
Draft
abnegate
wants to merge
22
commits into
main
Choose a base branch
from
feat-benchmarks
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Feat benchmarks #4615
Changes from all commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
f52e4c3
Add benchmarks base
abnegate f1abf00
Merge remote-tracking branch 'origin/master' into feat-benchmarks
abnegate f1d8403
Update workflows
abnegate dae75a6
Update contributing
abnegate 50c7c7a
Fix transitive dependency version using PHP 8.1
abnegate aaf896f
Fix tests
abnegate 84df9c5
Add test baseline
abnegate 0b45c50
Pin ubuntu version for git fixes
abnegate 3c9d4b8
test add explicit safe directories
abnegate 9335563
Add bin script to run benchmarks inside container
abnegate 7cbe827
Give +x to all bin scripts locally
abnegate 8774810
Temp skip tests for checking benchmarking run
abnegate a08cbe3
Fix function code path
abnegate caceef7
1 rev 1 iteration test
abnegate a1cd6d9
Fix baseline
abnegate dbffea2
Remove static code path
abnegate 8448e92
One rev/iter for deployment benchmark
abnegate b4bd362
Merge remote-tracking branch 'origin/master' into feat-benchmarks
abnegate 5b8c16b
Add user benchmarks
abnegate eaa10fd
Expose endpoint var for config visibility
abnegate 9dd5da4
Expose 'set' column in benchmark report
abnegate 3903b51
Make namespaces consistent with tests
abnegate File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
name: "Benchmark Update Baseline" | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
benchmark-update: | ||
name: Benchmark Update Baseline | ||
runs-on: ubuntu-22.04 | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
with: | ||
token: ${{ secrets.GH_TOKEN }} | ||
fetch-depth: 1 | ||
|
||
- name: Build & Run Appwrite | ||
run: | | ||
export COMPOSE_INTERACTIVE_NO_CLI | ||
export DOCKER_BUILDKIT=1 | ||
export COMPOSE_DOCKER_CLI_BUILD=1 | ||
export BUILDKIT_PROGRESS=plain | ||
docker pull composer:2.0 | ||
docker compose build appwrite | ||
docker compose up -d | ||
sleep 30 | ||
|
||
- name: Doctor | ||
run: docker compose exec -T appwrite doctor | ||
|
||
- name: Run Benchmark and Update Baseline | ||
run: | | ||
rm -rf .phpbench/* | ||
docker compose exec -T appwrite benchmark --tag=baseline | ||
|
||
- name: Commit updated baseline benchmark | ||
uses: stefanzweifel/git-auto-commit-action@v4 | ||
with: | ||
commit_message: Update benchmark baseline |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 2 additions & 0 deletions
2
.phpbench/storage/7e6/b/3/1348caf3016b46724f00e3c7ee03a7568cf8e46b.xml
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#!/usr/bin/env sh | ||
|
||
/usr/src/code/vendor/bin/phpbench run --config /usr/src/code/phpbench.json --report appwrite $@ |
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
This is because
phpbench
has a transitive dependency on these as version^4 || ^5 || ^6
, and picks v6 by default which requires PHP 8.1, so causes runtime errors as our docker image is PHP 8.0