- Notifications
You must be signed in to change notification settings - Fork1k
Commite4dc2d9
authored
fix: add constraint and runtime check for provisioner logs size limit (#18893)
This PR sets a constraint of 1MB on the provisioner job logs written tothe database. This is consistent with the constraint we place onworkspace agent logs:https://github.com/coder/coder/blob/4ac6be6d835dc36c242e35a26b584b784040bf28/coderd/database/dump.sql#L2030It also adds a message printed to the front end about the provisionerlog overflow, and updates the message printed to the front end whenworkspace startup logs exceed the max, as it was causing some customersto think their startup script had failed to run.1 parenteeb0bbe commite4dc2d9
File tree
38 files changed
+506
-35
lines changed- cli/testdata
- coderd
- apidoc
- database
- dbauthz
- dbfake
- dbgen
- dbmetrics
- dbmock
- migrations
- queries
- provisionerdserver
- wsbuilder
- codersdk
- docs/reference
- api
- cli
- enterprise/cli/testdata
- site/src
- api
- modules
- resources
- workspaces/WorkspaceBuildLogs
- pages/WorkspaceBuildPage
- testHelpers
38 files changed
+506
-35
lines changedOriginal file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
55 | 55 |
| |
56 | 56 |
| |
57 | 57 |
| |
58 |
| - | |
| 58 | + | |
| 59 | + | |
59 | 60 |
| |
60 | 61 |
| |
61 | 62 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
11 | 11 |
| |
12 | 12 |
| |
13 | 13 |
| |
14 |
| - | |
| 14 | + | |
15 | 15 |
| |
16 | 16 |
| |
17 | 17 |
| |
|
Lines changed: 2 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
26 | 26 |
| |
27 | 27 |
| |
28 | 28 |
| |
| 29 | + | |
29 | 30 |
| |
30 | 31 |
| |
31 | 32 |
| |
| |||
57 | 58 |
| |
58 | 59 |
| |
59 | 60 |
| |
| 61 | + | |
60 | 62 |
| |
61 | 63 |
| |
62 | 64 |
|
Some generated files are not rendered by default. Learn more aboutcustomizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more aboutcustomizing how changed files appear on GitHub.
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
4489 | 4489 |
| |
4490 | 4490 |
| |
4491 | 4491 |
| |
| 4492 | + | |
| 4493 | + | |
| 4494 | + | |
| 4495 | + | |
| 4496 | + | |
| 4497 | + | |
| 4498 | + | |
| 4499 | + | |
| 4500 | + | |
| 4501 | + | |
| 4502 | + | |
| 4503 | + | |
| 4504 | + | |
| 4505 | + | |
| 4506 | + | |
| 4507 | + | |
4492 | 4508 |
| |
4493 | 4509 |
| |
4494 | 4510 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
4341 | 4341 |
| |
4342 | 4342 |
| |
4343 | 4343 |
| |
| 4344 | + | |
| 4345 | + | |
| 4346 | + | |
| 4347 | + | |
| 4348 | + | |
| 4349 | + | |
| 4350 | + | |
| 4351 | + | |
| 4352 | + | |
| 4353 | + | |
| 4354 | + | |
| 4355 | + | |
| 4356 | + | |
| 4357 | + | |
4344 | 4358 |
| |
4345 | 4359 |
| |
4346 | 4360 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
179 | 179 |
| |
180 | 180 |
| |
181 | 181 |
| |
| 182 | + | |
182 | 183 |
| |
183 | 184 |
| |
184 | 185 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
775 | 775 |
| |
776 | 776 |
| |
777 | 777 |
| |
| 778 | + | |
778 | 779 |
| |
779 | 780 |
| |
780 | 781 |
| |
|
Some generated files are not rendered by default. Learn more aboutcustomizing how changed files appear on GitHub.
0 commit comments
Comments
(0)