Skip to content

test(#451): a batch that one test leaves collected no longer reaches the recorder of the next - #485

Merged
tae898 merged 1 commit into
mainfrom
test/451-leftover-batch
Nov 25, 2026
Merged

tae898 merged 1 commit into
mainfrom
test/451-leftover-batch

Conversation

@tae898

@tae898 tae898 commented Nov 25, 2026

Copy link
Copy Markdown
Collaborator

What does this PR do?

It explains and fixes the third failure of the first red run in #451, the 10 s wait for a hand-over on windows-x64 (run 45056236348). It is a fault of the unit tests, not of the executor, and it was a cascade of the failure before it.

  • test_the_entry_of_an_earlier_batch_does_not_cut_a_later_batch_short failed on two equal due times (fixed by Async batch unit tests: no thread count across tests, a clock step between two batches, and the state of a hand-over that does not come #455) with 2 records still collected and a linger time of 0.1 s. In the artifact it took 0.002 s.
  • The linger thread of that test handed the 2 records over later, through extras._call, which by then was the recorder of the next test, test_the_order_of_the_calls_holds_across_linger_hand_overs_and_flush_points.
  • That test waits until the recorder holds exactly as many records as it sent. With 2 foreign records the count passes the expected one and the wait cannot end. It took 9.998 s, so it was the first wait.

The library fixture now stops every executor made under it before the patches are undone. src/ is not touched.

Related issues

Closes #451. The other failures of that issue: the thread count and the equal due times are fixed by #455, and the vector race is #409 with the rerun of #463.

Docs

None needed: a test-only change.

Checklist

  • A regression test fails on the old code and passes on the new
  • The test suite that the change can affect passes
  • uvx pre-commit run --files <changed files> passes

I ran these on Linux, Python 3.12, with no JVM and no native library (the file needs neither):

Run Result
the two tests as of 076d6d5, clock in 15.625 ms steps, the first test made to fail where it failed on Windows, the second delayed past the left due time the order test fails after 10 s: round 0, sent 3, recorded 5
the new test with the teardown removed fails
the patched file 59 passed
the same two old tests with the patched fixture the order test passes

The first row forces the timing. On its own, with only the clock step, the order test passed.

…the next test's recorder

The 10 s wait for a hand-over on windows-x64 (run 45056236348) was a cascade of the failure before it. The test
before the order test failed on two equal due times with 2 records still collected and a linger time of 0.1 s. Its
linger thread handed them over through extras._call, which by then was the recorder of the order test, so the
count of that test went past the expected one in its first round and its wait could never end.

The library fixture now stops every executor made under it before the patches are undone. A new test leaves a batch
collected and checks that the next recorder sees nothing; it fails without the teardown.
@tae898 tae898 added this to the 26.12.1 milestone Nov 25, 2026
@tae898 tae898 added bug Something isn't working github_actions Pull requests that update GitHub Actions code python Pull requests that update python code native The arcadedb package (native library build) labels Nov 25, 2026
@tae898 tae898 self-assigned this Nov 25, 2026
@tae898
tae898 merged commit 1ef4f7d into main Nov 25, 2026
24 checks passed
@tae898
tae898 deleted the test/451-leftover-batch branch November 25, 2026 00:39
@tae898 tae898 mentioned this pull request Nov 30, 2026
1 of 10 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working github_actions Pull requests that update GitHub Actions code native The arcadedb package (native library build) python Pull requests that update python code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Full CI is red on main: Test native (arcadedb)

1 participant