GitlabReleases.previous_version is returning the incorrect version
Bug
We noticed the previous_version
method was predicting unexpected version numbers during the creation of the Automated Maintenance plans for Switchboard.
The latest released version is 16.4.1
(see https://about.gitlab.com/releases/categories/releases/).
We expect previous_version
to produce the latest patch of N-1 version. In this case that would be 16.3.5
.
However, it is currently returning 16.4.0
which is neither of the above
irb(main):001> require 'gitlab_releases'
16.5
=> true
irb(main):002> GitlabReleases.upcoming_releases
=>
{"16.4"=>"2023-09-22",
"16.5"=>"2023-10-22",
"16.6"=>"2023-11-16",
"16.7"=>"2023-12-21",
"16.8"=>"2024-01-18",
"16.9"=>"2024-02-15",
"16.10"=>"2024-03-21",
"16.11"=>"2024-04-18",
"17.0"=>"2024-05-16",
"17.1"=>"2024-06-20",
"17.2"=>"2024-07-18",
"17.3"=>"2024-08-15",
"17.4"=>"2024-09-19"}
irb(main):003> GitlabReleases.active_version
=> "16.5"
irb(main):004> GitlabReleases.current_version
=> "16.4"
irb(main):005> GitlabReleases.previous_version
=> "16.4.0"