From 5bc56c27d554db918306504e4593a20f27558f27 Mon Sep 17 00:00:00 2001 From: Munyoki Kilyungi Date: Thu, 24 Jul 2025 13:24:40 +0300 Subject: Update notes. Signed-off-by: Munyoki Kilyungi --- issues/CI-CD/cd-is-slow.gmi | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) 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. -- cgit 1.4.1