Fix/automation worker build - #60
Merged
Merged
Conversation
The automation-worker build was failing on CI runners with: internal compiler error: panic: runtime error: invalid memory address at /usr/local/go/src/sync/atomic/type.go:47:6 while compiling internal/api. This is a Go 1.25 inliner bug that triggers on the large internal/api package (~219 files) under runner memory pressure. Fix applies three defense-in-depth flags to the build: - GOMEMLIMIT=2GiB caps Go GC growth so peak RSS fits runner budgets - -p 2 limits parallel compile jobs (default = NumCPU, often too many) - -gcflags=all=-l disables inlining, sidestepping the crash Locally verified: docker build --no-cache produces a 56.4MB image in 71s (vs 36s with inlining); the resulting binary boots and exits cleanly from the built-in healthcheck path. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Add leafletGlobal.ts to mirror Leaflet onto window.L so classic plugins (leaflet-draw, markercluster, etc.) can find L when evaluated. Import this module in GeofenceDrawer and MarkerCluster before the plugin imports to ensure plugins don't throw `L is not defined`. Also update en.json placeholder formatting for pagination strings (noData, showing, pageOf) from JS template literals to i18n-style {{}} placeholders.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Closes #
Type of Change
Checklist
Screenshots (if applicable)