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 — tests: start every server test on a free port by tae898 · Pull Request #466 · 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 22, 2026 •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown

Fixes #464

Every test that starts a server on the default or a fixed port now passes config={"http_port": free_port()}, with one free_port() helper in tests/conftest.py (the wire-protocol tests keep their own _free_ports, which hands out several distinct ports at once). Touches test_server_patterns.py (all six servers, including test_embedded_performance_comparison and test_http_api_access_pattern), test_server.py (the fixed 2480 and 8080 become free ports and the asserts compare against the chosen port), test_server_packaging.py and test_server_http_endpoints.py.

Draft until the run below is in: the four files are queued behind other jobs in quiet_build.sh, once with a dummy listener holding 0.0.0.0:2480 to prove the fix. Results will be added here.

🤖 Generated with Claude Code

Sorry, something went wrong.

Uh oh!

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

All reactions
@tae898 @claude
tests: start every server test on a free port (Fixes #464)
e62d486
Server tests that used the default or a fixed port failed when anything else held 2480. A free_port() helper in conftest picks one per test.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@tae898

tae898 commented Oct 22, 2026

Copy link
Copy Markdown
Author

Ran the four server test files with port 2480 held by a dummy listener for the whole run: ============================= 21 passed in 16.33s ==============================. Before this change, tests on the fixed port failed with "Unable to listen to a HTTP port in the configured port range 2480 - 2480" whenever 2480 was taken.

All reactions

Sorry, something went wrong.

Uh oh!

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

@tae898
tae898 marked this pull request as ready for review October 22, 2026 05:22
@tae898
tae898 merged commit fe4aa86 into main Oct 22, 2026
15 checks passed

Uh oh!

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

@tae898
tae898 deleted the fix-test-free-port branch October 22, 2026 05:22
@tae898 tae898 mentioned this pull request Oct 24, 2026
tests: start every server test on a free port ArcadeData/arcadedb-python#36
Merged
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.

Server tests start on the fixed port 2480 and fail when something else holds it

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.