
The hashes are preserved so they are available in git reflog if needed * bd8bdb82ae - (HEAD -> features/spliced-install, nhanford/features/spliced-install) mark test xfail on windows (10 months ago) <Gregory Becker> * 800451a4a7 - bugfix: data sharing issue between spliced spec and build_spec (10 months ago) <Gregory Becker> * cf5f0c8539 - original concretizer: apply splice config (10 months ago) <Gregory Becker> * dce49c199a - update grep test for new splice mock package (10 months ago) <Gregory Becker> * 22bfeb5978 - update command completion (10 months ago) <Gregory Becker> * 84049edbc4 - style (10 months ago) <Gregory Becker> * a4afe8a13c - bugfix: checking virtuals for splices across names (10 months ago) <Gregory Becker> * 6d757f3d41 - doing spackbot's job for it (10 months ago) <Gregory Becker> * 87c210db26 - fix config mutability bug in splice test (10 months ago) <Gregory Becker> * d84b50cb46 - update test for error wording change (10 months ago) <Gregory Becker> * 3f13dc8975 - fixup after rebase (10 months ago) <Gregory Becker> * b734f47b13 - fix failure tracker for rebase (10 months ago) <Gregory Becker> * d84f6c3c7a - catch broader exception to catch tty.die SystemExit (10 months ago) <Gregory Becker> * 200b7a78a5 - fixup rebase issues (10 months ago) <Gregory Becker> * 65971cd9c3 - debug failing workflow (10 months ago) <Gregory Becker> * ca23acc2fc - docs arguments typo (10 months ago) <Gregory Becker> * c8cfd9143f - bugfix node keys for spliced specs (10 months ago) <Gregory Becker> * e57758b15b - fix style (10 months ago) <Gregory Becker> * 5d63a0b886 - update type hints and docs BuiltTask -> Task (10 months ago) <Gregory Becker> * 5f373b813c - undo reorder classes to make rebase easier after rebase (10 months ago) <Gregory Becker> * e851b6ed6b - fix rewire for virtual splices across names (10 months ago) <Gregory Becker> * 839c1a5ba7 - fix environment reading/writing for build_spec entries (10 months ago) <Gregory Becker> * ae601740d1 - hack it together to work for right now (10 months ago) <Gregory Becker> * a6bc44ff12 - test rewire task and fix bugs (10 months ago) <Gregory Becker> * 79f895900d - move fixtures from bindist to conftest and rename (10 months ago) <Gregory Becker> * 398456d3cc - move splice config to separate section (10 months ago) <Gregory Becker> * 13df264fd1 - checkpointing RewireTask changes (10 months ago) <Nathan Hanford> * 5cb808c2ec - test for explicit_splices; fix bug in build_spec for splices across virtual names (10 months ago) <Gregory Becker> * 019f7600b4 - execute splices from config (10 months ago) <Gregory Becker> * 6d6b541e9c - move splice configs into concretizer section (10 months ago) <Gregory Becker> * 06f90a14ea - config schema: add splice section (10 months ago) <Gregory Becker> * 38e372f0bf - checkpointing tests (10 months ago) <Nathan Hanford> * 193ca7806f - initial implementation allowing relocate_package to do rewiring tasks (10 months ago) <Gregory Becker> * 6fb67d1063 - finish debug session with nhanford (10 months ago) <Gregory Becker> * f201155a4a - checkpointing rewiring (10 months ago) <Nathan Hanford> * 1e33b40573 - test modifications (10 months ago) <Nathan Hanford> * 7b5aaf8fa7 - need dependents for install (10 months ago) <Nathan Hanford> * 8d2df89e8e - refactor passes tests (10 months ago) <Nathan Hanford> * d918a654d7 - checkpoint refactor to rebase and test (10 months ago) <Nathan Hanford> * 61d805cfd8 - non-working initial refactor checkpoint (10 months ago) <Nathan Hanford> * fc0a6431be - reorder classes to make rebase easier (10 months ago) <Gregory Becker> Co-authored-by: Nathan Hanford <hanford1@llnl.gov>
90 lines
3.0 KiB
YAML
90 lines
3.0 KiB
YAML
name: style
|
|
|
|
on:
|
|
workflow_call:
|
|
inputs:
|
|
with_coverage:
|
|
required: true
|
|
type: string
|
|
|
|
concurrency:
|
|
group: style-${{github.ref}}-${{github.event.pull_request.number || github.run_number}}
|
|
cancel-in-progress: true
|
|
|
|
|
|
jobs:
|
|
# Validate that the code can be run on all the Python versions
|
|
# supported by Spack
|
|
validate:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
|
|
- uses: actions/setup-python@39cd14951b08e74b54015e9e001cdefcf80e669f
|
|
with:
|
|
python-version: '3.11'
|
|
cache: 'pip'
|
|
- name: Install Python Packages
|
|
run: |
|
|
pip install --upgrade pip setuptools
|
|
pip install -r .github/workflows/requirements/style/requirements.txt
|
|
- name: vermin (Spack's Core)
|
|
run: vermin --backport importlib --backport argparse --violations --backport typing -t=3.6- -vvv lib/spack/spack/ lib/spack/llnl/ bin/
|
|
- name: vermin (Repositories)
|
|
run: vermin --backport importlib --backport argparse --violations --backport typing -t=3.6- -vvv var/spack/repos
|
|
# Run style checks on the files that have been changed
|
|
style:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
|
|
with:
|
|
fetch-depth: 0
|
|
- uses: actions/setup-python@39cd14951b08e74b54015e9e001cdefcf80e669f
|
|
with:
|
|
python-version: '3.11'
|
|
cache: 'pip'
|
|
- name: Install Python packages
|
|
run: |
|
|
pip install --upgrade pip setuptools
|
|
pip install -r .github/workflows/requirements/style/requirements.txt
|
|
- name: Setup git configuration
|
|
run: |
|
|
# Need this for the git tests to succeed.
|
|
git --version
|
|
. .github/workflows/bin/setup_git.sh
|
|
- name: Run style tests
|
|
run: |
|
|
share/spack/qa/run-style-tests
|
|
audit:
|
|
uses: ./.github/workflows/audit.yaml
|
|
secrets: inherit
|
|
with:
|
|
with_coverage: ${{ inputs.with_coverage }}
|
|
python_version: '3.11'
|
|
# Check that spack can bootstrap the development environment on Python 3.6 - RHEL8
|
|
bootstrap-dev-rhel8:
|
|
runs-on: ubuntu-latest
|
|
container: registry.access.redhat.com/ubi8/ubi
|
|
steps:
|
|
- name: Install dependencies
|
|
run: |
|
|
dnf install -y \
|
|
bzip2 curl file gcc-c++ gcc gcc-gfortran git gnupg2 gzip \
|
|
make patch tcl unzip which xz
|
|
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
|
|
- name: Setup repo and non-root user
|
|
run: |
|
|
git --version
|
|
git config --global --add safe.directory /__w/spack/spack
|
|
git fetch --unshallow
|
|
. .github/workflows/bin/setup_git.sh
|
|
useradd spack-test
|
|
chown -R spack-test .
|
|
- name: Bootstrap Spack development environment
|
|
shell: runuser -u spack-test -- bash {0}
|
|
run: |
|
|
source share/spack/setup-env.sh
|
|
spack debug report
|
|
spack -d bootstrap now --dev
|
|
spack -d style -t black
|
|
spack unit-test -V
|