Skip to content

armgit / macro

Public Imported from GitHub
0

Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.

chg(ci): disable convert service deployment (#5733)

teoe4b6aac0b14a
diff --git a/.github/services-config.json b/.github/services-config.json
index ab5e232bee..6e17bd797e 100644
--- a/.github/services-config.json
+++ b/.github/services-config.json
@@ -63,6 +63,7 @@
]
},
"convert-service": {
+ "deploy_enabled": false,
"source_paths": [
"services/convert_service/**"
],
diff --git a/.github/workflows/deploy_all_services.yml b/.github/workflows/deploy_all_services.yml
index be18bb378b..595f4615ae 100644
--- a/.github/workflows/deploy_all_services.yml
+++ b/.github/workflows/deploy_all_services.yml
@@ -49,12 +49,12 @@ jobs:
run: |
set -euo pipefail
cfg=.github/services-config.json
- # Full list drives deploy-services; the filtered lists keep each build
- # matrix to only the services that actually produce that artifact, so
- # no build job spins up Nix + a cache volume for nothing.
- services=$(jq -c '.services | keys' "$cfg")
- binaries=$(jq -c '[.services | to_entries[] | select((.value.deploy_binaries // []) | length > 0) | .key]' "$cfg")
- lambdas=$(jq -c '[.services | to_entries[] | select((.value.deploy_lambdas // []) | length > 0) | .key]' "$cfg")
+ # Enabled services drive deploy-services; the filtered lists keep each
+ # build matrix to only enabled services that produce that artifact, so
+ # disabled services and empty artifact jobs consume no runners.
+ services=$(jq -c '[.services | to_entries[] | select(.value.deploy_enabled != false) | .key]' "$cfg")
+ binaries=$(jq -c '[.services | to_entries[] | select(.value.deploy_enabled != false) | select((.value.deploy_binaries // []) | length > 0) | .key]' "$cfg")
+ lambdas=$(jq -c '[.services | to_entries[] | select(.value.deploy_enabled != false) | select((.value.deploy_lambdas // []) | length > 0) | .key]' "$cfg")
echo "matrix=${services}" >> "$GITHUB_OUTPUT"
echo "binaries=${binaries}" >> "$GITHUB_OUTPUT"
echo "lambdas=${lambdas}" >> "$GITHUB_OUTPUT"
diff --git a/tooling/xtask/crates/xtask_workflows/src/workflows/deploy_all_services.rs b/tooling/xtask/crates/xtask_workflows/src/workflows/deploy_all_services.rs
index 0276c394e1..67fd63960c 100644
--- a/tooling/xtask/crates/xtask_workflows/src/workflows/deploy_all_services.rs
+++ b/tooling/xtask/crates/xtask_workflows/src/workflows/deploy_all_services.rs
@@ -128,12 +128,12 @@ fn set_matrix() -> Step<Run> {
.run(indoc::indoc! {r#"
set -euo pipefail
cfg=.github/services-config.json
- # Full list drives deploy-services; the filtered lists keep each build
- # matrix to only the services that actually produce that artifact, so
- # no build job spins up Nix + a cache volume for nothing.
- services=$(jq -c '.services | keys' "$cfg")
- binaries=$(jq -c '[.services | to_entries[] | select((.value.deploy_binaries // []) | length > 0) | .key]' "$cfg")
- lambdas=$(jq -c '[.services | to_entries[] | select((.value.deploy_lambdas // []) | length > 0) | .key]' "$cfg")
+ # Enabled services drive deploy-services; the filtered lists keep each
+ # build matrix to only enabled services that produce that artifact, so
+ # disabled services and empty artifact jobs consume no runners.
+ services=$(jq -c '[.services | to_entries[] | select(.value.deploy_enabled != false) | .key]' "$cfg")
+ binaries=$(jq -c '[.services | to_entries[] | select(.value.deploy_enabled != false) | select((.value.deploy_binaries // []) | length > 0) | .key]' "$cfg")
+ lambdas=$(jq -c '[.services | to_entries[] | select(.value.deploy_enabled != false) | select((.value.deploy_lambdas // []) | length > 0) | .key]' "$cfg")
echo "matrix=${services}" >> "$GITHUB_OUTPUT"
echo "binaries=${binaries}" >> "$GITHUB_OUTPUT"
echo "lambdas=${lambdas}" >> "$GITHUB_OUTPUT"