feat(ci): Publish Spark Operator binaries with GitHub releases #3078
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
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
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
vjanelle
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:
spark-operatorforlinux/amd64andlinux/arm64in thedraft_releasejob via the existingmake build-operatorpathspark-operator_<version>_linux_<arch>.tar.gzcontaining the binary andLICENSESHA256SUMSfile covering both archivesChange Category
Rationale
Building through
make build-operatormeans the published binaries carry the sameLDFLAGSas the official controller images, sospark-operator versionreportsidentical version, commit, tree state and build date.
Step ordering is load-bearing. The binary build runs before
Package Helm charts.That step writes
.tgzinto the repository root, which is not gitignored, sogit status --porcelainbecomes non-empty and the Makefile would stampGIT_TREE_STATE=dirtyinto every published binary. There is a comment in the workflow toprevent this being reordered later.
Verification is asymmetric. The amd64 binary runs natively on the runner and is
exercised with
spark-operator versionand--help. arm64 cannot execute on an x86runner without emulation, so it is checked with
filefor the correct targetarchitecture 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=0binaries takeswell under a minute, so this stays inside
draft_releaserather than adding a matrix jobplus 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
Additional Notes
The
Releaseworkflow triggers on pushes torelease-that touchVERSION, so itcannot 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_releasebefore merge.