Repository navigation
Conversation
…elf-check The seed writes the nine fixture shapes as named Zipkin spans in a past window. cases.json pairs each query with a JSON AST that the self-check prints back to the query; the oracle evaluates the AST to the expected traces, listed spans and matched counts, and the self-check holds it to hand-checked results. The e2e diffs /api/search against the oracle for plain selectors, spss, limit and the (from, to] boundary.
Search lists the three newest spans per spanset by default; matched still counts all ten.
The oracle relates spans to their parent and siblings over the whole seed,
skipping spans that cannot reach a root. Cases cover every one-hop operator
on every seed shape, chains, grouping, {} operands and the time-range
edges, with hand-checked results.
The oracle evaluates >>, << and their ! and & variants and models the ancestry round limit of the e2e stack (R=3): a candidate trace with a span 2^R or more parent links from a root or a missing parent fails the search. 42 cases cover every transitive operator on every shape, the depth-9 chain erroring and the depth-8 chain resolving, and the children-first tree before and after its root lands.
A metrics oracle evaluates every metrics function over the oracle's search result spans; the e2e diffs range, instant and compare() series and checks that exemplars are result spans of their bucket.
Tags v2 and values v2 cases over selectors, structural operators, && and ||, the unfiltered path, limit, a pushes-phased case and the round-limit error. The oracle suggests the keys or values of its result spans.
The oracle evaluates select() per listed span, samples metrics result spans with ClickHouse's cityHash64 by trace or span id, and thins exemplars per series. Adds 8 search and 10 metrics cases with hand-checked results.
… an error The oracle follows the search's final rules: an unresolved span relates to nothing, and <<, !<<, &>> and &<< return no span from a candidate trace holding one. One-hop operators relate every span of a trace with a root and no missing parent. The UNRESOLVED_ERROR handling and the cycle test go, the eight unresolved cases get re-derived expectations, and the four that no longer error lose "error" from their ids.
A self-parent span, and a 3-span cycle with a child below it in a trace with a real root, seeded out of every other case's range. Cases pin the transitive and one-hop operators and their ! and & variants on both.
chain8 stays in the results, so skipping chain9 is not vacuous.
…pshots The snapshots pin the traces of a search response, not its metrics block.
44YHC
force-pushed
the
traceql-structural-ops
branch
from
November 9, 2026 17:38
f54fbc3 to
c220c32
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
A TraceQL grid suite for metrico/gigapipe#1034. It covers structural operators, the pipeline and field expressions in search, metrics and autocomplete.
Since the review of gigapipe#1034:
main, which now has the PromQL and LogQL grid suites.>>,!>>and the one-hop operators, and<<,!<<,&>>and&<<return no spans from that trace. The deep-chain cases are re-derived under it and renamed (tr_chain9_deep_unreachable,tr_chain9_skip_shallow_operands,tr_chain9_not_nested,tr_empty_operands).metricsblock is left out of the snapshots, since its job counts depend on portioning.Evidence
jest grid/traceql/oracle.test.js) passes.grid.traceqlon 24.9.standard grid/traceql/: clean.Merge Danger
Door: two-way. Tests only.
Blast Radius: CI. gigapipe
masterfails these cases until gigapipe#1034 merges. #24 merges into this branch first; then this merges intomain, and gigapipe re-pinsE2E_TESTS_REFtomainbefore #1034's squash merge.