Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

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

Anders Kaseorge8e0b045fc55
diff --git a/.github/workflows/production-suite.yml b/.github/workflows/production-suite.yml
index 98931c7e4e3..a5e8d44de02 100644
--- a/.github/workflows/production-suite.yml
+++ b/.github/workflows/production-suite.yml
@@ -62,27 +62,26 @@ jobs:
sudo mkdir -p "${dirs[@]}"
sudo chown -R github "${dirs[@]}"
- # TEMPORARY: due to CI failures.
- # - name: Restore node_modules cache
- # uses: actions/cache@v2
- # with:
- # path: /srv/zulip-npm-cache
- # key: v1-yarn-deps-focal-${{ hashFiles('package.json') }}-${{ hashFiles('yarn.lock') }}
- # restore-keys: v1-yarn-deps-focal
-
- # - name: Restore python cache
- # uses: actions/cache@v2
- # with:
- # path: /srv/zulip-venv-cache
- # key: v1-venv-focal-${{ hashFiles('requirements/dev.txt') }}
- # restore-keys: v1-venv-focal
-
- # - name: Restore emoji cache
- # uses: actions/cache@v2
- # with:
- # 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') }}
- # restore-keys: v1-emoji-focal
+ - name: Restore node_modules cache
+ uses: actions/cache@v2
+ with:
+ path: /srv/zulip-npm-cache
+ key: v1-yarn-deps-focal-${{ hashFiles('package.json') }}-${{ hashFiles('yarn.lock') }}
+ restore-keys: v1-yarn-deps-focal
+
+ - name: Restore python cache
+ uses: actions/cache@v2
+ with:
+ path: /srv/zulip-venv-cache
+ key: v1-venv-focal-${{ hashFiles('requirements/dev.txt') }}
+ restore-keys: v1-venv-focal
+
+ - name: Restore emoji cache
+ uses: actions/cache@v2
+ with:
+ 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') }}
+ restore-keys: v1-emoji-focal
- name: Build production tarball
run: ./tools/ci/production-build
@@ -155,13 +154,12 @@ jobs:
sudo mkdir -p "${dirs[@]}"
sudo chown -R github "${dirs[@]}"
- # TEMPORARY: due to CI failures.
- # - name: Restore node_modules cache
- # uses: actions/cache@v2
- # with:
- # path: /srv/zulip-npm-cache
- # key: v1-yarn-deps-${{ matrix.os }}-${{ hashFiles('/tmp/package.json') }}-${{ hashFiles('/tmp/yarn.lock') }}
- # restore-keys: v1-yarn-deps-${{ matrix.os }}
+ - name: Restore node_modules cache
+ uses: actions/cache@v2
+ with:
+ path: /srv/zulip-npm-cache
+ key: v1-yarn-deps-${{ matrix.os }}-${{ hashFiles('/tmp/package.json') }}-${{ hashFiles('/tmp/yarn.lock') }}
+ restore-keys: v1-yarn-deps-${{ matrix.os }}
- name: Install production
run: |
diff --git a/.github/workflows/zulip-ci.yml b/.github/workflows/zulip-ci.yml
index 52312b9e93b..57f4bec501a 100644
--- a/.github/workflows/zulip-ci.yml
+++ b/.github/workflows/zulip-ci.yml
@@ -52,27 +52,26 @@ jobs:
sudo mkdir -p "${dirs[@]}"
sudo chown -R github "${dirs[@]}"
- # TEMPORARY: due to CI failures.
- # - name: Restore node_modules cache
- # uses: actions/cache@v2
- # with:
- # path: /srv/zulip-npm-cache
- # key: v1-yarn-deps-${{ matrix.os }}-${{ hashFiles('package.json') }}-${{ hashFiles('yarn.lock') }}
- # restore-keys: v1-yarn-deps-${{ matrix.os }}
-
- # - name: Restore python cache
- # uses: actions/cache@v2
- # with:
- # path: /srv/zulip-venv-cache
- # key: v1-venv-${{ matrix.os }}-${{ hashFiles('requirements/dev.txt') }}
- # restore-keys: v1-venv-${{ matrix.os }}
-
- # - name: Restore emoji cache
- # uses: actions/cache@v2
- # with:
- # 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') }}
- # restore-keys: v1-emoji-${{ matrix.os }}
+ - name: Restore node_modules cache
+ uses: actions/cache@v2
+ with:
+ path: /srv/zulip-npm-cache
+ key: v1-yarn-deps-${{ matrix.os }}-${{ hashFiles('package.json') }}-${{ hashFiles('yarn.lock') }}
+ restore-keys: v1-yarn-deps-${{ matrix.os }}
+
+ - name: Restore python cache
+ uses: actions/cache@v2
+ with:
+ path: /srv/zulip-venv-cache
+ key: v1-venv-${{ matrix.os }}-${{ hashFiles('requirements/dev.txt') }}
+ restore-keys: v1-venv-${{ matrix.os }}
+
+ - name: Restore emoji cache
+ uses: actions/cache@v2
+ with:
+ 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') }}
+ restore-keys: v1-emoji-${{ matrix.os }}
- name: Install dependencies
run: |