Skip to content

Commit

Permalink
v0.1.6: Only create /pfs/out once (bug fix)
Browse files Browse the repository at this point in the history
This fixes a bug in the v0.1.5 release. We need to get some on-cluster
integration tests up and running to catch things like this.
  • Loading branch information
emk committed Aug 27, 2018
1 parent 0ed34ce commit 67e2c89
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
10 changes: 5 additions & 5 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion falconeri-worker/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "falconeri-worker"
version = "0.1.5"
version = "0.1.6"
authors = ["Eric Kidd <[email protected]>"]

[dependencies]
Expand Down
4 changes: 2 additions & 2 deletions falconeri-worker/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -122,11 +122,12 @@ fn process_datum(
/// Reset our working directories to a default, clean state.
fn reset_work_dirs() -> Result<()> {
reset_work_dir("/pfs/*")?;
fs::create_dir("/pfs/out").context("cannot create /pfs/out")?;
reset_work_dir("/scratch/*")?;
Ok(())
}

/// Restore our `/pfs` directory to its default, clean state.
/// Restore a directory to a default, clean state.
fn reset_work_dir(work_dir_glob: &str) -> Result<()> {
let paths = glob::glob(work_dir_glob)
.with_context(|_| format!("error listing directory {}", work_dir_glob))?;
Expand All @@ -142,7 +143,6 @@ fn reset_work_dir(work_dir_glob: &str) -> Result<()> {
.with_context(|_| format!("cannot delete {}", path.display()))?;
}
}
fs::create_dir("/pfs/out").context("cannot create /pfs/out")?;
Ok(())
}

Expand Down
2 changes: 1 addition & 1 deletion falconeri/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
authors = ["Eric Kidd <[email protected]>"]
name = "falconeri"
version = "0.1.5"
version = "0.1.6"

[dependencies]
base64 = "0.9.2"
Expand Down
2 changes: 1 addition & 1 deletion falconeri_common/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "falconeri_common"
version = "0.1.5"
version = "0.1.6"
authors = ["Eric Kidd <[email protected]>"]

[dependencies]
Expand Down

0 comments on commit 67e2c89

Please sign in to comment.