-
Notifications
You must be signed in to change notification settings - Fork 80
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
Quieter HTTP 206 logging: #550
Quieter HTTP 206 logging: #550
Commits on Nov 21, 2024
-
Clean up and make logging quieter:
Logging all 206 partial content requests from the middleware package creates a lot of messages per ISO request. This stops the middleware logger from logging anything and lets the ISO http func handler decide what to log. In the happy path case we only log that patching happened successfully. Signed-off-by: Jacob Weinstock <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 6614d89 - Browse repository at this point
Copy the full SHA 6614d89View commit details -
Use an existing logger for sampling:
This library allows for sampling log messages that match some certain criteria. I have not implemented this in Smee, but this could allow for sampling each unique mac address in the url path. This would be as opposed to having all traffic be sampled together. This needs tested to see if it's worth it. If it's not there are other ways to do the sampling in the same way without needing to import a library. Signed-off-by: Jacob Weinstock <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for bf7043d - Browse repository at this point
Copy the full SHA bf7043dView commit details -
Remove all old manifests and use Tilt to deploy the stack via Helm and rebuild Smee and deploy a new image on changes. Signed-off-by: Jacob Weinstock <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for fb92971 - Browse repository at this point
Copy the full SHA fb92971View commit details -
There was a merge conflict and I removed needed go.sum lines. This adds them back. Signed-off-by: Jacob Weinstock <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 6e76e0f - Browse repository at this point
Copy the full SHA 6e76e0fView commit details -
Use a basic percentage base sampling:
The sampling import isn't needed for now. The most simple case of using a random number below a percentage will suffice for now. Signed-off-by: Jacob Weinstock <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 85d33bc - Browse repository at this point
Copy the full SHA 85d33bcView commit details -
Signed-off-by: Jacob Weinstock <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 984e4ba - Browse repository at this point
Copy the full SHA 984e4baView commit details -
Remove returning on 200 status codes:
This is needed for clients that request the entire ISO in one request as opposed to the 206 partial content requests. Signed-off-by: Jacob Weinstock <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for b7a3db3 - Browse repository at this point
Copy the full SHA b7a3db3View commit details -
WIP: Add test for ISO patching:
This creates a test ISO, patches it and validates the patch. I need to clean it up a bit though. Signed-off-by: Jacob Weinstock <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 99215d6 - Browse repository at this point
Copy the full SHA 99215d6View commit details -
Use go-diskfs for ISO creation and reading:
This library seems more maintained and allows for reading files in an ISO without having to mount it to the disk. Signed-off-by: Jacob Weinstock <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 36a66d9 - Browse repository at this point
Copy the full SHA 36a66d9View commit details -
This adds logging output to the test results and makes them more difficult to read. Signed-off-by: Jacob Weinstock <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for fb3d86d - Browse repository at this point
Copy the full SHA fb3d86dView commit details -
Signed-off-by: Jacob Weinstock <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for c1dfc8b - Browse repository at this point
Copy the full SHA c1dfc8bView commit details -
Signed-off-by: Jacob Weinstock <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for d959b39 - Browse repository at this point
Copy the full SHA d959b39View commit details -
Signed-off-by: Jacob Weinstock <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 82aff58 - Browse repository at this point
Copy the full SHA 82aff58View commit details -
Don't return error from randomPercentage:
I was just ignoring the error, so an error is now just returned as 0. Signed-off-by: Jacob Weinstock <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for b657398 - Browse repository at this point
Copy the full SHA b657398View commit details -
Signed-off-by: Jacob Weinstock <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 50d4f3a - Browse repository at this point
Copy the full SHA 50d4f3aView commit details -
Get the grub.cfg contents from byte slice:
This allows us to avoid having to write a file to disk in a unit test. Signed-off-by: Jacob Weinstock <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 608c5b3 - Browse repository at this point
Copy the full SHA 608c5b3View commit details -
WIP: Handle potentially dangerous range requests:
This is a work in progress to handle ranges that could cause the patching to read into memory large chunk sizes. This could cause OOM killing and/or DOS the service. Signed-off-by: Jacob Weinstock <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 361c83d - Browse repository at this point
Copy the full SHA 361c83dView commit details -
Update Tiltfile for faster iteration:
The live update makes the development loop quite fast. Signed-off-by: Jacob Weinstock <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 4b18a16 - Browse repository at this point
Copy the full SHA 4b18a16View commit details -
If the request is a partial content request, we need to validate the Content-Range header. Because we read the entire response body into memory for patching, we need to ensure that the Content-Range is within a reasonable size. For now, we are limiting the size to 500Kb. Signed-off-by: Jacob Weinstock <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for c6e17f7 - Browse repository at this point
Copy the full SHA c6e17f7View commit details -
Remove reference to my local machine. Signed-off-by: Jacob Weinstock <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 24250a6 - Browse repository at this point
Copy the full SHA 24250a6View commit details -
Signed-off-by: Jacob Weinstock <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for edd662d - Browse repository at this point
Copy the full SHA edd662dView commit details