Repository navigation
Description
Split from #614, whose guides are written and published but have only run against stand-ins.
What is missing
An organization that follows fctl's guides for running it in its own cloud gets commands no one has run on the clouds they name. Runners in your cloud, A Slack bot of your own, Agents' work in your data warehouse, A private instance and Secrets for the setup script were written without cloud accounts (#633): the Packer template, the drain watchers, the bot and the receivers ran against stubs only. And the runner guide's Each session in a microVM says only that the firecracker driver hasn't been tried on the clouds' machines, so it tells people to use Docker.
How it works now
- xtask's docs tests and, since test(docs): check that every fctl command the docs show parses #656, a test that every
fctlcommand indocs/*.mdparses, keep the guides' commands anddeploy/cloud's scripts in step with the code. Nothing checks them against AWS, Google Cloud, Azure, Cloudflare, Slack, BigQuery or Snowflake. - CI's "Firecracker sandboxes" job boots microVMs with the driver's
--ignoredtests on GitHub's x86_64 runners (.github/workflows/ci.yml), which have/dev/kvm. No test or doc covers EC2, Compute Engine or Azure machines with nested virtualization. docs/development.md#checksnow says people try the guides on real accounts each quarter, and before a release that changes what they use.
What should happen
- The microVM section of
docs/runners-in-your-cloud.md, once the driver has run on one machine in each cloud that gives/dev/kvm(EC2's C8i, M8i or R8i; Compute Engine's N2 or another Intel series but E2; Azure's Dsv6 or Dasv6):cargo test -p fctl-host --lib driver::firecracker:: -- --ignored --test-threads 1and a session end to end with--driver firecracker, recording start times, snapshots and the jailer. The section then addspasst,e2fsprogs, thekvmgroup and--driver firecrackerto the image, and checks withfctl host doctor. - Runners in your cloud, followed as written on AWS, Google Cloud and Azure with Acme's names: the image builds, a machine enrolls within minutes, a scale-in drains it and its runner leaves the Runners tab, Spot notices take the forced path. Fix what differs.
- A private instance, through a Cloudflare Tunnel and an AWS load balancer: from outside, the sign-in page answers 404,
/oidc/wsp_…/.well-known/openid-configurationanswers, and GitHub's Recent deliveries show 200. - A Slack bot of your own, in a Slack workspace: a mention starts a session, a reply in the thread reaches it, a question's buttons answer it, a refusal comes through as fctl words it.
- Agents' work in your data warehouse, into BigQuery and into Snowflake, with the example queries run against what arrives.
- Secrets for the setup script, on each cloud and with Vault's JWT login (which works there on hosts after fctl 0.38.1).
- Someone who didn't write a guide follows it before it's ticked.
Compatibility
Docs only, unless a trial finds a bug. Each trial uses the release it says, since hosts follow the control plane's version.
Decisions for a person
- Who holds the accounts: AWS, Google Cloud, Azure, Cloudflare, a Slack workspace, BigQuery and Snowflake, with budgets. An fctl session has none of them, and shouldn't get long-lived keys: a project connected to the clouds with identity tokens would let a session run the trials.
Session: https://app.fctl.sh/s/ses_01M8AE8T9M05SW673SZJX7W74Y
Activity