1
0
Fork 0
mirror of synced 2024-07-03 13:41:01 +12:00
Commit graph

253 commits

Author SHA1 Message Date
Christy Jacob 9dcab06015 Merge branch 'feat-functions-refactor' of github.com:appwrite/appwrite into feat-cleanup-collections 2022-01-31 16:01:46 +04:00
Bradley Schofield d2ec314ef0 Remove Search and add resourceType to indexes 2022-01-31 11:36:22 +00:00
Bradley Schofield 750deaec86 Merge branch 'feat-cleanup-executor' of https://github.com/appwrite/appwrite into feat-cleanup-executor 2022-01-31 10:58:00 +00:00
Bradley Schofield a47211e7ee Update executor.php 2022-01-31 10:57:57 +00:00
Bradley Schofield 30a567058a
Update app/executor.php
Co-authored-by: Christy Jacob <christyjacob4@gmail.com>
2022-01-31 10:47:04 +00:00
Bradley Schofield 663ce27db4
Update app/executor.php
Co-authored-by: Christy Jacob <christyjacob4@gmail.com>
2022-01-31 10:47:00 +00:00
Bradley Schofield 6b77d62e4b
Update app/executor.php
Co-authored-by: Christy Jacob <christyjacob4@gmail.com>
2022-01-31 10:46:52 +00:00
Christy Jacob fc6e7739de feat: review comments 2022-01-31 14:30:55 +04:00
Christy Jacob 4a405323cb Merge branch 'feat-functions-refactor' of github.com:appwrite/appwrite into feat-cleanup-executor 2022-01-31 14:27:27 +04:00
Bradley Schofield ca5ec8905c Merge branch 'feat-functions-refactor' into feat-add-network-variable 2022-01-31 10:19:14 +00:00
Christy Jacob f3dfec8e75 feat: fix tests 2022-01-29 04:52:06 +04:00
Christy Jacob 220a166434 feat: fix tests 2022-01-29 04:00:25 +04:00
Christy Jacob 1f95e64947 feat: replace var_dump 2022-01-28 16:30:19 +04:00
Christy Jacob 8d59a058a9 feat: put db and redis workers back in the pool 2022-01-28 16:26:58 +04:00
Christy Jacob a4e3eb07d8 feat: put db and redis workers back in the pool 2022-01-28 16:26:22 +04:00
Christy Jacob 3418c06bc8 feat: added deleteDeployment to executor 2022-01-28 05:40:53 +04:00
Christy Jacob 5125adc16b feat: use coroutines for deleting within the executor 2022-01-28 05:21:11 +04:00
Christy Jacob a82562c16e feat: add deploymentId property to builds collection 2022-01-28 03:36:30 +04:00
Christy Jacob ada65e9819 feat: update deployment status 2022-01-27 16:50:22 +04:00
Bradley Schofield d8a9b7e933 More cleaning up 2022-01-27 09:27:57 +00:00
Bradley Schofield 7d3f992a9f Add status codes 2022-01-27 09:18:48 +00:00
Bradley Schofield c94b28555d Remove Try Catch's and use global handler 2022-01-27 09:18:01 +00:00
Christy Jacob 2c91a24928 feat: fix failing tests 2022-01-27 03:19:02 +04:00
Christy Jacob f65b3e0c5b feat: sync master and fix tests 2022-01-27 02:29:49 +04:00
Christy Jacob c595f4eea9 feat: rename tag to deployments across worker 2022-01-26 17:09:32 +04:00
Christy Jacob c1d71904e8 Merge branch 'feat-functions-refactor' of github.com:appwrite/appwrite into feat-add-builds-worker 2022-01-26 16:59:24 +04:00
Bradley Schofield f3e97e4133 Fix environment variables during build 2022-01-26 10:49:02 +00:00
Bradley Schofield 4113644fba Implement network environment variable for the executor. 2022-01-26 10:23:30 +00:00
Bradley Schofield 18e1420899 Update executor.php 2022-01-26 10:10:29 +00:00
Bradley Schofield d429aa180f Fix Build Structure in Executor 2022-01-26 10:09:11 +00:00
Bradley Schofield ee2670fcd7 Merge branch 'feat-functions-refactor' into feat-cleanup-collections 2022-01-26 09:59:46 +00:00
Christy Jacob d5a4105318 feat: refactor 2022-01-26 04:02:13 +04:00
Christy Jacob ebc55e7e8e feat: refactor 2022-01-26 03:45:41 +04:00
Christy Jacob a0296d6346 feat: refactor the executor 2022-01-25 22:44:21 +04:00
Christy Jacob e2bc4e748f Merge branch 'feat-functions-refactor' of github.com:appwrite/appwrite into feat-add-builds-worker 2022-01-25 21:11:29 +04:00
Christy Jacob 3685d8ef31 Merge branch 'feat-functions-refactor' of github.com:appwrite/appwrite into feat-rename-tags 2022-01-25 21:02:48 +04:00
Bradley Schofield 3c17afbaed Cleanup Collections
- Rename functionId to resourceId on Deployments
 - Add a resourceType to Deployments
 - Remove status, buildStdout and buildStderr from deployments
 - Rename dateCreated on Builds to startTime
 - Rename time on Builds to endTime
 - Added a deploymentId to Builds
 - Added duration to builds
 - Remove Vars from Build
