Skip to content

fix(webarena): keep site credentials_env in the public replay's Rainbond runtime config #164

Closed

Description

@lanyue-llk

Problem

A public WebArena run on a Rainbond slice cannot log in to a stateful site. RainbondSlicePool.runtime_config in src/harness/environments/webarena/rainbond.py rebuilds each stateful site's entry as {"urls": [...]}, and WebArenaEnvironment replaces its environments with that result. Any credentials_env from the runtime config is dropped.

This is older than #159. Before #161 every attempt on such a site failed at login. Since #161 the run stops in verify_runtime with credentials are missing for site ..., before a browser starts.

Found by reading the code. No real Rainbond slice was run. I do not know whether anyone currently runs this mode with the public replay.

Suggested change

Keep each site's credentials_env when the slice's runtime config replaces its URLs, and add a test that uses the real runtime_config. The fake pool in test_rainbond_slice_verification_and_reset_replace_the_complete_application currently stubs the login check, so that test should drop the stub once this is fixed. If the mode is retired for the public replay instead, remove it there.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions