Commit Graph

390 Commits

Author SHA1 Message Date
lukaszraczylo 86fa0551df Update go.mod and go.sum (#35) v0.42.27 2025-12-27 03:30:00 +00:00
lukaszraczylo 4be6b0f6cf Update go.mod and go.sum (#34) v0.42.25 2025-12-25 03:30:50 +00:00
lukaszraczylo 6bc4cfd916 Update go.mod and go.sum (#33) v0.42.23 2025-12-24 03:30:40 +00:00
lukaszraczylo a3093fe2d1 Update go.mod and go.sum (#32) v0.42.21 2025-12-23 03:29:03 +00:00
lukaszraczylo c0f5f0830d Add signing of the builds v0.42.19 2025-12-15 00:42:45 +00:00
lukaszraczylo 623cbbcae3 Add signing images and binaries. 2025-12-14 23:38:06 +00:00
lukaszraczylo 05a07fde42 Update go.mod and go.sum (#31) v0.42.17 2025-12-13 03:23:40 +00:00
lukaszraczylo c926d0d0a3 Update go.mod and go.sum (#30) v0.42.15 2025-12-09 22:29:00 +00:00
lukaszraczylo 6c96880eae fixup! Use shared PR workflow. v0.42.13 2025-12-09 22:25:34 +00:00
lukaszraczylo 7f78869a8a Use shared PR workflow. v0.42.11 2025-12-08 01:31:15 +00:00
lukaszraczylo 794ec6a752 Trigger autoupdate. 2025-12-08 01:13:03 +00:00
lukaszraczylo 9678b8f7b9 fixup! fixup! fixup! Github pages + benchmarks. 2025-12-07 17:00:33 +00:00
lukaszraczylo 7bb76893f5 fixup! fixup! Github pages + benchmarks. 2025-12-07 16:53:54 +00:00
lukaszraczylo 4ef42e5781 fixup! Github pages + benchmarks. v0.42.4 v0.42.2 2025-12-07 16:49:50 +00:00
lukaszraczylo 996d29b57b Github pages + benchmarks. v0.42.3 2025-12-07 16:46:13 +00:00
lukaszraczylo 7c80d6adaa Create CNAME 2025-12-07 16:45:33 +00:00
lukaszraczylo 31fc3ae3d9 Switch to goreleaser. v0.42.1 2025-12-07 16:13:33 +00:00
lukaszraczylo da8ec5f21d Add LRU cache support. v0.41.20 2025-12-03 10:22:33 +00:00
lukaszraczylo 3d80f457d3 Update go.mod and go.sum
Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
v0.41.17
2025-12-03 03:24:59 +00:00
lukaszraczylo 09c3e4cd95 Update go.mod and go.sum
Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
v0.41.13
2025-12-02 03:26:31 +00:00
lukaszraczylo d07ee4090c Dashboard update. v0.41.9 2025-11-29 15:53:05 +00:00
lukaszraczylo b1045b8bc2 Retry budget. v0.41.6 2025-11-29 15:36:17 +00:00
lukaszraczylo cc35031db9 Fixes issue with the dashboard metrics. v0.41.3 2025-11-29 14:51:29 +00:00
lukaszraczylo 6a69694ab3 November improvements. (#29)
* Tackling the CPU / memory spikes after some time.

* Update admin dashboard, fix the circuit breaker and request coalescing.
v0.40.1
2025-11-29 14:21:09 +00:00
lukaszraczylo b210627fb7 Update go.mod and go.sum
Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
v0.39.7
2025-11-27 03:21:34 +00:00
lukaszraczylo edcabe3cf0 Update go.mod and go.sum
Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
v0.39.3
2025-11-25 03:23:21 +00:00
lukaszraczylo c99bf2b245 fixup! Improve caching by adding user ids and roles to hash. v0.38.1 2025-11-22 17:10:59 +00:00
lukaszraczylo 39dc7b49cf Improve caching by adding user ids and roles to hash. 2025-11-22 17:02:16 +00:00
lukaszraczylo 28223b40da Update go.mod and go.sum
Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
v0.36.27
2025-11-20 03:20:52 +00:00
lukaszraczylo ee5618c699 Update go.mod and go.sum
Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
v0.36.23
2025-11-19 03:21:29 +00:00
lukaszraczylo 94c097bc6c fixup! Race condition in parseGraphQLQuery result pooling v0.36.19 2025-11-18 17:27:55 +00:00
lukaszraczylo 4e84cd7461 Race condition in parseGraphQLQuery result pooling
Under high concurrency, the sync.Pool pattern was creating a race condition
where the same result pointer was being reused by multiple concurrent requests.

The bug:
- parseGraphQLQuery() returns a pointer to 'res' from the pool
- The defer statement returns 'res' back to the pool on function exit
- While the caller is still using the returned pointer, another concurrent
  request could get the SAME pointer from the pool and modify it

This caused mutations to randomly get the wrong activeEndpoint value:
- Request A: mutation parsed → activeEndpoint set to :8080 (write)
- Request A: returns pointer to result
- Request A: defer runs → result returned to pool
- Request B: gets SAME pointer from pool
- Request B: query parsed → activeEndpoint overwritten to :8088 (read-only)
- Request A: still holding pointer, now sees :8088 instead of :8080!
- Result: mutation routed to read-only endpoint → database write failure

The fix:
Create a copy of the result before returning, so the pooled object can be
safely reused without affecting the returned value.
v0.36.15
2025-11-18 17:03:11 +00:00
lukaszraczylo e37a8beaa7 Fix: Move endpoint routing outside loop to prevent mutation misrouting
BUG FIX: The endpoint routing logic was inside the loop that
processes all GraphQL definitions. This caused mutations to be incorrectly
routed to read-only endpoints when followed by other definitions (queries,
fragments, etc).

The bug manifested as: mutations → read-only Hasura → read-only pooler →
PostgreSQL replica → "cannot set transaction read-write mode during recovery"

Changes:
- Move endpoint routing logic AFTER the definition processing loop
- Ensures mutations are ALWAYS routed to write endpoint regardless of
  subsequent definitions in the document
- Add 3 comprehensive regression tests covering:
  1. Mutation with multiple operations
  2. Mutation followed by fragment
  3. Complex main-bot style mutation document

Tests: All pass including new regression tests
Impact: Fixes database write failures in main-bot and other services
2025-11-18 17:03:06 +00:00
lukaszraczylo 9dd8c11363 CRITICAL: Routing fix for mutations in case of the R/W replicas 2025-11-18 16:28:58 +00:00
lukaszraczylo 9fbee0d9a1 Update go.mod and go.sum
Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
v0.36.7
2025-11-18 03:21:43 +00:00
lukaszraczylo 7df651c17a Update go.mod and go.sum
Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
v0.36.3
2025-11-12 03:21:41 +00:00
lukaszraczylo 7ada94e4fa Fix nil pointers + improve the cleanup. v0.35.1 2025-11-11 10:43:07 +00:00
lukaszraczylo c510c29a8f Update go.mod and go.sum
Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
v0.34.95
2025-11-11 03:22:29 +00:00
lukaszraczylo 370602858a Update go.mod and go.sum
Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
v0.34.91
2025-11-09 03:21:44 +00:00
lukaszraczylo 6261be6e53 fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! Update go.mod and go.sum v0.34.87 2025-11-06 16:55:12 +00:00
lukaszraczylo 5ae4ea1e25 fixup! fixup! fixup! fixup! fixup! fixup! fixup! Update go.mod and go.sum v0.34.83 2025-11-05 22:55:03 +00:00
lukaszraczylo fd30dc0890 fixup! fixup! fixup! fixup! fixup! fixup! Update go.mod and go.sum v0.34.79 2025-11-05 21:56:29 +00:00
lukaszraczylo 2966661054 fixup! fixup! fixup! fixup! fixup! Update go.mod and go.sum v0.34.75 2025-11-05 21:47:40 +00:00
lukaszraczylo 0f23f10e2f fixup! fixup! fixup! fixup! Update go.mod and go.sum v0.34.71 2025-11-05 21:34:21 +00:00
lukaszraczylo ce39dc1bee fixup! fixup! fixup! Update go.mod and go.sum v0.34.67 2025-11-05 20:58:41 +00:00
lukaszraczylo f864e8edcf fixup! fixup! Update go.mod and go.sum v0.34.63 2025-11-05 20:28:31 +00:00
lukaszraczylo e36cdf099e fixup! Update go.mod and go.sum v0.34.59 2025-11-05 10:27:18 +00:00
lukaszraczylo e2c3d03661 Update go.mod and go.sum
Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
v0.34.55
2025-11-04 03:20:22 +00:00
lukaszraczylo 9de8b7bcaa Update go.mod and go.sum
Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
v0.34.51
2025-10-30 03:20:35 +00:00
lukaszraczylo 163fc5ac42 Update go.mod and go.sum
Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
v0.34.47
2025-10-27 03:26:43 +00:00