← Back to Pull requests

feat(ci): Publish Spark Operator binaries with GitHub releases #3078

Closed
unknown closed this pull request without merging on Aug 14, 2026 22:13 UTC
View on GitHub
unknown unknown commented on Aug 08, 2026 10:18 UTC
Author

Purpose of this PR

Closes #3073

Releases currently publish Helm charts and container images but not the operator
executable. Organizations that need a custom base image, internal hardening, an approved
CA bundle, or private registry conventions must install a Go toolchain and reproduce the
project build, taking on responsibility for matching release version metadata themselves.

Proposed changes:

  • Cross-build spark-operator for linux/amd64 and linux/arm64 in the draft_release job via the existing make build-operator path

  • Package each architecture as spark-operator_<version>_linux_<arch>.tar.gz containing the binary and LICENSE

  • Generate a SHA256SUMS file covering both archives

  • Smoke-test the artifacts before publication

  • Attach archives and checksums to the draft release alongside the Helm chart packages

  • Document building a custom operator image from the released binary
  • Change Category

  • Bugfix (non-breaking change which fixes an issue)

  • Feature (non-breaking change which adds functionality)

  • Breaking change (fix or feature that could affect existing functionality)

  • Documentation update
  • Rationale

    Building through make build-operator means the published binaries carry the same
    LDFLAGS as the official controller images, so spark-operator version reports
    identical version, commit, tree state and build date.

    Step ordering is load-bearing. The binary build runs before Package Helm charts.
    That step writes .tgz into the repository root, which is not gitignored, so
    git status --porcelain becomes non-empty and the Makefile would stamp
    GIT_TREE_STATE=dirty into every published binary. There is a comment in the workflow to
    prevent this being reordered later.

    Verification is asymmetric. The amd64 binary runs natively on the runner and is
    exercised with spark-operator version and --help. arm64 cannot execute on an x86
    runner without emulation, so it is checked with file for the correct target
    architecture and static linking. Happy to add a QEMU step if reviewers would prefer a
    real arm64 execution test, though it adds runner time to every release.

    Single job, no artifact passing. Cross-compiling two CGO_ENABLED=0 binaries takes
    well under a minute, so this stays inside draft_release rather than adding a matrix job
    plus an upload/download-artifact round trip. Happy to split it out if maintainers prefer.

    Scoped out: the issue also asks for provenance and signatures per Kubeflow
    supply-chain standards. The repository has no signing or SBOM tooling in any workflow
    today, so adding cosign here would mean deciding keyless vs. keyed signing and OIDC
    configuration inside an otherwise mechanical change. Suggest tracking that separately;
    happy to follow up.

    Checklist

  • I have conducted a self-review of my own code.

  • I have updated documentation accordingly.

  • I have added tests that prove my changes are effective or that my feature works.

  • Existing unit tests pass locally with my changes.
  • Additional Notes

    The Release workflow triggers on pushes to release- that touch VERSION, so it
    cannot execute on a fork PR. I have validated the packaging and checksum logic locally
    and confirmed the step order parses as intended, but the job is untested end to end.
    Reviewers may want to dry-run draft_release before merge.

    Diff: 432 lines (+324 / -108) across 5 files Reviewer: vjanelle Review duration: 9354m
    All Vouch review confidence checks passed
    Residual risk 0.18 = Change Risk (0.45) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.45 · 432 lines diff across 5 files
    0.45
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    60%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.363
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #3078"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 45.2% (MEDIUM) · Higher = larger blast radius
    45.2%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 60.5% · Lower = rushed or shallow review
    60.5%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 17.8% · Safe to merge
    17.8%