# Version Check job 在最新的测试都通过的情况下引发异常

**URL:** <https://meta.discourse.org/t/version-check-job-is-raising-an-exception-on-latest-tests-passed/274215>\
**Category:** Product Support\
**Created:** [2023 年8 月 7 日 16:21 UTC](https://meta.discourse.org/t/version-check-job-is-raising-an-exception-on-latest-tests-passed/274215 "2023-08-07T16:21:24Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

作者： ![david](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/david/32/157490_2.png) [@david](https://meta.discourse.org/u/david)\
发布日期： [2023 年8 月 8 日 23:14 UTC](https://meta.discourse.org/t/version-check-job-is-raising-an-exception-on-latest-tests-passed/274215/6 "2023-08-08T23:14:37Z")

</div>

没错，你说得完全正确。由于未能正确理解 `-dev` 后缀，导致服务器未能获取到 GitHub 上上周发布的版本 :facepalm:。感谢 @RGJ！

现在在一个 tests-passed 实例上：

```ruby
[1] pry(main)=> DiscourseHub.discourse_version_check
=> {"success"=>"OK",
 "latestVersion"=>"3.1.0.beta8",
 "criticalUpdates"=>false,
 "missingVersionsCount"=>1,
 "versions"=>
  [{"version"=>"3.1.0.beta8",
    "releasedAt"=>"2023-08-01T08:59:00.000Z",
    "critical"=>false,
    "notes"=>"Read about the release here:\r\n\r\nhttps://meta.discourse.org/t/273443",
    "url"=>"http://www.discourse.org/pricing"}]}

```

version-check 服务器现在也包含了 3.1.0，所以 `stable` 应该也没问题。

---

_[View the full topic](https://meta.discourse.org/t/version-check-job-is-raising-an-exception-on-latest-tests-passed/274215)._
