Visitar URL original
native preview: switch the polyglot engine off in the image (no 'no languages found' WARNING) by tae898 · Pull Request #500 · humemai/arcadedb-embedded-python · GitHub
Skip to content

native preview: switch the polyglot engine off in the image (no 'no languages found' WARNING) - #500

Merged
tae898 merged 4 commits into
native-previewfrom
fix-477-polyglot-warning
Oct 24, 2026
Merged

tae898 merged 4 commits into
native-previewfrom
fix-477-polyglot-warning

Conversation

@tae898

@tae898 tae898 commented Oct 24, 2026

Copy link
Copy Markdown

Closes #477

The native image carries no GraalVM polyglot languages by design, but QueryEngineManager still asked the polyglot engine for its languages on first use. That lookup throws in the image, and GraalPolyglotEngine logs GraalVM Polyglot Engine: no languages found at WARNING in every process.

The engine already has a switch for this: arcadedb.polyglotEngineEnabled (the low-ram profile sets it to false). ArcadeNative now sets GlobalConfiguration.POLYGLOT_ENGINE_ENABLED to false in a static initializer, which runs at run time before the first entry point and so before QueryEngineManager loads. No logging config is touched, so other warnings still show. The native wheel README lists the missing polyglot languages under "Not supported yet".

Verified here (static/unit, no native build): bindings/python/tests/test_native_startup.py::test_the_image_glue_switches_the_polyglot_engine_off_before_any_entry_point passes with the fix and fails without it; pre-commit passes on the changed files.

Not verified, needs a native build: test_the_first_open_writes_nothing_at_warning (same file, native backend only, runs in the native parity run) checks that a fresh process writes nothing at WARNING or above on first open. The image was not rebuilt for this PR, so confirm it on the next preview build (26.10.2.dev1).

Based on native-preview, where the native wheel code lives.

🤖 Generated with Claude Code

tae898 and others added 2 commits October 24, 2026 20:21
…'no languages found' WARNING at startup)

The image carries no GraalVM polyglot languages, so the engine's language registration always logged a WARNING in every process. ArcadeNative now sets arcadedb.polyglotEngineEnabled=false in a static initializer. A static test pins it; a native-only test checks the first open writes nothing at WARNING.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
tae898 and others added 2 commits October 24, 2026 23:31
A skip in the JPype job fails scripts/check_test_skips.py; the repo's way is a file conftest.py does not collect on that backend (as test_native_udf.py). The static check stays in test_native_startup.py and runs everywhere.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@tae898
tae898 merged commit 91a6ad7 into native-preview Oct 24, 2026
41 of 43 checks passed
@tae898
tae898 deleted the fix-477-polyglot-warning branch October 24, 2026 15:57
Sign up for free to 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.

1 participant