codex: 0.25.0 -> 0.27.0 (#438178)

authored by André Silva and committed by GitHub dbbcee5d 036a9335

+9 -56
+9 -56
pkgs/by-name/co/codex/package.nix
··· 3 3 stdenv, 4 4 rustPlatform, 5 5 fetchFromGitHub, 6 - gitMinimal, 7 6 installShellFiles, 8 7 nix-update-script, 9 8 pkg-config, ··· 13 12 }: 14 13 rustPlatform.buildRustPackage (finalAttrs: { 15 14 pname = "codex"; 16 - version = "0.25.0"; 15 + version = "0.27.0"; 17 16 18 17 src = fetchFromGitHub { 19 18 owner = "openai"; 20 19 repo = "codex"; 21 20 tag = "rust-v${finalAttrs.version}"; 22 - hash = "sha256-a/cUg8yLW4vGPiTtqhyUdkV79JbOB40N4V7Asney7sk="; 21 + hash = "sha256-vsZmHkph2rrb0K+ZRymweRculh+SIASCJCRP3V09hKU="; 23 22 }; 24 23 25 24 sourceRoot = "${finalAttrs.src.name}/codex-rs"; ··· 33 32 34 33 buildInputs = [ openssl ]; 35 34 36 - nativeCheckInputs = [ gitMinimal ]; 37 - 38 - __darwinAllowLocalNetworking = true; 39 - preCheck = '' 40 - # Disables sandbox tests which want to access /usr/bin/touch 41 - export CODEX_SANDBOX=seatbelt 42 - # Skips tests that require networking 43 - export CODEX_SANDBOX_NETWORK_DISABLED=1 44 - # Required by ui_snapshot_add_details and ui_snapshot_update_details_with_rename 45 - export TERM=dumb 46 - # Required by azure_overrides_assign_properties_used_for_responses_url and env_var_overrides_loaded_auth 47 - export USER=test 48 - ''; 49 - checkFlags = [ 50 - # Wants to access unix sockets 51 - "--skip=allow_unix_socketpair_recvfrom" 52 - # Needs access to python3. However, adding python3 to nativeCheckInputs doesn't resolve the issue 53 - "--skip=exec_command::session_manager::tests::session_manager_streams_and_truncates_from_now" 54 - "--skip=python_multiprocessing_lock_works_under_sandbox" 55 - # Version 0.0.0 hardcoded 56 - "--skip=test_conversation_create_and_send_message_ok" 57 - "--skip=test_send_message_session_not_found" 58 - "--skip=test_send_message_success" 59 - "--skip=suite::auth::get_auth_status_no_auth" 60 - "--skip=suite::auth::get_auth_status_with_api_key" 61 - "--skip=suite::auth::get_auth_status_with_api_key_no_include_token" 62 - "--skip=suite::login::login_and_cancel_chatgpt" 63 - "--skip=suite::login::logout_chatgpt_removes_auth" 64 - # Tests fail 65 - "--skip=diff_render::tests::ui_snapshot_add_details" 66 - "--skip=diff_render::tests::ui_snapshot_update_details_with_rename" 67 - "--skip=diff_render::tests::ui_snapshot_blank_context_line" 68 - "--skip=diff_render::tests::ui_snapshot_single_line_replacement_counts" 69 - "--skip=diff_render::tests::ui_snapshot_vertical_ellipsis_between_hunks" 70 - # Needs acces to sleep. However, adding coreutils to nativeCheckInputs doesn't resolve the issue 71 - "--skip=suite::exec_stream_events::test_aggregated_output_interleaves_in_order" 72 - ] 73 - ++ lib.optionals stdenv.hostPlatform.isDarwin [ 74 - # Wants to access /bin/zsh 75 - "--skip=shell::tests::test_run_with_profile_escaping_and_execution" 76 - # Requires access to the Apple system configuration 77 - "--skip=azure_overrides_assign_properties_used_for_responses_url" 78 - "--skip=env_var_overrides_loaded_auth" 79 - "--skip=includes_base_instructions_override_in_request" 80 - "--skip=includes_user_instructions_message_in_request" 81 - "--skip=originator_config_override_is_used" 82 - "--skip=per_turn_overrides_keep_cached_prefix_and_key_constant" 83 - "--skip=overrides_turn_context_but_keeps_cached_prefix_and_key_constant" 84 - "--skip=prefixes_context_and_instructions_once_and_consistently_across_requests" 85 - "--skip=test_apply_patch_tool" 86 - "--skip=suite::prompt_caching::codex_mini_latest_tools" 87 - "--skip=suite::prompt_caching::prompt_tools_are_consistent_across_requests" 88 - ]; 35 + # NOTE: part of the test suite requires access to networking, local shells, 36 + # apple system configuration, etc. since this is a very fast moving target 37 + # (for now), with releases happening every other day, constantly figuring out 38 + # which tests need to be skipped, or finding workarounds, was too burdensome, 39 + # and in practice not adding any real value. this decision may be reversed in 40 + # the future once this software stabilizes. 41 + doCheck = false; 89 42 90 43 postInstall = lib.optionalString installShellCompletions '' 91 44 installShellCompletion --cmd codex \