Skip to content

Commit

Permalink
Add CI Almanac config for reproducibility
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristopherRabotin committed Jan 10, 2024
1 parent 1f002fe commit f420ea5
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 2 deletions.
2 changes: 1 addition & 1 deletion anise-py/tests/test_almanac.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def test_state_transformation():

if environ.get("CI", False):
# Load from meta kernel to not use Git LFS quota
data_path = Path(__file__).parent.joinpath("..", "..", "data", "default_meta.dhall")
data_path = Path(__file__).parent.joinpath("..", "..", "data", "ci_config.dhall")
meta = MetaAlmanac(str(data_path))
print(meta)
# Process the files to be loaded
Expand Down
2 changes: 1 addition & 1 deletion anise/src/almanac/metaload/metaalmanac.rs
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ impl FromStr for MetaAlmanac {
type Err = MetaAlmanacError;

fn from_str(s: &str) -> Result<Self, Self::Err> {
match serde_dhall::from_str(&s).parse::<Self>() {
match serde_dhall::from_str(s).parse::<Self>() {
Err(e) => Err(MetaAlmanacError::ParseDhall {
path: s.to_string(),
err: format!("{e}"),
Expand Down
14 changes: 14 additions & 0 deletions data/ci_config.dhall
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
-- Default Almanac
{ files =
[ { crc32 = Some 1921414410
, uri = "http://public-data.nyxspace.com/anise/de440s.bsp"
}
, { crc32 = Some 1216081528
, uri = "http://public-data.nyxspace.com/anise/pck08.pca"
}
, { crc32 = None Natural
, uri =
"http://public-data.nyxspace.com/anise/ci/earth_latest_high_prec-2023-09-08.bpc"
}
]
}

0 comments on commit f420ea5

Please sign in to comment.