# \`tests/test\_helper\` 出现问题？

**URL:** <https://meta.discourse.org/t/trouble-with-tests-test-helper/188185>\
**Category:** Bug\
**Created:** [2021年四月26日 18:43 UTC](https://meta.discourse.org/t/trouble-with-tests-test-helper/188185 "2021-04-26T18:43:56Z")\
**Posts on this page:** 3\
**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:** [2021年四月26日 18:43 UTC](https://meta.discourse.org/t/trouble-with-tests-test-helper/188185/1 "2021-04-26T18:43:56Z")

</div>

我不太明白这是怎么回事，但这看起来像是一个 bug。我试图在这个站点上执行 bootstrap 操作。没有使用任何非标准插件。我只是将资源从一个存储桶迁移到了另一个，目前一切正常。我原本打算再进行一次重建，以便将 `DISCOURSE_S3_UPLOAD_BUCKET` 添加到环境变量中，这样它就不会在用户界面中显示。第一次失败后，我注释掉了那一行，并尝试使用三天前还能正常工作的相同配置再次运行。

```plaintext

Done compressing embed-application-9cef8308c816fc1d83137e63d6c556c6cc2b68fe2b6e5ce16cca6766ba2c0ae4.js : 0.17 secs

844614.350963717 Compressing: discourse/tests/test_helper-8590b31b8e73c4172aeea4a4a6bd1930ccbce2547a20d831a30d457ba092a631.js
terser '/var/www/discourse/public/assets/discourse/tests/_test_helper-8590b31b8e73c4172aeea4a4a6bd1930ccbce2547a20d831a30d457ba092a631.js' -m -c -o '/var/www/discourse/public/assets/discourse/tests/test_helper-8590b31b8e73c4172aeea4a4a6bd1930ccbce2547a20d831a30d457ba092a631.js' --source-map "base='/var/www/discourse/public/assets/discourse/tests',root='/assets/discourse/tests',url='https://CORRECT_CDN_ADDRESS.b-cdn.net/assets/discourse/tests/test_helper-8590b31b8e73c4172aeea4a4a6bd1930ccbce2547a20d831a30d457ba092a631.js.map'"
Killed
rake aborted!
Errno::ENOENT: No such file or directory @ rb_file_s_size - /var/www/discourse/public/assets/discourse/tests/test_helper-8590b31b8e73c4172aeea4a4a6bd1930ccbce2547a20d831a30d457ba092a631.js
/var/www/discourse/lib/tasks/assets.rake:290:in `size'
/var/www/discourse/lib/tasks/assets.rake:290:in `block (4 levels) in <main>'
/var/www/discourse/lib/tasks/assets.rake:181:in `block in concurrent?'
/var/www/discourse/lib/tasks/assets.rake:281:in `block (3 levels) in <main>'
/var/www/discourse/lib/tasks/assets.rake:272:in `each'
/var/www/discourse/lib/tasks/assets.rake:272:in `block (2 levels) in <main>'
/var/www/discourse/lib/tasks/assets.rake:181:in `concurrent?'
/var/www/discourse/lib/tasks/assets.rake:269:in `block in <main>'
/var/www/discourse/vendor/bundle/ruby/2.7.0/gems/rake-13.0.3/exe/rake:27:in `<top (required)>'
/usr/local/bin/bundle:23:in `load'
/usr/local/bin/bundle:23:in `<main>'
Tasks: TOP => assets:precompile
(See full trace by running task with --trace)
I, [2021-04-26T18:38:36.072881 #1] INFO -- : Updating Discourse Loading Slider...
Downloading MaxMindDB...
Compressing Javascript and Generating Source Maps

```

我曾怀疑是不是 CDN 的 URL 有问题，但上面所有包含该 URL 的行都运行正常。

这是否意味着他们的主题中存在有问题的 CSS？如果是的话，那可真糟糕。他们的母版主题中只包含了一些 CSS。此外还有这些组件：`https://github.com/discourse/DiscoTOC.git` 和 `https://github.com/davidtaylorhq/discourse-loading-slider.git`。

---

<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:** [2021年四月26日 19:26 UTC](https://meta.discourse.org/t/trouble-with-tests-test-helper/188185/2 "2021-04-26T19:26:28Z")

</div>

5 篇帖子已合并到现有主题：[启动失败](https://meta.discourse.org/t/failed-to-bootstrap/188141)

---

<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:** [2021年四月26日 19:26 UTC](https://meta.discourse.org/t/trouble-with-tests-test-helper/188185/3 "2021-04-26T19:26:28Z")

</div>


