GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Native get_stats returns only counters, and three tests fit engine 26.12.1 by tae898 · Pull Request #520 · ArcadeData/arcadedb-python

Conversation

@tae898

@tae898 tae898 commented Nov 27, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Collaborator

What does this PR do?

It fixes the four tests that fail when the native build links upstream's 26.12.1-SNAPSHOT engine (run 45981445735). Two of the failures are one bug in the bindings, and the other two are problems in the tests.

Test Cause What changes
test_vector.py::test_lsm_index_stats and test_vector_index_introspection.py::test_values_are_plain_scalars... Engine 26.12.1 adds a metadata map to the schema:index:<name> row (upstream #13097). The native get_stats() returned it as if it were a counter. Bindings: get_stats() keeps only the integer counters. The introspection test is stricter, and a new test covers the filter.
test_native_count.py::test_count_then_facets_of_a_facets_query_returns_the_facets The test called rs.facets(), but facets is a property. This branch runs only on an engine with FACETS, so it never ran on 26.11.1. Test only.
test_native_async_callbacks.py::test_wait_completion_gives_back_the_ids_of_every_kind_of_call Engine 26.12.1 refuses the commit of a transaction that read a page it had written when another transaction committed to that page (upstream #11671). With several async workers, a worker's scan_type can share its transaction with a create_record, which is not run again. The test is about callback ids, so it now uses one worker. A new test in test_concurrency.py pins the engine rule on both engines.

Verification

The weekly snapshot workflow (native build, linux-x86_64, engine 26.12.1-SNAPSHOT), dispatched twice on 2026-11-27:

Leg main at adfdbbf this branch at 87464b5
Python 3.12 4414 passed, 4 failed 4421 passed, 0 failed
Python 3.11 399 passed, 1 failed 402 passed, 0 failed
Python 3.14 399 passed, 1 failed 402 passed, 0 failed

The branch was then rebased onto 63ced32 (#519, CI only, no conflict). The pull request checks on the rebased head pass: the native shards on engine 26.11.1 (4443 passed, 0 failed) and the JVM shards on a 26.12.1-SNAPSHOT image (4385 passed, 0 failed).

The JVM package on the same engine version: the push run on main after #508 (run 45982508091, image 26.12.1-SNAPSHOT) was green, with 4360 passed and 0 failed on linux/amd64, Python 3.12. Its get_stats() reads the engine's counters directly, so the new column does not reach it.

For the async test, the new test_concurrency.py case shows the engine rule itself (refused on 26.12.1-SNAPSHOT, merged on 26.11.1). That this rule is what failed the async test is my reading of the engine code: the test failed in both snapshot runs on main and passed with one worker.

Related issues

Closes #516

Docs

The async executor page now says what a caller sees at parallel level 2 or higher, including the new rule of engine 26.12.1. get_stats() is back to what its docs already say, counters only.

Checklist

  • A regression test fails on the old code and passes on the new (the filter test calls a function the old code does not have, and the old assertions fail on the snapshot engine)
  • The test suite that the change can affect passes
  • The black, isort, and ruff-check hooks pass on the changed files, and Bandit is clean

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@tae898 tae898 added this to the 26.12.1 milestone Nov 27, 2026
@tae898 tae898 added bug Something isn't working native The arcadedb package (native library build) labels Nov 27, 2026
@tae898 tae898 self-assigned this Nov 27, 2026
@tae898
Native get_stats returns only counters, and three tests fit engine 26…
c1114d4
….12.1

The weekly snapshot run failed four tests on 26.12.1-SNAPSHOT.

get_stats (native): engine 26.12.1 adds a `metadata` map to the
`schema:index:<name>` row (https://redirect.github.com/ArcadeData/arcadedb/pull/13097).
The native wheel returned every column outside a fixed list, so the map showed up
as a counter. It now keeps integer columns outside that list, which matches the
map of longs that the JVM wheel returns, and a later descriptive column of another
type is left out too.

Facets: the test called `rs.facets()`, but `facets` is a property. The branch only
runs on an engine with FACETS, so it never ran on 26.11.1.

Async callback ids: from 26.12.1 a transaction that read a page it had written is
refused when another transaction committed to that page
(https://redirect.github.com/ArcadeData/arcadedb/pull/11671). With several workers
the test's scan_type shares a worker batch with a create_record, which is not run
again, so the callbacks got ConflictError. The test is about callback ids, so it
uses one worker. A new test pins the engine rule on both engines, and the async
executor page says what a caller sees.
@tae898
tae898 force-pushed the fix/516-snapshot-engine branch from 87464b5 to c1114d4 Compare November 27, 2026 11:46
@tae898
tae898 merged commit e228a36 into main Nov 27, 2026
25 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@tae898
tae898 deleted the fix/516-snapshot-engine branch November 27, 2026 11:58
@tae898 tae898 mentioned this pull request Nov 27, 2026
ci: a pull request tests one platform and one Python, in shards, with a cached native library #519
Merged
2 of 3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

@tae898 tae898

Labels

bug Something isn't working native The arcadedb package (native library build)

Projects

None yet

Milestone

26.12.1

Development

Successfully merging this pull request may close these issues.

Full CI is red on main: Test native (engine snapshot)

Uh oh!

There was an error while loading. Please reload this page.

1 participant

@tae898
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.