Remove recursive symbolic link in lib/spack/docs from git repository (#33483)

Delete code removing the symlink during CI
This commit is contained in:
Massimiliano Culpo 2022-10-25 12:27:13 +02:00 committed by GitHub
parent d361378553
commit 4b237349a3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 3 additions and 16 deletions

View file

@ -221,9 +221,6 @@ jobs:
$(which spack) unit-test --cov --cov-config=pyproject.toml "${common_args[@]}" $(which spack) unit-test --cov --cov-config=pyproject.toml "${common_args[@]}"
coverage combine -a coverage combine -a
coverage xml coverage xml
# Delete the symlink going from ./lib/spack/docs/_spack_root back to
# the initial directory, since it causes ELOOP errors with codecov/actions@2
rm lib/spack/docs/_spack_root
- uses: codecov/codecov-action@d9f34f8cd5cb3b3eb79b3e4b5dae3a16df499a70 - uses: codecov/codecov-action@d9f34f8cd5cb3b3eb79b3e4b5dae3a16df499a70
with: with:
flags: unittests,macos flags: unittests,macos

View file

@ -32,7 +32,6 @@ jobs:
echo F|xcopy .\spack\share\spack\qa\configuration\windows_config.yaml $env:USERPROFILE\.spack\windows\config.yaml echo F|xcopy .\spack\share\spack\qa\configuration\windows_config.yaml $env:USERPROFILE\.spack\windows\config.yaml
cd spack cd spack
dir dir
(Get-Item '.\lib\spack\docs\_spack_root').Delete()
spack unit-test --verbose --cov --cov-config=pyproject.toml --ignore=lib/spack/spack/test/cmd spack unit-test --verbose --cov --cov-config=pyproject.toml --ignore=lib/spack/spack/test/cmd
coverage combine -a coverage combine -a
coverage xml coverage xml
@ -58,7 +57,6 @@ jobs:
run: | run: |
echo F|xcopy .\spack\share\spack\qa\configuration\windows_config.yaml $env:USERPROFILE\.spack\windows\config.yaml echo F|xcopy .\spack\share\spack\qa\configuration\windows_config.yaml $env:USERPROFILE\.spack\windows\config.yaml
cd spack cd spack
(Get-Item '.\lib\spack\docs\_spack_root').Delete()
spack unit-test --verbose --cov --cov-config=pyproject.toml lib/spack/spack/test/cmd spack unit-test --verbose --cov --cov-config=pyproject.toml lib/spack/spack/test/cmd
coverage combine -a coverage combine -a
coverage xml coverage xml

View file

@ -1 +0,0 @@
../../..

View file

@ -32,6 +32,9 @@
# If extensions (or modules to document with autodoc) are in another directory, # If extensions (or modules to document with autodoc) are in another directory,
# add these directories to sys.path here. If the directory is relative to the # add these directories to sys.path here. If the directory is relative to the
# documentation root, use os.path.abspath to make it absolute, like shown here. # documentation root, use os.path.abspath to make it absolute, like shown here.
link_name = os.path.abspath("_spack_root")
if not os.path.exists(link_name):
os.symlink(os.path.abspath("../../.."), link_name, target_is_directory=True)
sys.path.insert(0, os.path.abspath("_spack_root/lib/spack/external")) sys.path.insert(0, os.path.abspath("_spack_root/lib/spack/external"))
sys.path.insert(0, os.path.abspath("_spack_root/lib/spack/external/pytest-fallback")) sys.path.insert(0, os.path.abspath("_spack_root/lib/spack/external/pytest-fallback"))

View file

@ -56,9 +56,3 @@ fish "$QA_DIR/setup-env-test.fish"
# run csh and tcsh tests # run csh and tcsh tests
csh "$QA_DIR/setup-env-test.csh" csh "$QA_DIR/setup-env-test.csh"
tcsh "$QA_DIR/setup-env-test.csh" tcsh "$QA_DIR/setup-env-test.csh"
# Delete the symlink going from ./lib/spack/docs/_spack_root back to
# the initial directory, since it causes ELOOP errors with codecov/actions@2
if [[ "$COVERAGE" == "true" ]]; then
rm lib/spack/docs/_spack_root
fi

View file

@ -74,7 +74,3 @@ fi
bash "$QA_DIR/test-env-cfg.sh" bash "$QA_DIR/test-env-cfg.sh"
# Delete the symlink going from ./lib/spack/docs/_spack_root back to
# the initial directory, since it causes ELOOP errors with codecov/actions@2
rm lib/spack/docs/_spack_root