Skip to content

Commit

Permalink
Issue #422: Revert exist_ok=True's and set on_retry_command for retry…
Browse files Browse the repository at this point in the history
… action
  • Loading branch information
andrewmogan committed Jan 9, 2025
1 parent 35fb1f3 commit 7c1c268
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/build-nightly-release-alma9.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,9 @@ jobs:
cd $BASE_RELEASE_DIR/../
tar_and_stage_release ${BASE_RELEASE_TAG}
on_retry_command: |
rm -rf $BASE_RELEASE_DIR
rm -rf $DET_RELEASE_DIR
- name: upload spack nightly tarball for base release
uses: actions/upload-artifact@v4
Expand Down
6 changes: 3 additions & 3 deletions scripts/spack/make-release-repo.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ def generate_daq_package(self, repo_path, template_dir):
depends_on_list = self.generate_depends_on_list(cmake_package_list)
lines = lines.replace("XDEPENDSX", depends_on_list)
ipkg_dir = os.path.join(repo_dir, ipkg["name"])
os.makedirs(ipkg_dir, exist_ok=True)
os.makedirs(ipkg_dir)
ipkgpy = os.path.join(ipkg_dir, "package.py")
with open(ipkgpy, 'w') as o:
o.write(lines)
Expand Down Expand Up @@ -218,7 +218,7 @@ def generate_external_umbrella_package(self, repo_path, template_dir):
lines += f'\n depends_on("{iname}@{iver} {ivar}")'
lines += '\n'
ipkg_dir = os.path.join(repo_dir, ipkg)
os.makedirs(ipkg_dir, exist_ok=True)
os.makedirs(ipkg_dir)
ipkgpy = os.path.join(ipkg_dir, "package.py")
with open(ipkgpy, 'w') as o:
o.write(lines)
Expand Down Expand Up @@ -257,7 +257,7 @@ def generate_daq_umbrella_package(self, repo_path, template_dir):
lines += '\n'

ipkg_dir = os.path.join(repo_dir, ipkg)
os.makedirs(ipkg_dir, exist_ok=True)
os.makedirs(ipkg_dir)
ipkgpy = os.path.join(ipkg_dir, "package.py")
with open(ipkgpy, 'w') as o:
o.write(lines)
Expand Down

0 comments on commit 7c1c268

Please sign in to comment.