pub struct HarnessConfig {
pub repo_root: PathBuf,
pub oracle_root: PathBuf,
pub fixture_root: PathBuf,
pub strict_mode: bool,
pub python_bin: String,
pub allow_system_pandas_fallback: bool,
pub allow_fixture_fallback: bool,
pub require_live_oracle: bool,
}Fields§
§repo_root: PathBuf§oracle_root: PathBuf§fixture_root: PathBuf§strict_mode: bool§python_bin: String§allow_system_pandas_fallback: boolPermit the oracle subprocess to import installed system pandas when the vendored legacy checkout is unavailable.
allow_fixture_fallback: boolPermit a live-oracle request to use a fixture’s stored expectation when neither the vendored nor system pandas oracle is available.
This is deliberately independent from
Self::allow_system_pandas_fallback: opting into system pandas must
never turn a differential test into a fixture-vs-FrankenPandas comparison
(br-frankenpandas-mlnu3).
require_live_oracle: boolImplementations§
Source§impl HarnessConfig
impl HarnessConfig
Sourcepub fn pinned_oracle_interpreter(repo_root: &Path) -> Option<PathBuf>
pub fn pinned_oracle_interpreter(repo_root: &Path) -> Option<PathBuf>
The repository’s pinned pandas oracle interpreter, when it has been
created: <repo>/.venv-oracle/bin/python, the venv CI builds from
crates/fp-conformance/oracle/requirements.txt (pandas==2.2.3).
br-frankenpandas-00de2: before this, default_paths looked only for a
vendored legacy_pandas_code/pandas tree (present on no host) and a
bare python3 (no pandas here), so every live_oracle_* and
conformance_* test returned early as PASS unless FP_PYTHON_BIN and
FP_ALLOW_SYSTEM_PANDAS_FALLBACK were exported by hand — the
pass-by-skip defect of br-frankenpandas-l7r1p. The pinned venv is the
same interpreter CI uses, so finding it is a wiring fix, not a policy
change.
Sourcepub fn uses_pinned_oracle_interpreter(&self) -> bool
pub fn uses_pinned_oracle_interpreter(&self) -> bool
True when python_bin IS the pinned oracle interpreter (compared by
canonical path, because repo_root carries a ../.. segment).
pub fn default_paths() -> Self
pub fn packet_fixture_root(&self) -> PathBuf
pub fn packet_artifact_root(&self, packet_id: &str) -> PathBuf
pub fn parity_gate_path(&self, packet_id: &str) -> PathBuf
pub fn oracle_script_path(&self) -> PathBuf
pub fn allows_system_pandas_fallback(&self) -> bool
Sourcepub fn oracle_reachable(&self) -> bool
pub fn oracle_reachable(&self) -> bool
Is ANY pandas oracle reachable from this configuration: the vendored legacy tree, or an interpreter this config is allowed to use?
br-frankenpandas-00de2: oracle_present on every report used to be
oracle_root.exists(), so all 445 committed parity reports said the
oracle was absent even when CI had just run every case through the
pinned venv. This is the predicate those sites now use.
pub fn allows_live_oracle_fallback(&self) -> bool
Trait Implementations§
Source§impl Clone for HarnessConfig
impl Clone for HarnessConfig
Source§impl Debug for HarnessConfig
impl Debug for HarnessConfig
Auto Trait Implementations§
impl Freeze for HarnessConfig
impl RefUnwindSafe for HarnessConfig
impl Send for HarnessConfig
impl Sync for HarnessConfig
impl Unpin for HarnessConfig
impl UnsafeUnpin for HarnessConfig
impl UnwindSafe for HarnessConfig
Blanket Implementations§
impl<T> Allocation for T
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, _span: NoopSpan) -> Self
fn instrument(self, _span: NoopSpan) -> Self
Source§fn in_current_span(self) -> Self
fn in_current_span(self) -> Self
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more