-
-
Notifications
You must be signed in to change notification settings - Fork 393
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
Migrate old logs to new database schema #1828
Conversation
closes #1801 closes #1815 closes #1144 closes #983 closes #557 closes #1827 regression of #1791 # TODO - [x] adjust log model - [x] add migration for logs - [x] send log line via grpc using step-id - [x] save log-line to db - [x] stream log-lines to UI - [x] use less structs for log-data - [x] make web UI work - [x] display logs loaded from db - [x] display streaming logs - [ ] ~~make migration work~~ -> dedicated pull (#1828) # TESTED - [x] new logs are stored in database - [x] log retrieval via cli (of new logs) works - [x] log streaming works (tested via curl & webui) - [x] log retrieval via web (of new logs) works --------- Co-authored-by: 6543 <6543@obermui.de>
sqlite manual migration test (perPage=500):
|
sqlite manual migration test (perPage=5000):
|
sqlite manual migration test (perPage=500):
|
Codecov ReportPatch coverage:
❗ Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more. Additional details and impacted files@@ Coverage Diff @@
## master #1828 +/- ##
==========================================
+ Coverage 39.18% 39.34% +0.16%
==========================================
Files 172 173 +1
Lines 10525 10615 +90
==========================================
+ Hits 4124 4177 +53
- Misses 6134 6157 +23
- Partials 267 281 +14
☔ View full report in Codecov by Sentry. |
ok did make so that ram requirement stays at 60Mb |
Deployment of preview was successful: https://woodpecker-ci-woodpecker-pr-1828.surge.sh |
mariadb manual migration test (perPage=100):
|
mariadb manual migration test (perPage=100):
|
Co-authored-by: qwerty287 <80460567+qwerty287@users.noreply.github.com>
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.
Looking at the code, this seems fine to me. I didn't test it yet though. If you can wait for the next days, I can do this, but I'm also fine with not testing as it looks like you did that already pretty much.
migration extracted from #1802
address new models based on #1802