Repository navigation
Conversation
klihub
added this pull request to stack #848
October 14, 2026 15:07
klihub
force-pushed
the
stacked/klihub/e2eish/go-verification
branch
from
October 14, 2026 15:19
4c66ff1 to
5107c4c
Compare
askervin
force-pushed
the
stacked/klihub/e2eish/go-verification
branch
from
October 15, 2026 06:14
5107c4c to
38061c2
Compare
klihub
force-pushed
the
stacked/klihub/e2eish/go-verification
branch
from
October 15, 2026 07:05
38061c2 to
8f28ad3
Compare
klihub
force-pushed
the
stacked/klihub/e2eish/go-verification
branch
2 times, most recently
from
October 16, 2026 17:26
14bbf78 to
61fcd66
Compare
klihub
force-pushed
the
stacked/klihub/e2eish/go-verification
branch
2 times, most recently
from
October 16, 2026 17:44
0d115b9 to
a14ed6f
Compare
klihub
force-pushed
the
stacked/klihub/e2eish/go-verification
branch
from
October 19, 2026 15:15
a14ed6f to
38b6b3b
Compare
bart0sh
force-pushed
the
stacked/klihub/e2eish/go-verification
branch
from
October 19, 2026 15:25
38b6b3b to
94a0b01
Compare
klihub
force-pushed
the
stacked/klihub/e2eish/go-verification
branch
from
October 19, 2026 18:14
94a0b01 to
2cfbc90
Compare
klihub
force-pushed
the
stacked/klihub/e2eish/go-verification
branch
from
October 20, 2026 07:55
2cfbc90 to
f96b6df
Compare
klihub
removed this pull request from stack #848
October 20, 2026 08:38
klihub
added this pull request to stack #867
October 20, 2026 08:39
bart0sh
force-pushed
the
stacked/klihub/e2eish/go-verification
branch
from
October 20, 2026 09:11
f96b6df to
cd6647e
Compare
bart0sh
reviewed
Oct 20, 2026
bart0sh
left a comment
Collaborator
There was a problem hiding this comment.
Review done with Claude Code, I checked the findings.
I compared the translations against python3 on about 90 expressions, and every shape the translator supports agrees with python. All tests, lint and race are clean, and with #847 on top the generated tests drop from about 88s to about 24s. A few small things inline, none of them block the PR from my side.
There was a problem hiding this comment.
🟡 Changes recommended
Duplicate integer literals change assertion results, and allocation changes can cause false cross-check failures.
2 open issues
What changed in this PR
Adds native Go verification to the e2e log replay tooling, reducing reliance on Python.
Changes:
- Translates supported Python expressions into Go assertions.
- Adds topology state accessors and set helpers.
- Cross-checks Go state against Python while retaining fallback verification.
| File | Description |
|---|---|
| test/e2e/README.md | Documents native assertions and Python fallback. |
| pkg/testutils/e2eish/state.go | Adds topology names and state accessors. |
| pkg/testutils/e2eish/state_test.go | Tests topology naming and missing-Python behavior. |
| pkg/testutils/e2eish/set.go | Adds set operations and assertions. |
| pkg/testutils/e2eish/set_test.go | Tests set helpers. |
| pkg/testutils/e2eish/script.go | Adds state cross-checks and Python reporting. |
| pkg/testutils/e2eish/script_test.go | Tests reporting and container visibility. |
| pkg/testutils/e2eish/replay.go | Captures Python state during verification. |
| pkg/testutils/e2eish/pygo.go | Translates Python expressions into Go assertions. |
| pkg/testutils/e2eish/pygo_test.go | Tests translation and fallback cases. |
| pkg/testutils/e2eish/pyexpr.go | Parses supported Python expressions. |
| pkg/testutils/e2eish/generate.go | Emits native assertions and prunes unused Python constants. |
Review effort: Balanced
klihub
force-pushed
the
stacked/klihub/e2eish/go-verification
branch
from
October 20, 2026 11:25
cd6647e to
775f9e8
Compare
klihub
force-pushed
the
stacked/klihub/e2eish/go-verification
branch
from
October 20, 2026 11:33
775f9e8 to
93e5f5e
Compare
klihub
force-pushed
the
stacked/klihub/e2eish/go-verification
branch
from
October 20, 2026 20:15
d9bf370 to
328248a
Compare
klihub
force-pushed
the
stacked/klihub/e2eish/go-verification
branch
from
October 21, 2026 09:10
328248a to
526633d
Compare
klihub
force-pushed
the
stacked/klihub/e2eish/go-verification
branch
from
October 21, 2026 11:39
526633d to
42ef9af
Compare
klihub
force-pushed
the
stacked/klihub/e2eish/go-verification
branch
from
October 21, 2026 15:01
42ef9af to
72cc86d
Compare
klihub
force-pushed
the
stacked/klihub/e2eish/go-verification
branch
from
October 21, 2026 15:03
72cc86d to
da546a2
Compare
klihub
force-pushed
the
stacked/klihub/e2eish/go-verification
branch
from
October 21, 2026 17:12
da546a2 to
e01923f
Compare
klihub
force-pushed
the
stacked/klihub/e2eish/go-verification
branch
from
October 21, 2026 19:31
e01923f to
42748d1
Compare
Add Set, a set of topology.py names, and Script accessors which compute in Go what the verify expressions of e2e tests see of a container: CPUs, Mems, Nodes, Cores, Threads, Dies and Packages, and CPUIDs, NodeIDs and PackageIDs for literals. RequireDisjoint and IDs are disjoint_sets and the *_ids helpers. At every assertion of a replay, python also prints the state it sees, and the replay requires the accessors to give the same. With no python3, a generated test skips only its python assertions, while a replay still skips. Assisted-by: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Krisztian Litkey <krisztian.litkey@intel.com>
Translate the verify expressions of e2e test logs into
require assertions on the state of the Script, like
require.Len(t, s.CPUs("pod0c0"), 1), with a parser for the
python subset the logs use. An expression of another shape,
or one whose Go would not mean the same, stays python. A
literal becomes CPUIDs and the like only if it is padded as
the machine pads it.
Assisted-by: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Krisztian Litkey <krisztian.litkey@intel.com>
klihub
force-pushed
the
stacked/klihub/e2eish/go-verification
branch
from
October 22, 2026 07:14
42748d1 to
06e5838
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.


Translate logged python verify expressions of e2e tests into testify require assertions in Go, falling back to python if we lack necessary state. The replay cross-checks the Go state against python at every assertion.