Skip to content

Add experimental routing image patch for feature_flag_latent_bug_hotel_reservation benchmark - #6

Merged
Saadmrp1038 merged 2 commits into
SREGym:mainfrom
MohammadElsharqawy:feature/hotel-reservation-experimental-routing-image
Jul 20, 2026
Merged

Add experimental routing image patch for feature_flag_latent_bug_hotel_reservation benchmark#6
Saadmrp1038 merged 2 commits into
SREGym:mainfrom
MohammadElsharqawy:feature/hotel-reservation-experimental-routing-image

Conversation

@MohammadElsharqawy

Copy link
Copy Markdown
Contributor

Context

This PR supports the custom frontend image used by the
feature_flag_latent_bug_hotel_reservation benchmark problem in
SREGym PR #791.

Changes

Two minimal changes to hotelReservation:

services/frontend/server.go — adds a flag-gated error handler at
the top of searchHandler. When SEARCH_BACKEND_VERSION=true, every
hotel search request returns HTTP 500 with a generic error message while
all pods remain Running. When the flag is unset or false, the handler
behaves identically to the original.

Dockerfile — pins zerolog to v1.28.0. Newer versions of
zerolog use log/slog which was added in Go 1.21. The existing
Dockerfile uses golang:1.17.3, so without this pin the build fails
with cannot find package log/slog.

Image

The custom image built from this patch is currently at
sharqm/hotelreservation:experimental-routing-v3. Once a shared
registry is confirmed, it will be moved there.

…l_reservation benchmark

Two minimal changes to support the custom frontend image used by the
feature_flag_latent_bug_hotel_reservation SREGym problem (PR #791):

- services/frontend/server.go: flag-gated error handler — when
  SEARCH_BACKEND_VERSION=true, searchHandler returns HTTP 500 on every
  hotel search request while all pods remain Running
- Dockerfile: pin zerolog to v1.28.0 for Go 1.17 compatibility
  (newer zerolog versions use log/slog, added in Go 1.21)
@Saadmrp1038
Saadmrp1038 merged commit 9b06c9b into SREGym:main Jul 20, 2026
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