Skip to content

executors: set EXECUTOR_DEPLOY_TYPE=docker-compose - #1513

Draft
marcleblanc2 wants to merge 1 commit into
mainfrom
marc/executor-deploy-type
Draft

marcleblanc2 wants to merge 1 commit into
mainfrom
marc/executor-deploy-type

Conversation

@marcleblanc2

@marcleblanc2 marcleblanc2 commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

Problem

We can't tell which customers deploy which kind of executor. Pings report only each executor's runtime mode (docker, firecracker, kubernetes), so the Helm and Kustomize Docker-in-Docker charts, Docker Compose, and manual Docker installs all report docker, and Helm vs Kustomize or Terraform vs manual installs can't be told apart.

Solution

Set EXECUTOR_DEPLOY_TYPE=docker-compose on the executor service in docker-compose/executors/executor.docker-compose.yaml, next to the existing DEPLOY_TYPE=docker-compose, which the executor never reads. The executor sends it to its Sourcegraph instance, and pings report it (sourcegraph#19875). Older executors ignore it.

Checklist

  • All images have a valid tag and SHA256 sum (no image changes)

Test plan

  • The file parses as YAML and the executor's environment holds the new entry.
  • Not run: test/executor-smoke-test.sh against a running deployment. The Helm charts' executors were tested end to end on m5 (see sourcegraph#19875); this change only adds the same variable to the Compose environment.

Linked PRs

Each executor deployment method sets EXECUTOR_DEPLOY_TYPE, the executor sends it to its Sourcegraph instance, and pings report it. Merge in this order:

  1. sourcegraph/analytics#1181: BigQuery update_checks schema field; merge and apply to the live table before #19875 merges
  2. sourcegraph/sourcegraph#19875: executor reads EXECUTOR_DEPLOY_TYPE, instance stores it and reports it in pings; product docs
  3. sourcegraph/deploy-sourcegraph-helm#1032: helm-k8s, helm-dind
  4. sourcegraph/deploy-sourcegraph-k8s#522: kustomize-k8s, kustomize-dind
  5. sourcegraph/deploy-sourcegraph-docker#1513: docker-compose
  6. sourcegraph/terraform-aws-executors#238: terraform-aws
  7. sourcegraph/terraform-google-executors#248: terraform-gcp
  8. sourcegraph/controller#2883: sourcegraph-cloud, for Sourcegraph Cloud-managed executors
  9. sourcegraph/docs#2190: legacy docs site; binary, binary-offline in the Linux binary install examples; merge after the release that ships #19875

3 to 8 can merge in any order once #19875 has merged; older executors ignore the variable.

Amp threads

Changelog

The Docker Compose executor sets EXECUTOR_DEPLOY_TYPE=docker-compose.

Pings report which artifact deployed the executors.
@github-actions

Copy link
Copy Markdown

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant