Skip to content

skeleton: every fixture is named by a build file; every language has tests/fixtures/hello #11174

Open

Description

@TrapsterDK

Part of #11158. Rules: docs/design/language-skeleton.md, section Fixtures. Related: #10985.

Where

  • Fixture directories whose name no BUILD.bazel, .bzl, MODULE.bazel, .rs, .py, .json or .toml file outside the fixture mentions (candidates; confirm each): apple/tests/fixtures/xcframework_share, cc/tests/fixtures/deployment_floors, env/tests/fixtures/env_codegen, python/tests/fixtures/python_audit, and adopt-csharp, adopt-fsharp, adopt-java, adopt-kotlin, adopt-scala, adopt-powershell.
  • No tests/fixtures/ directory: api_spec, avro, capnproto, flatbuffers, helm, thrift. Their fixtures sit directly in tests/ or in private/testdata.
  • Loose files directly in tests/fixtures/ with no fixture directory: asciidoc, cloudformation, dockerfile, rego, rst, sql.
  • Fixture names with hyphens: elixir-app, erlang-app, ocaml-app, haskell-app, adopt-*.
  • 37 of 59 languages have no tests/fixtures/hello/: android, ansible, api_spec, appimage, apple, asciidoc, avro, bicep, capnproto, cloudformation, cmake, cuda, dart, dockerfile, dotnet, elixir, env, erlang, flatbuffers, flutter, fortran, haskell, helm, kubernetes, lua, make, msix, ocaml, perl, pkl, qt, rego, rst, sql, terraform, thrift, wasi.

Fix

  • For each candidate: name the test that uses it, or delete it. A fixture found through a computed path gets its literal path in the BUILD.bazel that declares the test.
  • Move loose fixtures into <lang>/tests/fixtures/<name>/; rename to lower-case with underscores.
  • Add <lang>/tests/fixtures/hello/ to each of them: the smallest target of each common kind it exports, checked with dx_hello_output_test where the language has a binary.
  • Never delete a test without naming the test that covers it.

Done when

  • The fixture-name, fixture-hello and fixture-referenced lines are gone from the allowlist.
  • Every language's hello fixture builds and its test passes.

🤖 Generated with Claude Code

https://claude.ai/code/session_01Xut2hw7VSwpTcKWzXNfUDz

Activity

  1. added
    P2
    model:opus
    on Nov 10, 2026
  2. TrapsterDK commented on Nov 12, 2026

    @TrapsterDK
    CollaboratorAuthor

    PR #12173 renames the elixir/erlang/ocaml/haskell app fixtures. Remaining: other hyphenated fixtures (adopt-*, *-app), loose files in tests/fixtures, fixtures outside tests/fixtures (api_spec, avro, capnproto, flatbuffers, helm, thrift), unreferenced fixtures, and tests/fixtures/hello for 37 languages.

  3. TrapsterDK commented on Nov 12, 2026

    @TrapsterDK
    CollaboratorAuthor

    PR #12326 moves loose fixtures for asciidoc, rst, sql, cloudformation, dockerfile, rego. Remaining: loose files in bicep/ansible/appimage tests/fixtures; fixtures outside tests/fixtures (api_spec, astro, avro, capnproto, cc, flatbuffers, helm, thrift); hyphenated fixtures (adopt-*, *-app); unreferenced fixtures; tests/fixtures/hello for the fixture-hello languages. Note: //tools/testing:language_skeleton_test does not compile on main (stale sha2 import after #12188).

  4. TrapsterDK commented on Nov 12, 2026

    @TrapsterDK
    CollaboratorAuthor

    PR #12495 moves loose fixtures for bicep, ansible, appimage. Remaining: appimage-app and other hyphenated fixtures (adopt-*, *-app); loose files in cmake/kubernetes/make/msix/qt tests/fixtures; fixtures outside tests/fixtures (api_spec, astro, capnproto, cc, dart, flatbuffers, helm, thrift, ...); unreferenced fixtures; tests/fixtures/hello for the fixture-hello languages.

  5. TrapsterDK commented on Nov 17, 2026

    @TrapsterDK
    CollaboratorAuthor

    PR #12928 moves loose fixtures for cmake, make, kubernetes, msix and renames msix-app to msix_app. Remaining: qt loose files and qt-app/qt-rust/qt-tasks; other hyphenated fixtures (adopt-*, *-app); fixtures outside tests/fixtures (api_spec, astro, capnproto, cc, dart, flatbuffers, helm, thrift, ...); unreferenced fixtures; tests/fixtures/hello for the fixture-hello languages.

  6. TrapsterDK commented on Nov 17, 2026

    @TrapsterDK
    CollaboratorAuthor

    PR #12971 renames qt-app/qt-rust/qt-tasks to underscores and moves qt loose fixtures into widgets/, framework/, other/. Remaining: /tests/tags dirs (cc, dart, elixir, erlang, qt, typescript); other hyphenated fixtures (adopt-, *-app); fixtures outside tests/fixtures (api_spec, astro, capnproto, cc, dart, flatbuffers, helm, thrift, ...); unreferenced fixtures; tests/fixtures/hello for the fixture-hello languages.

  7. 64 remaining items

  8. TrapsterDK commented on Nov 23, 2026

    @TrapsterDK
    CollaboratorAuthor

    cloud-claim 4d177e98


    Generated by Claude Code

  9. added
    cloud-taken
    and removed
    cloud-pool
    on Nov 23, 2026
  10. TrapsterDK commented on Nov 23, 2026

    @TrapsterDK
    CollaboratorAuthor

    #14720 (on the train) moves haskell/tests/{mingw_cc,runtime} and dart/tests/{bench,codegen,negative,runtime,tags,web} under tests/fixtures and deletes the empty haskell/tests/negative.
    Next slice: flutter/tests/{contract,negative,runtime} the same way (check #14289 first, it touches flutter tests); then cc, lua (needs /lock-refresh nested=true), the php/powershell tests/runfiles and zig tests/sancov fixture-name lines, the fixture-referenced lines (android rust_starter), and tests/fixtures/hello for the fixture-hello languages.


    Generated by Claude Code

  11. added
    cloud-pool
    and removed
    cloud-taken
    on Nov 23, 2026
  12. TrapsterDK commented on Nov 23, 2026

    @TrapsterDK
    CollaboratorAuthor

    cloud-claim 4decb5dc


    Generated by Claude Code

  13. added
    cloud-taken
    and removed
    cloud-pool
    on Nov 23, 2026
  14. TrapsterDK commented on Nov 23, 2026

    @TrapsterDK
    CollaboratorAuthor

    Next slice: #14732 (train) moves flutter/tests/negative, zig/tests/sancov and powershell/tests/runfiles under tests/fixtures, and folds flutter/tests/contract into a new flutter/tests/BUILD.bazel. Still to do: flutter/tests/runtime after draft #14289 lands (it re-resolves that pubspec lock); php/tests/runfiles (in rules_php); cc tests/{gcc_,msvc_,tags}; lua (needs /lock-refresh nested=true); the android rust_starter fixture-referenced line; tests/fixtures/hello for the fixture-hello languages.


    Generated by Claude Code

  15. added
    cloud-pool
    and removed
    cloud-taken
    on Nov 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2cloud-poolmodel:opus

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions