STAC-25520 Remove dead S3 binary publishing script - #251
Merged
Conversation
packaging/publish_staging_package.sh uploaded the process-agent binary and ebpf-object-files.tar.gz to s3://stackstate-process-agent-2-test/binaries/ with --acl public-read. It was called by the `publish_binaries` job in .gitlab-ci-x64.yml and .gitlab-ci-arm.yml, both retired with the GitLab pipeline. Nothing has called it since. It is not worth reimplementing on GitHub, because nothing consumes what it produced: - The only consumer ever found is stackstate-agent's omnibus software def omnibus/config/software/stackstate-process-agent.rb, which curls the binary back out of that bucket. It is only declared as a dependency on origin/master, whose last commit is 2024-08-27. The active branches -- stackstate-7.71.2 (production) and stackstate-7.78.2 (default) -- do not declare it, so omnibus never builds it there. The standalone process-agent ships as a Kubernetes image now, which is why the image is named stackstate-k8s-process-agent. - beest does not use it. It resolves a branch to an 8-char short SHA and pulls the matching image tag, so it consumes the registry, not S3. - Nothing else in this repo references the script. - No AWS credentials are provisioned to this repo in pulumi-infra, so restoring the capability would mean granting new ones for something with no consumer, and re-establishing a public-read bucket of build artifacts. Empirically it has also been off since the GitLab pipeline was retired with no reported breakage. Reversible via git history if a consumer turns up. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Andreagit97
approved these changes
Aug 4, 2026
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.
The GitLab pipeline had a
publish_binariesjob that uploaded the process-agent binary andebpf-object-files.tar.gztos3://stackstate-process-agent-2-test/binaries/<branch>/with--acl public-read. It was retired with the rest of the GitLab config, leavingpackaging/publish_staging_package.shbehind with no caller.I picked this up as a GitLab → GitHub parity gap under STAC-25142 / STAC-25520 — the question was whether to reimplement it. I do not think we should, and I would rather delete it than leave a dead script implying the capability exists.
Why I believe nothing consumes it
stackstate-agent's omnibus build is the only consumer I could find.omnibus/config/software/stackstate-process-agent.rbcurls the binary straight back out of this bucket. But it is only declared as a dependency onorigin/master:origin/masterstackstate-7.71.2(production)stackstate-7.78.2(default)Omnibus only builds declared dependencies, so on the active branches that software def is orphaned and never runs. That fits the shape of the component — the standalone process-agent ships as a Kubernetes image now, which is why the image is
stackstate-k8s-process-agent.beest does not use it. I checked
StackVista/beestdirectly: no reference to the bucket. It resolves a branch to an 8-char short SHA viahelpers/get-latest-short-sha.shand uses that as the image tag (process_agent_image_tag), so it consumes the registry, not S3. That also lines up neatly with the 8-character tags this CI publishes.Nothing in this repo calls it, and no AWS credentials are provisioned to this repo in
pulumi-infra— so restoring the capability would mean granting new ones, plus re-establishing a public-read bucket of build artifacts, for something with no consumer.Empirically, S3 publishing has been off since the GitLab pipeline was retired, with no reported breakage.
One caveat worth stating plainly
I could not run an exhaustive org-wide sweep. GitHub code search returns a zero count for this token even on control queries where I know the string exists, so it is non-functional here rather than genuinely empty — I discarded that result instead of treating it as evidence. My conclusion rests on the repos I could read directly (
stackstate-agent,beest, this one) plus the pulumi-infra credential check. If you know of a consumer outside those, say so and I will restore it instead. It is onegit revertaway.Also noticed, deliberately not in this PR
packaging/has more GitLab-era residue that is now unreferenced:commit-or-tag.sh(pure GitLab CI commit variables),publish_image.sh(superseded by the publish jobs inci.yml), andbuild-and-label.sh+oci-labels.sh(superseded byimage-pipeline'sapply-oci-labelsaction, thoughbuild-and-label.shsays it is kept for local use). I left those alone to keep this PR to its ticket — happy to sweep them in a follow-up if you want.