open-swe/tests
Johannes du Plessis e215f1ef8d refactor: drop regex-based repo extraction from Slack/Linear webhooks
A user mention of "what the default repo is?" was being parsed by the
`repo[: ]([a-zA-Z0-9_.\-/]+)` regex in `extract_repo_from_text`: the
space form matched "repo is" and captured "is" as the repo name, which
combined with the default owner to silently route the run to
`langchain-ai/is`. The user's profile `default_repo` was never reached
because the regex short-circuited first.

The freeform extraction was solving a problem that user-level config
already handles better:

  * Slack thread metadata carries the repo across follow-up mentions.
  * Dashboard profile `default_repo` is per-user and explicit.
  * Linear team/project mapping handles per-team routing.
  * GitHub webhooks know the repo from the payload — no parsing needed.

So `extract_repo_from_text` and its tests are gone. `get_slack_repo_config`
and the Linear webhook now fall through: thread metadata (Slack) → user
profile → env / team-mapping defaults. Users who want a one-off override
update their dashboard profile or post in a thread that's already on
the target repo.

Obsolete tests removed; `test_get_slack_repo_config_uses_thread_metadata_when_set`
added to cover the remaining "thread metadata wins" path.
2026-05-15 14:02:28 -07:00
..
middleware fix: keep sandbox backend stable across recovery (#1294)w 2026-05-11 16:03:38 -07:00
test_auth_sources.py chore: Drop monorepo (#1029) 2026-03-06 16:10:34 -08:00
test_daytona_integration.py fix(daytona): make sandbox snapshot configurable (#1220) 2026-05-01 22:51:34 +00:00
test_encryption.py feat: support TOKEN_ENCRYPTION_KEY rotation via MultiFernet [closes AB-2323] (#1275) 2026-05-08 14:29:23 -07:00
test_ensure_no_empty_msg.py feat: move github workflows to gh cli (#1238) 2026-05-04 18:03:53 -07:00
test_github_comment_prompts.py feat: give agent self-awareness of its own repo (langchain-ai/open-swe) (#1266) 2026-05-08 13:13:35 -07:00
test_github_issue_webhook.py feat: open-swe dashboard for per-user profile config (#1302) 2026-05-15 11:23:53 -07:00
test_github_token_ttl.py feat: TTL and revocation handling for cached GitHub OAuth tokens [closes AB-2322] (#1280) 2026-05-08 22:57:01 +00:00
test_http_security.py fix: harden http_request SSRF guard against DNS rebinding [closes AB-2321] (#1277) 2026-05-08 22:06:25 +00:00
test_langsmith_sandbox_config.py feat: add idle TTL and delete-after-stop sandbox lifecycle controls (#1265) 2026-05-08 00:30:14 -04:00
test_model_fallback_middleware.py feat: cross-provider model fallback on transient errors (#1281) 2026-05-08 15:35:13 -07:00
test_multimodal.py chore: Drop monorepo (#1029) 2026-03-06 16:10:34 -08:00
test_notify_step_limit_middleware.py fix: notify users via Slack when agent hits model call step limit (#1204) 2026-05-01 14:24:25 -07:00
test_proxy_auth.py feat: TTL and revocation handling for cached GitHub OAuth tokens [closes AB-2322] (#1280) 2026-05-08 22:57:01 +00:00
test_public_repo_org_gate.py feat: gate @open-swe mentions on public repos to org members (#1273) 2026-05-08 11:38:29 -07:00
test_recent_comments.py chore: Drop monorepo (#1029) 2026-03-06 16:10:34 -08:00
test_refresh_slack_status_middleware.py feat: add optional Slack Assistants API typing status indicator (#1269) 2026-05-08 10:21:55 -07:00
test_reviewer.py feat: TTL and revocation handling for cached GitHub OAuth tokens [closes AB-2322] (#1280) 2026-05-08 22:57:01 +00:00
test_reviewer_diff.py feat: implement reviewer findings, publish_review, and watch mode (#1253) 2026-05-07 14:48:43 -07:00
test_reviewer_findings.py feat: implement reviewer findings, publish_review, and watch mode (#1253) 2026-05-07 14:48:43 -07:00
test_reviewer_publish.py fix: publish_review tool returns generic "Failed to POST PR review" without GitHub API status/body, agent retries with no signal (#1299) 2026-05-12 13:55:39 -07:00
test_reviewer_tools.py feat(open-swe): always anchor findings to a single line (#1264) 2026-05-07 20:26:59 -07:00
test_reviewer_watch.py feat: TTL and revocation handling for cached GitHub OAuth tokens [closes AB-2322] (#1280) 2026-05-08 22:57:01 +00:00
test_sandbox_paths.py fix: better custom backend support (#1071) 2026-03-17 11:55:36 -07:00
test_sanitize_tool_inputs.py fix: coerce malformed integer strings in read_file offset/limit params (#1216) 2026-05-01 14:29:48 -07:00
test_slack_assistants_status.py chore: remove slack assistants api feature flag (#1295) 2026-05-12 00:41:51 +00:00
test_slack_context.py refactor: drop regex-based repo extraction from Slack/Linear webhooks 2026-05-15 14:02:28 -07:00
test_slack_feedback.py feat: add Slack reaction feedback to LangSmith (#1231) 2026-05-08 14:24:12 -07:00