Extract rollout into its own crate#15548
Conversation
b2a7bb2 to
d078760
Compare
f9a12b9 to
56b3e16
Compare
2c9e147 to
71444ae
Compare
3464e86 to
c62c328
Compare
71444ae to
ec3c8be
Compare
c62c328 to
5ed93d4
Compare
ec3c8be to
f49d4e3
Compare
Co-authored-by: Codex <noreply@openai.com>
Co-authored-by: Codex <noreply@openai.com>
a7ec723 to
4eaf95f
Compare
9401d05 to
b8a17ba
Compare
Co-authored-by: Codex <noreply@openai.com>
4eaf95f to
946e86e
Compare
b8a17ba to
a28046a
Compare
Co-authored-by: Codex <noreply@openai.com>
946e86e to
d6a8834
Compare
a28046a to
9e2a887
Compare
Co-authored-by: Codex <noreply@openai.com>
d6a8834 to
e5c7d3c
Compare
9e2a887 to
8aca7f8
Compare
Co-authored-by: Codex <noreply@openai.com>
e5c7d3c to
6b37ece
Compare
8aca7f8 to
fda1492
Compare
Co-authored-by: Codex <noreply@openai.com>
6b37ece to
574740e
Compare
fda1492 to
4bf0fbc
Compare
32099b9 to
db26b6f
Compare
|
Codex Review: Didn't find any major issues. 🚀 ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
Co-authored-by: Codex <noreply@openai.com>
db26b6f to
d23ee20
Compare
Co-authored-by: Codex <noreply@openai.com>
d23ee20 to
8091753
Compare
Co-authored-by: Codex <noreply@openai.com>
8091753 to
222118a
Compare
Co-authored-by: Codex <noreply@openai.com>
| use crate::config::Config; | ||
|
|
||
| impl codex_rollout::RolloutConfigView for Config { | ||
| fn codex_home(&self) -> &std::path::Path { |
There was a problem hiding this comment.
Separately, we should be moving all of these things to AbsolutePathBuf.
| @@ -0,0 +1,64 @@ | |||
| use crate::config::Config; | |||
There was a problem hiding this comment.
Relatedly, will all these re-exports get removed in a mechanical follow-up PR?
codex-rs/rollout/src/path_utils.rs
Outdated
| lower_ascii_path(path) | ||
| } | ||
|
|
||
| fn is_wsl_case_insensitive_path(path: &Path) -> bool { |
codex-rs/rollout/src/path_utils.rs
Outdated
| && left | ||
| .iter() | ||
| .zip(right) | ||
| .all(|(lhs, rhs)| lhs.to_ascii_lowercase() == *rhs) |
There was a problem hiding this comment.
shouldn't rhs.to_ascii_lowercase() also?
codex-rs/rollout/src/path_utils.rs
Outdated
| } | ||
|
|
||
| #[cfg(target_os = "linux")] | ||
| fn lower_ascii_path(path: PathBuf) -> PathBuf { |
There was a problem hiding this comment.
What is all this? This does not seem right.
codex-rs/rollout/src/path_utils.rs
Outdated
| use std::os::unix::ffi::OsStrExt; | ||
| use std::os::unix::ffi::OsStringExt; | ||
|
|
||
| let bytes = path.as_os_str().as_bytes(); |
There was a problem hiding this comment.
An OsString is not guaranteed to be UTF-8: we don't know what the encoding is. As such, I don't think this transform is guaranteed to be safe/valid.
codex-rs/rollout/src/policy.rs
Outdated
| @@ -12,7 +12,7 @@ pub enum EventPersistenceMode { | |||
| /// Whether a rollout `item` should be persisted in rollout files for the | |||
| /// provided persistence `mode`. | |||
| #[inline] | |||
There was a problem hiding this comment.
I don't think we should be using #[inline] btw: we should let the compiler do its job.
Co-authored-by: Codex <noreply@openai.com>
Co-authored-by: Codex <noreply@openai.com>
Co-authored-by: Codex <noreply@openai.com>
Co-authored-by: Codex <noreply@openai.com>
Co-authored-by: Codex <noreply@openai.com>
Co-authored-by: Codex <noreply@openai.com>
Co-authored-by: Codex <noreply@openai.com>
Co-authored-by: Codex <noreply@openai.com>
|
@codex review this |
|
Codex Review: Didn't find any major issues. Bravo. ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
codex-rolloutcodex-corebehavior intact while renaming the leftover core-only files so the move is obvious in GitHub diffs