Skip to content

refactor(core): remove status_message_history_enabled, detect_inadmissible_work_units, and startup_pod_error_check_enabled flags - #801

Merged
janzak-dev merged 1 commit into
mainfrom
refactor/cleanup-default-flags
Sep 7, 2026
Merged

janzak-dev merged 1 commit into
mainfrom
refactor/cleanup-default-flags

Conversation

@janzak-dev

Copy link
Copy Markdown
Collaborator

Summary

Removes three permanently enabled feature flags across XMC: status_message_history_enabled, detect_inadmissible_work_units, and startup_pod_error_check_enabled. All associated code paths, Helm templates, CTK configurations, UI components, and tests have been simplified to make these behaviors permanent.

Motivation & Context

These flags were permanently enabled by default some time ago and the underlying features are stable in production:

  1. status_message_history_enabled: History tracking for status messages is now permanently active.
  2. detect_inadmissible_work_units: Inadmissible work unit detection in reconcilers is permanently active.
  3. startup_pod_error_check_enabled: Checking for startup pod errors during reconciliation is permanently active.

Removing stale flag checks cleans up dead branches, configuration complexity, and test variations.

Key Changes

  • Deployments (Helm & CTK v2): Removed flag declarations, Helm chart values, ConfigMap entries, and deployment environment variables from deploy/helm/ and deploy/ctk_v2/.
  • Go Backend:
    • cmd/reconciler: Removed StartupPodErrorCheckEnabled and DetectInadmissibleWorkUnits flags and branching from workload and jobset reconcilers.
    • cmd/actuator, cmd/experiment_state_server, cmd/log_monitor: Removed StatusMessageHistoryEnabled configs.
    • internal/storage/spanner: Simplified experiment and workunit repositories and storage constructor (NewStorage) by always saving status message history.
  • UI & Python Server:
    • cmd/ui: Removed status_message_history_enabled from generate_config.sh, server.py, frontend service models (service_types.ts, feature_flag_service.ts), and Angular experiment/work unit components.
  • Documentation: Updated docs/flows/artifacts/reconcile_jobset.mmd and regenerated diagram.
  • Tests: Cleaned up unit and E2E test suites to expect permanent behavior.

Assumptions

None — requirements were fully specified.

Verification & Testing

  • Commands Executed:
    • bazel test //cmd/reconciler/... //cmd/actuator/... //cmd/experiment_state_server/... //cmd/log_monitor/... //internal/storage/spanner/... (35/35 passed)
    • bazel test //cmd/ui:ui_unit_tests (passed)
    • npm run test:screenshot in cmd/ui (8/8 passed)
    • bazel test //deploy/helm/... (passed)
    • ./.githooks/pre-commit (all linters, buildifier, gofmt, addlicense, ruff, helm lint, trivy passed)
    • python3 tools/analyze_diff_size.py --base-ref origin/main (Prod code: 132 lines, Total: 232 lines, within thresholds)
  • Coverage & Test Status: All tests passing cleanly.

Related Issues / Bugs

N/A

TAG=agy
CONV=df3c1c34-924a-42d3-81dc-9755d79b93f5

…sible_work_units, and startup_pod_error_check_enabled flags

TAG=agy

CONV=df3c1c34-924a-42d3-81dc-9755d79b93f5

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request removes the status_message_history_enabled feature flag and configuration option across the entire codebase, including backend servers, storage layers, UI frontend, and deployment configurations (Helm, CTK, Terraform). Consequently, status message history is now unconditionally enabled. Additionally, the detect_inadmissible_work_units and startup_pod_error_check_enabled configurations have been removed from the reconciler, making those features unconditionally active. There are no review comments to evaluate, and I have no feedback to provide.

@janzak-dev
janzak-dev marked this pull request as ready for review September 7, 2026 13:29
@github-actions
github-actions Bot requested a review from AntonTyb September 7, 2026 13:29
@janzak-dev janzak-dev added the priority::3-medium needs review. label Sep 7, 2026
@janzak-dev
janzak-dev enabled auto-merge September 7, 2026 13:52
@janzak-dev
janzak-dev added this pull request to the merge queue Sep 7, 2026
Merged via the queue into main with commit c5812ac Sep 7, 2026
12 checks passed
@janzak-dev
janzak-dev deleted the refactor/cleanup-default-flags branch September 8, 2026 07:23
AntonTyb added a commit that referenced this pull request Sep 9, 2026
…feedback

Follow-up to the merge of origin/main into this branch.

Rename: main moved cmd/xmc-linter to cmd/component-linter (#715, see
cmd/component-linter/README.md). Updated the three doc references —
the Component Reference table row, its section 5.3, and the overview's
section 3.4.

Feature-gate purge: #801 removed detectInadmissibleWorkUnits,
startupPodErrorCheckEnabled, and statusMessageHistoryEnabled. All prose
describing them as kill switches is gone; the behaviour they guarded is
now documented as unconditional. The reconciliation naming note is
rewritten accordingly, since no camelCase Helm booleans feed the
reconciler any more.

Review feedback:
- overview.md: the SDK -> Telemetry Plane edge label now reads
  "metrics push (in-cluster only)" and the prose states explicitly that
  the in-cluster restriction applies to metrics ingestion only, not to
  submitting or managing experiments.
- overview.md: expand ROD on first use.
- execution_model.md section 2: new subsection documenting which state
  transitions produce a new JobSet (create and restart only) and which
  observe or tear down the existing one — in particular that
  preemption/descheduling reuses the same JobSet and allocates no new
  execution.
- execution_model.md section 4: explain why the Non-Restarting JobSets
  Contract exists and what breaks without it — redone completed work,
  invisible retries with no new eid, and uncoordinated in-place restarts
  deadlocking distributed collectives. Also note that
  validateNonRestartingJobSetContract rejects violations before the
  JobSet reaches the cluster.

TAG=agy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

priority::3-medium needs review.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants