Skip to content

Improvements - #11

Merged
ConnectedSystems merged 6 commits into
mainfrom
improvements
Jul 30, 2026
Merged

Improvements#11
ConnectedSystems merged 6 commits into
mainfrom
improvements

Conversation

@ConnectedSystems

Copy link
Copy Markdown
Collaborator

Upgrades ReefGuideWorker.jl to Julia 1.12 (dropping 1.11 support) and picks up the corresponding fixes from ReefGuide.jl 0.2.0, alongside a couple of worker-side reliability and deployment fixes.

  • Julia 1.12: bumped the compat bound, re-resolved the manifest, and updated both Dockerfiles' base image, the image-publish workflow, and the README setup instructions.
  • Fixed error masking in prepare_target_regional_data: a bare catch left the exception unbound and referenced a region_metadata variable that was never defined in this function, so any failure on the per-job region-load path surfaced as an opaque UndefVarError instead of the real underlying error. Also adds a test/ suite (there wasn't one before) covering this.
  • Pinned JULIA_NUM_THREADS explicitly instead of relying on -t auto, which reads the host cgroup's CPU count rather than the ECS task's actual vCPU allocation — a common source of thread over-provisioning on Fargate at fractional/low vCPU allocations.
  • Bumped the ReefGuide compat bound to 0.2.0, which carries the unbound-catch-block fix, the suitability-threshold scale bug fix, the filter_sites overlap-detection fix, and a type-instability fix in the assessment hot path.
  • Also included: excluding Revise/Infiltrator from the production sysimage build (dev-only tools that shouldn't ship).

ConnectedSystems and others added 6 commits July 16, 2026 14:55
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Drop Julia 1.11 support outright per the ReefGuide.jl 1.12 migration:
bump the julia compat bound, re-resolve the manifest, and update the
Docker base images (runtime and sysimage builder), CI image-publish
workflow, and README setup instructions accordingly.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
…lock

The bare `catch` left `e` unbound, and `region_metadata` was never
defined in this function's scope at all (only `region_id` is a
parameter) - so any failure threw a masking UndefVarError instead of
the real underlying exception, on the live per-job region-load path
used by every suitability-assessment job needing an uncached region.

Also adds a minimal Test-based test/ suite (previously nonexistent)
exercising this fix.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
`-t auto` derives the thread pool size from whatever CPU count Julia
observes on the host cgroup, not the ECS task's actual CFS quota/vCPU
allocation - a classic Fargate over-provisioning trap at fractional/low
vCPU allocations. Pin it explicitly via JULIA_NUM_THREADS instead, so
it can be set to match the task definition's real vCPU allocation.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
They are dev-only tools and must not end up baked into the production
sysimage. Also fix sandbox/start.sh to cd into its own directory first
so it works regardless of the caller's cwd.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
ReefGuide.jl 0.2.0 carries the #5, #6, #7, #4b fixes and the Julia 1.12
migration. Registration is in flight; Manifest.toml will be re-resolved
once it's available (currently still pinned to the last resolvable
0.1.12 to keep Pkg.instantiate() working in the meantime).

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@ConnectedSystems
ConnectedSystems merged commit 3379ae7 into main Jul 30, 2026
1 check passed
@ConnectedSystems
ConnectedSystems deleted the improvements branch July 30, 2026 22:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant