remote-tests

от openai

Как запускать тесты с использованием удаленного исполнителя.

npx skills add https://github.com/openai/codex --skill remote-tests

Remote executor tests exercise the app-server/exec-server split to ensure that agent features work in both local and remote execution environments.

Remote executor tests currently require an x86_64 Linux host machine. There are two flavors:

  1. Docker (Linux exec-server)
  2. Wine (Windows exec-server)

Test Fixtures

Individual test cases must opt-in to being run against a remote executor.

codex_core

Use TestCodexBuilder::build_with_auto_env() to opt-in to remote execution in core integration tests unless the test needs more precise control over its executor.

app-server

Start the server with TestAppServer::new_with_auto_env() unless the test defines its own $CODEX_HOME/environments.toml or will define custom environments at runtime.

Start threads with TestAppServer::send_thread_start_request_with_auto_env() if you've created the server with the auto_env approach. Omit ThreadStartParams.environments (leave it as None) when doing so.

Test Skips

If a test doesn't pass in a particular remote executor configuration you can skip it in just that configuration. Include a string reason for future readers when the selected skip macro supports one.

Choose the skip macro by what causes the test to fail:

  • skip_if_target_windows!: Windows target behavior.
  • skip_if_wine_exec!: Wine-exec runner constraints.
  • skip_if_host_windows!: Windows host constraints.
  • skip_if_remote!: Local-only test behavior.
  • skip_if_no_remote_env!: Remote-only test behavior.

Prefer defining tests that run in all host/target configurations by default. See the $path-types skill for the most common changes required to make tests compatible.

Docker

Docker container is built and initialized via ./scripts/test-remote-env.sh. Sourcing this script in bash also provides the codex_remote_env_cleanup function to use after testing.

To run core integration tests against a Docker remote executor:

bash -c '
  set -euo pipefail
  unset CODEX_TEST_REMOTE_EXEC_SERVER_URL
  source scripts/test-remote-env.sh
  trap codex_remote_env_cleanup EXIT

  cd codex-rs
  just test -p codex-core --test all
'

To run app-server integration tests against a Docker remote executor:

bash -c '
  set -euo pipefail
  unset CODEX_TEST_REMOTE_EXEC_SERVER_URL
  source scripts/test-remote-env.sh
  trap codex_remote_env_cleanup EXIT

  cd codex-rs
  just test -p codex-app-server --test all
'

Wine

These tests build an exec-server for Windows and run it under Wine, with the app-server staying on the Linux host. The cross-platform build dependency means they only run in Bazel.

For core integration tests:

bazel test //codex-rs/core:core-all-wine-exec-test

For app-server integration tests:

bazel test //codex-rs/app-server:app-server-all-wine-exec-test

Devboxes

You can use a devbox to run these tests if you are running on a macOS machine.

You can list devboxes via applied_devbox ls, pick the one with codex in the name. Connect to devbox via ssh <devbox_name>. Reuse the same checkout of codex in ~/code/codex. Reset files if needed. Multiple checkouts take longer to build and take up more space. Check whether the SHA and modified files are in sync between remote and local.

Больше skills от openai

user-context
openai
Загрузить или управлять настройками постоянной маршрутизации источников, логикой онбординга, прогрессом настройки и реестром семантического слоя плагина Data Analytics.
official
notion-research-documentation
openai
Исследовать содержимое Notion и синтезировать в структурированные брифинги, отчёты или сравнения с цитированием. Выполнять поиск и извлекать страницы Notion с помощью целевых запросов, затем организовывать результаты по темам с встроенными ссылками на источники и разделом ссылок. Выбирать из четырёх форматов вывода (краткий брифинг, исследовательская сводка, сравнение, комплексный отчёт) в зависимости от объёма и цели пользователя. Создавать и обновлять страницы Notion с помощью встроенных шаблонов; напрямую связывать источники и отслеживать изменения по мере поступления новой информации...
official
rcsb-pdb-skill
openai
Отправляйте компактные запросы RCSB PDB для получения основной метаданных, запросов Search API и загрузок FASTA. Используйте, когда пользователю нужны краткие сводки RCSB; сохраняйте сырой JSON или…
official
pdf
openai
Чтение, создание и проверка PDF с визуальным рендерингом и программной генерацией. Рендеринг страниц PDF в PNG для визуального контроля макета, интервалов и типографики перед отправкой с помощью Poppler (pdftoppm). Программная генерация PDF с reportlab для надежного форматирования; извлечение текста и метаданных с помощью pdfplumber или pypdf. Контроль качества: отсутствие обрезанного текста, перекрывающихся элементов, сломанных таблиц или артефактов рендеринга; только ASCII-дефисы, читаемые цитаты. Использовать...
official
test-coverage-improver
openai
Improve test coverage in the OpenAI Agents JS monorepo: run `pnpm test:coverage`, inspect coverage artifacts, identify low-coverage files and branches, propose…
official
playwright
openai
Терминальная автоматизация браузера с моментальными снимками элементов и интерактивными UI-процессами. Работает через обёрточный скрипт playwright-cli (требуется npx); поддерживает headless и headed режимы для визуальной отладки. Основной процесс: открыть страницу, сделать снимок для стабильных ссылок на элементы, взаимодействовать с помощью ссылок, повторно снимать после навигации или изменений DOM. Включает заполнение форм, клики, ввод текста, управление несколькими вкладками, создание скриншотов/PDF и запись трассировки для отладки процессов. Ссылки на элементы (например, e3, e15)...
official
ukb-topmed-phewas-skill
openai
Получает компактные сводки UKB-TOPMed PheWAS для отдельных вариантов, принимая rsID, GRCh37 или GRCh38 и преобразуя в требуемый запрос GRCh38. Используйте, когда…
official
code-review-context
openai
Видимый контекст модели
official