Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.
TypeScript agentaiai-agentsall-in-onecrmcrm-systememaillinearmcpmessagingnotesnotionofficerustslackslack-alternativestartupstartup-toolstypescriptworkspace
chore(ci): migrate web app deploys to namespace + cargo x workflows (#4511)
teoc5c0ac87ec9f
diff --git a/.github/workflows/deploy-web-app.yml b/.github/workflows/deploy-web-app.ymldeleted file mode 100644index 5584fd6a43..0000000000--- a/.github/workflows/deploy-web-app.yml+++ /dev/null@@ -1,109 +0,0 @@-name: Deploy Web App-on:- workflow_dispatch:- inputs:- environment:- required: true- type: choice- options:- - dev- - prod- description: The environment to build for- notify:- required: false- type: boolean- description: Whether to notify the Slack channel of the deployment completion- workflow_call:- inputs:- environment:- required: true- type: string- description: The environment to build for. e.g. (dev, prod)- notify:- required: false- type: boolean- secrets:- AWS_ACCESS_KEY:- required: true- AWS_SECRET_ACCESS_KEY:- required: true- PULUMI_ACCESS_TOKEN:- required: true- DD_APP_KEY:- required: true- DD_API_KEY:- required: true- DD_WEB_APP_TOKEN:- required: true- SEGMENT_WRITE_KEY:- required: true- POSTHOG_API_KEY:- required: true- CACHIX_AUTH_TOKEN:- required: true- SCCACHE_BUCKET:- required: false--concurrency:- group: ${{ github.workflow }}-web-app-${{ inputs.environment }}- # We do not want to cancel a deployment if it's in progress. That could lead to a broken deployment.- cancel-in-progress: false--jobs:- build-deploy:- runs-on: linux-extra-beefy- env:- CI: "true"- steps:- - uses: actions/checkout@v6- with:- ref: ${{ github.ref_name }}- - name: Setup- uses: ./.github/actions/setup-reqs-web- with:- cachix-auth-token: ${{ secrets.CACHIX_AUTH_TOKEN }}- sccache-bucket: ${{ vars.SCCACHE_BUCKET || secrets.SCCACHE_BUCKET }}- - name: Build- working-directory: js/app- run: just build-${{ inputs.environment }}- env:- VITE_DD_WEB_APP_TOKEN: ${{ secrets.DD_WEB_APP_TOKEN }}- VITE_DD_HASH: ${{ github.sha }}- VITE_SEGMENT_WRITE_KEY: ${{ secrets.SEGMENT_WRITE_KEY }}- VITE_POSTHOG_API_KEY: ${{ secrets.POSTHOG_API_KEY }}- - name: Install infra dependencies- run: |- cd infra- bun install- - name: Configure AWS Credentials- uses: aws-actions/configure-aws-credentials@e7f100cf4c008499ea8adda475de1042d6975c7b- with:- aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY }}- aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}- aws-region: us-east-1- - uses: pulumi/actions@8e5e406f4007fca908480587cb9893c07090f58d- with:- command: up- stack-name: macro-inc/${{ inputs.environment }}- work-dir: ./infra/stacks/web-app- env:- PULUMI_ACCESS_TOKEN: ${{ secrets.PULUMI_ACCESS_TOKEN }}- DD_APP_KEY: ${{ secrets.DD_APP_KEY }}- DD_API_KEY: ${{ secrets.DD_API_KEY }}- DD_HOST: https://api.us5.datadoghq.com/-- - name: Upload sourcemaps to Datadog- env:- DATADOG_API_KEY: ${{ secrets.DD_API_KEY }}- DATADOG_SITE: us5.datadoghq.com- DATADOG_API_HOST: api.us5.datadoghq.com- working-directory: js/app/packages/app- run: bun run ddupload:${{ inputs.environment }}-- - name: Upload production build- if: ${{ inputs.environment == 'prod' }}- uses: actions/upload-artifact@v4- with:- name: web-app-build- path: js/app/packages/app/dist- overwrite: truediff --git a/.github/workflows/deploy_web_app.yml b/.github/workflows/deploy_web_app.ymlnew file mode 100644index 0000000000..81a799ff2b--- /dev/null+++ b/.github/workflows/deploy_web_app.yml@@ -0,0 +1,112 @@+# DO NOT EDIT — regenerate with `cargo x workflows` (from rust/cloud-storage).+# Source: rust/cloud-storage/tools/xtask/src/workflows/deploy_web_app.rs+name: Deploy Web App+on:+ workflow_call:+ inputs:+ environment:+ required: true+ type: string+ description: The environment to build for. e.g. (dev, prod)+ notify:+ required: false+ type: boolean+ secrets:+ AWS_ACCESS_KEY:+ required: true+ AWS_SECRET_ACCESS_KEY:+ required: true+ PULUMI_ACCESS_TOKEN:+ required: true+ DD_APP_KEY:+ required: true+ DD_API_KEY:+ required: true+ DD_WEB_APP_TOKEN:+ required: true+ SEGMENT_WRITE_KEY:+ required: true+ POSTHOG_API_KEY:+ required: true+ CACHIX_AUTH_TOKEN:+ required: true+ workflow_dispatch:+ inputs:+ environment:+ required: true+ type: choice+ options:+ - dev+ - prod+ description: The environment to build for+ notify:+ required: false+ type: boolean+ description: Whether to notify the Slack channel of the deployment completion+jobs:+ build-deploy:+ runs-on: namespace-profile-linux-mid;overrides.cache-tag=web-ci+ env:+ CI: 'true'+ steps:+ - name: Checkout Repo+ uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10+ with:+ ref: ${{ github.ref_name }}+ - name: Mount Namespace cache volume+ uses: namespacelabs/nscloud-cache-action@15799a6b54e5765f85b2aac25b3f0df43ed571c0+ with:+ cache: bun+ path: /nix+ continue-on-error: true+ - name: Setup Nix+ uses: ./.github/actions/setup-nix+ - name: Setup+ uses: ./.github/actions/setup-reqs-web+ with:+ cachix-auth-token: ${{ secrets.CACHIX_AUTH_TOKEN }}+ - name: Build+ run: just build-${{ inputs.environment }}+ env:+ VITE_DD_WEB_APP_TOKEN: ${{ secrets.DD_WEB_APP_TOKEN }}+ VITE_DD_HASH: ${{ github.sha }}+ VITE_SEGMENT_WRITE_KEY: ${{ secrets.SEGMENT_WRITE_KEY }}+ VITE_POSTHOG_API_KEY: ${{ secrets.POSTHOG_API_KEY }}+ working-directory: js/app+ - name: Install infra dependencies+ run: bun install+ working-directory: infra+ - name: Configure AWS Credentials+ uses: aws-actions/configure-aws-credentials@e7f100cf4c008499ea8adda475de1042d6975c7b+ with:+ aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY }}+ aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}+ aws-region: us-east-1+ - name: Deploy with Pulumi+ uses: pulumi/actions@8e5e406f4007fca908480587cb9893c07090f58d+ with:+ command: up+ stack-name: macro-inc/${{ inputs.environment }}+ work-dir: ./infra/stacks/web-app+ env:+ PULUMI_ACCESS_TOKEN: ${{ secrets.PULUMI_ACCESS_TOKEN }}+ DD_APP_KEY: ${{ secrets.DD_APP_KEY }}+ DD_API_KEY: ${{ secrets.DD_API_KEY }}+ DD_HOST: https://api.us5.datadoghq.com/+ - name: Upload sourcemaps to Datadog+ run: bun run ddupload:${{ inputs.environment }}+ env:+ DATADOG_API_KEY: ${{ secrets.DD_API_KEY }}+ DATADOG_SITE: us5.datadoghq.com+ DATADOG_API_HOST: api.us5.datadoghq.com+ working-directory: js/app/packages/app+ - name: Upload production build+ if: ${{ inputs.environment == 'prod' }}+ uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02+ with:+ name: web-app-build+ path: js/app/packages/app/dist+ overwrite: 'true'+concurrency:+ group: deploy-web-app-${{ inputs.environment }}+ cancel-in-progress: falsediff --git a/.github/workflows/deploy-web-app-dev-push.yml b/.github/workflows/deploy_web_app_dev_push.ymlsimilarity index 51%rename from .github/workflows/deploy-web-app-dev-push.ymlrename to .github/workflows/deploy_web_app_dev_push.ymlindex 078e3ca47f..9100ef1491 100644--- a/.github/workflows/deploy-web-app-dev-push.yml+++ b/.github/workflows/deploy_web_app_dev_push.yml@@ -1,30 +1,30 @@-name: "Deploy web app dev on push to main"+# DO NOT EDIT — regenerate with `cargo x workflows` (from rust/cloud-storage).+# Source: rust/cloud-storage/tools/xtask/src/workflows/deploy_web_app_dev_push.rs+name: Deploy web app dev on push to mainon:push:- branches: [main]--concurrency:- group: ${{ github.workflow }}- # We do not want to cancel a deployment if it's in progress. That could lead to a broken deployment.- cancel-in-progress: false-+ branches:+ - mainjobs:check-to-deploy:- runs-on: ubuntu-latest+ runs-on: namespace-profile-linux-tiny-no-cacheoutputs:web-app: ${{ steps.changes.outputs.web-app }}steps:- - uses: actions/checkout@v6- - uses: whutchinson98/[email protected]- id: changes- with:- token: ${{ GITHUB.TOKEN }}- diff: |- web-app: ./infra/stacks/web-app/** ./js/app/packages/** ./js/app/package.json ./js/package.json ./js/lexical-core/**+ - name: Checkout Repo+ uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10+ - id: changes+ name: Check changed paths+ uses: whutchinson98/diff-checker-action@d25a22ee8f84f5e44abda3027c80c2e6d71f68a6+ with:+ token: ${{ github.token }}+ diff: |+ web-app: ./infra/stacks/web-app/** ./js/app/packages/** ./js/app/package.json ./js/package.json ./js/lexical-core/**deploy_web_app:- needs: [check-to-deploy]+ needs:+ - check-to-deployif: ${{ needs.check-to-deploy.outputs.web-app == 'true' }}- uses: ./.github/workflows/deploy-web-app.yml+ uses: ./.github/workflows/deploy_web_app.ymlwith:notify: falseenvironment: dev@@ -38,4 +38,6 @@ jobs:SEGMENT_WRITE_KEY: ${{ secrets.SEGMENT_WRITE_KEY_PRODUCTION }}POSTHOG_API_KEY: ${{ secrets.POSTHOG_API_KEY }}CACHIX_AUTH_TOKEN: ${{ secrets.CACHIX_AUTH_TOKEN }}- SCCACHE_BUCKET: ${{ secrets.SCCACHE_BUCKET }}+concurrency:+ group: ${{ github.workflow }}+ cancel-in-progress: falsediff --git a/rust/cloud-storage/tools/xtask/src/workflows/deploy_web_app.rs b/rust/cloud-storage/tools/xtask/src/workflows/deploy_web_app.rsnew file mode 100644index 0000000000..25deca5adb--- /dev/null+++ b/rust/cloud-storage/tools/xtask/src/workflows/deploy_web_app.rs@@ -0,0 +1,188 @@+//! `Deploy Web App` — builds js/app and deploys it via the web-app pulumi+//! stack; reusable (workflow_call) and manually dispatchable. Generated into+//! `deploy_web_app.yml` (replaces the hand-written `deploy-web-app.yml`;+//! dispatch identity is the workflow *name*, so the rename doesn't affect+//! anyone's dispatch habits).++use anyhow::Result;+use gh_workflow::{+ Concurrency, Env, Event, Expression, Job, Run, Step, Use, Workflow, WorkflowCall,+ WorkflowDispatch,+};++use crate::workflows::{runners, steps, vars};++/// Build the workflow. The `workflow_dispatch`/`workflow_call` input blocks+/// are filled in by [`patch`] (choice options + ordered maps).+pub fn deploy_web_app() -> Workflow {+ Workflow::new("Deploy Web App")+ .on(Event::default()+ .workflow_dispatch(WorkflowDispatch::default())+ .workflow_call(WorkflowCall::default()))+ .concurrency(+ // Serialize deploys per *environment*, with a literal prefix: for+ // workflow_call runs `github.workflow` expands to the caller's+ // name, so the hand-written `${{ github.workflow }}-web-app-…`+ // group split push-triggered and manually dispatched deploys into+ // different groups and let them race the same pulumi stack (same+ // fix as deploy-all-services). Never cancel in-progress — that+ // could leave the stack half-applied.+ Concurrency::new(Expression::new("deploy-web-app-${{ inputs.environment }}"))+ .cancel_in_progress(false),+ )+ .add_job("build-deploy", build_deploy())+}++/// Fill in the ordered dispatch/call input blocks.+///+/// Relative to the hand-written workflow this drops the `SCCACHE_BUCKET`+/// secret: the build runs sccache against the web-ci cache volume, not S3.+pub fn patch(root: &mut serde_yaml::Value) -> Result<()> {+ let on = root+ .get_mut("on")+ .and_then(serde_yaml::Value::as_mapping_mut)+ .ok_or_else(|| anyhow::anyhow!("rendered workflow has no `on` mapping"))?;+ on.insert(+ "workflow_dispatch".into(),+ crate::workflows::yaml_fragment(indoc::indoc! {r#"+ inputs:+ environment:+ required: true+ type: choice+ options:+ - dev+ - prod+ description: The environment to build for+ notify:+ required: false+ type: boolean+ description: Whether to notify the Slack channel of the deployment completion+ "#})?,+ );+ on.insert(+ "workflow_call".into(),+ crate::workflows::yaml_fragment(indoc::indoc! {r#"+ inputs:+ environment:+ required: true+ type: string+ description: The environment to build for. e.g. (dev, prod)+ notify:+ required: false+ type: boolean+ secrets:+ AWS_ACCESS_KEY:+ required: true+ AWS_SECRET_ACCESS_KEY:+ required: true+ PULUMI_ACCESS_TOKEN:+ required: true+ DD_APP_KEY:+ required: true+ DD_API_KEY:+ required: true+ DD_WEB_APP_TOKEN:+ required: true+ SEGMENT_WRITE_KEY:+ required: true+ POSTHOG_API_KEY:+ required: true+ CACHIX_AUTH_TOKEN:+ required: true+ "#})?,+ );+ Ok(())+}++fn build_deploy() -> Job {+ Job::default()+ .runs_on(runners::Runner::Mid.with_cache_tag(vars::WEB_CI_CACHE_TAG))+ .add_env(("CI", "true"))+ .add_step(checkout())+ .add_step(steps::mount_web_cache_volume(false))+ .add_step(steps::setup_nix())+ .add_step(steps::setup_reqs_web("Setup", false))+ .add_step(build())+ .add_step(install_infra_dependencies())+ .add_step(configure_aws_credentials())+ .add_step(pulumi_up())+ .add_step(upload_sourcemaps())+ .add_step(upload_production_build())+}++fn checkout() -> Step<Use> {+ Step::new("Checkout Repo")+ .uses(+ "actions",+ "checkout",+ "df4cb1c069e1874edd31b4311f1884172cec0e10",+ ) // v6+ .add_with(("ref", "${{ github.ref_name }}"))+}++/// Build identical across dev/prod up to `MODE` (`just build-<env>`).+fn build() -> Step<Run> {+ Step::new("Build")+ .run("just build-${{ inputs.environment }}")+ .working_directory("js/app")+ .add_env(Env::new("VITE_DD_WEB_APP_TOKEN", vars::DD_WEB_APP_TOKEN))+ .add_env(Env::new("VITE_DD_HASH", "${{ github.sha }}"))+ .add_env(Env::new("VITE_SEGMENT_WRITE_KEY", vars::SEGMENT_WRITE_KEY))+ .add_env(Env::new("VITE_POSTHOG_API_KEY", vars::POSTHOG_API_KEY))+}++fn install_infra_dependencies() -> Step<Run> {+ Step::new("Install infra dependencies")+ .run("bun install")+ .working_directory("infra")+}++fn configure_aws_credentials() -> Step<Use> {+ Step::new("Configure AWS Credentials")+ .uses(+ "aws-actions",+ "configure-aws-credentials",+ "e7f100cf4c008499ea8adda475de1042d6975c7b",+ ) // v5+ .add_with(("aws-access-key-id", vars::AWS_ACCESS_KEY))+ .add_with(("aws-secret-access-key", vars::AWS_SECRET_ACCESS_KEY))+ .add_with(("aws-region", "us-east-1"))+}++fn pulumi_up() -> Step<Use> {+ Step::new("Deploy with Pulumi")+ .uses(+ "pulumi",+ "actions",+ "8e5e406f4007fca908480587cb9893c07090f58d",+ ) // v6+ .add_with(("command", "up"))+ .add_with(("stack-name", "macro-inc/${{ inputs.environment }}"))+ .add_with(("work-dir", "./infra/stacks/web-app"))+ .add_env(Env::new("PULUMI_ACCESS_TOKEN", vars::PULUMI_ACCESS_TOKEN))+ .add_env(Env::new("DD_APP_KEY", vars::DD_APP_KEY))+ .add_env(Env::new("DD_API_KEY", vars::DD_API_KEY))+ .add_env(Env::new("DD_HOST", "https://api.us5.datadoghq.com/"))+}++fn upload_sourcemaps() -> Step<Run> {+ Step::new("Upload sourcemaps to Datadog")+ .run("bun run ddupload:${{ inputs.environment }}")+ .working_directory("js/app/packages/app")+ .add_env(Env::new("DATADOG_API_KEY", vars::DD_API_KEY))+ .add_env(Env::new("DATADOG_SITE", "us5.datadoghq.com"))+ .add_env(Env::new("DATADOG_API_HOST", "api.us5.datadoghq.com"))+}++fn upload_production_build() -> Step<Use> {+ Step::new("Upload production build")+ .uses(+ "actions",+ "upload-artifact",+ "ea165f8d65b6e75b540449e92b4886f43607fa02",+ ) // v4+ .if_condition(Expression::new("${{ inputs.environment == 'prod' }}"))+ .add_with(("name", "web-app-build"))+ .add_with(("path", "js/app/packages/app/dist"))+ .add_with(("overwrite", true))+}diff --git a/rust/cloud-storage/tools/xtask/src/workflows/deploy_web_app_dev_push.rs b/rust/cloud-storage/tools/xtask/src/workflows/deploy_web_app_dev_push.rsnew file mode 100644index 0000000000..ae6a854249--- /dev/null+++ b/rust/cloud-storage/tools/xtask/src/workflows/deploy_web_app_dev_push.rs@@ -0,0 +1,94 @@+//! `Deploy web app dev on push to main` — path-gated caller of+//! [`crate::workflows::deploy_web_app`]. Generated into+//! `deploy_web_app_dev_push.yml` (replaces the hand-written+//! `deploy-web-app-dev-push.yml`).++use anyhow::Result;+use gh_workflow::{Concurrency, Event, Expression, Job, Push, Step, Use, Workflow};++use crate::workflows::runners;++/// Build the workflow. The caller job's `with:`/`secrets:` are filled in by+/// [`patch`].+pub fn deploy_web_app_dev_push() -> Workflow {+ Workflow::new("Deploy web app dev on push to main")+ .on(Event::default().push(Push::default().add_branch("main")))+ .concurrency(+ // Never cancel an in-progress deployment — that could leave the+ // stack half-applied.+ Concurrency::new(Expression::new("${{ github.workflow }}")).cancel_in_progress(false),+ )+ .add_job("check-to-deploy", check_to_deploy())+ .add_job("deploy_web_app", deploy_web_app())+}++/// Add the caller job's `with:` and explicit `secrets:` map, and drop the+/// `runs-on` that `Job::default()` injects (invalid alongside `uses:`).+pub fn patch(root: &mut serde_yaml::Value) -> Result<()> {+ let job = crate::workflows::job_mut(root, "deploy_web_app")?;+ job.remove("runs-on");+ job.insert(+ "with".into(),+ crate::workflows::yaml_fragment(indoc::indoc! {r#"+ notify: false+ environment: dev+ "#})?,+ );+ job.insert(+ "secrets".into(),+ crate::workflows::yaml_fragment(indoc::indoc! {r#"+ AWS_ACCESS_KEY: ${{ secrets.AWS_ACCESS_KEY }}+ AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}+ PULUMI_ACCESS_TOKEN: ${{ secrets.PULUMI_ACCESS_TOKEN }}+ DD_APP_KEY: ${{ secrets.DD_APP_KEY }}+ DD_API_KEY: ${{ secrets.DD_API_KEY }}+ DD_WEB_APP_TOKEN: ${{ secrets.DD_WEB_APP_TOKEN }}+ SEGMENT_WRITE_KEY: ${{ secrets.SEGMENT_WRITE_KEY_PRODUCTION }}+ POSTHOG_API_KEY: ${{ secrets.POSTHOG_API_KEY }}+ CACHIX_AUTH_TOKEN: ${{ secrets.CACHIX_AUTH_TOKEN }}+ "#})?,+ );+ Ok(())+}++fn check_to_deploy() -> Job {+ Job::default()+ .runs_on(runners::Runner::TinyNoCache.to_string())+ .add_output("web-app", "${{ steps.changes.outputs.web-app }}")+ .add_step(checkout())+ .add_step(diff_checker())+}++fn deploy_web_app() -> Job {+ Job::default()+ .needs(vec!["check-to-deploy".to_string()])+ .cond(Expression::new(+ "${{ needs.check-to-deploy.outputs.web-app == 'true' }}",+ ))+ .uses("./.github/workflows/deploy_web_app.yml")+}++fn checkout() -> Step<Use> {+ Step::new("Checkout Repo").uses(+ "actions",+ "checkout",+ "df4cb1c069e1874edd31b4311f1884172cec0e10",+ ) // v6+}++fn diff_checker() -> Step<Use> {+ Step::new("Check changed paths")+ .uses(+ "whutchinson98",+ "diff-checker-action",+ "d25a22ee8f84f5e44abda3027c80c2e6d71f68a6",+ ) // v1.0.2+ .id("changes")+ .add_with(("token", "${{ github.token }}"))+ .add_with((+ "diff",+ indoc::indoc! {r#"+ web-app: ./infra/stacks/web-app/** ./js/app/packages/** ./js/app/package.json ./js/package.json ./js/lexical-core/**+ "#},+ ))+}diff --git a/rust/cloud-storage/tools/xtask/src/workflows/mod.rs b/rust/cloud-storage/tools/xtask/src/workflows/mod.rsindex bd3d6304c0..7d84cc3371 100644--- a/rust/cloud-storage/tools/xtask/src/workflows/mod.rs+++ b/rust/cloud-storage/tools/xtask/src/workflows/mod.rs@@ -20,6 +20,8 @@ mod cleanup_preview;mod code_check_cloud_storage;mod code_check_infra;mod deploy_preview;+mod deploy_web_app;+mod deploy_web_app_dev_push;mod pulumi_preview_pr;mod reusable_preview_service;mod runners;@@ -126,6 +128,21 @@ const WORKFLOWS: &[WorkflowFile] = &[file_name: "deploy_preview.yml",render_yaml: || render_gh_workflow(deploy_preview::deploy_preview)(),},+ WorkflowFile {+ slug: "deploy_web_app",+ file_name: "deploy_web_app.yml",+ render_yaml: || render_patched(deploy_web_app::deploy_web_app, deploy_web_app::patch),+ },+ WorkflowFile {+ slug: "deploy_web_app_dev_push",+ file_name: "deploy_web_app_dev_push.yml",+ render_yaml: || {+ render_patched(+ deploy_web_app_dev_push::deploy_web_app_dev_push,+ deploy_web_app_dev_push::patch,+ )+ },+ },WorkflowFile {slug: "pulumi_preview_pr",file_name: "pulumi_preview_pr.yml",diff --git a/rust/cloud-storage/tools/xtask/src/workflows/vars.rs b/rust/cloud-storage/tools/xtask/src/workflows/vars.rsindex dd34e0c0b3..19dbefbc5e 100644--- a/rust/cloud-storage/tools/xtask/src/workflows/vars.rs+++ b/rust/cloud-storage/tools/xtask/src/workflows/vars.rs@@ -14,11 +14,15 @@ macro_rules! secret {secret!(AWS_ACCESS_KEY);secret!(AWS_SECRET_ACCESS_KEY);secret!(CACHIX_AUTH_TOKEN);+secret!(DD_API_KEY);+secret!(DD_APP_KEY);secret!(DD_WEB_APP_TOKEN);secret!(DOPPLER_TOKEN);secret!(MACOS_DEVELOPER_ID_CERTIFICATE_BASE64);secret!(MACOS_DEVELOPER_ID_CERTIFICATE_PASSWORD);secret!(POSTHOG_API_KEY);+secret!(PULUMI_ACCESS_TOKEN);+secret!(SEGMENT_WRITE_KEY);secret!(SEGMENT_WRITE_KEY_PRODUCTION);/// Nextest thread count for the test job. Tuned for the previous