ci: Remove actions/cache@v2 steps from run due to failures.

Comments out the steps in 'Create cache directories' that use
`actions/cache@2` so that the CI and production build can pass
while Github support issue is processed.

See https://github.com/actions/cache/issues/794 for an upstream report.
This commit is contained in:
Lauryn Menard
2022-04-29 19:14:51 +02:00
committed by GitHub
parent ac938ef2a1
commit ae24fe69ed
2 changed files with 45 additions and 42 deletions

View File

@@ -62,26 +62,27 @@ jobs:
sudo mkdir -p "${dirs[@]}" sudo mkdir -p "${dirs[@]}"
sudo chown -R github "${dirs[@]}" sudo chown -R github "${dirs[@]}"
- name: Restore node_modules cache # TEMPORARY: due to CI failures.
uses: actions/cache@v2 # - name: Restore node_modules cache
with: # uses: actions/cache@v2
path: /srv/zulip-npm-cache # with:
key: v1-yarn-deps-focal-${{ hashFiles('package.json') }}-${{ hashFiles('yarn.lock') }} # path: /srv/zulip-npm-cache
restore-keys: v1-yarn-deps-focal # key: v1-yarn-deps-focal-${{ hashFiles('package.json') }}-${{ hashFiles('yarn.lock') }}
# restore-keys: v1-yarn-deps-focal
- name: Restore python cache # - name: Restore python cache
uses: actions/cache@v2 # uses: actions/cache@v2
with: # with:
path: /srv/zulip-venv-cache # path: /srv/zulip-venv-cache
key: v1-venv-focal-${{ hashFiles('requirements/dev.txt') }} # key: v1-venv-focal-${{ hashFiles('requirements/dev.txt') }}
restore-keys: v1-venv-focal # restore-keys: v1-venv-focal
- name: Restore emoji cache # - name: Restore emoji cache
uses: actions/cache@v2 # uses: actions/cache@v2
with: # with:
path: /srv/zulip-emoji-cache # path: /srv/zulip-emoji-cache
key: v1-emoji-focal-${{ hashFiles('tools/setup/emoji/emoji_map.json') }}-${{ hashFiles('tools/setup/emoji/build_emoji') }}-${{ hashFiles('tools/setup/emoji/emoji_setup_utils.py') }}-${{ hashFiles('tools/setup/emoji/emoji_names.py') }}-${{ hashFiles('package.json') }} # key: v1-emoji-focal-${{ hashFiles('tools/setup/emoji/emoji_map.json') }}-${{ hashFiles('tools/setup/emoji/build_emoji') }}-${{ hashFiles('tools/setup/emoji/emoji_setup_utils.py') }}-${{ hashFiles('tools/setup/emoji/emoji_names.py') }}-${{ hashFiles('package.json') }}
restore-keys: v1-emoji-focal # restore-keys: v1-emoji-focal
- name: Build production tarball - name: Build production tarball
run: ./tools/ci/production-build run: ./tools/ci/production-build
@@ -154,12 +155,13 @@ jobs:
sudo mkdir -p "${dirs[@]}" sudo mkdir -p "${dirs[@]}"
sudo chown -R github "${dirs[@]}" sudo chown -R github "${dirs[@]}"
- name: Restore node_modules cache # TEMPORARY: due to CI failures.
uses: actions/cache@v2 # - name: Restore node_modules cache
with: # uses: actions/cache@v2
path: /srv/zulip-npm-cache # with:
key: v1-yarn-deps-${{ matrix.os }}-${{ hashFiles('/tmp/package.json') }}-${{ hashFiles('/tmp/yarn.lock') }} # path: /srv/zulip-npm-cache
restore-keys: v1-yarn-deps-${{ matrix.os }} # key: v1-yarn-deps-${{ matrix.os }}-${{ hashFiles('/tmp/package.json') }}-${{ hashFiles('/tmp/yarn.lock') }}
# restore-keys: v1-yarn-deps-${{ matrix.os }}
- name: Install production - name: Install production
run: | run: |

View File

@@ -52,26 +52,27 @@ jobs:
sudo mkdir -p "${dirs[@]}" sudo mkdir -p "${dirs[@]}"
sudo chown -R github "${dirs[@]}" sudo chown -R github "${dirs[@]}"
- name: Restore node_modules cache # TEMPORARY: due to CI failures.
uses: actions/cache@v2 # - name: Restore node_modules cache
with: # uses: actions/cache@v2
path: /srv/zulip-npm-cache # with:
key: v1-yarn-deps-${{ matrix.os }}-${{ hashFiles('package.json') }}-${{ hashFiles('yarn.lock') }} # path: /srv/zulip-npm-cache
restore-keys: v1-yarn-deps-${{ matrix.os }} # key: v1-yarn-deps-${{ matrix.os }}-${{ hashFiles('package.json') }}-${{ hashFiles('yarn.lock') }}
# restore-keys: v1-yarn-deps-${{ matrix.os }}
- name: Restore python cache # - name: Restore python cache
uses: actions/cache@v2 # uses: actions/cache@v2
with: # with:
path: /srv/zulip-venv-cache # path: /srv/zulip-venv-cache
key: v1-venv-${{ matrix.os }}-${{ hashFiles('requirements/dev.txt') }} # key: v1-venv-${{ matrix.os }}-${{ hashFiles('requirements/dev.txt') }}
restore-keys: v1-venv-${{ matrix.os }} # restore-keys: v1-venv-${{ matrix.os }}
- name: Restore emoji cache # - name: Restore emoji cache
uses: actions/cache@v2 # uses: actions/cache@v2
with: # with:
path: /srv/zulip-emoji-cache # path: /srv/zulip-emoji-cache
key: v1-emoji-${{ matrix.os }}-${{ hashFiles('tools/setup/emoji/emoji_map.json') }}-${{ hashFiles('tools/setup/emoji/build_emoji') }}-${{ hashFiles('tools/setup/emoji/emoji_setup_utils.py') }}-${{ hashFiles('tools/setup/emoji/emoji_names.py') }}-${{ hashFiles('package.json') }} # key: v1-emoji-${{ matrix.os }}-${{ hashFiles('tools/setup/emoji/emoji_map.json') }}-${{ hashFiles('tools/setup/emoji/build_emoji') }}-${{ hashFiles('tools/setup/emoji/emoji_setup_utils.py') }}-${{ hashFiles('tools/setup/emoji/emoji_names.py') }}-${{ hashFiles('package.json') }}
restore-keys: v1-emoji-${{ matrix.os }} # restore-keys: v1-emoji-${{ matrix.os }}
- name: Install dependencies - name: Install dependencies
run: | run: |