Skip to content

Commit

Permalink
Update logs dir and retention policy
Browse files Browse the repository at this point in the history
  • Loading branch information
zeegomo committed Apr 6, 2021
1 parent 5919119 commit 04ec346
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/test.yml
Expand Up @@ -199,7 +199,8 @@ jobs:
uses: actions/upload-artifact@v2
with:
name: ${{ matrix.os }}-${{ matrix.profile }}-node-logs-from-failed-tests
path: ${{ runner.temp }}/jormungandr-*
path: ${{ runner.temp }}/jormungandr-logs/
retention-days: 30

lints:
name: Lints
Expand Down
Expand Up @@ -251,8 +251,12 @@ impl Drop for JormungandrProcess {
.take(8)
.map(char::from)
.collect::<String>();
let logs_dir = std::env::temp_dir().join(format!("jormungandr-{}", dir_name));
std::fs::create_dir(&logs_dir).unwrap();

let logs_dir = std::env::temp_dir()
.join("jormungandr-logs")
.join(format!("jormungandr-{}", dir_name));

std::fs::create_dir_all(&logs_dir).unwrap();

println!(
"persisting node temp_dir after panic: {}",
Expand Down

0 comments on commit 04ec346

Please sign in to comment.