harbor run -t scale-ai/hil-bench-swe_52-ask_humanharbor download scale-ai/hil-bench-swe_52-ask_humanConfig loader misses DB pool options and update-check flag.
The configuration loader does not populate database connection-pool options (idle/open limits and connection lifetime). The update-check flag is also not read from the configuration and remains enabled when it should be possible to disable it. As a result, the loaded configuration diverges from the intended behavior, reducing control over database resources and preventing update checks from being reliably turned off.
The default for idle connections when not configured should have a proper value.
The pool options from the loaded configuration must be applied to the database connection (sql.DB) when it is opened during startup.
The configuration loader should honor explicitly provided database pool options and the update-check flag, producing a loaded configuration that reflects those values. When these keys are not provided, the corresponding fields should remain as defined by the defaults. The pool options in the loaded config must be applied to the sql.DB when the database connection is established. When both idle and open connection limits are explicitly provided in the configuration and the idle count exceeds the open count, the loader must raise MaxOpenConn to equal MaxIdleConn so that all requested idle connections can be maintained. Existing, unrelated fields should be preserved unchanged, and overall behavior should remain backward-compatible.
The databaseConfig struct should add the fields MaxIdleConn (int), MaxOpenConn (int), and ConnMaxLifetime (time.Duration), while preserving existing fields like URL and MigrationsPath.
The configuration loader Load(path) in config/config.go should read db.max_idle_conn and db.max_open_conn for MaxIdleConn and MaxOpenConn.
The configuration loader should set Meta.CheckForUpdates from the boolean key meta.check_for_updates when that key is present.
Config keys in YAML files MUST use snake_case (e.g., check_for_updates, max_idle_conn).
The configuration loader must read a database connection lifetime value from the YAML configuration and map it to Database.ConnMaxLifetime.
When both max_idle_conn and max_open_conn are explicitly configured and max_idle_conn exceeds max_open_conn, cap MaxIdleConn down to MaxOpenConn to prevent the idle pool from exceeding the total connection limit.
Loading config/testdata/config/default.yml and config/testdata/config/deprecated.yml should yield a configuration exactly equal to Default() (field-for-field); i.e., if a key is not set in the file, Load should not override the value coming from Default().
No new interfaces are introduced