ci(.github/actions): share embedded Postgres runtime setup via composite action by jscottmiller · Pull Request #26774 · coder/coder · GitHub
Skip to content

ci(.github/actions): share embedded Postgres runtime setup via composite action#26774

Draft
jscottmiller wants to merge 3 commits into
ci/flake-hunt-workflowfrom
ci/embedded-pg-composite
Draft

ci(.github/actions): share embedded Postgres runtime setup via composite action#26774
jscottmiller wants to merge 3 commits into
ci/flake-hunt-workflowfrom
ci/embedded-pg-composite

Conversation

@jscottmiller

@jscottmiller jscottmiller commented Jun 26, 2026

Copy link
Copy Markdown
Contributor

Extracts the duplicated macOS/Windows embedded-Postgres prep (RAM disk, PTY limit, and the embedded Postgres data path) into a setup-embedded-pg-runtime composite action and adopts it in ci.yaml, nightly-gauntlet.yaml, and flake-hunt.yaml.

Stacked on #26773 (which adds flake-hunt); this PR is based on that branch and should merge after it.

Changes

  • New .github/actions/setup-embedded-pg-runtime composite. Exposes embedded-pg-path as an output, removing the hardcoded /tmp/tmpfs vs R:/temp split from each caller's test steps.
  • ci.yaml: behavior-preserving. The composite is exactly the RAM-disk + PTY steps it replaces.
  • nightly-gauntlet.yaml: additionally gains the macOS PTY-limit bump and the bash deprecation-warning silence. Both are already used by ci.yaml on the same depot runners and are safe (a higher PTY ceiling and a suppressed shell banner), so this normalizes the two jobs. Flag if you'd rather keep the gauntlet strictly unchanged; it can be parameterized instead.
  • flake-hunt.yaml: adopts the composite, which also collapses its macOS and Windows test steps into one.

Notes

  • The pre-checkout steps (Spotlight disable, setup-ramdisk-action) cannot live in a local composite since the repo is not yet checked out, so they stay inline.
  • This PR touches .github, so its own CI exercises the ci.yaml composite path on Linux, macOS, and Windows.

Note

This PR was created by Coder Agents on behalf of @jscottmiller.

…ite action

Extract the macOS/Windows RAM disk, PTY limit, and embedded Postgres data path into a setup-embedded-pg-runtime composite action, and adopt it in ci.yaml and nightly-gauntlet.yaml. The ci change is behavior-preserving. The gauntlet additionally gains the PTY limit bump and the macOS bash deprecation-warning silence, both already used by ci on the same runners. Follow-up to #26773.
Replace flake-hunt's inline macOS/Windows RAM disk, PTY, and path setup with the shared composite, collapsing the macOS and Windows test steps into one.
@jscottmiller jscottmiller changed the base branch from main to ci/flake-hunt-workflow June 27, 2026 00:51
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