2022-01-25 16:51:05 +00:00
Torsten Dittmann 0763e9eeb7 Merge branch 'feat-functions-refactor' of https://github.com/appwrite/appwrite into feat-fx-review 2022-01-25 17:35:53 +01:00
Christy Jacob f6271a82bc feat: update html files 2022-01-25 04:36:35 +04:00
Christy Jacob 074a293d63 feat: refactoring the builds worker 2022-01-25 00:06:29 +04:00
Bradley Schofield 9a0b7ce142 Merge branch 'feat-functions-refactor' of https://github.com/appwrite/appwrite into feat-functions-refactor 2022-01-24 09:37:46 +00:00
Bradley Schofield 5ba45abadc Implement Some of Eldad's Changes 2022-01-24 09:37:14 +00:00
Christy Jacob abd54938ef feat: add build worker 2022-01-24 02:25:46 +04:00
Torsten Dittmann ce347c8e54 fix: permissions to 0777 for functions 2022-01-23 22:01:20 +01:00
Torsten Dittmann 1e0578cfba fix: chmod issues in tmp directory with linux 2022-01-23 21:44:45 +01:00
Eldad Fux 029e1dc6f6 Hiding port 8080 2022-01-23 19:21:23 +02:00
Eldad Fux acb4198aa9 Review 2022-01-23 18:34:07 +02:00
Torsten Dittmann a794087a86 fix: increase docker connections 2022-01-21 19:56:37 +01:00
Torsten Dittmann 12db6816f0 test: connection pool for docker socket 2022-01-21 15:33:58 +01:00
Torsten Dittmann c2c53cac94
Apply suggestions from code review 2022-01-21 12:21:20 +01:00
Torsten Dittmann 9ab6b695e6 feat: refactor some of the executor 2022-01-21 11:42:12 +01:00
Bradley Schofield 2e3c904385 Fix a few bugs 2022-01-20 14:41:27 +00:00
Bradley Schofield 4286e8d70b Fix database stuff 2022-01-20 11:34:50 +00:00
Matej Baco 0694d53826 Added more logging 2022-01-20 11:31:04 +01:00
Matej Baco a3b5cfb2f5 Import bug fix 2022-01-19 10:33:48 +01:00
Matej Baco 5fd5a3261e Implemented proper logger for executor 2022-01-18 17:55:53 +01:00
Bradley Schofield 8d92d32112 Update executor.php 2022-01-17 15:24:19 +00:00
Bradley Schofield 76280b0d23 Fix permission bug 2022-01-17 15:23:35 +00:00
Bradley Schofield a10d099789 Fix fallback values for executor environment variables 2022-01-17 14:04:53 +00:00
Bradley Schofield 0e5f9b138a Update executor.php 2022-01-17 10:18:31 +00:00
Bradley Schofield 15dff8cbb6 Fix wierd swoole bug 2022-01-17 10:09:29 +00:00
Bradley Schofield 0b2c4832f5 Update to handle runtimes becoming more generic 2022-01-11 14:05:50 +00:00
Bradley Schofield e866a352a7 Implement Suggestions 2022-01-10 14:13:23 +00:00
Bradley Schofield 58e68088fa Remove 'pending' build state, update version numbers 2022-01-10 14:00:11 +00:00
Bradley Schofield 58c7871388 Fix Merge Issues 2022-01-06 09:45:56 +00:00
Bradley Schofield 84aeddf188 Remove Unneeded Code 2021-12-23 09:51:42 +00:00
Bradley Schofield 4f5b47e258 Remove debug print 2021-12-10 14:34:16 +00:00
Bradley Schofield 3c26a08202 Change exitCode to statusCode and move build to tag create
Change exitCode to statusCode and move build to tag create instead of tag deploy
2021-12-10 10:43:56 +00:00
Bradley Schofield 37da3c5651 Implement Automatic Deploy
+ Implemented Automatic Deploy
+ Tags will now build automatically
+ You can now restart builds that failed
+ Builds now have their own storage device
+ Added a retry build endpoint
2021-12-08 15:08:53 +00:00
Bradley Schofield 885f57438d Fix Tests 2021-12-07 10:42:33 +00:00
Bradley Schofield e499af30b2 Move and update changelog
+ Improve Syncronous function error handling
2021-12-06 15:53:36 +00:00
Bradley Schofield f30169dcc4 Move Build data into it's own collection
Move Build data into it's own collection
2021-12-06 14:12:41 +00:00
Bradley Schofield e64bb9faf5 Add Build Timeout EnvVar 2021-11-30 09:39:50 +00:00
Bradley Schofield 037420e0bc Add new tests for server side
+ Added new tests for serverside
+ Updated the example for 'status' for the SyncExecution Model
2021-11-24 10:01:43 +00:00
Bradley Schofield a0c841d13f Rollback to Docker CLI 2021-11-22 09:27:08 +00:00
Bradley Schofield 40d1d1b445 Update executor.php 2021-11-19 11:21:51 +00:00
Bradley Schofield 2e2ff76eab Start working on moving back to DockerAPI 2021-11-18 13:44:45 +00:00
Bradley Schofield c348a71407 Get tests passing again 2021-11-15 02:18:53 +00:00
Bradley Schofield 214f103984 Handle rootless runtimes
+ Update to handle using rootless runtimes for build and launch
+ also updated swoole to 4.8
2021-10-20 12:31:38 +01:00
Bradley Schofield 01ecbe60e4 Executor now marks all processing executions as failed on shutdown
Executor now marks all processing executions as failed on shutdown
2021-10-15 12:40:20 +01:00
Bradley Schofield 7649a2c677 Make new database work with the executor
+ New DB now works with executor
+ events now work with new execution model
2021-10-14 10:37:00 +01:00
Bradley Schofield efaa2227e0 start fixing bubgs 2021-10-12 12:54:50 +01:00
Bradley Schofield 4e5ac770ff Improve Executor reliability 2021-09-30 15:36:09 +01:00
Bradley Schofield 7adee918d1 Fix automatic launch retry not working 2021-09-28 15:58:10 +01:00
Bradley Schofield 8e7618fabe Update Tests to account for build steps
+ Also update curl timeout error code for Swoole Hook
2021-09-28 14:29:41 +01:00
Bradley Schofield e51295db49 Error any execution if the tag is still being built. 2021-09-28 10:09:55 +01:00
Bradley Schofield f7910295f2 Use Docker CLI instead of Docker API due to Swoole Hook Bug 2021-09-27 13:39:20 +01:00
Bradley Schofield 23355cd681 Update executor.php 2021-09-24 11:53:04 +01:00
Bradley Schofield e4a8f96ce5 Change authentication method 2021-09-24 11:46:41 +01:00
Bradley Schofield 502ff3e501
Merge branch 'the-executor-poc' into executor-runtime-key-implementation 2021-09-22 16:37:30 +01:00
Bradley Schofield 73722b517f Update executor.php 2021-09-22 16:23:31 +01:00
Bradley Schofield 28a9e1e290 Revert "Add authentication between executor and runtimes"
This reverts commit 9e083791db.
2021-09-22 16:13:59 +01:00
Bradley Schofield 6252b5d0df Use Swoole Table for activeFunctions list 2021-09-22 16:13:41 +01:00
Bradley Schofield 9e083791db Add authentication between executor and runtimes 2021-09-22 12:27:45 +01:00
Bradley Schofield 715a8ac729 Add authentication between appwrite and the executor
+ Add authentication between appwrite and the executor
+ Add built status and build stdout/stderr to tag for later use
+ Changes to executor to implement new build stages
2021-09-22 11:03:04 +01:00
Bradley Schofield fc17e12547 Get Rust Execution working 2021-09-20 16:52:12 +01:00
Bradley Schofield da8b4bb9f9 Add build step and more function cleanup 2021-09-13 11:50:45 +01:00
Bradley Schofield 543edc9287 Improvements to executor and UI 2021-09-06 13:43:23 +01:00
Bradley Schofield bca326dc8d Improvements to executor
- Executor now loads runtimes from php-runtimes package
- Executor now handles timeouts correctly
- Executor can now shutdown and remove containers before shutting down itself preventing a `docker-compose stop` failure due to active network endpoints.
- Fixed a issue with JWT's not working
- Improved general executor reliability
- Tests now pass!
2021-09-06 01:37:20 +01:00
Bradley Schofield 35ed296b75 Add Deno and update UI 2021-09-01 10:48:56 +01:00
Bradley Schofield f5e1ce01b7 More Changes 2021-08-27 11:55:22 +01:00
Bradley Schofield 48d57aa38e aaaaa 2021-08-27 10:21:28 +01:00
Bradley Schofield 82b7e18033 First Test 2021-08-24 10:32:27 +01:00