Repository navigation
feat: Levelrail v1.5.21, stability, small server speed, sleep and build guardrails - #1875
Conversation
…tor warns on unmarked ones
|
Caution Review failedThe pull request is closed.
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
… a remote terminal The echoed command followed by the first prompt could satisfy the wait while the shell had not yet run it, so Close raced the shell's raw mode and lost Ctrl-D. Refs #1622
…input echo The echoed command already contained the marker, so the check passed without tty -s running. Refs #1658
The growth is the toolchain, not the route builder. Go 1.27 encoding/json (json/v2) allocates a copy of every struct held in an interface, so each route pays two extra allocations in marshal. A 500 route probe shows 5 allocs on go1.26.10 and 2006 on go1.27. JSON output bytes are unchanged.
…ch timed out On timeout the client's TLS close notify reaches the server before the socket shuts, so the server could finish the chunked body and the cut response read as complete.
…figured The refresh interval was parsed from the environment on each match, and an unset value builds a parse error. It is now read only when the list rebuilds.
…im test The test still expected a db- volume to be reclaimable. It now reclaims an app volume, expects a conflict for the database one, and the docs say so.
…quests A team scoped apps list with a query loaded all services in full for the search access check and again for the stack sharing check. Both only need the name and app id. At 1000 apps the local apps list p95 goes from 21ms to 14ms, and allocation drops accordingly.
| if err := json.Unmarshal(body, &sent); err != nil { | ||
| return out, err | ||
| } | ||
| base := toRuleResource(prev) |
There was a problem hiding this comment.
A threshold-only update can permanently disable a rule while its notification channel is paused. GetRule returns Enabled=false when the channel is disabled. toRuleResource(prev) keeps that computed value, and SaveRule writes it into the rule even though the caller omitted enabled. Turning the channel back on then leaves the rule disabled.
Build the merge base from the rule's saved settings rather than its computed delivery state.
Prompt To Fix With AI
This is a comment left during a code review.
Path: internal/api/alerts_update_merge.go
Line: 38
Comment:
**Paused alerts stay disabled**
A threshold-only update can permanently disable a rule while its notification channel is paused. `GetRule` returns `Enabled=false` when the channel is disabled. `toRuleResource(prev)` keeps that computed value, and `SaveRule` writes it into the rule even though the caller omitted `enabled`. Turning the channel back on then leaves the rule disabled.
Build the merge base from the rule's saved settings rather than its computed delivery state.
---
For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.| What this template needs: | ||
|
|
||
| - Passwords and keys are generated at deploy time (`screego`): SCREEGO_SECRET. | ||
| - No health check, so a deploy is judged by the process starting (`screego`). |
There was a problem hiding this comment.
Screego readiness guidance is wrong
This page says deployment only checks whether the process starts, but the template now declares an HTTP check through x-levelrail-healthcheck. resolveServiceHealth prefers that check over the disabled container check, so Levelrail still checks /health before the service is ready. Operators following this guidance could misread why a running service is still waiting.
Update this page and the generated requirements in catalog-index.json to describe the external HTTP check.
Prompt To Fix With AI
This is a comment left during a code review.
Path: docs/self-host/screego.mdx
Line: 37
Comment:
**Screego readiness guidance is wrong**
This page says deployment only checks whether the process starts, but the template now declares an HTTP check through `x-levelrail-healthcheck`. `resolveServiceHealth` prefers that check over the disabled container check, so Levelrail still checks `/health` before the service is ready. Operators following this guidance could misread why a running service is still waiting.
Update this page and the generated requirements in `catalog-index.json` to describe the external HTTP check.
---
For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.
Summary
Levelrail 1.5.21: stability first (proxy reloads, templates, settings overwrites, backups), then small server speed, sleep for idle apps and databases, build guardrails and the build server.
Change ID and tasks
Added / Changed / Removed / Fixed
Surfaces touched
Migrations
Runtime settings added
Feature flags and status
Security review
Basic auth change reviewed.
Behaviour changes and upgrade notes
Existing OpenProject installs need a manual volume copy, see docs/compose-apps.md.
Not verified / needs a real host
Basic auth reload behaviour and template changes on a real host (SiteWatcher was run locally).
Tests run
Targeted tests per change.
Rollback
Revert. The migration is forward only.
Confidence Score: 4/5

Fix the alert enabled-state bug before merging; an unrelated edit can leave alerts permanently disabled.
Findings
Fix with agent prompt
Summary
This PR improves alert editing, backup behavior, proxy stability, and template storage.
Acknowledged by
thegdsks: existing OpenProject installs need a manual volume copy; the backup skip reason has no dashboard view yet; basic-auth reloads and template changes still need real-host checks.Diagram
%%{init: {'theme': 'neutral'}}%% flowchart TD A[CLI or dashboard sends selected fields] --> B[Load existing rule] B --> C[Merge sent fields] C --> D[Check ownership and references] D --> E[Save rule] E --> F[Return masked destination] G[Disabled notification channel] -->|Makes loaded Enabled false| B C -->|If enabled was omitted| H[Computed false becomes saved false]Reviews (1) · Last reviewed commit: "perf: stop decoding every app row twice ..." · Reviewed by Greptile