Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add first text for snapshot workflow example #162

Merged
merged 26 commits into from
Feb 10, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
with:
python-version: ${{ matrix.python-version }}
- name: Run unit tests
run: ./run_tests.sh
run: ./scripts/run_tests.sh
style-checks:
runs-on: ubuntu-latest
env:
Expand Down Expand Up @@ -57,6 +57,7 @@ jobs:
run: |
# check our spack extension with spack's style guide
source start.sh
spack-start
spack style spack-scripting
concretization-basic:
runs-on: ${{matrix.os}}
Expand All @@ -81,6 +82,7 @@ jobs:
- name: Run concretization tests
run: |
source start.sh
spack-start
# test and make sure the solver is working for env using clingo
spack solve exawind 1> /dev/null
tests/ci_config_concretization.py -y env-templates/exawind_basic.yaml
Expand All @@ -107,6 +109,7 @@ jobs:
- name: Run concretization tests
run: |
source start.sh
spack-start
# test and make sure the solver is working for env using clingo
spack solve exawind 1> /dev/null
tests/ci_config_concretization.py -y env-templates/exawind_matrix.yaml
2 changes: 1 addition & 1 deletion docs/developer_tutorial.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# spack-manager: Developer Tutorial
# Developer Tutorial

In this tutorial we will look at how to setup a developer workflow using some helper scripts
provided by spack-manager.
Expand Down
1 change: 1 addition & 0 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@
:maxdepth: 2

developer_tutorial
snapshot_workflow
330 changes: 330 additions & 0 deletions docs/snapshot_workflow.md

Large diffs are not rendered by default.

5 changes: 0 additions & 5 deletions run_tests.sh

This file was deleted.

2 changes: 1 addition & 1 deletion scripts/create-developer-env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ else
fi

printf "\nActivating Spack-Manager...\n"
cmd "source ${SPACK_MANAGER}/start.sh"
cmd "source ${SPACK_MANAGER}/start.sh && spack-start"

printf "\nCreating developer environment...\n"
if [ "${SPACK_MANAGER_MACHINE}" == 'eagle' ]; then
Expand Down
2 changes: 1 addition & 1 deletion scripts/create-exawind-snapshot.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ else
fi

printf "\nActivating Spack-Manager...\n"
cmd "source ${SPACK_MANAGER}/start.sh"
cmd "source ${SPACK_MANAGER}/start.sh && spack-start"

printf "\nRunning snapshot creator...\n"
cmd "nice -n19 ${SPACK_MANAGER}/scripts/snapshot_creator.py --use_develop --modules --use_machine_name --stop_after concretize"
Expand Down
2 changes: 1 addition & 1 deletion scripts/install-exawind.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ else
fi

printf "\nActivating Spack-Manager...\n"
cmd "source ${SPACK_MANAGER}/start.sh"
cmd "source ${SPACK_MANAGER}/start.sh && spack-start"

printf "\nMachine detected as: ${SPACK_MANAGER_MACHINE}\n"

Expand Down
2 changes: 1 addition & 1 deletion scripts/run-exawind-nightly-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ else
fi

printf "\nActivating Spack-Manager...\n"
cmd "source ${SPACK_MANAGER}/start.sh"
cmd "source ${SPACK_MANAGER}/start.sh && spack-start"

printf "\nGenerating test script for submission...\n"
EXAWIND_TEST_SCRIPT=${SPACK_MANAGER}/scripts/exawind-tests-script.sh
Expand Down
7 changes: 7 additions & 0 deletions scripts/run_tests.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/bash

# Expected to be run at top level spack-manager directory
export SPACK_MANAGER=$(pwd)
source ${SPACK_MANAGER}/start.sh
spack-start
spack unit-test --extension scripting
2 changes: 2 additions & 0 deletions scripts/supported_external_paths.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ def get_path_to_externals():
machine = find_machine.find_machine(verbose=False)
if machine in ['cee', 'snl-hpc', 'ascicgpu']:
return '/projects/wind/spack-manager'
elif machine in ['eagle']:
return '/projects/exawind/exawind-snapshots/spack-manager'
else:
return

Expand Down
151 changes: 0 additions & 151 deletions scripts/useful_bash_functions.sh

This file was deleted.

Loading