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 — test: is_pending() test holds the worker with SQL script SLEEP and proves the hold by tae898 · Pull Request #160 · humemai/arcadedb-embedded-python

This repository was archived by the owner on Nov 21, 2026. It is now read-only.

Conversation

@tae898

@tae898 tae898 commented Oct 4, 2026

Copy link
Copy Markdown

Fixes #159.

test_async_executor_is_pending_true_while_queued held the single async worker with SELECT sleep(1500), a function ArcadeDB SQL does not have, so nothing was held and the test raced the drain; only the fastest CI runner (macOS arm64, Python 3.13, run 37199978708) lost. It now holds the worker with SQL script's SLEEP 1500 and asserts the hold happened: the queue takes at least 1.2 s to drain and stores all 50 rows.

Locally: the fixed test passed 3 of 3 (about 2.6-3.0 s each); the old hold drains in 0.085 s, which the new assertion fails.

🤖 Generated with Claude Code

https://claude.ai/code/session_01DeKEhHXJTy1H1GgbfBZ8mL

Sorry, something went wrong.

Uh oh!

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

All reactions
@tae898 @claude
test: is_pending() test holds the worker with SQL script SLEEP and pr…
a52ed88
…oves the hold (#159)

The hold was SELECT sleep(1500), and ArcadeDB SQL has no sleep() function:
the command failed on the async worker, the error was swallowed, and the
test raced the drain (lost on CI's macOS Python 3.13 runner, run
37199978708). SLEEP 1500 in SQL script holds the worker, and the test now
asserts the queue took at least 1.2 s to drain and stored all 50 rows, so a
hold that stops holding fails here instead of turning back into a race.
Checked: the fixed test passed 3 of 3 locally; the old hold drains in
0.085 s, which the new assertion fails.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01DeKEhHXJTy1H1GgbfBZ8mL
@tae898
tae898 merged commit 6614316 into main Oct 4, 2026
48 checks passed

Uh oh!

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

@tae898 tae898 mentioned this pull request Oct 6, 2026
Benchmark docs: stale-documentation audit 2026-10-06, retire the October chain narrative, condense built re-pin rows, fix stale facts #227
Closed
@tae898
tae898 deleted the test-async-pending-real-hold branch October 7, 2026 14:36
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Reviewers

No reviews

Uh oh!

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

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

test_async_executor_is_pending_true_while_queued is a race: its 1.5 s hold calls a SQL function that does not exist

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.