Skip to content

harness/python: fix stale thought summary test assertions - #291

Merged
joycel-github merged 1 commit into
mainfrom
fix-thought-whitespace-test-assertions
Jul 11, 2026
Merged

harness/python: fix stale thought summary test assertions#291
joycel-github merged 1 commit into
mainfrom
fix-thought-whitespace-test-assertions

Conversation

@joycel-github

@joycel-githubjoycel-github commented Jul 10, 2026

Copy link
Copy Markdown
Collaborator

Fix 2 stale test assertions in python/antigravity/harness_server_test.py.

former PR changed the format but this test didn't get auto triggered

Next: make python test auto triggered

PR #244 normalized thought summary text with a trailing '\n' in
harness_server.py but harness_server_test.py wasn't updated.
test_grpc_connect_success and test_grpc_connect_buffering assert
against the pre-normalization strings and fail.
The drift went unnoticed because the Python tests aren't wired
into CI (.github/workflows/go.yml only runs go test ./...).
Wiring pytest into CI is the follow-up.
joycel-github added a commit that referenced this pull request Jul 10, 2026
The 17 tests in python/antigravity/harness_server_test.py have never
run in CI. .github/workflows/go.yml only runs 'go test ./...' and the
Makefile 'test' target likewise only runs Go. That let PR #244 land
with 2 stale assertions unnoticed (fixed in #291, which this stacks
on).
Adds:
- .github/workflows/python.yml \u2014 dedicated Python workflow (kept
separate from the Go-only go.yml so each can evolve independently).
- Makefile 'test-python' target for local parity.
Test deps are inlined in the workflow rather than added as a separate
requirements-test.txt \u2014 the diff is 2 packages ('pytest>=7.0',
'pytest-timeout>=2.0'), not worth its own file. Version floors match
the upstream google-antigravity SDK's dev extras so this doesn't
drift as pytest evolves.
--timeout=30 --timeout-method=thread guards against hung gRPC servers
so a stuck test can't eat the whole workflow budget.
joycel-github added a commit that referenced this pull request Jul 10, 2026
The 17 tests in python/antigravity/harness_server_test.py have never
run in CI. .github/workflows/go.yml only runs 'go test ./...' and the
Makefile 'test' target likewise only runs Go. That let PR #244 land
with 2 stale assertions unnoticed (fixed in #291, which this stacks
on).
Adds:
- .github/workflows/python.yml \u2014 dedicated Python workflow (kept
separate from the Go-only go.yml so each can evolve independently).
- Makefile 'test-python' target for local parity.
Test deps are inlined in the workflow rather than added as a separate
requirements-test.txt \u2014 the diff is 2 packages ('pytest>=7.0',
'pytest-timeout>=2.0'), not worth its own file. Version floors match
the upstream google-antigravity SDK's dev extras so this doesn't
drift as pytest evolves.
--timeout=30 --timeout-method=thread guards against hung gRPC servers
so a stuck test can't eat the whole workflow budget.
@joycel-github
joycel-github marked this pull request as ready for review July 10, 2026 21:59
@joycel-github
joycel-github merged commit 2bff149 into mainJul 11, 2026
8 checks passed
joycel-github added a commit that referenced this pull request Jul 11, 2026
The 17 tests in python/antigravity/harness_server_test.py have never
run in CI. .github/workflows/go.yml only runs 'go test ./...' and the
Makefile 'test' target likewise only runs Go. That let PR #244 land
with 2 stale assertions unnoticed (fixed in #291).
Adds:
- .github/workflows/python.yml -- dedicated Python workflow (kept
separate from the Go-only go.yml so each can evolve independently).
- Makefile 'test-python' target for local parity.
Test deps are inlined in the workflow rather than added as a separate
requirements-test.txt -- the diff is 2 packages ('pytest>=7.0',
'pytest-timeout>=2.0'), not worth its own file. Version floors match
the upstream google-antigravity SDK's dev extras so this doesn't
drift as pytest evolves.
--timeout=30 --timeout-method=thread guards against hung gRPC servers
so a stuck test can't eat the whole workflow budget.
joycel-github added a commit that referenced this pull request Jul 13, 2026
The 17 tests in python/antigravity/harness_server_test.py have never
run in CI. .github/workflows/go.yml only runs 'go test ./...' and the
Makefile 'test' target likewise only runs Go. That let PR #244 land
with 2 stale assertions unnoticed (fixed in #291).
Adds:
- .github/workflows/python.yml -- dedicated Python workflow (kept
separate from the Go-only go.yml so each can evolve independently).
- Makefile 'test-python' target for local parity.
Test deps are inlined in the workflow rather than added as a separate
requirements-test.txt -- the diff is 2 packages ('pytest>=7.0',
'pytest-timeout>=2.0'), not worth its own file. Version floors match
the upstream google-antigravity SDK's dev extras so this doesn't
drift as pytest evolves.
--timeout=30 --timeout-method=thread guards against hung gRPC servers
so a stuck test can't eat the whole workflow budget.
rakyll pushed a commit that referenced this pull request Jul 21, 2026
more clarification on resume --last-seq behavior
rakyll pushed a commit that referenced this pull request Jul 21, 2026
PR #244 normalized thought summary text with a trailing '\n' in
harness_server.py but harness_server_test.py wasn't updated.
test_grpc_connect_success and test_grpc_connect_buffering assert
against the pre-normalization strings and fail.
The drift went unnoticed because the Python tests aren't wired
into CI (.github/workflows/go.yml only runs go test ./...).
Wiring pytest into CI is the follow-up.
rakyll pushed a commit that referenced this pull request Jul 21, 2026
The 17 tests in python/antigravity/harness_server_test.py have never
run in CI. .github/workflows/go.yml only runs 'go test ./...' and the
Makefile 'test' target likewise only runs Go. That let PR #244 land
with 2 stale assertions unnoticed (fixed in #291).
Adds:
- .github/workflows/python.yml -- dedicated Python workflow (kept
separate from the Go-only go.yml so each can evolve independently).
- Makefile 'test-python' target for local parity.
Test deps are inlined in the workflow rather than added as a separate
requirements-test.txt -- the diff is 2 packages ('pytest>=7.0',
'pytest-timeout>=2.0'), not worth its own file. Version floors match
the upstream google-antigravity SDK's dev extras so this doesn't
drift as pytest evolves.
--timeout=30 --timeout-method=thread guards against hung gRPC servers
so a stuck test can't eat the whole workflow budget.
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@joycel-github@rakyll