Merge pull request #23 from 40ants/fix-recreating-of-qlfile-inside-cache

Fix recreating of qlfile inside qlot environment cache.
This commit is contained in:
Alexander Artemenko 2024-02-28 01:23:42 +03:00 committed by GitHub
commit b9bed49497
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 37 additions and 17 deletions

View file

@ -322,6 +322,34 @@ runs:
path: ${{ inputs.roswell-cache-paths }} path: ${{ inputs.roswell-cache-paths }}
key: ${{ steps.roswell-cache-restore.outputs.cache-primary-key }} key: ${{ steps.roswell-cache-restore.outputs.cache-primary-key }}
# We really need this step go before cache restore,
# because it changes qlfile and cache key depends on it.
- name: Ensure qlfile exists
shell: lispsh -eo pipefail {0}
run: |
echo ::group::Ensure qlfile exists
if [[ -n "${{ inputs.qlfile-template }}" ]]; then
echo "${{ inputs.qlfile-template }}" | $GITHUB_ACTION_PATH/templater.ros > qlfile
rm -f qlfile.lock
echo "Created qlfile:"
echo '==============='
cat qlfile
echo '==============='
echo ''
elif [[ -e qlfile ]]; then
echo 'Here is content of qlfile:'
echo '==============='
cat qlfile
echo '==============='
echo ''
else
echo 'There is no qlfile. Creating an empty one.'
touch qlfile
fi
echo ::endgroup::
- if: inputs.cache == 'true' - if: inputs.cache == 'true'
name: Restore Qlot Environment name: Restore Qlot Environment
@ -342,23 +370,6 @@ runs:
shell: lispsh -eo pipefail {0} shell: lispsh -eo pipefail {0}
run: | run: |
echo ::group::Create Qlot Environment echo ::group::Create Qlot Environment
if [[ -n "${QLFILE_TEMPLATE}" ]]; then
echo "${QLFILE_TEMPLATE}" | $GITHUB_ACTION_PATH/templater.ros > qlfile
rm -f qlfile.lock
fi
if [[ -e qlfile ]]; then
echo 'Here is content of qlfile:'
echo '==============='
cat qlfile
echo '==============='
echo ''
else
echo 'There is no qlfile. Creating an empty one.'
touch qlfile
fi
qlot install qlot install
echo ::endgroup:: echo ::endgroup::
env: env:

View file

@ -8,6 +8,15 @@
(defchangelog (:ignore-words ("ASDF" (defchangelog (:ignore-words ("ASDF"
"PATH" "PATH"
"HOME")) "HOME"))
(4.0.2 2024-02-27
"
# Fixed
* Fix recreating of qlfile inside qlot environment cache.
When some jobs used qlfile-template argument + caching, a template application
result was cached and caused an error during the next run.
")
(4.0.1 2024-02-25 (4.0.1 2024-02-25
" "
# Fixed # Fixed