# בדיקות ב-github actions נכשלות בהגדרת redis

**URL:** <https://meta.discourse.org/t/tests-at-github-actions-fail-set-up-redis/208819>\
**Category:** Support\
**Created:** [10 בנובמבר,‏ 2021,‏ 7:06pm UTC](https://meta.discourse.org/t/tests-at-github-actions-fail-set-up-redis/208819 "2021-11-10T19:06:57Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**Post date:** [10 בנובמבר,‏ 2021,‏ 7:06pm UTC](https://meta.discourse.org/t/tests-at-github-actions-fail-set-up-redis/208819/1 "2021-11-10T19:06:57Z")

</div>

Trying to submit a plugin, I’m getting this failure on untarring redis.

Maybe `--long=30` is the issue? I’m not quite clear how to try to debug this…

 ![image](https://global.discourse-cdn.com/meta/original/3X/b/1/b17697b27ad18897634b4bdd1850fe32bfcf2c36.png)

---

<div class="post-metadata">

**Author:** ![Simon\_Manning](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simon_manning/32/198596_2.png) [@Simon\_Manning](https://meta.discourse.org/u/Simon_Manning)\
**Post date:** [10 בנובמבר,‏ 2021,‏ 8:48pm UTC](https://meta.discourse.org/t/tests-at-github-actions-fail-set-up-redis/208819/2 "2021-11-10T20:48:54Z")

</div>

I think the error is saying that it can’t execute `zstd`. Do you have that package installed?

---

<div class="post-metadata">

**Author:** ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**Post date:** [10 בנובמבר,‏ 2021,‏ 9:02pm UTC](https://meta.discourse.org/t/tests-at-github-actions-fail-set-up-redis/208819/3 "2021-11-10T21:02:11Z")

</div>

No. Perhaps something changed in the base Docker image, or the OS that it’s created with and it needs to be added there. I’m really not clear where that should happen, but I’m pretty sure that it’s not in my plugin. 🤷‍♂️

---

<div class="post-metadata">

**Author:** ![Simon\_Manning](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simon_manning/32/198596_2.png) [@Simon\_Manning](https://meta.discourse.org/u/Simon_Manning)\
**Post date:** [10 בנובמבר,‏ 2021,‏ 9:08pm UTC](https://meta.discourse.org/t/tests-at-github-actions-fail-set-up-redis/208819/4 "2021-11-10T21:08:20Z")

</div>

The `zstd` requirement is coming from the redis package (downloaded in your screenshot) being compressed by `zstd`. If `zstd` wasn’t required before, potentially the compression method changed on the `shogo82148/actions-setup-redis` side.

---

<div class="post-metadata">

**Author:** ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)\
**Post date:** [10 בנובמבר,‏ 2021,‏ 9:09pm UTC](https://meta.discourse.org/t/tests-at-github-actions-fail-set-up-redis/208819/5 "2021-11-10T21:09:44Z")

</div>

> [@pfaffman](#):
>
> No. Perhaps something changed in the base Docker image,

If you are using _our_ base image, you shouldn’t set up any Redis, as it’s already there.

---

<div class="post-metadata">

**Author:** ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**Post date:** [10 בנובמבר,‏ 2021,‏ 9:13pm UTC](https://meta.discourse.org/t/tests-at-github-actions-fail-set-up-redis/208819/6 "2021-11-10T21:13:21Z")

</div>

> [@Falco](#):
>
> If you are using _our_ base image, you shouldn’t set up any Redis, as it’s already there.

I always try to do everything your way. 😉

I’m using the base image and process described in:

> **[discourse-plugin-skeleton/.github/workflows at main ·...](https://github.com/discourse/discourse-plugin-skeleton/tree/main/.github/workflows)**
>
> main/.github/workflows

It worked last week. There isn’t a new commit in those workflows in 2 months. I don’t think there’s anything that I could have done in my plugin to break this in this particular way.

---

<div class="post-metadata">

**Author:** ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)\
**Post date:** [10 בנובמבר,‏ 2021,‏ 9:18pm UTC](https://meta.discourse.org/t/tests-at-github-actions-fail-set-up-redis/208819/7 "2021-11-10T21:18:36Z")

</div>

> [@pfaffman](#):
>
> I’m using the base image and process described in:

That process was updated Sept 15th to remove that Redis action, wasn’t ?

---

<div class="post-metadata">

**Author:** ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**Post date:** [10 בנובמבר,‏ 2021,‏ 9:24pm UTC](https://meta.discourse.org/t/tests-at-github-actions-fail-set-up-redis/208819/8 "2021-11-10T21:24:53Z")

</div>

That’s it! Is there some recommended/easy way to not let this happen and look so foolish?

---

<div class="post-metadata">

**Author:** ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)\
**Post date:** [10 בנובמבר,‏ 2021,‏ 9:31pm UTC](https://meta.discourse.org/t/tests-at-github-actions-fail-set-up-redis/208819/9 "2021-11-10T21:31:41Z")

</div>

Not sure to be honest 😄

The eternal struggle between those skeleton projects and continuous updates are quite common, and while they can be solved by some configuration file composition in some places, sometimes you will still need to manually diff it.

It’s a constant problem in my current linux distro flavor, so I feel you.

---

<div class="post-metadata">

**Author:** ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**Post date:** [10 בנובמבר,‏ 2021,‏ 9:38pm UTC](https://meta.discourse.org/t/tests-at-github-actions-fail-set-up-redis/208819/10 "2021-11-10T21:38:46Z")

</div>

> [@Falco](#):
>
> Not sure to be honest

Ha! At least I’m in good company. That’s a huge help.

> [@Falco](#):
>
> It’s a constant problem in my current linux distro flavor, so I feel you.

Yeah. That was about 15 minutes today figuring out how to upgrade `node.js`.

---

<div class="post-metadata">

**Author:** ![Simon\_Manning](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simon_manning/32/198596_2.png) [@Simon\_Manning](https://meta.discourse.org/u/Simon_Manning)\
**Post date:** [10 בנובמבר,‏ 2021,‏ 9:42pm UTC](https://meta.discourse.org/t/tests-at-github-actions-fail-set-up-redis/208819/11 "2021-11-10T21:42:33Z")

</div>

I’m not familiar with the processes involved with using that skeleton project but could you leverage shell aliases at all? E.g. instead of using `docker whizzy things`, train yourself to use your own alias such as `alias dwt="git pull; docker whizzy things"`

---

<div class="post-metadata">

**Author:** ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**Post date:** [10 בנובמבר,‏ 2021,‏ 11:57pm UTC](https://meta.discourse.org/t/tests-at-github-actions-fail-set-up-redis/208819/12 "2021-11-10T23:57:22Z")

</div>

Sadly, no. A crazy hack might involve hard links between my plugin and the skeleton plugin and some automated way to pull in the latest commits on the skeleton. I’m afraid the “wait until it breaks and remember to check the github workflows” solution is the way to go.

Thanks.

---

<div class="post-metadata">

**Author:** ![Simon\_Manning](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simon_manning/32/198596_2.png) [@Simon\_Manning](https://meta.discourse.org/u/Simon_Manning)\
**Post date:** [11 בנובמבר,‏ 2021,‏ 12:05pm UTC](https://meta.discourse.org/t/tests-at-github-actions-fail-set-up-redis/208819/13 "2021-11-11T12:05:59Z")

</div>

If I’m interpreting it correctly, I think you probably have a copy of the skeleton project (with all the important stuff replaced with your own plugin magic) and the issue is that the workflow files in that copy become out-of-date.

Could you add the skeleton repository as a submodule and then replace the workflow files in your repository with symlinks into the submodule? Setting `git config submodule.recurse true` will keep the submodule updated whenever you do a pull.

---

<div class="post-metadata">

**Author:** ![Simon\_Manning](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simon_manning/32/198596_2.png) [@Simon\_Manning](https://meta.discourse.org/u/Simon_Manning)\
**Post date:** [11 בנובמבר,‏ 2021,‏ 3:04pm UTC](https://meta.discourse.org/t/tests-at-github-actions-fail-set-up-redis/208819/14 "2021-11-11T15:04:18Z")

</div>

I don’t think the symlink approach would have worked based on finding some people semi-recently discussing why it doesn’t work. I’ve made a pull request which should deal with this by taking advantage of reusable workflows.  
[https://github.com/discourse/discourse-plugin-skeleton/pull/8](https://github.com/discourse/discourse-plugin-skeleton/pull/8)

---

<div class="post-metadata">

**Author:** ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**Post date:** [11 בנובמבר,‏ 2021,‏ 11:10pm UTC](https://meta.discourse.org/t/tests-at-github-actions-fail-set-up-redis/208819/15 "2021-11-11T23:10:33Z")

</div>

> [@Simon\_Manning](#):
>
> I don’t think the symlink approach would have worked

No. Definitely not, but I thought (think?) that hard links will.

> [@pfaffman](#):
>
> A crazy hack might involve hard links between my plugin and the skeleton plugin

Yeah. I think that the hard-link solution might just work. I think that I can hard link from the skeleton repo to the others and then I do a `git pull` on the skeleton and then all files linked to those will get the new version, and I don’t think that git will notice that multiple files are linked there.

And now there’s a new idea that I don’t quite understand…[edit]but now I almost do. . .

---

<div class="post-metadata">

**Author:** ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)\
**Post date:** [11 בדצמבר,‏ 2021,‏ 11:11pm UTC](https://meta.discourse.org/t/tests-at-github-actions-fail-set-up-redis/208819/16 "2021-12-11T23:11:00Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
