Skip to content

github-release-resource not fetching latest version #199

Closed

Description

@Amit-PivotalLabs

Here is an example build:

https://mega.ci.cf-app.com/pipelines/release/jobs/announce-rc/builds/27

Notice how it is picking up v222 of cf-github-release even though v223 was out many days before this build run:

https://github.com/cloudfoundry/cf-release/releases/tag/v223

Here is the pipeline configuration:

https://github.com/cloudfoundry/mega-ci/blob/master/pipelines/release.yml

@vito suggested hijacking in and running some tests:

AKG :: ~/Documents/workspace/mega-ci/pipelines
$ fly -t mega hijack -j release/announce-rc /bin/sh
1: pipeline: release, build id: 1041, type: get, name: cf-github-release
2: pipeline: release, build id: 1041, type: task, name: announce-rc
choose a container: 1

~ # echo '{"source":{"user":"cloudfoundry","repository":"cf-release"}}' | /opt/resource/check
[]
~ # echo $?
0
~ # echo '{"source":{"user":"cloudfoundry","repository":"cf-release","access_token":"REDACTED"}}' | /opt/resource/check
[]
~ # echo $?
0
~ # echo '{"source":{"user":"cloudfoundry","repository":"cf-release","access_token":"REDACTED"},"version":{"tag":"v222"}}' | /opt/resource/check
[]
~ # echo $?
0
~ # echo '{"source":{"user":"cloudfoundry","repository":"cf-release","access_token":"REDACTED"},"version":{"tag":"v223"}}' | /opt/resource/check
[]
~ # echo $?
0

Activity

  1. concourse-bot commented on Nov 9, 2015

    @concourse-bot

    Hi there!

    We use Pivotal Tracker to provide visibility into what our team is working on. A story for this issue has been automatically created.

    The current status is as follows:

    • #107756410 github-release-resource not fetching latest version

    This comment, as well as the labels on the issue, will be automatically updated as the status in Tracker changes.

  2. evashort commented on Nov 10, 2015

    @evashort
    Contributor

    Currently we ignore all releases unless the tag is a valid semver version (e.g. v0.1.2). To fix this issue, we added support for semi-semantic versioning using go-semi-semantic. This means that we will no longer ignore version names like v223, and we will order them in an intuitive way (e.g. v222.9.1 < v223 < v223.0.1)

  3. added a commit that references this issue on Apr 19, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions