chore: align REF configuration and migrate to SemVer#7
Open
lewisjared wants to merge 13 commits intomainfrom
Open
chore: align REF configuration and migrate to SemVer#7lewisjared wants to merge 13 commits intomainfrom
lewisjared wants to merge 13 commits intomainfrom
Conversation
- Set REF_CONFIGURATION=/ref for both API and worker defaults - Add REF_SOFTWARE_ROOT=/ref/software to worker defaults - Remove REF_DATABASE_URL from API defaults (read from ref.toml) - Deployments can use volume subPath mounts to select different config directories without overriding REF_CONFIGURATION
- Set REF_CONFIGURATION=/ref for both API and worker defaults - Add REF_SOFTWARE_ROOT=/ref/software to worker defaults - Remove REF_DATABASE_URL from API defaults (read from ref.toml) - Add minimal CI test that verifies workers, dragonfly, and flower start healthy with just env var config and no pre-existing state
- API image tag: main -> v0.2.0 - REF_CONFIGURATION: /app/.ref -> /ref - Remove REF_DATABASE_URL from API env docs (read from ref.toml) - Worker image tag: v0.11.1 -> v0.12.3 - Add REF_CONFIGURATION and REF_SOFTWARE_ROOT to worker env docs - OCI install example: 0.11.1 -> 0.12.3
The .bumpversion.toml had current_version="2026.03.0" but pyproject.toml and versions.toml were at "2026.02.0", causing the bump workflow to fail.
Unify repo and helm chart versioning under a single SemVer scheme. The chart version tracks the AFT repo release, while appVersion tracks the climate-ref core version independently. - Rewrite .bumpversion.toml for SemVer (major/minor/patch) - Delete unused .bumpversion-helm.toml - Update all version references from 2026.02.0 to 0.1.0 - Bump frontend image to v0.2.1 - Pin docker-compose images to v0.12.3 instead of :main - Update bump workflow options to patch/minor/major - Bump bump-my-version to >=1.3.0 - Update project description and classifiers
- API template falls back to defaults.volumes/volumeMounts when api-specific values are not set, removing duplication in CI values - Re-enable API in minimal deployment test (fixed in frontend v0.2.1) - Remove unused jq install from packaging workflow - Fix stray comment character in __init__.py
Empty list `[]` is truthy in Helm templates, preventing `| default` fallback from triggering. Remove to match the pattern used by the API section.
Flower image uses a named user which fails runAsNonRoot verification. Set runAsUser: 1000 in flower and worker defaults so the chart works out of the box without per-deployment overrides. Also override runAsNonRoot for API in minimal CI test until the frontend image runs as non-root.
The frontend image writes to /root/.cache on startup, which fails with readOnlyRootFilesystem: true. Relax both runAsNonRoot and readOnlyRootFilesystem until the frontend image is fixed.
Add a Helm pre-install/pre-upgrade hook Job that runs `ref db migrate` before deployments start, preventing race conditions between API and orchestrator database migrations. Bump frontend image to v0.2.3 which runs as non-root, removing the need for security context overrides in CI.
Brings in the new `ref db migrate` command required by the Helm pre-install migration Job, plus other v0.13.0 changes. - pyproject.toml and versions.toml: all 6 components 0.12.3 -> 0.13.0 - helm/values.yaml: default worker image tag to v0.13.0 - helm/Chart.yaml: appVersion to 0.13.0 - docker/docker-compose.yaml: climate-ref images to v0.13.0
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.
Summary
Align deployment configuration and migrate from CalVer to SemVer.
Versioning: The AFT repo and Helm chart now share a single SemVer version (
0.1.0).appVersioninChart.yamlindependently tracks climate-ref core (0.12.3). Bump workflow offerspatch/minor/major. The unused.bumpversion-helm.tomlis deleted.Configuration:
REF_CONFIGURATIONaligned to/refacross API and workers.REF_SOFTWARE_ROOTadded to worker defaults. Frontend bumped to v0.2.1, docker-compose images pinned to v0.12.3.Helm: API template falls back to
defaults.volumes/defaults.volumeMountswhen not overridden, removing duplication in CI values. Minimal deployment CI test added with API re-enabled.Test plan
helm lintpasses with all values filesbump-my-version bump patch --dry-runupdates all 4 targets