Skip to content

Add gor test-server option#123

Merged
bragnarsson merged 10 commits into
mainfrom
add-test-server
Jun 12, 2026
Merged

Add gor test-server option#123
bragnarsson merged 10 commits into
mainfrom
add-test-server

Conversation

@bragnarsson

@bragnarsson bragnarsson commented Jun 8, 2026

Copy link
Copy Markdown
Contributor

When running multiple gor queries in sequence, e.g. 30 queries that each complete in a second, the startup time of gorpipe starts to be significant. This PR adds a gor test-server subcommand that runs gorpipe as a server, e.g.

gor test-server --port 9000 --cachedir=tmp3 --config=config/gor_config.txt
GOR test server listening on port 9000

curl -X POST http://localhost:9000/query -d "gorrow chr1,50000|calc x refbases(chrom,pos,pos+10)"
chrom pos x
chr1 50000 TAAACAGGTTA

In one actual example a pytest completes in 9 seconds with gor test-server but takes 59 seconds when starting gorpipe for each query.

NOTE: this was done by claude ai with a bit of guidance and feedback from testing.

gmagnu
gmagnu approved these changes Jun 12, 2026
@gmagnu gmagnu self-requested a review June 12, 2026 11:51
@github-actions

github-actions Bot commented Jun 12, 2026

Copy link
Copy Markdown

Junit Tests - Summary

4 644 tests  ±0   4 467 ✅ ±0   17m 42s ⏱️ -2s
  473 suites ±0     177 💤 ±0 
  473 files   ±0       0 ❌ ±0 

Results for commit a408c9b. ± Comparison against base commit cb978ca.

♻️ This comment has been updated with latest results.

@gmagnu gmagnu left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@bragnarsson bragnarsson merged commit d0e0336 into main Jun 12, 2026
14 checks passed
@bragnarsson bragnarsson deleted the add-test-server branch June 12, 2026 16:02
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.

2 participants