summary refs log tree commit diff
diff options
context:
space:
mode:
authorMunyoki Kilyungi2025-07-24 13:24:40 +0300
committerMunyoki Kilyungi2025-07-24 13:24:40 +0300
commit5bc56c27d554db918306504e4593a20f27558f27 (patch)
treebf243e2a40c9d4cd9bbf174d4fc27a32c683fa67
parentfd3f4857e9dae73c9658091668208b016a23c2e7 (diff)
downloadgn-ai-5bc56c27d554db918306504e4593a20f27558f27.tar.gz
Update notes.
Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
-rw-r--r--issues/CI-CD/cd-is-slow.gmi34
1 files changed, 34 insertions, 0 deletions
diff --git a/issues/CI-CD/cd-is-slow.gmi b/issues/CI-CD/cd-is-slow.gmi
index ec843c0b..9eba7c76 100644
--- a/issues/CI-CD/cd-is-slow.gmi
+++ b/issues/CI-CD/cd-is-slow.gmi
@@ -228,6 +228,40 @@ Ran a profiler against a traits page.  See the following:
 
 * The above is consistent all the analysis I've done across all the profile dumps.
 
+* Testing my theory out:
+
+```
+@app.route("/test-network")
+def test_network():
+    start = time.time()
+    http_url = urljoin(
+            current_app.config["GN_SERVER_URL"],
+            "version"
+        )
+    result =  requests.get(http_url)
+    duration = time.time() - start
+    app.logger.error(f"{http_url}: {duration:.4f}s")
+
+    start = time.time()
+    local_url = "http://localhost:9093/api/version"
+    result =  requests.get(local_url)
+    duration = time.time() - start
+    app.logger.error(f"{local_url}: {duration:.4f}s")
+    return result.json()
+```
+
+* Results:
+
+```
+2025-07-24 10:20:43 [2025-07-24 10:20:43 +0000] [101] [ERROR] https://cd.genenetwork.org/api3/version: 8.1647s
+2025-07-24 10:20:43 ERROR:gn2.wqflask:https://cd.genenetwork.org/api3/version: 8.1647s
+2025-07-24 10:20:43 [2025-07-24 10:20:43 +0000] [101] [ERROR] result: 1.0
+2025-07-24 10:20:43 ERROR:gn2.wqflask:result: 1.0
+2025-07-24 10:20:43 [2025-07-24 10:20:43 +0000] [101] [ERROR] http://localhost:9093/api/version: 0.0088s
+2025-07-24 10:20:43 ERROR:gn2.wqflask:http://localhost:9093/api/version: 0.0088s
+2025-07-24 10:20:43 [2025-07-24 10:20:43 +0000] [101] [ERROR] result: 1.0
+```
+
 ## Possible Mitigations
 
 * Switch over gn-auth.genenetwork.org to localhost.