Files
carbon-lang/.github/workflows
Chandler Carruth f12a356c28 Update benchmark automation based on initial results (#8165)
First, a simple fix: we don't need to track macOS benchmark data over
time really, and it's nice to not pay the (huge) cost overhead of the
macOS GitHub runners. Runners are too noisy to give us interesting Apple
silicon performance data really, we're mostly looking at trends over
time, and focusing on Linux is fine for that.

The larger change is to restructure how we organize the benchmarks in
the JSON file we upload. The documentation doesn't seem to have caught
up with the new `v1` schema, but it lets us better model the
parameterization we want. While doing this, we also _sharply_ compress
the benchmark name so that it works (much) better with the bencher.dev
UI.

The result is that the compile benchmarks are named `<phase>/<size>`.
Then the particular pattern and the language are "parameters". The
meaning of "parameters" are the ones that make sense to display in a
single plot, with meaningful comparison between the lines. Both phase
and size vary by many orders of magnitude, and so don't work as
parameters. But seeing how the different shaped patterns and the
different language compare at the same phase and size works well.

The prelude benchmark follows a similar pattern, named `prelude` and the
different amounts of import as an `import` parameter.

Once this lands, I'll upgrade the project on bencher.dev to v1, and
re-backfill everything from the stored artifacts.

Assisted-by: Antigravity with Gemini
2026-11-24 00:32:29 +00:00
..

Workflows

Hardening

Workflows are hardened using Step Security tool. Findings for the "Harden Runner" steps are available online.

Allowed endpoints

Most jobs only have a few endpoints, but due to tools which do downloads, a few have significantly more. These are:

  • benchmarks.yaml (Bazel, Bencher)
  • clangd_tidy.yaml (Bazel)
  • prek.yaml (Bazel, prek)
  • nightly_release.yaml (Bazel)
  • tests.yaml (Bazel)

When updating one of these, consider updating all of them.

We try to keep allowed-endpoints with one per line. Prettier wants to wrap them, which we fix this with prettier-ignore.

Testing

We keep around an action-test branch in carbon-lang, which can be used to test triggers with push: configurations. For example:

on:
  push:
    branches: [action-test]