Skip to content

Latest commit

 

History

History
8 lines (7 loc) · 2.45 KB

ci.md

File metadata and controls

8 lines (7 loc) · 2.45 KB

CI and GitHub Actions

  • .nvmrc controls the Node.js version for all CI workflows (via actions/setup-node) — changing it affects every CI job that runs Node
  • CI uploads test results to Trunk Flaky Tests; the trunk MCP server in .mcp.json queries per-test flakiness on a PR or master (authenticate via /mcp, or a TRUNK_API_TOKEN bearer header when headless) — see /debugging-ci-failures and /fixing-flaky-tests
  • A workflow edit reaches every open PR before those branches rebase. It runs against the PR merged with master, but a companion change — a new dependency, file, or config — only arrives when the branch rebases. A workflow that starts requiring something unrebased branches lack fails every in-flight PR before its tests run. Make the new behavior degrade gracefully, or gate it. This has broken CI repeatedly.
  • Mechanical workflow rules (timeout-minutes, concurrency, dispatch budget, path filters, gate hygiene) are enforced by hogli lint:workflows and actionlint, which are the source of truth. /authoring-ci-workflows explains the reasoning behind each.
  • A test whose result can differ between the two events tables belongs in .github/new-events-schema-targets.txt. That covers tests that read event properties, and tests of code that calls use_new_events_schema() or the flag-call helpers in products/feature_flags/backend/facade/flags.py. The file's header has the full rule. Backend CI reruns the listed paths against the native-JSON events table. A test outside the list runs on the legacy table only. Add the test-new-events-schema label when a diff needs the whole backend suite on both tables, such as an event ingestion change or event reads tested outside the list. Label while the PR is a draft, or push again after labeling, because label events do not start Backend CI.
  • A pull request never publishes a package or release. [lint: github-actions-publish-on-pull-request] A published version is public forever, and a pull request run executes code its author controls. Publish only from a push to master, a release tag, or a workflow_dispatch on master. A pull request run only builds and validates, for example with --dry-run. The semgrep rule cannot see a publisher inside a reusable workflow, so gate that job in the called workflow too. Never run a publish command by hand from a pull request branch. build-hogql-parser-npm.yml is the reference shape.